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";
65 linux,code = <KEY_RESTART>;
66 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 debounce-interval = <60>;
71 linux,code = <KEY_RFKILL>;
72 linux,input-type = <EV_SW>;
73 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
74 debounce-interval = <60>;
80 clock-frequency = <40000000>;
92 gpios = <18 GPIO_ACTIVE_HIGH>;
94 line-name = "tp-link:ext:lna0";
99 gpios = <19 GPIO_ACTIVE_HIGH>;
101 line-name = "tp-link:ext:lna1";
106 gpios = <22 GPIO_ACTIVE_HIGH>;
108 line-name = "tp-link:power:usb1";
113 gpios = <21 GPIO_ACTIVE_HIGH>;
115 line-name = "tp-link:power:usb2";
125 compatible = "jedec,spi-nor";
127 spi-max-frequency = <25000000>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
136 reg = <0x000000 0x020000>;
141 compatible = "tplink,firmware";
143 reg = <0x020000 0x7d0000>;
146 art: partition@7f0000 {
148 reg = <0x7f0000 0x010000>;
156 #address-cells = <1>;
161 #address-cells = <1>;
164 #trigger-source-cells = <0>;
168 #trigger-source-cells = <0>;
173 #trigger-source-cells = <0>;
186 compatible = "pci168c,0033";
187 reg = <0x0000 0 0 0 0>;
188 mtd-mac-address = <&uboot 0x1fc00>;
198 mtd-cal-data = <&art 0x1000>;
199 mtd-mac-address = <&uboot 0x1fc00>;
200 mtd-mac-address-increment = <(-1)>;
208 phy0: ethernet-phy@0 {
212 qca,ar8327-initvals = <
213 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
214 0x10 0x80000080 /* POWER_ON_STRIP */
215 0x50 0xc737c737 /* LED_CTRL0 */
216 0x54 0x00000000 /* LED_CTRL1 */
217 0x58 0x00000000 /* LED_CTRL2 */
218 0x5c 0x0030c300 /* LED_CTRL3 */
219 0x7c 0x0000007e /* PORT0_STATUS */
227 /* default for ar934x, except for 1000M */
228 pll-data = <0x06000000 0x00000101 0x00001616>;
230 mtd-mac-address = <&uboot 0x1fc00>;
231 mtd-mac-address-increment = <(-2)>;
234 phy-handle = <&phy0>;