ipq40xx: use existing labels for MDIO node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-map-ac2200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "ASUS Lyra MAP-AC2200";
11 compatible = "asus,map-ac2200";
12
13 aliases {
14 led-boot = &led_blue0;
15 led-failsafe = &led_red0;
16 led-running = &led_blue0;
17 led-upgrade = &led_red0;
18 ethernet1 = &swport4;
19 };
20
21 soc {
22 tcsr@1949000 {
23 compatible = "qcom,tcsr";
24 reg = <0x1949000 0x100>;
25 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
26 };
27
28 ess_tcsr@1953000 {
29 compatible = "qcom,tcsr";
30 reg = <0x1953000 0x1000>;
31 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
32 };
33
34 tcsr@1957000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1957000 0x100>;
37 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49
50 wps {
51 label = "wps";
52 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 };
55 };
56 };
57
58 &watchdog {
59 status = "okay";
60 };
61
62 &prng {
63 status = "okay";
64 };
65
66 &crypto {
67 status = "okay";
68 };
69
70 &nand {
71 pinctrl-0 = <&nand_pins>;
72 pinctrl-names = "default";
73 status = "okay";
74
75 nand@0 {
76 partitions {
77 compatible = "fixed-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 partition@0 {
82 label = "SBL1";
83 reg = <0x0 0x80000>;
84 read-only;
85 };
86
87 partition@80000 {
88 label = "MIBIB";
89 reg = <0x80000 0x80000>;
90 read-only;
91 };
92
93 partition@100000 {
94 label = "QSEE";
95 reg = <0x100000 0x100000>;
96 read-only;
97 };
98
99 partition@200000 {
100 label = "CDT";
101 reg = <0x200000 0x80000>;
102 read-only;
103 };
104
105 partition@280000 {
106 label = "APPSBL";
107 reg = <0x280000 0x140000>;
108 read-only;
109 };
110
111 partition@3c0000 {
112 label = "APPSBLENV";
113 reg = <0x3c0000 0x40000>;
114 read-only;
115 };
116
117 partition@400000 {
118 label = "ubi";
119 reg = <0x400000 0x7c00000>;
120 };
121 };
122 };
123 };
124
125 &tlmm {
126 i2c_0_pins: i2c_0_pinmux {
127 pinmux {
128 function = "blsp_i2c0";
129 pins = "gpio20", "gpio21";
130 drive-strength = <16>;
131 bias-disable;
132 };
133 };
134
135 serial_pins: serial_pinmux {
136 mux {
137 pins = "gpio16", "gpio17";
138 function = "blsp_uart0";
139 bias-disable;
140 };
141 };
142
143 nand_pins: nand_pins {
144 pullups {
145 pins = "gpio52", "gpio53", "gpio58",
146 "gpio59";
147 function = "qpic";
148 bias-pull-up;
149 };
150
151 pulldowns {
152 pins = "gpio54", "gpio55", "gpio56",
153 "gpio57", "gpio60", "gpio61",
154 "gpio62", "gpio63", "gpio64",
155 "gpio65", "gpio66", "gpio67",
156 "gpio68", "gpio69";
157 function = "qpic";
158 bias-pull-down;
159 };
160 };
161 enable_ext_pa_high {
162 gpio-hog;
163 gpios = <44 GPIO_ACTIVE_HIGH>,
164 <46 GPIO_ACTIVE_HIGH>;
165 output-high;
166 bias-pull-down;
167 line-name = "enable external PA output-high";
168 };
169 enable_ext_pa_low {
170 gpio-hog;
171 gpios = <45 GPIO_ACTIVE_HIGH>,
172 <47 GPIO_ACTIVE_HIGH>;
173 output-low;
174 bias-pull-down;
175 line-name = "enable external PA output-low";
176 };
177 };
178
179 &cryptobam {
180 status = "okay";
181 };
182
183 &blsp_dma {
184 status = "okay";
185 };
186
187 &qpic_bam {
188 status = "okay";
189 };
190
191 &wifi0 {
192 status = "okay";
193 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
194 };
195
196 &wifi1 {
197 status = "okay";
198 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
199 ieee80211-freq-limit = <5470000 5875000>;
200 };
201
202 &pcie0 {
203 status = "okay";
204 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
205 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
206
207 bridge@0,0 {
208 reg = <0x00000000 0 0 0 0>;
209 #address-cells = <3>;
210 #size-cells = <2>;
211 ranges;
212
213 wifi2: wifi@1,0 {
214 compatible = "qcom,ath10k";
215 status = "okay";
216 reg = <0x00010000 0 0 0 0>;
217 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
218 ieee80211-freq-limit = <5170000 5350000>;
219 };
220 };
221 };
222
223 &usb2_hs_phy {
224 /* Bluetooth module attached via USB */
225 status = "okay";
226 };
227
228 &usb2 {
229 status = "okay";
230 };
231
232 &blsp1_i2c3 {
233 pinctrl-0 = <&i2c_0_pins>;
234 pinctrl-names = "default";
235 status = "okay";
236
237 led-controller@32 {
238 /* 9-channel RGB LED controller */
239 compatible = "national,lp5523";
240 reg = <0x32>;
241 clock-mode = /bits/ 8 <1>;
242 #address-cells = <1>;
243 #size-cells = <0>;
244
245 /*
246 * There is only one single extremely bright RGB-LED.
247 * The RGB-color channels are running in parallel to
248 * increase the current delivery capabilities beyond
249 * what a single PWM-output of the controller can do.
250 */
251
252 led_blue0: led@0 {
253 chan-name = "blue-0";
254 led-cur = /bits/ 8 <0xfa>;
255 max-cur = /bits/ 8 <0xff>;
256 reg = <0>;
257 color = <LED_COLOR_ID_BLUE>;
258 function-enumerator = <0>;
259 };
260
261 led@1 {
262 chan-name = "blue-1";
263 led-cur = /bits/ 8 <0xfa>;
264 max-cur = /bits/ 8 <0xff>;
265 reg = <1>;
266 color = <LED_COLOR_ID_BLUE>;
267 function-enumerator = <1>;
268 };
269
270 led@2 {
271 chan-name = "blue-2";
272 led-cur = /bits/ 8 <0xfa>;
273 max-cur = /bits/ 8 <0xff>;
274 reg = <2>;
275 color = <LED_COLOR_ID_BLUE>;
276 function-enumerator = <2>;
277 };
278
279 led_green0: led@3 {
280 chan-name = "green-0";
281 led-cur = /bits/ 8 <0xfa>;
282 max-cur = /bits/ 8 <0xff>;
283 reg = <3>;
284 color = <LED_COLOR_ID_GREEN>;
285 function-enumerator = <0>;
286 };
287
288 led@4 {
289 chan-name = "green-1";
290 led-cur = /bits/ 8 <0xfa>;
291 max-cur = /bits/ 8 <0xff>;
292 reg = <4>;
293 color = <LED_COLOR_ID_GREEN>;
294 function-enumerator = <1>;
295 };
296
297 led@5 {
298 chan-name = "green-2";
299 led-cur = /bits/ 8 <0xfa>;
300 max-cur = /bits/ 8 <0xff>;
301 reg = <5>;
302 color = <LED_COLOR_ID_GREEN>;
303 function-enumerator = <2>;
304 };
305
306 led_red0: led@6 {
307 chan-name = "red-0";
308 led-cur = /bits/ 8 <0xfa>;
309 max-cur = /bits/ 8 <0xff>;
310 reg = <6>;
311 color = <LED_COLOR_ID_RED>;
312 function-enumerator = <0>;
313 };
314
315 led@7 {
316 chan-name = "red-1";
317 led-cur = /bits/ 8 <0xfa>;
318 max-cur = /bits/ 8 <0xff>;
319 reg = <7>;
320 color = <LED_COLOR_ID_RED>;
321 function-enumerator = <1>;
322 };
323
324 led@8 {
325 chan-name = "red-2";
326 led-cur = /bits/ 8 <0xfa>;
327 max-cur = /bits/ 8 <0xff>;
328 reg = <8>;
329 color = <LED_COLOR_ID_RED>;
330 function-enumerator = <2>;
331 };
332 };
333 };
334
335 &blsp1_uart1 {
336 pinctrl-0 = <&serial_pins>;
337 pinctrl-names = "default";
338 status = "okay";
339 };
340
341 &mdio {
342 status = "okay";
343 };
344
345 &gmac {
346 status = "okay";
347 };
348
349 &switch {
350 status = "okay";
351 };
352
353 &swport4 {
354 status = "okay";
355
356 label = "wan";
357 };
358
359 &swport5 {
360 status = "okay";
361
362 label = "lan";
363 };