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 "qca953x.dtsi"
10 compatible = "tplink,archer-d50-v1", "qca,qca9531";
11 model = "TP-Link Archer D50 v1";
15 led-failsafe = &system;
16 led-running = &system;
17 led-upgrade = &system;
18 label-mac-device = &wmac;
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
29 label = "tp-link:white:wlan2g";
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy0tpt";
35 label = "tp-link:white:wlan5g";
36 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy1tpt";
41 label = "tp-link:white:qss";
42 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 label = "tp-link:white:wan";
47 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
51 label = "tp-link:white:lan";
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 label = "tp-link:white:usb";
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
58 trigger-sources = <&hub_port0>;
59 linux,default-trigger = "usbport";
63 label = "tp-link:white:internet";
64 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
68 label = "tp-link:white:system";
69 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
75 compatible = "gpio-keys";
78 label = "Reset button";
79 linux,code = <KEY_RESTART>;
80 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
84 label = "RFKILL button";
85 linux,code = <KEY_RFKILL>;
86 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_WPS_BUTTON>;
92 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
105 compatible = "jedec,spi-nor";
107 spi-max-frequency = <10000000>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
116 reg = <0x000000 0x020000>;
121 compatible = "tplink,firmware";
123 reg = <0x020000 0x7a0000>;
128 reg = <0x7c0000 0x010000>;
132 romfile: partition@7d0000 {
134 reg = <0x7d0000 0x010000>;
140 reg = <0x7e0000 0x010000>;
144 art: partition@7f0000 {
146 reg = <0x7f0000 0x010000>;
154 mtd-mac-address = <&romfile 0xf100>;
159 phy-handle = <&swphy4>;
161 mtd-mac-address = <&romfile 0xf100>;
162 mtd-mac-address-increment = <1>;
167 mtd-cal-data = <&art 0x1000>;
168 mtd-mac-address = <&romfile 0xf100>;
175 compatible = "pci168c,003c";
176 reg = <0x0000 0 0 0 0>;
185 #address-cells = <1>;
191 #trigger-source-cells = <0>;