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";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 compatible = "gpio-leds";
38 pinctrl-names = "default";
39 pinctrl-0 = <&switch_led_pins>;
42 label = "tl-wr740n-v2:green:system";
43 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 label = "tl-wr740n-v2:green:lan1";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 label = "tl-wr740n-v2:green:lan2";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 label = "tl-wr740n-v2:green:lan3";
58 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 label = "tl-wr740n-v2:green:lan4";
63 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 label = "tl-wr740n-v2:green:wan";
68 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 label = "tl-wr740n-v2:green:wlan";
73 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
74 default-state = "off";
75 linux,default-trigger = "phy0tpt";
79 label = "tl-wr740n-v2:green:wps";
80 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <25000000>;
95 compatible = "fixed-partitions";
105 firmware: partition@20000 {
106 reg = <0x20000 0x3d0000>;
110 art: partition@3f0000 {
111 reg = <0x3f0000 0x10000>;
122 mtd-mac-address = <&uboot 0x1fc00>;
123 mtd-mac-address-increment = <(-1)>;
129 mtd-mac-address = <&uboot 0x1fc00>;
130 mtd-mac-address-increment = <1>;
137 compatible = "pci168c,002b";
138 reg = <0x0000 0 0 0 0>;
140 mtd-mac-address = <&uboot 0x1fc00>;
147 switch_led_pins: pinmux_switch_led_pins {
148 pinctrl-single,bits = <0x0 0x0 0xf8>;