Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3588s-coolpi-4b.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
4 *
5 * https://cool-pi.com/topic/130/coolpi-4b-product-spec-introduction
6 *
7 */
8
9 /dts-v1/;
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/pinctrl/rockchip.h>
14 #include <dt-bindings/soc/rockchip,vop2.h>
15 #include "rk3588s.dtsi"
16
17 / {
18 model = "RK3588S CoolPi 4 Model B";
19 compatible = "coolpi,pi-4b", "rockchip,rk3588s";
20
21 aliases {
22 mmc0 = &sdhci;
23 mmc1 = &sdmmc;
24 mmc2 = &sdio;
25 };
26
27 analog-sound {
28 compatible = "audio-graph-card";
29 dais = <&i2s0_8ch_p0>;
30 label = "rk3588-es8316";
31 routing = "MIC2", "Mic Jack",
32 "Headphones", "HPOL",
33 "Headphones", "HPOR";
34 widgets = "Microphone", "Mic Jack",
35 "Headphone", "Headphones";
36 };
37
38 chosen {
39 stdout-path = "serial2:1500000n8";
40 };
41
42 dp-con {
43 compatible = "dp-connector";
44 label = "DP OUT";
45 type = "mini";
46
47 port {
48 dp_con_in: endpoint {
49 remote-endpoint = <&dp0_out_con>;
50 };
51 };
52 };
53
54 hdmi-con {
55 compatible = "hdmi-connector";
56 type = "d";
57
58 port {
59 hdmi_con_in: endpoint {
60 remote-endpoint = <&hdmi0_out_con>;
61 };
62 };
63 };
64
65 leds: leds {
66 compatible = "gpio-leds";
67 pinctrl-names = "default";
68 pinctrl-0 = <&gpio_leds>;
69
70 led0: led-green {
71 color = <LED_COLOR_ID_GREEN>;
72 function = LED_FUNCTION_STATUS;
73 gpios = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
74 linux,default-trigger = "heartbeat";
75 };
76
77 led1: led-red {
78 color = <LED_COLOR_ID_RED>;
79 default-state = "off";
80 function = LED_FUNCTION_WLAN;
81 gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
82 linux,default-trigger = "phy0tx";
83 };
84 };
85
86 sdio_pwrseq: sdio-pwrseq {
87 compatible = "mmc-pwrseq-simple";
88 clocks = <&hym8563>;
89 clock-names = "ext_clock";
90 pinctrl-names = "default";
91 pinctrl-0 = <&wifi_enable_h>;
92 /*
93 * On the module itself this is one of these (depending
94 * on the actual card populated):
95 * - SDIO_RESET_L_WL_REG_ON
96 * - PDN (power down when low)
97 */
98 post-power-on-delay-ms = <200>;
99 reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
100 };
101
102 vcc12v_dcin: regulator-vcc12v-dcin {
103 compatible = "regulator-fixed";
104 regulator-name = "vcc12v_dcin";
105 regulator-always-on;
106 regulator-boot-on;
107 regulator-min-microvolt = <12000000>;
108 regulator-max-microvolt = <12000000>;
109 };
110
111 vcc5v0_sys: regulator-vcc5v0-sys {
112 compatible = "regulator-fixed";
113 regulator-name = "vcc5v0_sys";
114 regulator-always-on;
115 regulator-boot-on;
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
118 vin-supply = <&vcc12v_dcin>;
119 };
120
121 vcc5v0_usbdcin: regulator-vcc5v0-usbdcin {
122 compatible = "regulator-fixed";
123 regulator-name = "vcc5v0_usbdcin";
124 regulator-always-on;
125 regulator-boot-on;
126 regulator-min-microvolt = <5000000>;
127 regulator-max-microvolt = <5000000>;
128 vin-supply = <&vcc12v_dcin>;
129 };
130
131 vcc5v0_usb: regulator-vcc5v0-usb {
132 compatible = "regulator-fixed";
133 regulator-name = "vcc5v0_usb";
134 regulator-always-on;
135 regulator-boot-on;
136 regulator-min-microvolt = <5000000>;
137 regulator-max-microvolt = <5000000>;
138 vin-supply = <&vcc5v0_usbdcin>;
139 };
140
141 avdd0v85_pcie20: regulator-avdd0v85-pcie20 {
142 compatible = "regulator-fixed";
143 regulator-name = "avdd0v85_pcie20";
144 regulator-boot-on;
145 regulator-always-on;
146 regulator-min-microvolt = <850000>;
147 regulator-max-microvolt = <850000>;
148 vin-supply = <&vdd_0v85_s0>;
149 };
150
151 avdd1v8_pcie20: regulator-avdd1v8-pcie20 {
152 compatible = "regulator-fixed";
153 regulator-name = "avdd1v8_pcie20";
154 regulator-boot-on;
155 regulator-always-on;
156 regulator-min-microvolt = <1800000>;
157 regulator-max-microvolt = <1800000>;
158 vin-supply = <&avcc_1v8_s0>;
159 };
160
161 vcc3v3_mipi: regulator-vcc3v3-mipi {
162 compatible = "regulator-fixed";
163 enable-active-high;
164 gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
165 regulator-name = "vcc3v3_mipi";
166 regulator-boot-on;
167 regulator-always-on;
168 vin-supply = <&vcc_3v3_s3>;
169 };
170
171 vcc5v0_host: regulator-vcc5v0-host {
172 compatible = "regulator-fixed";
173 enable-active-high;
174 gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&vcc5v0_host_en>;
177 regulator-name = "vcc5v0_host";
178 regulator-boot-on;
179 regulator-always-on;
180 regulator-min-microvolt = <5000000>;
181 regulator-max-microvolt = <5000000>;
182 vin-supply = <&vcc5v0_sys>;
183 };
184
185 vcc5v0_otg: regulator-vcc5v0-otg {
186 compatible = "regulator-fixed";
187 enable-active-high;
188 gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&vcc5v0_u3host_en>;
191 regulator-name = "vcc5v0_otg";
192 regulator-boot-on;
193 regulator-always-on;
194 regulator-min-microvolt = <5000000>;
195 regulator-max-microvolt = <5000000>;
196 vin-supply = <&vcc5v0_sys>;
197 };
198
199 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
200 compatible = "regulator-fixed";
201 regulator-name = "vcc_1v1_nldo_s3";
202 regulator-always-on;
203 regulator-boot-on;
204 regulator-min-microvolt = <1100000>;
205 regulator-max-microvolt = <1100000>;
206 vin-supply = <&vcc5v0_sys>;
207 };
208 };
209
210 &combphy0_ps {
211 status = "okay";
212 };
213
214 &combphy2_psu {
215 status = "okay";
216 };
217
218 &cpu_l0 {
219 cpu-supply = <&vdd_cpu_lit_s0>;
220 };
221
222 &cpu_b0 {
223 cpu-supply = <&vdd_cpu_big0_s0>;
224 };
225
226 &cpu_b2 {
227 cpu-supply = <&vdd_cpu_big1_s0>;
228 };
229
230 &dp0 {
231 pinctrl-0 = <&dp0m0_pins>;
232 pinctrl-names = "default";
233 status = "okay";
234 };
235
236 &dp0_in {
237 dp0_in_vp2: endpoint {
238 remote-endpoint = <&vp2_out_dp0>;
239 };
240 };
241
242 &dp0_out {
243 dp0_out_con: endpoint {
244 remote-endpoint = <&dp_con_in>;
245 };
246 };
247
248 &gpu {
249 mali-supply = <&vdd_gpu_s0>;
250 status = "okay";
251 };
252
253 &hdmi0 {
254 status = "okay";
255 };
256
257 &hdmi0_in {
258 hdmi0_in_vp0: endpoint {
259 remote-endpoint = <&vp0_out_hdmi0>;
260 };
261 };
262
263 &hdmi0_out {
264 hdmi0_out_con: endpoint {
265 remote-endpoint = <&hdmi_con_in>;
266 };
267 };
268
269 &hdptxphy0 {
270 status = "okay";
271 };
272
273 &i2c0 {
274 pinctrl-0 = <&i2c0m2_xfer>;
275 status = "okay";
276
277 vdd_cpu_big0_s0: regulator@42 {
278 compatible = "rockchip,rk8602";
279 reg = <0x42>;
280 fcs,suspend-voltage-selector = <1>;
281 regulator-name = "vdd_cpu_big0_s0";
282 regulator-always-on;
283 regulator-boot-on;
284 regulator-min-microvolt = <550000>;
285 regulator-max-microvolt = <1050000>;
286 regulator-ramp-delay = <2300>;
287 vin-supply = <&vcc5v0_sys>;
288
289 regulator-state-mem {
290 regulator-off-in-suspend;
291 };
292 };
293
294 vdd_cpu_big1_s0: regulator@43 {
295 compatible = "rockchip,rk8603", "rockchip,rk8602";
296 reg = <0x43>;
297 fcs,suspend-voltage-selector = <1>;
298 regulator-name = "vdd_cpu_big1_s0";
299 regulator-always-on;
300 regulator-boot-on;
301 regulator-min-microvolt = <550000>;
302 regulator-max-microvolt = <1050000>;
303 regulator-ramp-delay = <2300>;
304 vin-supply = <&vcc5v0_sys>;
305
306 regulator-state-mem {
307 regulator-off-in-suspend;
308 };
309 };
310 };
311
312 &i2c2 {
313 status = "okay";
314
315 vdd_npu_s0: regulator@42 {
316 compatible = "rockchip,rk8602";
317 reg = <0x42>;
318 fcs,suspend-voltage-selector = <1>;
319 regulator-name = "vdd_npu_s0";
320 regulator-always-on;
321 regulator-boot-on;
322 regulator-min-microvolt = <550000>;
323 regulator-max-microvolt = <950000>;
324 regulator-ramp-delay = <2300>;
325 vin-supply = <&vcc5v0_sys>;
326
327 regulator-state-mem {
328 regulator-off-in-suspend;
329 };
330 };
331 };
332
333 &i2c6 {
334 pinctrl-0 = <&i2c6m3_xfer>;
335 status = "okay";
336
337 hym8563: rtc@51 {
338 compatible = "haoyu,hym8563";
339 reg = <0x51>;
340 interrupt-parent = <&gpio0>;
341 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
342 #clock-cells = <0>;
343 clock-output-names = "hym8563";
344 pinctrl-names = "default";
345 pinctrl-0 = <&hym8563_int>;
346 };
347 };
348
349 &i2c7 {
350 pinctrl-0 = <&i2c7m0_xfer>;
351 status = "okay";
352
353 es8316: audio-codec@10 {
354 compatible = "everest,es8316";
355 reg = <0x10>;
356 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
357 assigned-clock-rates = <12288000>;
358 clocks = <&cru I2S0_8CH_MCLKOUT>;
359 clock-names = "mclk";
360 #sound-dai-cells = <0>;
361
362 port {
363 es8316_p0_0: endpoint {
364 remote-endpoint = <&i2s0_8ch_p0_0>;
365 };
366 };
367 };
368 };
369
370 &i2s0_8ch {
371 pinctrl-0 = <&i2s0_lrck
372 &i2s0_mclk
373 &i2s0_sclk
374 &i2s0_sdi0
375 &i2s0_sdo0>;
376 status = "okay";
377
378 i2s0_8ch_p0: port {
379 i2s0_8ch_p0_0: endpoint {
380 dai-format = "i2s";
381 mclk-fs = <256>;
382 remote-endpoint = <&es8316_p0_0>;
383 };
384 };
385 };
386
387 &pcie2x1l2 {
388 pinctrl-names = "default";
389 pinctrl-0 = <&rtl8111_isolate>;
390 reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
391 status = "okay";
392 };
393
394 &pd_gpu {
395 domain-supply = <&vdd_gpu_s0>;
396 };
397
398 &pinctrl {
399 hym8563 {
400 hym8563_int: hym8563-int {
401 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
402 };
403 };
404
405 led {
406 gpio_leds: gpio-leds {
407 rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>,
408 <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>;
409 };
410 };
411
412 rtl8111 {
413 rtl8111_isolate: rtl8111-isolate {
414 rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
415 };
416 };
417
418 sdio-pwrseq {
419 wifi_enable_h: wifi-enable-h {
420 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
421 };
422 };
423
424 usb {
425 vcc5v0_host_en: vcc5v0-host-en {
426 rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,
427 <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
428 };
429
430 vcc5v0_u3host_en: vcc5v0-u3host-en {
431 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
432 };
433 };
434
435 wireless-bluetooth {
436 bt_reset_gpio: bt-reset-pin {
437 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
438 };
439
440 bt_wake_gpio: bt-wake-pin {
441 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
442 };
443
444 bt_wake_host_irq: bt-wake-host-irq {
445 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
446 };
447 };
448
449 wireless-wlan {
450 wifi_host_wake_irq: wifi-host-wake-irq {
451 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
452 };
453
454 wifi_poweren_pin: wifi-poweren-pin {
455 rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
456 };
457 };
458 };
459
460 &pwm2 {
461 pinctrl-0 = <&pwm2m1_pins>;
462 status = "okay";
463 };
464
465 &pwm13 {
466 pinctrl-names = "default";
467 pinctrl-0 = <&pwm13m2_pins>;
468 status = "okay";
469 };
470
471 &saradc {
472 vref-supply = <&vcc_1v8_s0>;
473 status = "okay";
474 };
475
476 &sdhci {
477 bus-width = <8>;
478 max-frequency = <200000000>;
479 mmc-hs400-1_8v;
480 mmc-hs400-enhanced-strobe;
481 no-sdio;
482 no-sd;
483 non-removable;
484 status = "okay";
485 };
486
487 &sdio {
488 bus-width = <4>;
489 cap-sd-highspeed;
490 cap-sdio-irq;
491 disable-wp;
492 keep-power-in-suspend;
493 max-frequency = <150000000>;
494 mmc-pwrseq = <&sdio_pwrseq>;
495 no-sd;
496 no-mmc;
497 non-removable;
498 pinctrl-names = "default";
499 pinctrl-0 = <&sdiom1_pins>,<&wifi_poweren_pin>;
500 status = "okay";
501 };
502
503 &sdmmc {
504 bus-width = <4>;
505 cap-mmc-highspeed;
506 cap-sd-highspeed;
507 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
508 disable-wp;
509 max-frequency = <150000000>;
510 no-sdio;
511 no-mmc;
512 sd-uhs-sdr104;
513 vmmc-supply = <&vcc_3v3_s3>;
514 vqmmc-supply = <&vccio_sd_s0>;
515 status = "okay";
516 };
517
518 &spi2 {
519 assigned-clocks = <&cru CLK_SPI2>;
520 assigned-clock-rates = <200000000>;
521 num-cs = <1>;
522 pinctrl-names = "default";
523 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
524 status = "okay";
525
526 pmic@0 {
527 compatible = "rockchip,rk806";
528 reg = <0x0>;
529 interrupt-parent = <&gpio0>;
530 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
531 gpio-controller;
532 #gpio-cells = <2>;
533 pinctrl-names = "default";
534 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
535 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
536 spi-max-frequency = <1000000>;
537 vcc1-supply = <&vcc5v0_sys>;
538 vcc2-supply = <&vcc5v0_sys>;
539 vcc3-supply = <&vcc5v0_sys>;
540 vcc4-supply = <&vcc5v0_sys>;
541 vcc5-supply = <&vcc5v0_sys>;
542 vcc6-supply = <&vcc5v0_sys>;
543 vcc7-supply = <&vcc5v0_sys>;
544 vcc8-supply = <&vcc5v0_sys>;
545 vcc9-supply = <&vcc5v0_sys>;
546 vcc10-supply = <&vcc5v0_sys>;
547 vcc11-supply = <&vcc_2v0_pldo_s3>;
548 vcc12-supply = <&vcc5v0_sys>;
549 vcc13-supply = <&vcc_1v1_nldo_s3>;
550 vcc14-supply = <&vcc_1v1_nldo_s3>;
551 vcca-supply = <&vcc5v0_sys>;
552
553 rk806_dvs1_null: dvs1-null-pins {
554 pins = "gpio_pwrctrl1";
555 function = "pin_fun0";
556 };
557
558 rk806_dvs2_null: dvs2-null-pins {
559 pins = "gpio_pwrctrl2";
560 function = "pin_fun0";
561 };
562
563 rk806_dvs3_null: dvs3-null-pins {
564 pins = "gpio_pwrctrl3";
565 function = "pin_fun0";
566 };
567
568 regulators {
569 vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 {
570 regulator-name = "vdd_gpu_s0";
571 regulator-boot-on;
572 regulator-min-microvolt = <550000>;
573 regulator-max-microvolt = <950000>;
574 regulator-ramp-delay = <12500>;
575 regulator-enable-ramp-delay = <400>;
576
577 regulator-state-mem {
578 regulator-off-in-suspend;
579 };
580 };
581
582 vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 {
583 regulator-name = "vdd_cpu_lit_s0";
584 regulator-always-on;
585 regulator-boot-on;
586 regulator-min-microvolt = <550000>;
587 regulator-max-microvolt = <950000>;
588 regulator-ramp-delay = <12500>;
589
590 regulator-state-mem {
591 regulator-off-in-suspend;
592 };
593 };
594
595 vdd_log_s0: dcdc-reg3 {
596 regulator-name = "vdd_log_s0";
597 regulator-always-on;
598 regulator-boot-on;
599 regulator-min-microvolt = <675000>;
600 regulator-max-microvolt = <750000>;
601 regulator-ramp-delay = <12500>;
602
603 regulator-state-mem {
604 regulator-off-in-suspend;
605 regulator-suspend-microvolt = <750000>;
606 };
607 };
608
609 vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
610 regulator-name = "vdd_vdenc_s0";
611 regulator-always-on;
612 regulator-boot-on;
613 regulator-min-microvolt = <550000>;
614 regulator-max-microvolt = <950000>;
615 regulator-ramp-delay = <12500>;
616
617 regulator-state-mem {
618 regulator-off-in-suspend;
619 };
620 };
621
622 vdd_ddr_s0: dcdc-reg5 {
623 regulator-name = "vdd_ddr_s0";
624 regulator-always-on;
625 regulator-boot-on;
626 regulator-min-microvolt = <675000>;
627 regulator-max-microvolt = <900000>;
628 regulator-ramp-delay = <12500>;
629
630 regulator-state-mem {
631 regulator-off-in-suspend;
632 regulator-suspend-microvolt = <850000>;
633 };
634 };
635
636 vdd2_ddr_s3: dcdc-reg6 {
637 regulator-name = "vdd2_ddr_s3";
638 regulator-always-on;
639 regulator-boot-on;
640
641 regulator-state-mem {
642 regulator-on-in-suspend;
643 };
644 };
645
646 vcc_2v0_pldo_s3: dcdc-reg7 {
647 regulator-name = "vdd_2v0_pldo_s3";
648 regulator-always-on;
649 regulator-boot-on;
650 regulator-min-microvolt = <2000000>;
651 regulator-max-microvolt = <2000000>;
652 regulator-ramp-delay = <12500>;
653
654 regulator-state-mem {
655 regulator-on-in-suspend;
656 regulator-suspend-microvolt = <2000000>;
657 };
658 };
659
660 vcc_3v3_s3: dcdc-reg8 {
661 regulator-name = "vcc_3v3_s3";
662 regulator-always-on;
663 regulator-boot-on;
664 regulator-min-microvolt = <3300000>;
665 regulator-max-microvolt = <3300000>;
666
667 regulator-state-mem {
668 regulator-on-in-suspend;
669 regulator-suspend-microvolt = <3300000>;
670 };
671 };
672
673 vddq_ddr_s0: dcdc-reg9 {
674 regulator-name = "vddq_ddr_s0";
675 regulator-always-on;
676 regulator-boot-on;
677
678 regulator-state-mem {
679 regulator-off-in-suspend;
680 };
681 };
682
683 vcc_1v8_s3: dcdc-reg10 {
684 regulator-name = "vcc_1v8_s3";
685 regulator-always-on;
686 regulator-boot-on;
687 regulator-min-microvolt = <1800000>;
688 regulator-max-microvolt = <1800000>;
689
690 regulator-state-mem {
691 regulator-on-in-suspend;
692 regulator-suspend-microvolt = <1800000>;
693 };
694 };
695
696 avcc_1v8_s0: pldo-reg1 {
697 regulator-name = "avcc_1v8_s0";
698 regulator-always-on;
699 regulator-boot-on;
700 regulator-min-microvolt = <1800000>;
701 regulator-max-microvolt = <1800000>;
702
703 regulator-state-mem {
704 regulator-off-in-suspend;
705 };
706 };
707
708 vcc_1v8_s0: pldo-reg2 {
709 regulator-name = "vcc_1v8_s0";
710 regulator-always-on;
711 regulator-boot-on;
712 regulator-min-microvolt = <1800000>;
713 regulator-max-microvolt = <1800000>;
714
715 regulator-state-mem {
716 regulator-off-in-suspend;
717 regulator-suspend-microvolt = <1800000>;
718 };
719 };
720
721 avdd_1v2_s0: pldo-reg3 {
722 regulator-name = "avdd_1v2_s0";
723 regulator-always-on;
724 regulator-boot-on;
725 regulator-min-microvolt = <1200000>;
726 regulator-max-microvolt = <1200000>;
727
728 regulator-state-mem {
729 regulator-off-in-suspend;
730 };
731 };
732
733 vcc_3v3_s0: pldo-reg4 {
734 regulator-name = "vcc_3v3_s0";
735 regulator-always-on;
736 regulator-boot-on;
737 regulator-min-microvolt = <3300000>;
738 regulator-max-microvolt = <3300000>;
739 regulator-ramp-delay = <12500>;
740
741 regulator-state-mem {
742 regulator-off-in-suspend;
743 };
744 };
745
746 vccio_sd_s0: pldo-reg5 {
747 regulator-name = "vccio_sd_s0";
748 regulator-always-on;
749 regulator-boot-on;
750 regulator-min-microvolt = <1800000>;
751 regulator-max-microvolt = <3300000>;
752 regulator-ramp-delay = <12500>;
753
754 regulator-state-mem {
755 regulator-off-in-suspend;
756 };
757 };
758
759 pldo6_s3: pldo-reg6 {
760 regulator-name = "pldo6_s3";
761 regulator-always-on;
762 regulator-boot-on;
763 regulator-min-microvolt = <1800000>;
764 regulator-max-microvolt = <1800000>;
765
766 regulator-state-mem {
767 regulator-on-in-suspend;
768 regulator-suspend-microvolt = <1800000>;
769 };
770 };
771
772 vdd_0v75_s3: nldo-reg1 {
773 regulator-name = "vdd_0v75_s3";
774 regulator-always-on;
775 regulator-boot-on;
776 regulator-min-microvolt = <750000>;
777 regulator-max-microvolt = <750000>;
778
779 regulator-state-mem {
780 regulator-on-in-suspend;
781 regulator-suspend-microvolt = <750000>;
782 };
783 };
784
785 vdd_ddr_pll_s0: nldo-reg2 {
786 regulator-name = "vdd_ddr_pll_s0";
787 regulator-always-on;
788 regulator-boot-on;
789 regulator-min-microvolt = <850000>;
790 regulator-max-microvolt = <850000>;
791
792 regulator-state-mem {
793 regulator-off-in-suspend;
794 regulator-suspend-microvolt = <850000>;
795 };
796 };
797
798 avdd_0v75_s0: nldo-reg3 {
799 regulator-name = "avdd_0v75_s0";
800 regulator-always-on;
801 regulator-boot-on;
802 regulator-min-microvolt = <750000>;
803 regulator-max-microvolt = <750000>;
804
805 regulator-state-mem {
806 regulator-off-in-suspend;
807 };
808 };
809
810 vdd_0v85_s0: nldo-reg4 {
811 regulator-name = "vdd_0v85_s0";
812 regulator-always-on;
813 regulator-boot-on;
814 regulator-min-microvolt = <850000>;
815 regulator-max-microvolt = <850000>;
816
817 regulator-state-mem {
818 regulator-off-in-suspend;
819 };
820 };
821
822 vdd_0v75_s0: nldo-reg5 {
823 regulator-name = "vdd_0v75_s0";
824 regulator-always-on;
825 regulator-boot-on;
826 regulator-min-microvolt = <750000>;
827 regulator-max-microvolt = <750000>;
828
829 regulator-state-mem {
830 regulator-off-in-suspend;
831 };
832 };
833 };
834 };
835 };
836
837 &tsadc {
838 status = "okay";
839 };
840
841 &u2phy0 {
842 status = "okay";
843 };
844
845 &u2phy0_otg {
846 status = "okay";
847 };
848
849 &u2phy2 {
850 status = "okay";
851 };
852
853 &u2phy3 {
854 status = "okay";
855 };
856
857 &u2phy2_host {
858 phy-supply = <&vcc5v0_host>;
859 status = "okay";
860 };
861
862 &u2phy3_host {
863 status = "okay";
864 };
865
866 &uart2 {
867 pinctrl-0 = <&uart2m0_xfer>;
868 status = "okay";
869 };
870
871 /* bt */
872 &uart9 {
873 status = "okay";
874 pinctrl-names = "default";
875 pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn>;
876 };
877
878 &usbdp_phy0 {
879 /*
880 * USBDP PHY0 is wired to a USB3 Type-A OTG connector. Additionally
881 * the differential pairs 0+1 and the aux channel are wired to a
882 * mini DP connector.
883 */
884 rockchip,dp-lane-mux = <0 1>;
885 status = "okay";
886 };
887
888 &usb_host0_ehci {
889 status = "okay";
890 };
891
892 &usb_host0_ohci {
893 status = "okay";
894 };
895
896 &usb_host0_xhci {
897 extcon = <&u2phy0>;
898 status = "okay";
899 };
900
901 &usb_host1_ehci {
902 status = "okay";
903 };
904
905 &usb_host1_ohci {
906 status = "okay";
907 };
908
909 &vop {
910 status = "okay";
911 };
912
913 &vop_mmu {
914 status = "okay";
915 };
916
917 &vp0 {
918 vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
919 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
920 remote-endpoint = <&hdmi0_in_vp0>;
921 };
922 };
923
924 &vp2 {
925 vp2_out_dp0: endpoint@a {
926 reg = <ROCKCHIP_VOP2_EP_DP0>;
927 remote-endpoint = <&dp0_in_vp2>;
928 };
929 };