1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca9557.dtsi"
10 compatible = "tplink,tl-wdr4900-v2", "qca,qca9558";
11 model = "TP-Link TL-WDR4900 v2";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 compatible = "gpio-leds";
24 label = "tp-link:blue:system";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 label = "tp-link:green:usb1";
31 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&hub_port1>;
33 linux,default-trigger = "usbport";
37 label = "tp-link:green:usb2";
38 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
39 trigger-sources = <&hub_port0>;
40 linux,default-trigger = "usbport";
44 label = "tp-link:blue:wlan2g";
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
50 label = "tp-link:blue:qss";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-leds";
59 label = "tp-link:blue:wlan5g";
60 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy1tpt";
66 compatible = "gpio-keys";
69 label = "Reset button";
70 linux,code = <KEY_RESTART>;
71 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
77 compatible = "gpio-export";
80 gpio-export,name = "tp-link:power:usb1";
81 gpio-export,output = <1>;
82 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
86 gpio-export,name = "tp-link:power:usb2";
87 gpio-export,output = <1>;
88 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
97 compatible = "pci168c,0033";
98 reg = <0x0000 0 0 0 0>;
99 mtd-mac-address = <&uboot 0x1fc00>;
100 mtd-mac-address-increment = <(-2)>;
116 #address-cells = <1>;
122 #trigger-source-cells = <0>;
131 #address-cells = <1>;
137 #trigger-source-cells = <0>;
146 compatible = "jedec,spi-nor";
148 spi-max-frequency = <25000000>;
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
157 reg = <0x000000 0x020000>;
162 compatible = "tplink,firmware";
164 reg = <0x020000 0x7d0000>;
167 art: partition@7f0000 {
169 reg = <0x7f0000 0x010000>;
179 phy0: ethernet-phy@0 {
182 qca,ar8327-initvals = <
183 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
184 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
185 0x50 0xc737c737 /* LED_CTRL0 */
186 0x54 0x00000000 /* LED_CTRL1 */
187 0x58 0x00000000 /* LED_CTRL2 */
188 0x5c 0x0030c300 /* LED_CTRL3 */
189 0x7c 0x0000007e /* PORT0_STATUS */
190 0x94 0x0000007e /* PORT6 STATUS */
198 mtd-mac-address = <&uboot 0x1fc00>;
199 mtd-mac-address-increment = <1>;
200 phy-handle = <&phy0>;
201 pll-data = <0x56000000 0x00000101 0x00001616>;
212 mtd-mac-address = <&uboot 0x1fc00>;
213 pll-data = <0x03000101 0x00000101 0x00001616>;
223 mtd-cal-data = <&art 0x1000>;
224 mtd-mac-address = <&uboot 0x1fc00>;
225 mtd-mac-address-increment = <(-1)>;