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>
11 led-failsafe = &system;
12 led-running = &system;
13 led-upgrade = &system;
17 compatible = "gpio-leds";
20 label = "tp-link:green:usb1";
21 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
22 trigger-sources = <&hub_port1>;
23 linux,default-trigger = "usbport";
27 label = "tp-link:green:usb2";
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port2>;
30 linux,default-trigger = "usbport";
34 label = "tp-link:green:wlan2g";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
40 label = "tp-link:green:system";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
46 label = "tp-link:green:qss";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-leds";
55 label = "tp-link:green:wlan5g";
56 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy1tpt";
62 compatible = "gpio-keys-polled";
66 linux,code = <KEY_RESTART>;
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
72 linux,code = <KEY_RFKILL>;
73 linux,input-type = <EV_SW>;
74 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
75 debounce-interval = <60>;
80 compatible = "gpio-export";
83 gpio-export,name = "tp-link:power:usb1";
84 gpio-export,output = <1>;
85 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
89 gpio-export,name = "tp-link:power:usb2";
90 gpio-export,output = <1>;
91 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
95 gpio-export,name = "tp-link:ext:lna0";
96 gpio-export,output = <1>;
97 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
101 gpio-export,name = "tp-link:ext:lna1";
102 gpio-export,output = <1>;
103 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
109 clock-frequency = <40000000>;
126 compatible = "jedec,spi-nor";
128 spi-max-frequency = <25000000>;
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
137 reg = <0x000000 0x020000>;
142 compatible = "tplink,firmware";
144 reg = <0x020000 0x7d0000>;
147 art: partition@7f0000 {
149 reg = <0x7f0000 0x010000>;
157 #address-cells = <1>;
162 #address-cells = <1>;
165 #trigger-source-cells = <0>;
169 #trigger-source-cells = <0>;
174 #trigger-source-cells = <0>;
187 compatible = "pci168c,0033";
188 reg = <0x0000 0 0 0 0>;
189 mtd-mac-address = <&uboot 0x1fc00>;
199 mtd-cal-data = <&art 0x1000>;
200 mtd-mac-address = <&uboot 0x1fc00>;
201 mtd-mac-address-increment = <(-1)>;
209 phy0: ethernet-phy@0 {
213 qca,ar8327-initvals = <
214 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
215 0x10 0x80000080 /* POWER_ON_STRIP */
216 0x50 0xc737c737 /* LED_CTRL0 */
217 0x54 0x00000000 /* LED_CTRL1 */
218 0x58 0x00000000 /* LED_CTRL2 */
219 0x5c 0x0030c300 /* LED_CTRL3 */
220 0x7c 0x0000007e /* PORT0_STATUS */
228 /* default for ar934x, except for 1000M */
229 pll-data = <0x06000000 0x00000101 0x00001616>;
231 mtd-mac-address = <&uboot 0x1fc00>;
232 mtd-mac-address-increment = <(-2)>;
235 phy-handle = <&phy0>;