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 "qca955x.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;
18 label-mac-device = ð1;
22 compatible = "gpio-leds";
25 label = "tp-link:blue:system";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 label = "tp-link:green:usb1";
32 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&hub_port1>;
34 linux,default-trigger = "usbport";
38 label = "tp-link:green:usb2";
39 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port0>;
41 linux,default-trigger = "usbport";
45 label = "tp-link:blue:wlan2g";
46 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
51 label = "tp-link:blue:qss";
52 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-leds";
60 label = "tp-link:blue:wlan5g";
61 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy1tpt";
67 compatible = "gpio-keys";
70 label = "Reset button";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
78 compatible = "gpio-export";
81 gpio-export,name = "tp-link:power:usb1";
82 gpio-export,output = <1>;
83 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
87 gpio-export,name = "tp-link:power:usb2";
88 gpio-export,output = <1>;
89 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
98 compatible = "pci168c,0033";
99 reg = <0x0000 0 0 0 0>;
100 mtd-mac-address = <&uboot 0x1fc00>;
101 mtd-mac-address-increment = <(-2)>;
117 #address-cells = <1>;
123 #trigger-source-cells = <0>;
132 #address-cells = <1>;
138 #trigger-source-cells = <0>;
148 compatible = "jedec,spi-nor";
150 spi-max-frequency = <25000000>;
153 compatible = "fixed-partitions";
154 #address-cells = <1>;
159 reg = <0x000000 0x020000>;
164 compatible = "tplink,firmware";
166 reg = <0x020000 0x7d0000>;
169 art: partition@7f0000 {
171 reg = <0x7f0000 0x010000>;
181 phy0: ethernet-phy@0 {
184 qca,ar8327-initvals = <
185 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
186 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
187 0x50 0xc737c737 /* LED_CTRL0 */
188 0x54 0x00000000 /* LED_CTRL1 */
189 0x58 0x00000000 /* LED_CTRL2 */
190 0x5c 0x0030c300 /* LED_CTRL3 */
191 0x7c 0x0000007e /* PORT0_STATUS */
192 0x94 0x0000007e /* PORT6 STATUS */
200 mtd-mac-address = <&uboot 0x1fc00>;
201 mtd-mac-address-increment = <1>;
202 phy-handle = <&phy0>;
203 pll-data = <0x56000000 0x00000101 0x00001616>;
214 mtd-mac-address = <&uboot 0x1fc00>;
215 pll-data = <0x03000101 0x00000101 0x00001616>;
226 mtd-cal-data = <&art 0x1000>;
227 mtd-mac-address = <&uboot 0x1fc00>;
228 mtd-mac-address-increment = <(-1)>;