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";
14 compatible = "gpio-leds";
17 label = "tp-link:white:wlan2g";
18 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
19 linux,default-trigger = "phy0tpt";
23 label = "tp-link:white:wlan5g";
24 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
25 linux,default-trigger = "phy1tpt";
29 label = "tp-link:white:qss";
30 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 label = "tp-link:white:wan";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 label = "tp-link:white:lan";
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 label = "tp-link:white:usb";
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&hub_port0>;
47 linux,default-trigger = "usbport";
51 label = "tp-link:white:internet";
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
56 label = "tp-link:white:system";
57 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys";
66 label = "Reset button";
67 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
72 label = "RFKILL button";
73 linux,code = <KEY_RFKILL>;
74 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
80 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <10000000>;
98 compatible = "fixed-partitions";
104 reg = <0x000000 0x020000>;
109 compatible = "tplink,firmware";
111 reg = <0x020000 0x7a0000>;
116 reg = <0x7c0000 0x010000>;
120 romfile: partition@7d0000 {
122 reg = <0x7d0000 0x010000>;
128 reg = <0x7e0000 0x010000>;
132 art: partition@7f0000 {
134 reg = <0x7f0000 0x010000>;
142 mtd-mac-address = <&romfile 0xf100>;
147 phy-handle = <&swphy4>;
149 mtd-mac-address = <&romfile 0xf100>;
150 mtd-mac-address-increment = <1>;
155 mtd-cal-data = <&art 0x1000>;
156 mtd-mac-address = <&romfile 0xf100>;
163 compatible = "pci168c,003c";
164 reg = <0x0000 0 0 0 0>;
173 #address-cells = <1>;
179 #trigger-source-cells = <0>;