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";
78 linux,code = <KEY_RESTART>;
79 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
84 linux,code = <KEY_RFKILL>;
85 linux,input-type = <EV_SW>;
86 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
92 compatible = "gpio-export";
96 gpio-export,name = "tp-link:power:usb1";
97 gpio-export,output = <1>;
98 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
102 gpio-export,name = "tp-link:power:usb2";
103 gpio-export,output = <1>;
104 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
108 gpio-export,name = "tp-link:ext:lna0";
109 gpio-export,output = <1>;
110 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
114 gpio-export,name = "tp-link:ext:lna1";
115 gpio-export,output = <1>;
116 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
122 clock-frequency = <40000000>;
139 #address-cells = <1>;
141 compatible = "jedec,spi-nor";
143 spi-max-frequency = <25000000>;
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
152 reg = <0x000000 0x020000>;
158 reg = <0x020000 0x7d0000>;
163 reg = <0x7f0000 0x010000>;
175 #trigger-source-cells = <0>;
179 #trigger-source-cells = <0>;
184 #trigger-source-cells = <0>;
196 ath9k: wifi@168c,0033 {
197 compatible = "pci168c,0033";
198 reg = <0x0000 0 0 0 0>;
199 mtd-mac-address = <&uboot 0x1fc00>;
211 phy0: ethernet-phy@0 {
215 qca,ar8327-initvals = <
216 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
217 0x10 0x80000080 /* POWER_ON_STRIP */
218 0x50 0xc737c737 /* LED_CTRL0 */
219 0x54 0x00000000 /* LED_CTRL1 */
220 0x58 0x00000000 /* LED_CTRL2 */
221 0x5c 0x0030c300 /* LED_CTRL3 */
222 0x7c 0x0000007e /* PORT0_STATUS */
230 /* default for ar934x, except for 1000M */
231 pll-data = <0x06000000 0x00000101 0x00001616>;
233 mtd-mac-address = <&uboot 0x1fc00>;
234 mtd-mac-address-increment = <(-2)>;
237 phy-handle = <&phy0>;