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 bootargs = "console=ttyS0,115200n8";
18 led-boot = &led_system;
19 led-failsafe = &led_system;
20 led-running = &led_system;
21 led-upgrade = &led_system;
22 label-mac-device = ð1;
26 compatible = "gpio-leds";
29 label = "tp-link:blue:system";
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 label = "tp-link:green:usb1";
36 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
37 trigger-sources = <&hub_port1>;
38 linux,default-trigger = "usbport";
42 label = "tp-link:green:usb2";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 trigger-sources = <&hub_port0>;
45 linux,default-trigger = "usbport";
49 label = "tp-link:blue:wlan2g";
50 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
55 label = "tp-link:blue:qss";
56 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-leds";
64 label = "tp-link:blue:wlan5g";
65 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy1tpt";
71 compatible = "gpio-keys";
74 label = "Reset button";
75 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
82 compatible = "gpio-export";
85 gpio-export,name = "tp-link:power:usb1";
86 gpio-export,output = <1>;
87 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
91 gpio-export,name = "tp-link:power:usb2";
92 gpio-export,output = <1>;
93 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
102 compatible = "pci168c,0033";
103 reg = <0x0000 0 0 0 0>;
104 mtd-mac-address = <&uboot 0x1fc00>;
105 mtd-mac-address-increment = <(-2)>;
121 #address-cells = <1>;
127 #trigger-source-cells = <0>;
136 #address-cells = <1>;
142 #trigger-source-cells = <0>;
151 compatible = "jedec,spi-nor";
153 spi-max-frequency = <25000000>;
156 compatible = "fixed-partitions";
157 #address-cells = <1>;
162 reg = <0x000000 0x020000>;
167 compatible = "tplink,firmware";
169 reg = <0x020000 0x7d0000>;
172 art: partition@7f0000 {
174 reg = <0x7f0000 0x010000>;
184 phy0: ethernet-phy@0 {
187 qca,ar8327-initvals = <
188 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
189 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
190 0x50 0xc737c737 /* LED_CTRL0 */
191 0x54 0x00000000 /* LED_CTRL1 */
192 0x58 0x00000000 /* LED_CTRL2 */
193 0x5c 0x0030c300 /* LED_CTRL3 */
194 0x7c 0x0000007e /* PORT0_STATUS */
195 0x94 0x0000007e /* PORT6 STATUS */
203 mtd-mac-address = <&uboot 0x1fc00>;
204 mtd-mac-address-increment = <1>;
205 phy-handle = <&phy0>;
206 pll-data = <0x56000000 0x00000101 0x00001616>;
217 mtd-mac-address = <&uboot 0x1fc00>;
218 pll-data = <0x03000101 0x00000101 0x00001616>;
228 mtd-cal-data = <&art 0x1000>;
229 mtd-mac-address = <&uboot 0x1fc00>;
230 mtd-mac-address-increment = <(-1)>;