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>
7 #include <dt-bindings/leds/common.h>
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 = "white:wlan2g";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
31 label = "white:wlan5g";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
38 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 function = LED_FUNCTION_WAN;
43 color = <LED_COLOR_ID_WHITE>;
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
48 function = LED_FUNCTION_LAN;
49 color = <LED_COLOR_ID_WHITE>;
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
54 function = LED_FUNCTION_USB;
55 color = <LED_COLOR_ID_WHITE>;
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 trigger-sources = <&hub_port0>;
58 linux,default-trigger = "usbport";
62 label = "white:internet";
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
67 label = "white:system";
68 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-keys";
77 label = "Reset button";
78 linux,code = <KEY_RESTART>;
79 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
83 label = "RFKILL button";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
100 compatible = "jedec,spi-nor";
102 spi-max-frequency = <10000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
111 reg = <0x000000 0x020000>;
116 compatible = "tplink,firmware";
118 reg = <0x020000 0x7a0000>;
123 reg = <0x7c0000 0x010000>;
127 romfile: partition@7d0000 {
129 reg = <0x7d0000 0x010000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 macaddr_romfile_f100: macaddr@f100 {
138 compatible = "mac-base";
140 #nvmem-cell-cells = <1>;
147 reg = <0x7e0000 0x010000>;
151 art: partition@7f0000 {
153 reg = <0x7f0000 0x010000>;
157 compatible = "fixed-layout";
158 #address-cells = <1>;
161 cal_art_5000: calibration@5000 {
162 reg = <0x5000 0x844>;
173 phy-handle = <&swphy4>;
175 nvmem-cells = <&macaddr_romfile_f100 1>;
176 nvmem-cell-names = "mac-address";
180 nvmem-cells = <&macaddr_romfile_f100 0>;
181 nvmem-cell-names = "mac-address";
187 mtd-cal-data = <&art 0x1000>;
188 nvmem-cells = <&macaddr_romfile_f100 0>;
189 nvmem-cell-names = "mac-address";
196 compatible = "pci168c,003c";
197 reg = <0x0000 0 0 0 0>;
198 nvmem-cells = <&cal_art_5000>, <&macaddr_romfile_f100 2>;
199 nvmem-cell-names = "calibration", "mac-address";