uboot-mvebu: update to version 2024.04
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_tplink_archer-d50-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,archer-d50-v1", "qca,qca9531";
10 model = "TP-Link Archer D50 v1";
11
12 aliases {
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;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan2g {
24 label = "white:wlan2g";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy0tpt";
27 };
28
29 wlan5g {
30 label = "white:wlan5g";
31 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
33 };
34
35 qss {
36 label = "white:qss";
37 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
38 };
39
40 wan {
41 label = "white:wan";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 };
44
45 lan {
46 label = "white:lan";
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 };
49
50 usb {
51 label = "white:usb";
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 trigger-sources = <&hub_port0>;
54 linux,default-trigger = "usbport";
55 };
56
57 internet {
58 label = "white:internet";
59 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
60 };
61
62 led_system: system {
63 label = "white:system";
64 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
65 default-state = "on";
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys";
71
72 reset {
73 label = "Reset button";
74 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
76 };
77
78 rfkill {
79 label = "RFKILL button";
80 linux,code = <KEY_RFKILL>;
81 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
82 };
83
84 wps {
85 label = "WPS button";
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
88 };
89 };
90 };
91
92 &spi {
93 status = "okay";
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <10000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x000000 0x020000>;
108 read-only;
109 };
110
111 partition@20000 {
112 compatible = "tplink,firmware";
113 label = "firmware";
114 reg = <0x020000 0x7a0000>;
115 };
116
117 partition@7c0000 {
118 label = "config";
119 reg = <0x7c0000 0x010000>;
120 read-only;
121 };
122
123 romfile: partition@7d0000 {
124 label = "romfile";
125 reg = <0x7d0000 0x010000>;
126 read-only;
127 };
128
129 partition@7e0000 {
130 label = "rom";
131 reg = <0x7e0000 0x010000>;
132 read-only;
133 };
134
135 art: partition@7f0000 {
136 label = "art";
137 reg = <0x7f0000 0x010000>;
138 read-only;
139 };
140 };
141 };
142 };
143
144 &eth0 {
145 status = "okay";
146
147 phy-handle = <&swphy4>;
148
149 mtd-mac-address = <&romfile 0xf100>;
150 mtd-mac-address-increment = <1>;
151 };
152
153 &eth1 {
154 mtd-mac-address = <&romfile 0xf100>;
155 };
156
157 &wmac {
158 status = "okay";
159
160 mtd-cal-data = <&art 0x1000>;
161 mtd-mac-address = <&romfile 0xf100>;
162 };
163
164 &pcie0 {
165 status = "okay";
166
167 wifi@0,0 {
168 compatible = "pci168c,003c";
169 reg = <0x0000 0 0 0 0>;
170 };
171 };
172
173 &usb_phy {
174 status = "okay";
175 };
176
177 &usb0 {
178 #address-cells = <1>;
179 #size-cells = <0>;
180 status = "okay";
181
182 hub_port0: port@1 {
183 reg = <1>;
184 #trigger-source-cells = <0>;
185 };
186 };