1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
9 model = "TP-Link WDR4300";
10 compatible = "tplink,tl-wdr4300";
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 compatible = "gpio-leds";
25 label = "tp-link:green:usb1";
26 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27 default-state = "off";
28 trigger-sources = <&hub_port1>;
29 linux,default-trigger = "usbport";
33 label = "tp-link:green:usb2";
34 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 trigger-sources = <&hub_port2>;
37 linux,default-trigger = "usbport";
41 label = "tp-link:green:wlan2g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 default-state = "off";
44 linux,default-trigger = "phy0tpt";
48 label = "tp-link:green:system";
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 label = "tp-link:green:qss";
55 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 default-state = "off";
61 compatible = "gpio-leds";
64 label = "tp-link:green:wlan5g";
65 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
66 default-state = "off";
67 linux,default-trigger = "phy1tpt";
72 compatible = "gpio-keys-polled";
79 linux,code = <KEY_RESTART>;
80 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
81 debounce-interval = <60>;
86 linux,code = <KEY_RFKILL>;
87 linux,input-type = <EV_SW>;
88 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
89 debounce-interval = <60>;
94 compatible = "gpio-export";
98 gpio-export,name = "tp-link:power:usb1";
99 gpio-export,output = <1>;
100 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
104 gpio-export,name = "tp-link:power:usb2";
105 gpio-export,output = <1>;
106 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
110 gpio-export,name = "tp-link:ext:lna0";
111 gpio-export,output = <1>;
112 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
116 gpio-export,name = "tp-link:ext:lna1";
117 gpio-export,output = <1>;
118 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
124 clock-frequency = <40000000>;
141 #address-cells = <1>;
143 compatible = "jedec,spi-nor";
145 spi-max-frequency = <25000000>;
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
154 reg = <0x000000 0x020000>;
160 reg = <0x020000 0x7d0000>;
165 reg = <0x7f0000 0x010000>;
177 #trigger-source-cells = <0>;
181 #trigger-source-cells = <0>;
186 #trigger-source-cells = <0>;
198 ath9k: wifi@168c,0033 {
199 compatible = "pci168c,0033";
200 reg = <0x0000 0 0 0 0>;
201 mtd-mac-address = <&uboot 0x1fc00>;
213 phy0: ethernet-phy@0 {
217 qca,ar8327-initvals = <
218 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
219 0x10 0x80000080 /* POWER_ON_STRIP */
220 0x50 0xc737c737 /* LED_CTRL0 */
221 0x54 0x00000000 /* LED_CTRL1 */
222 0x58 0x00000000 /* LED_CTRL2 */
223 0x5c 0x0030c300 /* LED_CTRL3 */
224 0x7c 0x0000007e /* PORT0_STATUS */
232 /* default for ar934x, except for 1000M */
233 pll-data = <0x06000000 0x00000101 0x00001616>;
235 mtd-mac-address = <&uboot 0x1fc00>;
236 mtd-mac-address-increment = <(-2)>;
239 phy-handle = <&phy0>;