kernel: bump 6.1 to 6.1.89
[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 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "tplink,archer-d50-v1", "qca,qca9531";
11 model = "TP-Link Archer D50 v1";
12
13 aliases {
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;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wlan2g {
25 label = "white:wlan2g";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
28 };
29
30 wlan5g {
31 label = "white:wlan5g";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
34 };
35
36 qss {
37 label = "white:qss";
38 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
39 };
40
41 wan {
42 function = LED_FUNCTION_WAN;
43 color = <LED_COLOR_ID_WHITE>;
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 };
46
47 lan {
48 function = LED_FUNCTION_LAN;
49 color = <LED_COLOR_ID_WHITE>;
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 };
52
53 usb {
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";
59 };
60
61 internet {
62 label = "white:internet";
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
64 };
65
66 led_system: system {
67 label = "white:system";
68 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
69 default-state = "on";
70 };
71 };
72
73 keys {
74 compatible = "gpio-keys";
75
76 reset {
77 label = "Reset button";
78 linux,code = <KEY_RESTART>;
79 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
80 };
81
82 rfkill {
83 label = "RFKILL button";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
86 };
87
88 wps {
89 label = "WPS button";
90 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
92 };
93 };
94 };
95
96 &spi {
97 status = "okay";
98
99 flash@0 {
100 compatible = "jedec,spi-nor";
101 reg = <0>;
102 spi-max-frequency = <10000000>;
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 partition@0 {
110 label = "u-boot";
111 reg = <0x000000 0x020000>;
112 read-only;
113 };
114
115 partition@20000 {
116 compatible = "tplink,firmware";
117 label = "firmware";
118 reg = <0x020000 0x7a0000>;
119 };
120
121 partition@7c0000 {
122 label = "config";
123 reg = <0x7c0000 0x010000>;
124 read-only;
125 };
126
127 romfile: partition@7d0000 {
128 label = "romfile";
129 reg = <0x7d0000 0x010000>;
130 read-only;
131
132 nvmem-layout {
133 compatible = "fixed-layout";
134 #address-cells = <1>;
135 #size-cells = <1>;
136
137 macaddr_romfile_f100: macaddr@f100 {
138 compatible = "mac-base";
139 reg = <0xf100 0x6>;
140 #nvmem-cell-cells = <1>;
141 };
142 };
143 };
144
145 partition@7e0000 {
146 label = "rom";
147 reg = <0x7e0000 0x010000>;
148 read-only;
149 };
150
151 art: partition@7f0000 {
152 label = "art";
153 reg = <0x7f0000 0x010000>;
154 read-only;
155
156 nvmem-layout {
157 compatible = "fixed-layout";
158 #address-cells = <1>;
159 #size-cells = <1>;
160
161 cal_art_5000: calibration@5000 {
162 reg = <0x5000 0x844>;
163 };
164 };
165 };
166 };
167 };
168 };
169
170 &eth0 {
171 status = "okay";
172
173 phy-handle = <&swphy4>;
174
175 nvmem-cells = <&macaddr_romfile_f100 1>;
176 nvmem-cell-names = "mac-address";
177 };
178
179 &eth1 {
180 nvmem-cells = <&macaddr_romfile_f100 0>;
181 nvmem-cell-names = "mac-address";
182 };
183
184 &wmac {
185 status = "okay";
186
187 mtd-cal-data = <&art 0x1000>;
188 nvmem-cells = <&macaddr_romfile_f100 0>;
189 nvmem-cell-names = "mac-address";
190 };
191
192 &pcie0 {
193 status = "okay";
194
195 wifi@0,0 {
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";
200 };
201 };
202
203 &usb_phy {
204 status = "okay";
205 };
206
207 &usb0 {
208 status = "okay";
209 };