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;
25 compatible = "gpio-leds";
28 label = "tp-link:blue:system";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 label = "tp-link:green:usb1";
35 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
36 default-state = "off";
37 trigger-sources = <&hub_port1>;
38 linux,default-trigger = "usbport";
42 label = "tp-link:green:usb2";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 default-state = "off";
45 trigger-sources = <&hub_port0>;
46 linux,default-trigger = "usbport";
50 label = "tp-link:blue:wlan2g";
51 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
52 default-state = "off";
53 linux,default-trigger = "phy0tpt";
57 label = "tp-link:blue:qss";
58 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
59 default-state = "off";
64 compatible = "gpio-leds";
67 label = "tp-link:blue:wlan5g";
68 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
69 default-state = "off";
70 linux,default-trigger = "phy1tpt";
75 compatible = "gpio-keys";
78 label = "Reset button";
79 linux,code = <KEY_RESTART>;
80 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
81 debounce-interval = <60>;
86 compatible = "gpio-export";
89 gpio-export,name = "tp-link:power:usb1";
90 gpio-export,output = <1>;
91 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
95 gpio-export,name = "tp-link:power:usb2";
96 gpio-export,output = <1>;
97 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
107 compatible = "pci168c,0033";
108 reg = <0x0000 0 0 0 0>;
109 mtd-mac-address = <&uboot 0x1fc00>;
110 mtd-mac-address-increment = <(-2)>;
126 #address-cells = <1>;
132 #trigger-source-cells = <0>;
141 #address-cells = <1>;
147 #trigger-source-cells = <0>;
156 compatible = "jedec,spi-nor";
158 spi-max-frequency = <25000000>;
161 compatible = "fixed-partitions";
162 #address-cells = <1>;
167 reg = <0x000000 0x020000>;
173 reg = <0x020000 0x7d0000>;
176 art: partition@7f0000 {
178 reg = <0x7f0000 0x010000>;
188 phy0: ethernet-phy@0 {
191 qca,ar8327-initvals = <
192 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
193 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
194 0x50 0xc737c737 /* LED_CTRL0 */
195 0x54 0x00000000 /* LED_CTRL1 */
196 0x58 0x00000000 /* LED_CTRL2 */
197 0x5c 0x0030c300 /* LED_CTRL3 */
198 0x7c 0x0000007e /* PORT0_STATUS */
199 0x94 0x0000007e /* PORT6 STATUS */
207 mtd-mac-address = <&uboot 0x1fc00>;
208 mtd-mac-address-increment = <1>;
209 phy-handle = <&phy0>;
210 pll-data = <0x56000000 0x00000101 0x00001616>;
221 mtd-mac-address = <&uboot 0x1fc00>;
222 pll-data = <0x03000101 0x00000101 0x00001616>;
232 mtd-cal-data = <&art 0x1000>;
233 mtd-mac-address = <&uboot 0x1fc00>;
234 mtd-mac-address-increment = <(-1)>;