1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,archer-d50-v1", "qca,qca9531";
10 model = "TP-Link Archer D50 v1";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &wmac;
21 compatible = "gpio-leds";
24 label = "white:wlan2g";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy0tpt";
30 label = "white:wlan5g";
31 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
37 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 trigger-sources = <&hub_port0>;
54 linux,default-trigger = "usbport";
58 label = "white:internet";
59 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
63 label = "white:system";
64 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
70 compatible = "gpio-keys";
73 label = "Reset button";
74 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
79 label = "RFKILL button";
80 linux,code = <KEY_RFKILL>;
81 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <10000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
107 reg = <0x000000 0x020000>;
112 compatible = "tplink,firmware";
114 reg = <0x020000 0x7a0000>;
119 reg = <0x7c0000 0x010000>;
123 romfile: partition@7d0000 {
125 reg = <0x7d0000 0x010000>;
131 reg = <0x7e0000 0x010000>;
135 art: partition@7f0000 {
137 reg = <0x7f0000 0x010000>;
147 phy-handle = <&swphy4>;
149 nvmem-cells = <&macaddr_romfile_f100>;
150 nvmem-cell-names = "mac-address";
151 mac-address-increment = <1>;
155 nvmem-cells = <&macaddr_romfile_f100>;
156 nvmem-cell-names = "mac-address";
162 mtd-cal-data = <&art 0x1000>;
163 nvmem-cells = <&macaddr_romfile_f100>;
164 nvmem-cell-names = "mac-address";
171 compatible = "pci168c,003c";
172 reg = <0x0000 0 0 0 0>;
185 compatible = "nvmem-cells";
186 #address-cells = <1>;
189 macaddr_romfile_f100: macaddr@f100 {