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";
14 led-failsafe = &system;
15 led-running = &system;
16 led-upgrade = &system;
20 compatible = "gpio-leds";
23 label = "tp-link:green:usb1";
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 default-state = "off";
26 trigger-sources = <&hub_port1>;
27 linux,default-trigger = "usbport";
31 label = "tp-link:green:usb2";
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 default-state = "off";
34 trigger-sources = <&hub_port2>;
35 linux,default-trigger = "usbport";
39 label = "tp-link:green:wlan2g";
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 default-state = "off";
42 linux,default-trigger = "phy0tpt";
46 label = "tp-link:green:system";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 label = "tp-link:green:qss";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 default-state = "off";
59 compatible = "gpio-leds";
62 label = "tp-link:green:wlan5g";
63 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
64 default-state = "off";
65 linux,default-trigger = "phy1tpt";
70 compatible = "gpio-keys-polled";
74 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
80 linux,code = <KEY_RFKILL>;
81 linux,input-type = <EV_SW>;
82 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
88 compatible = "gpio-export";
91 gpio-export,name = "tp-link:power:usb1";
92 gpio-export,output = <1>;
93 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
97 gpio-export,name = "tp-link:power:usb2";
98 gpio-export,output = <1>;
99 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
103 gpio-export,name = "tp-link:ext:lna0";
104 gpio-export,output = <1>;
105 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
109 gpio-export,name = "tp-link:ext:lna1";
110 gpio-export,output = <1>;
111 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
117 clock-frequency = <40000000>;
134 compatible = "jedec,spi-nor";
136 spi-max-frequency = <25000000>;
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
145 reg = <0x000000 0x020000>;
151 reg = <0x020000 0x7d0000>;
154 art: partition@7f0000 {
156 reg = <0x7f0000 0x010000>;
164 #address-cells = <1>;
169 #address-cells = <1>;
172 #trigger-source-cells = <0>;
176 #trigger-source-cells = <0>;
181 #trigger-source-cells = <0>;
194 compatible = "pci168c,0033";
195 reg = <0x0000 0 0 0 0>;
196 mtd-mac-address = <&uboot 0x1fc00>;
206 mtd-cal-data = <&art 0x1000>;
207 mtd-mac-address = <&uboot 0x1fc00>;
208 mtd-mac-address-increment = <(-1)>;
216 phy0: ethernet-phy@0 {
220 qca,ar8327-initvals = <
221 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
222 0x10 0x80000080 /* POWER_ON_STRIP */
223 0x50 0xc737c737 /* LED_CTRL0 */
224 0x54 0x00000000 /* LED_CTRL1 */
225 0x58 0x00000000 /* LED_CTRL2 */
226 0x5c 0x0030c300 /* LED_CTRL3 */
227 0x7c 0x0000007e /* PORT0_STATUS */
235 /* default for ar934x, except for 1000M */
236 pll-data = <0x06000000 0x00000101 0x00001616>;
238 mtd-mac-address = <&uboot 0x1fc00>;
239 mtd-mac-address-increment = <(-2)>;
242 phy-handle = <&phy0>;