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 compatible = "gpio-keys-polled";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
40 pinctrl-names = "default";
41 pinctrl-0 = <&switch_led_pins>;
44 label = "tl-wr740n-v2:green:system";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
49 label = "tl-wr740n-v2:green:lan1";
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54 label = "tl-wr740n-v2:green:lan2";
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 label = "tl-wr740n-v2:green:lan3";
60 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 label = "tl-wr740n-v2:green:lan4";
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
69 label = "tl-wr740n-v2:green:wan";
70 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
74 label = "tl-wr740n-v2:green:wlan";
75 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
76 default-state = "off";
77 linux,default-trigger = "phy0tpt";
81 label = "tl-wr740n-v2:green:wps";
82 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
94 compatible = "jedec,spi-nor";
96 spi-max-frequency = <25000000>;
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
109 firmware: partition@20000 {
110 reg = <0x20000 0x3d0000>;
114 art: partition@3f0000 {
115 reg = <0x3f0000 0x10000>;
126 phy-handle = <&phy4>;
128 mtd-mac-address = <&uboot 0x1fc00>;
129 mtd-mac-address-increment = <(-1)>;
135 mtd-mac-address = <&uboot 0x1fc00>;
136 mtd-mac-address-increment = <1>;
142 phy4: ethernet-phy@4 {
151 ath9k: wifi@168c,002b {
152 compatible = "pci168c,002b";
153 reg = <0x0000 0 0 0 0>;
155 mtd-mac-address = <&uboot 0x1fc00>;
162 switch_led_pins: pinmux_switch_led_pins {
163 pinctrl-single,bits = <0x0 0x0 0xf8>;