ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-ncp-hg100-cellular.dts
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
9
10 / {
11 model = "Sony NCP-HG100/Cellular";
12 compatible = "sony,ncp-hg100-cellular";
13
14 aliases {
15 led-boot = &led_cloud_green;
16 led-failsafe = &led_cloud_red;
17 led-running = &led_cloud_green;
18 led-upgrade = &led_cloud_green;
19 label-mac-device = &gmac;
20 };
21
22 chosen {
23 bootargs = "console=ttyMSM0,115200n8 root=/dev/mmcblk0p15 rootfstype=squashfs,ext4";
24 };
25
26 memory {
27 device_type = "memory";
28 reg = <0x80000000 0x20000000>;
29 };
30
31 soc {
32 tcsr@1949000 {
33 status = "okay";
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37 };
38
39 tcsr@194b000 {
40 status = "okay";
41 compatible = "qcom,tcsr";
42 reg = <0x194b000 0x100>;
43 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
44 };
45
46 ess_tcsr@1953000 {
47 status = "okay";
48 compatible = "qcom,tcsr";
49 reg = <0x1953000 0x1000>;
50 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
51 };
52
53 tcsr@1957000 {
54 status = "okay";
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
58 };
59
60 dma@7984000 {
61 status = "okay";
62 };
63 };
64
65 keys-repeat {
66 compatible = "gpio-keys";
67 pinctrl-0 = <&keys_pins>;
68 pinctrl-names = "default";
69 autorepeat;
70
71 key-volup {
72 label = "volume up";
73 linux,code = <KEY_VOLUMEUP>;
74 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
75 linux,input-type = <EV_KEY>;
76 };
77
78 key-voldown {
79 label = "volume down";
80 linux,code = <KEY_VOLUMEDOWN>;
81 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
82 linux,input-type = <EV_KEY>;
83 };
84
85 key-alexatrigger {
86 label = "alexa trigger";
87 linux,code = <BTN_0>;
88 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
89 linux,input-type = <EV_KEY>;
90 };
91
92 key-mute {
93 label = "mic mute";
94 linux,code = <BTN_1>;
95 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
96 linux,input-type = <EV_SW>;
97 };
98 };
99
100 keys {
101 compatible = "gpio-keys";
102
103 key-reset {
104 label = "reset";
105 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_RESTART>;
107 };
108
109 key-wps {
110 label = "setup";
111 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_WPS_BUTTON>;
113 };
114 };
115 };
116
117 &tlmm {
118 pinctrl-0 = <&bt_pins>, <&aud_pins>, <&mcu_pins>;
119 pinctrl-names = "default";
120
121 /*
122 * uart0 is shared for debug console and Z-Wave,
123 * use only for debug console in OpenWrt.
124 *
125 * 1: debug console
126 * 0: Z-Wave
127 */
128 uart0_ctrl_pins: uart0_ctrl_pinmux {
129 mux {
130 pins = "gpio15";
131 function = "gpio";
132 output-high;
133 };
134 };
135
136 serial_pins: serial_pinmux {
137 mux {
138 pins = "gpio16", "gpio17";
139 function = "blsp_uart0";
140 bias-disable;
141 };
142 };
143
144 /*
145 * reset pin for Z-Wave
146 * active-low, >= 20ns
147 */
148 zwave_pins: zwave_pinmux {
149 mux {
150 pins = "gpio59";
151 function = "gpio";
152 output-high;
153 };
154 };
155
156 serial_1_pins: serial1_pinmux {
157 mux {
158 pins = "gpio8", "gpio9",
159 "gpio10", "gpio11";
160 function = "blsp_uart1";
161 bias-disable;
162 };
163 };
164
165 bt_pins: bt_pinmux {
166 mux_reset {
167 pins = "gpio66";
168 function = "gpio";
169 output-high;
170 };
171
172 mux_pwr {
173 pins = "gpio68";
174 function = "gpio";
175 output-high;
176 };
177 };
178
179 mdio_pins: mdio_pinmux {
180 mux_1 {
181 pins = "gpio6";
182 function = "mdio";
183 bias-pull-up;
184 };
185
186 mux_2 {
187 pins = "gpio7";
188 function = "mdc";
189 bias-pull-up;
190 };
191 };
192
193 i2c_1_pins: i2c_1_pinmux {
194 mux {
195 pins = "gpio12", "gpio13";
196 function = "blsp_i2c1";
197 bias-disable;
198 };
199 };
200
201 keys_pins: keys_pinmux {
202 mux_1 {
203 pins = "gpio39", "gpio40", "gpio42", "gpio47";
204 function = "gpio";
205 bias-disable;
206 };
207
208 mux_2 {
209 pins = "gpio2";
210 function = "gpio";
211 input;
212 };
213 };
214
215 sd_pins: sd_pins {
216 mux {
217 function = "sdio";
218 pins = "gpio23", "gpio24", "gpio25", "gpio26",
219 "gpio28", "gpio29", "gpio30", "gpio31";
220 drive-strength = <4>;
221 };
222
223 mux_sd_clk {
224 function = "sdio";
225 pins = "gpio27";
226 drive-strength = <16>;
227 };
228
229 mux_sd7 {
230 function = "sdio";
231 pins = "gpio32";
232 drive-strength = <4>;
233 bias-disable;
234 };
235 };
236
237 aud_pins: aud_pinmux {
238 mux {
239 pins = "gpio48", "gpio49", "gpio50", "gpio51";
240 function = "aud_pin";
241 };
242 };
243
244 alc1304_pins: alc1304_pinmux {
245 mux_1 {
246 pins = "gpio44";
247 function = "gpio";
248 bias-disable;
249 };
250
251 mux_2 {
252 pins = "gpio45";
253 function = "gpio";
254 bias-disable;
255 };
256 };
257
258 cx2902x_reset: cx2902x_pinmux {
259 mux_1 {
260 pins = "gpio64";
261 function = "gpio";
262 bias-disable;
263 };
264
265 mux_2 {
266 pins = "gpio65";
267 function = "gpio";
268 bias-disable;
269 };
270 };
271
272 lte_pins: lte_pinmux {
273 mux_en {
274 pins = "gpio20";
275 function = "gpio";
276 output-high;
277 };
278
279 mux_reset {
280 pins = "gpio35";
281 function = "gpio";
282 input;
283 };
284 };
285
286 usb3_pins: usb3_pinmux {
287 mux_en {
288 pins = "gpio36";
289 function = "gpio";
290 output-high;
291 };
292
293 mux_flt {
294 pins = "gpio4";
295 function = "gpio";
296 input;
297 };
298 };
299
300 mcu_pins: mcu_pinmux {
301 mux_boot {
302 pins = "gpio38";
303 function = "gpio";
304 output-low;
305 };
306
307 mux_reset {
308 pins = "gpio5";
309 function = "gpio";
310 output-high;
311 };
312 };
313 };
314
315 &blsp_dma {
316 status = "okay";
317 };
318
319 &blsp1_i2c4 {
320 /*
321 * There is no driver for the following devices:
322 * - CY8C4014LQI@14 : Touch-Sensor for buttons on top
323 * - MINI54FDE@15 : MCU for Fan/RGB LED/Thermal control
324 * - ALC5629@18 : I2S/PCM Audio DAC
325 * - CX20924@41 : Voice Input Processor
326 */
327 pinctrl-0 = <&i2c_1_pins>;
328 pinctrl-names = "default";
329 status = "okay";
330
331 led-controller@32 {
332 compatible = "ti,lp55231";
333 reg = <0x32>;
334 clock-mode = /bits/ 8 <0>;
335 enable-gpio = <&tlmm 1 GPIO_ACTIVE_HIGH>;
336 #address-cells = <1>;
337 #size-cells = <0>;
338
339 led@0 {
340 chan-name = "green:wan";
341 led-cur = /bits/ 8 <50>;
342 max-cur = /bits/ 8 <100>;
343 reg = <0x0>;
344 color = <LED_COLOR_ID_GREEN>;
345 function = LED_FUNCTION_WAN;
346 };
347
348 led@1 {
349 chan-name = "blue:wan";
350 led-cur = /bits/ 8 <50>;
351 max-cur = /bits/ 8 <100>;
352 reg = <0x1>;
353 color = <LED_COLOR_ID_BLUE>;
354 function = LED_FUNCTION_WAN;
355 };
356
357 led@2 {
358 chan-name = "green:lan";
359 led-cur = /bits/ 8 <50>;
360 max-cur = /bits/ 8 <100>;
361 reg = <0x2>;
362 color = <LED_COLOR_ID_GREEN>;
363 function = LED_FUNCTION_LAN;
364 };
365
366 led@3 {
367 chan-name = "blue:lan";
368 led-cur = /bits/ 8 <50>;
369 max-cur = /bits/ 8 <100>;
370 reg = <0x3>;
371 color = <LED_COLOR_ID_BLUE>;
372 function = LED_FUNCTION_LAN;
373 };
374
375 led@4 {
376 chan-name = "green:wlan-2";
377 led-cur = /bits/ 8 <50>;
378 max-cur = /bits/ 8 <100>;
379 reg = <0x4>;
380 color = <LED_COLOR_ID_GREEN>;
381 function = LED_FUNCTION_WLAN;
382 function-enumerator = <2>;
383 linux,default-trigger = "phy0tpt";
384 };
385
386 led@5 {
387 chan-name = "blue:wlan-2";
388 led-cur = /bits/ 8 <50>;
389 max-cur = /bits/ 8 <100>;
390 reg = <0x5>;
391 color = <LED_COLOR_ID_BLUE>;
392 function = LED_FUNCTION_WLAN;
393 function-enumerator = <2>;
394 };
395
396 led@6 {
397 chan-name = "red:wan";
398 led-cur = /bits/ 8 <50>;
399 max-cur = /bits/ 8 <100>;
400 reg = <0x6>;
401 color = <LED_COLOR_ID_RED>;
402 function = LED_FUNCTION_WAN;
403 };
404
405 led@7 {
406 chan-name = "red:lan";
407 led-cur = /bits/ 8 <50>;
408 max-cur = /bits/ 8 <100>;
409 reg = <0x7>;
410 color = <LED_COLOR_ID_RED>;
411 function = LED_FUNCTION_LAN;
412 };
413
414 led@8 {
415 chan-name = "red:wlan-2";
416 led-cur = /bits/ 8 <50>;
417 max-cur = /bits/ 8 <100>;
418 reg = <0x8>;
419 color = <LED_COLOR_ID_RED>;
420 function = LED_FUNCTION_WLAN;
421 function-enumerator = <2>;
422 };
423 };
424
425 led-controller@33 {
426 compatible = "ti,lp55231";
427 reg = <0x33>;
428 clock-mode = /bits/ 8 <0>;
429 #address-cells = <1>;
430 #size-cells = <0>;
431
432 led@0 {
433 chan-name = "green:wlan-5";
434 led-cur = /bits/ 8 <50>;
435 max-cur = /bits/ 8 <100>;
436 reg = <0x0>;
437 color = <LED_COLOR_ID_GREEN>;
438 function = LED_FUNCTION_WLAN;
439 linux,default-trigger = "phy1tpt";
440 function-enumerator = <5>;
441 };
442
443 led@1 {
444 chan-name = "blue:wlan-5";
445 led-cur = /bits/ 8 <50>;
446 max-cur = /bits/ 8 <100>;
447 reg = <0x1>;
448 color = <LED_COLOR_ID_BLUE>;
449 function = LED_FUNCTION_WLAN;
450 function-enumerator = <5>;
451 };
452
453 led@2 {
454 chan-name = "green:wan-4";
455 led-cur = /bits/ 8 <50>;
456 max-cur = /bits/ 8 <100>;
457 reg = <0x2>;
458 color = <LED_COLOR_ID_GREEN>;
459 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
460 function-enumerator = <4>; /* WWAN/LTE/4G */
461 };
462
463 led@3 {
464 chan-name = "blue:wan-4";
465 led-cur = /bits/ 8 <50>;
466 max-cur = /bits/ 8 <100>;
467 reg = <0x3>;
468 color = <LED_COLOR_ID_BLUE>;
469 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
470 function-enumerator = <4>; /* WWAN/LTE/4G */
471 };
472
473 led_cloud_green: led@4 {
474 chan-name = "green:power";
475 led-cur = /bits/ 8 <50>;
476 max-cur = /bits/ 8 <100>;
477 reg = <0x4>;
478 color = <LED_COLOR_ID_GREEN>;
479 function = LED_FUNCTION_POWER;
480 };
481
482 led@5 {
483 chan-name = "blue:power";
484 led-cur = /bits/ 8 <50>;
485 max-cur = /bits/ 8 <100>;
486 reg = <0x5>;
487 color = <LED_COLOR_ID_BLUE>;
488 function = LED_FUNCTION_POWER;
489 };
490
491 led@6 {
492 chan-name = "red:wlan-5";
493 led-cur = /bits/ 8 <50>;
494 max-cur = /bits/ 8 <100>;
495 reg = <0x6>;
496 color = <LED_COLOR_ID_RED>;
497 function = LED_FUNCTION_WLAN;
498 function-enumerator = <5>;
499 };
500
501 led@7 {
502 chan-name = "red:wan-4";
503 led-cur = /bits/ 8 <50>;
504 max-cur = /bits/ 8 <100>;
505 reg = <0x7>;
506 color = <LED_COLOR_ID_RED>;
507 function = LED_FUNCTION_WAN; /* WWAN/LTE/4G */
508 function-enumerator = <4>; /* WWAN/LTE/4G */
509 };
510
511 led_cloud_red: led@8 {
512 chan-name = "red:power";
513 led-cur = /bits/ 8 <50>;
514 max-cur = /bits/ 8 <100>;
515 reg = <0x8>;
516 color = <LED_COLOR_ID_RED>;
517 function = LED_FUNCTION_POWER;
518 };
519 };
520 };
521
522 &blsp1_uart1 {
523 pinctrl-0 = <&serial_pins>, <&uart0_ctrl_pins>;
524 pinctrl-names = "default";
525 status = "okay";
526 };
527
528 &blsp1_uart2 {
529 pinctrl-0 = <&serial_1_pins>;
530 pinctrl-names = "default";
531 status = "okay";
532 };
533
534 &crypto {
535 status = "okay";
536 };
537
538 &cryptobam {
539 status = "okay";
540 };
541
542 &mdio {
543 status = "okay";
544 pinctrl-0 = <&mdio_pins>;
545 pinctrl-names = "default";
546 reset-gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
547 };
548
549 &prng {
550 status = "okay";
551 };
552
553 &vqmmc {
554 status = "okay";
555 };
556
557 &sdhci {
558 status = "okay";
559 pinctrl-0 = <&sd_pins>;
560 pinctrl-names = "default";
561 vqmmc-supply = <&vqmmc>;
562 non-removable;
563 #address-cells = <1>;
564 #size-cells = <0>;
565
566 emmc@0 {
567 compatible = "mmc-card";
568 reg = <0>;
569 };
570 };
571
572 &usb2 {
573 status = "okay";
574 };
575
576 &usb2_hs_phy {
577 status = "okay";
578 };
579
580 &usb3 {
581 status = "okay";
582
583 pinctrl-0 = <&usb3_pins>, <&lte_pins>;
584 pinctrl-names = "default";
585
586 dwc3@8a00000 {
587 #address-cells = <1>;
588 #size-cells = <0>;
589
590 device@1 {
591 compatible = "usb1bc7,1900";
592 reg = <1>;
593 };
594 };
595 };
596
597 &usb3_hs_phy {
598 status = "okay";
599 };
600
601 &usb3_ss_phy {
602 status = "okay";
603 };
604
605 &gmac {
606 status = "okay";
607 };
608
609 &switch {
610 status = "okay";
611 };
612
613 &swport4 {
614 status = "okay";
615 label = "lan";
616 };
617
618 &swport5 {
619 status = "okay";
620 label = "wan";
621 };
622
623 &wifi0 {
624 status = "okay";
625 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
626 };
627
628 &wifi1 {
629 status = "okay";
630 qcom,ath10k-calibration-variant = "Sony-NCP-HG100-Cellular";
631 };
632
633 &watchdog {
634 status = "okay";
635 };