ipq4019: fix even more wrong reference to USB node
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-cm520-79f.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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "MobiPromo CM520-79F";
11 compatible = "mobipromo,cm520-79f";
12
13 aliases {
14 led-boot = &led_sys;
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
18 };
19
20 soc {
21 rng@22000 {
22 status = "okay";
23 };
24
25 mdio@90000 {
26 status = "okay";
27 pinctrl-0 = <&mdio_pins>;
28 pinctrl-names = "default";
29 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
30 reset-delay-us = <1000>;
31 };
32
33 tcsr@1949000 {
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37 };
38
39 tcsr@194b000 {
40 compatible = "qcom,tcsr";
41 reg = <0x194b000 0x100>;
42 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
43 };
44
45 ess_tcsr@1953000 {
46 compatible = "qcom,tcsr";
47 reg = <0x1953000 0x1000>;
48 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49 };
50
51 tcsr@1957000 {
52 compatible = "qcom,tcsr";
53 reg = <0x1957000 0x100>;
54 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
55 };
56
57 crypto@8e3a000 {
58 status = "okay";
59 };
60
61 watchdog@b017000 {
62 status = "okay";
63 };
64 };
65
66 led_spi {
67 compatible = "spi-gpio";
68 #address-cells = <1>;
69 #size-cells = <0>;
70
71 sck-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
72 mosi-gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
73 num-chipselects = <0>;
74
75 led_gpio: led_gpio@0 {
76 compatible = "fairchild,74hc595";
77 reg = <0>;
78 gpio-controller;
79 #gpio-cells = <2>;
80 registers-number = <1>;
81 spi-max-frequency = <1000000>;
82 };
83 };
84
85 leds {
86 compatible = "gpio-leds";
87
88 usb {
89 function = LED_FUNCTION_USB;
90 color = <LED_COLOR_ID_BLUE>;
91 gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger = "usbport";
93 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>;
94 };
95
96 led_sys: can {
97 label = "blue:can";
98 gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
99 };
100
101 wan {
102 function = LED_FUNCTION_WAN;
103 color = <LED_COLOR_ID_BLUE>;
104 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
105 };
106
107 lan1 {
108 label = "blue:lan1";
109 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
110 };
111
112 lan2 {
113 label = "blue:lan2";
114 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
115 };
116
117 wlan2g {
118 label = "blue:wlan2g";
119 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
120 linux,default-trigger = "phy0tpt";
121 };
122
123 wlan5g {
124 label = "blue:wlan5g";
125 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
126 linux,default-trigger = "phy1tpt";
127 };
128 };
129
130 keys {
131 compatible = "gpio-keys";
132
133 reset {
134 label = "reset";
135 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_RESTART>;
137 };
138 };
139 };
140
141 &blsp_dma {
142 status = "okay";
143 };
144
145 &blsp1_uart1 {
146 status = "okay";
147 };
148
149 &blsp1_uart2 {
150 status = "okay";
151 };
152
153 &cryptobam {
154 status = "okay";
155 };
156
157 &nand {
158 pinctrl-0 = <&nand_pins>;
159 pinctrl-names = "default";
160 status = "okay";
161
162 nand@0 {
163 partitions {
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
166 #size-cells = <1>;
167
168 partition@0 {
169 label = "SBL1";
170 reg = <0x0 0x100000>;
171 read-only;
172 };
173
174 partition@100000 {
175 label = "MIBIB";
176 reg = <0x100000 0x100000>;
177 read-only;
178 };
179
180 partition@200000 {
181 label = "BOOTCONFIG";
182 reg = <0x200000 0x100000>;
183 };
184
185 partition@300000 {
186 label = "QSEE";
187 reg = <0x300000 0x100000>;
188 read-only;
189 };
190
191 partition@400000 {
192 label = "QSEE_1";
193 reg = <0x400000 0x100000>;
194 read-only;
195 };
196
197 partition@500000 {
198 label = "CDT";
199 reg = <0x500000 0x80000>;
200 read-only;
201 };
202
203 partition@580000 {
204 label = "CDT_1";
205 reg = <0x580000 0x80000>;
206 read-only;
207 };
208
209 partition@600000 {
210 label = "BOOTCONFIG1";
211 reg = <0x600000 0x80000>;
212 };
213
214 partition@680000 {
215 label = "APPSBLENV";
216 reg = <0x680000 0x80000>;
217 };
218
219 partition@700000 {
220 label = "APPSBL";
221 reg = <0x700000 0x200000>;
222 read-only;
223 };
224
225 partition@900000 {
226 label = "APPSBL_1";
227 reg = <0x900000 0x200000>;
228 read-only;
229 };
230
231 art: partition@b00000 {
232 label = "ART";
233 reg = <0xb00000 0x80000>;
234 read-only;
235
236 nvmem-layout {
237 compatible = "fixed-layout";
238 #address-cells = <1>;
239 #size-cells = <1>;
240
241 precal_art_1000: precal@1000 {
242 reg = <0x1000 0x2f20>;
243 };
244
245 macaddr_art_1006: macaddr@1006 {
246 reg = <0x1006 0x6>;
247 };
248
249 precal_art_5000: precal@5000 {
250 reg = <0x5000 0x2f20>;
251 };
252
253 macaddr_art_5006: macaddr@5006 {
254 reg = <0x5006 0x6>;
255 };
256 };
257 };
258
259 partition@b80000 {
260 label = "ubi";
261 reg = <0xb80000 0x7480000>;
262 };
263 };
264 };
265 };
266
267 &qpic_bam {
268 status = "okay";
269 };
270
271 &tlmm {
272 mdio_pins: mdio_pinmux {
273 mux_1 {
274 pins = "gpio6";
275 function = "mdio";
276 bias-pull-up;
277 };
278
279 mux_2 {
280 pins = "gpio7";
281 function = "mdc";
282 bias-pull-up;
283 };
284 };
285
286 nand_pins: nand_pins {
287 pullups {
288 pins = "gpio52", "gpio53", "gpio58",
289 "gpio59";
290 function = "qpic";
291 bias-pull-up;
292 };
293
294 pulldowns {
295 pins = "gpio54", "gpio55", "gpio56",
296 "gpio57", "gpio60", "gpio61",
297 "gpio62", "gpio63", "gpio64",
298 "gpio65", "gpio66", "gpio67",
299 "gpio68", "gpio69";
300 function = "qpic";
301 bias-pull-down;
302 };
303 };
304 };
305
306 &usb3_ss_phy {
307 status = "okay";
308 };
309
310 &usb3_hs_phy {
311 status = "okay";
312 };
313
314 &usb3 {
315 status = "okay";
316 };
317
318 &usb3_dwc {
319 #address-cells = <1>;
320 #size-cells = <0>;
321
322 usb3_port1: port@1 {
323 reg = <1>;
324 #trigger-source-cells = <0>;
325 };
326
327 usb3_port2: port@2 {
328 reg = <2>;
329 #trigger-source-cells = <0>;
330 };
331 };
332
333 &usb2_hs_phy {
334 status = "okay";
335 };
336
337 &usb2 {
338 status = "okay";
339
340 usb@6000000 {
341 #address-cells = <1>;
342 #size-cells = <0>;
343
344 usb2_port1: port@1 {
345 reg = <1>;
346 #trigger-source-cells = <0>;
347 };
348 };
349 };
350
351 &gmac {
352 status = "okay";
353
354 nvmem-cells = <&macaddr_art_1006>;
355 nvmem-cell-names = "mac-address";
356 };
357
358 &switch {
359 status = "okay";
360 };
361
362 &swport3 {
363 status = "okay";
364
365 label = "lan2";
366 };
367
368 &swport4 {
369 status = "okay";
370
371 label = "lan1";
372 };
373
374 &swport5 {
375 status = "okay";
376
377 nvmem-cells = <&macaddr_art_5006>;
378 nvmem-cell-names = "mac-address";
379 };
380
381 &wifi0 {
382 status = "okay";
383 nvmem-cell-names = "pre-calibration";
384 nvmem-cells = <&precal_art_1000>;
385 qcom,ath10k-calibration-variant = "CM520-79F";
386 };
387
388 &wifi1 {
389 status = "okay";
390 nvmem-cell-names = "pre-calibration";
391 nvmem-cells = <&precal_art_5000>;
392 qcom,ath10k-calibration-variant = "CM520-79F";
393 };