1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "tplink,tl-wr740n-v2", "qca,ar7240";
11 model = "TP-Link TL-WR740N v2";
14 led-status = &led_system;
18 device_type = "memory";
19 reg = <0x0 0x2000000>;
23 compatible = "gpio-keys-polled";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 linux,code = <KEY_WPS_BUTTON>;
38 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 compatible = "gpio-leds";
45 pinctrl-names = "default";
46 pinctrl-0 = <&switch_led_pins>;
49 label = "tl-wr740n-v2:green:system";
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
54 label = "tl-wr740n-v2:green:lan1";
55 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 label = "tl-wr740n-v2:green:lan2";
60 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
64 label = "tl-wr740n-v2:green:lan3";
65 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
69 label = "tl-wr740n-v2:green:lan4";
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
74 label = "tl-wr740n-v2:green:wan";
75 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
79 label = "tl-wr740n-v2:green:wlan";
80 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
81 default-state = "off";
82 linux,default-trigger = "phy0tpt";
86 label = "tl-wr740n-v2:green:wps";
87 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <25000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
114 firmware: partition@20000 {
115 reg = <0x20000 0x3d0000>;
119 art: partition@3f0000 {
120 reg = <0x3f0000 0x10000>;
131 phy-handle = <&phy4>;
133 mtd-mac-address = <&uboot 0x1fc00>;
134 mtd-mac-address-increment = <(-1)>;
140 mtd-mac-address = <&uboot 0x1fc00>;
141 mtd-mac-address-increment = <1>;
147 phy4: ethernet-phy@4 {
156 ath9k: wifi@168c,002b {
157 compatible = "pci168c,002b";
158 reg = <0x0000 0 0 0 0>;
160 mtd-mac-address = <&uboot 0x1fc00>;
167 switch_led_pins: pinmux_switch_led_pins {
168 pinctrl-single,bits = <0x0 0x0 0xf8>;