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 default-state = "off";
23 trigger-sources = <&hub_port1>;
24 linux,default-trigger = "usbport";
28 label = "tp-link:green:usb2";
29 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 trigger-sources = <&hub_port2>;
32 linux,default-trigger = "usbport";
36 label = "tp-link:green:wlan2g";
37 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 default-state = "off";
39 linux,default-trigger = "phy0tpt";
43 label = "tp-link:green:system";
44 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 label = "tp-link:green:qss";
50 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
51 default-state = "off";
56 compatible = "gpio-leds";
59 label = "tp-link:green:wlan5g";
60 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
61 default-state = "off";
62 linux,default-trigger = "phy1tpt";
67 compatible = "gpio-keys-polled";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
77 linux,code = <KEY_RFKILL>;
78 linux,input-type = <EV_SW>;
79 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
85 compatible = "gpio-export";
88 gpio-export,name = "tp-link:power:usb1";
89 gpio-export,output = <1>;
90 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
94 gpio-export,name = "tp-link:power:usb2";
95 gpio-export,output = <1>;
96 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
100 gpio-export,name = "tp-link:ext:lna0";
101 gpio-export,output = <1>;
102 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
106 gpio-export,name = "tp-link:ext:lna1";
107 gpio-export,output = <1>;
108 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
114 clock-frequency = <40000000>;
131 compatible = "jedec,spi-nor";
133 spi-max-frequency = <25000000>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
142 reg = <0x000000 0x020000>;
147 compatible = "tplink,firmware";
149 reg = <0x020000 0x7d0000>;
152 art: partition@7f0000 {
154 reg = <0x7f0000 0x010000>;
162 #address-cells = <1>;
167 #address-cells = <1>;
170 #trigger-source-cells = <0>;
174 #trigger-source-cells = <0>;
179 #trigger-source-cells = <0>;
192 compatible = "pci168c,0033";
193 reg = <0x0000 0 0 0 0>;
194 mtd-mac-address = <&uboot 0x1fc00>;
204 mtd-cal-data = <&art 0x1000>;
205 mtd-mac-address = <&uboot 0x1fc00>;
206 mtd-mac-address-increment = <(-1)>;
214 phy0: ethernet-phy@0 {
218 qca,ar8327-initvals = <
219 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
220 0x10 0x80000080 /* POWER_ON_STRIP */
221 0x50 0xc737c737 /* LED_CTRL0 */
222 0x54 0x00000000 /* LED_CTRL1 */
223 0x58 0x00000000 /* LED_CTRL2 */
224 0x5c 0x0030c300 /* LED_CTRL3 */
225 0x7c 0x0000007e /* PORT0_STATUS */
233 /* default for ar934x, except for 1000M */
234 pll-data = <0x06000000 0x00000101 0x00001616>;
236 mtd-mac-address = <&uboot 0x1fc00>;
237 mtd-mac-address-increment = <(-2)>;
240 phy-handle = <&phy0>;