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 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &wmac;
22 compatible = "gpio-leds";
25 label = "tp-link:white:wlan2g";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
31 label = "tp-link:white:wlan5g";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
37 label = "tp-link:white:qss";
38 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 label = "tp-link:white:wan";
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 label = "tp-link:white:lan";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 label = "tp-link:white:usb";
53 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
54 trigger-sources = <&hub_port0>;
55 linux,default-trigger = "usbport";
59 label = "tp-link:white:internet";
60 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
64 label = "tp-link:white:system";
65 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
71 compatible = "gpio-keys";
74 label = "Reset button";
75 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
80 label = "RFKILL button";
81 linux,code = <KEY_RFKILL>;
82 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
88 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <10000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
112 reg = <0x000000 0x020000>;
117 compatible = "tplink,firmware";
119 reg = <0x020000 0x7a0000>;
124 reg = <0x7c0000 0x010000>;
128 romfile: partition@7d0000 {
130 reg = <0x7d0000 0x010000>;
136 reg = <0x7e0000 0x010000>;
140 art: partition@7f0000 {
142 reg = <0x7f0000 0x010000>;
150 mtd-mac-address = <&romfile 0xf100>;
156 phy-handle = <&swphy4>;
158 mtd-mac-address = <&romfile 0xf100>;
159 mtd-mac-address-increment = <1>;
165 mtd-cal-data = <&art 0x1000>;
166 mtd-mac-address = <&romfile 0xf100>;
173 compatible = "pci168c,003c";
174 reg = <0x0000 0 0 0 0>;
183 #address-cells = <1>;
189 #trigger-source-cells = <0>;