Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3588s-rock-5c.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2024 Radxa Computer (Shenzhen) Co., Ltd.
4 */
5
6 /dts-v1/;
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/soc/rockchip,vop2.h>
12 #include "rk3588s.dtsi"
13
14 / {
15 model = "Radxa ROCK 5C";
16 compatible = "radxa,rock-5c", "rockchip,rk3588s";
17
18 aliases {
19 ethernet0 = &gmac1;
20 mmc0 = &sdhci;
21 mmc1 = &sdmmc;
22 };
23
24 chosen {
25 stdout-path = "serial2:1500000n8";
26 };
27
28 analog-sound {
29 compatible = "audio-graph-card";
30 label = "rk3588-es8316";
31 dais = <&i2s0_8ch_p0>;
32 routing = "MIC2", "Mic Jack",
33 "Headphones", "HPOL",
34 "Headphones", "HPOR";
35 widgets = "Microphone", "Mic Jack",
36 "Headphone", "Headphones";
37 };
38
39 hdmi0-con {
40 compatible = "hdmi-connector";
41 type = "a";
42
43 port {
44 hdmi0_con_in: endpoint {
45 remote-endpoint = <&hdmi0_out_con>;
46 };
47 };
48 };
49
50 leds {
51 compatible = "gpio-leds";
52 pinctrl-names = "default";
53 pinctrl-0 = <&led_pins>;
54
55 led-0 {
56 color = <LED_COLOR_ID_GREEN>;
57 default-state = "on";
58 function = LED_FUNCTION_POWER;
59 gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
60 };
61
62 led-1 {
63 color = <LED_COLOR_ID_BLUE>;
64 default-state = "on";
65 function = LED_FUNCTION_HEARTBEAT;
66 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
67 linux,default-trigger = "heartbeat";
68 };
69 };
70
71 fan: fan {
72 compatible = "pwm-fan";
73 #cooling-cells = <2>;
74 cooling-levels = <0 24 44 64 128 192 255>;
75 fan-supply = <&vcc_5v0>;
76 pwms = <&pwm3 0 10000 0>;
77 };
78
79 pcie2x1l2_3v3: regulator-pcie2x1l2-3v3 {
80 compatible = "regulator-fixed";
81 enable-active-high;
82 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pow_en>;
85 regulator-name = "pcie2x1l2_3v3";
86 regulator-min-microvolt = <3300000>;
87 regulator-max-microvolt = <3300000>;
88 vin-supply = <&vcc_sysin>;
89 };
90
91 vcc5v_dcin: regulator-vcc5v-dcin {
92 compatible = "regulator-fixed";
93 regulator-name = "vcc5v_dcin";
94 regulator-always-on;
95 regulator-boot-on;
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
98 };
99
100 vcc5v0_usb_host: regulator-vcc5v0-usb-host {
101 compatible = "regulator-fixed";
102 enable-active-high;
103 gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&usb_host_pwren_h>;
106 regulator-name = "vcc5v0_usb_host";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
109 vin-supply = <&vcc_sysin>;
110 };
111
112 vcc5v0_usb_otg0: regulator-vcc5v0-usb-otg0 {
113 compatible = "regulator-fixed";
114 enable-active-high;
115 gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&usb_otg_pwren_h>;
118 regulator-name = "vcc5v0_usb_otg0";
119 regulator-min-microvolt = <5000000>;
120 regulator-max-microvolt = <5000000>;
121 vin-supply = <&vcc_sysin>;
122 };
123
124 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
125 compatible = "regulator-fixed";
126 regulator-name = "vcc_1v1_nldo_s3";
127 regulator-always-on;
128 regulator-boot-on;
129 regulator-min-microvolt = <1100000>;
130 regulator-max-microvolt = <1100000>;
131 vin-supply = <&vcc_sysin>;
132 };
133
134 vcc_3v3_pmu: regulator-vcc-3v3-pmu {
135 compatible = "regulator-fixed";
136 regulator-name = "vcc_3v3_pmu";
137 regulator-always-on;
138 regulator-boot-on;
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
141 vin-supply = <&vcc_3v3_s3>;
142 };
143
144 vcc_3v3_s0: regulator-vcc-3v3-s0 {
145 compatible = "regulator-fixed";
146 regulator-name = "vcc_3v3_s0";
147 regulator-always-on;
148 regulator-boot-on;
149 regulator-min-microvolt = <3300000>;
150 regulator-max-microvolt = <3300000>;
151 vin-supply = <&vcc_1v8_s0>;
152 };
153
154 vcc_5v0: regulator-vcc-5v0 {
155 compatible = "regulator-fixed";
156 enable-active-high;
157 gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&vcc_5v0_pwren_h>;
160 regulator-name = "vcc_5v0";
161 regulator-min-microvolt = <5000000>;
162 regulator-max-microvolt = <5000000>;
163 vin-supply = <&vcc_sysin>;
164 };
165
166 vcc_sysin: regulator-vcc-sysin {
167 compatible = "regulator-fixed";
168 regulator-name = "vcc_sysin";
169 regulator-always-on;
170 regulator-boot-on;
171 regulator-min-microvolt = <5000000>;
172 regulator-max-microvolt = <5000000>;
173 vin-supply = <&vcc5v_dcin>;
174 };
175
176 vcca: regulator-vcca {
177 compatible = "regulator-fixed";
178 regulator-name = "vcca";
179 regulator-always-on;
180 regulator-boot-on;
181 regulator-min-microvolt = <4000000>;
182 regulator-max-microvolt = <4000000>;
183 vin-supply = <&vcc_sysin>;
184 };
185
186 vdd_3v3: regulator-vdd-3v3 {
187 compatible = "regulator-fixed";
188 enable-active-high;
189 gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&usb_wifi_pwr>;
192 regulator-name = "vdd_3v3";
193 regulator-always-on;
194 regulator-boot-on;
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
197 vin-supply = <&vcc_3v3_s3>;
198 };
199 };
200
201 &combphy0_ps {
202 status = "okay";
203 };
204
205 &combphy2_psu {
206 status = "okay";
207 };
208
209 &cpu_b0 {
210 cpu-supply = <&vdd_cpu_big0_s0>;
211 };
212
213 &cpu_b1 {
214 cpu-supply = <&vdd_cpu_big0_s0>;
215 };
216
217 &cpu_b2 {
218 cpu-supply = <&vdd_cpu_big1_s0>;
219 };
220
221 &cpu_b3 {
222 cpu-supply = <&vdd_cpu_big1_s0>;
223 };
224
225 &cpu_l0 {
226 cpu-supply = <&vdd_cpu_lit_s0>;
227 };
228
229 &cpu_l1 {
230 cpu-supply = <&vdd_cpu_lit_s0>;
231 };
232
233 &cpu_l2 {
234 cpu-supply = <&vdd_cpu_lit_s0>;
235 };
236
237 &cpu_l3 {
238 cpu-supply = <&vdd_cpu_lit_s0>;
239 };
240
241 &gmac1 {
242 phy-handle = <&rgmii_phy1>;
243 phy-mode = "rgmii-id";
244 phy-supply = <&vcc_3v3_s0>;
245 pinctrl-0 = <&gmac1_miim
246 &gmac1_tx_bus2
247 &gmac1_rx_bus2
248 &gmac1_rgmii_clk
249 &gmac1_rgmii_bus
250 &gmac1_clkinout>;
251 pinctrl-names = "default";
252 status = "okay";
253 };
254
255 &gpu {
256 mali-supply = <&vdd_gpu_s0>;
257 status = "okay";
258 };
259
260 &hdmi0 {
261 pinctrl-names = "default";
262 pinctrl-0 = <&hdmim0_tx0_cec
263 &hdmim1_tx0_hpd
264 &hdmim0_tx0_scl
265 &hdmim0_tx0_sda>;
266 status = "okay";
267 };
268
269 &hdmi0_in {
270 hdmi0_in_vp0: endpoint {
271 remote-endpoint = <&vp0_out_hdmi0>;
272 };
273 };
274
275 &hdmi0_out {
276 hdmi0_out_con: endpoint {
277 remote-endpoint = <&hdmi0_con_in>;
278 };
279 };
280
281 &hdptxphy0 {
282 status = "okay";
283 };
284
285 &i2c0 {
286 pinctrl-names = "default";
287 pinctrl-0 = <&i2c0m2_xfer>;
288 status = "okay";
289
290 vdd_cpu_big0_s0: regulator@42 {
291 compatible = "rockchip,rk8602";
292 reg = <0x42>;
293 fcs,suspend-voltage-selector = <1>;
294 regulator-name = "vdd_cpu_big0_s0";
295 regulator-always-on;
296 regulator-boot-on;
297 regulator-min-microvolt = <550000>;
298 regulator-max-microvolt = <1050000>;
299 regulator-ramp-delay = <2300>;
300 vin-supply = <&vcc_sysin>;
301
302 regulator-state-mem {
303 regulator-off-in-suspend;
304 };
305 };
306
307 vdd_cpu_big1_s0: regulator@43 {
308 compatible = "rockchip,rk8603", "rockchip,rk8602";
309 reg = <0x43>;
310 fcs,suspend-voltage-selector = <1>;
311 regulator-name = "vdd_cpu_big1_s0";
312 regulator-always-on;
313 regulator-boot-on;
314 regulator-min-microvolt = <550000>;
315 regulator-max-microvolt = <1050000>;
316 regulator-ramp-delay = <2300>;
317 vin-supply = <&vcc_sysin>;
318
319 regulator-state-mem {
320 regulator-off-in-suspend;
321 };
322 };
323
324 eeprom@50 {
325 compatible = "belling,bl24c16a", "atmel,24c16";
326 reg = <0x50>;
327 pagesize = <16>;
328 read-only;
329 vcc-supply = <&vcc_3v3_pmu>;
330 };
331 };
332
333 &i2c2 {
334 status = "okay";
335
336 vdd_npu_s0: regulator@42 {
337 compatible = "rockchip,rk8602";
338 reg = <0x42>;
339 fcs,suspend-voltage-selector = <1>;
340 regulator-name = "vdd_npu_s0";
341 regulator-always-on;
342 regulator-boot-on;
343 regulator-min-microvolt = <550000>;
344 regulator-max-microvolt = <950000>;
345 regulator-ramp-delay = <2300>;
346 vin-supply = <&vcc_sysin>;
347
348 regulator-state-mem {
349 regulator-off-in-suspend;
350 };
351 };
352 };
353
354 &i2c5 {
355 pinctrl-names = "default";
356 pinctrl-0 = <&i2c5m2_xfer>;
357 status = "okay";
358
359 rtc@51 {
360 compatible = "haoyu,hym8563";
361 reg = <0x51>;
362 #clock-cells = <0>;
363 clock-output-names = "rtcic_32kout";
364 interrupt-parent = <&gpio0>;
365 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
366 pinctrl-names = "default";
367 pinctrl-0 = <&rtc_int_l>;
368 };
369 };
370
371 &i2c7 {
372 status = "okay";
373
374 audio-codec@11 {
375 compatible = "everest,es8316";
376 reg = <0x11>;
377 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
378 assigned-clock-rates = <12288000>;
379 clocks = <&cru I2S0_8CH_MCLKOUT>;
380 clock-names = "mclk";
381 #sound-dai-cells = <0>;
382
383 port {
384 es8316_p0_0: endpoint {
385 remote-endpoint = <&i2s0_8ch_p0_0>;
386 };
387 };
388 };
389 };
390
391 &i2s0_8ch {
392 pinctrl-names = "default";
393 pinctrl-0 = <&i2s0_lrck
394 &i2s0_mclk
395 &i2s0_sclk
396 &i2s0_sdi0
397 &i2s0_sdo0>;
398 status = "okay";
399
400 i2s0_8ch_p0: port {
401 i2s0_8ch_p0_0: endpoint {
402 dai-format = "i2s";
403 mclk-fs = <256>;
404 remote-endpoint = <&es8316_p0_0>;
405 };
406 };
407 };
408
409 &mdio1 {
410 rgmii_phy1: ethernet-phy@1 {
411 compatible = "ethernet-phy-id001c.c916";
412 reg = <1>;
413 pinctrl-names = "default";
414 pinctrl-0 = <&gmac1_rstn>;
415 reset-assert-us = <20000>;
416 reset-deassert-us = <100000>;
417 reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
418 };
419 };
420
421 &package_thermal {
422 polling-delay = <1000>;
423
424 trips {
425 package_fan0: package-fan0 {
426 temperature = <55000>;
427 hysteresis = <2000>;
428 type = "active";
429 };
430
431 package_fan1: package-fan1 {
432 temperature = <65000>;
433 hysteresis = <2000>;
434 type = "active";
435 };
436 };
437
438 cooling-maps {
439 map0 {
440 trip = <&package_fan0>;
441 cooling-device = <&fan THERMAL_NO_LIMIT 1>;
442 };
443
444 map1 {
445 trip = <&package_fan1>;
446 cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
447 };
448 };
449 };
450
451 &pcie2x1l2 {
452 pinctrl-names = "default";
453 pinctrl-0 = <&pcie20x1_2_perstn_m0>;
454 reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
455 vpcie3v3-supply = <&pcie2x1l2_3v3>;
456 status = "okay";
457 };
458
459 &pd_gpu {
460 domain-supply = <&vdd_gpu_s0>;
461 };
462
463 &pinctrl {
464 leds {
465 led_pins: led-pins {
466 rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>,
467 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
468 };
469 };
470
471 mdio {
472 gmac1_rstn: gmac1-rstn {
473 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
474 };
475 };
476
477 mmc {
478 sdmmc_det_pin: sdmmc-det-pin {
479 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
480 };
481 };
482
483 pcie {
484 pcie20x1_2_perstn_m0: pcie20x1-2-perstn-m0 {
485 rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
486 };
487
488 pow_en: pow-en {
489 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
490 };
491 };
492
493 rtc {
494 rtc_int_l: rtc-int-l {
495 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
496 };
497 };
498
499 usb {
500 usb_host_pwren_h: usb-host-pwren-h {
501 rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
502 };
503
504 usb_otg_pwren_h: usb-otg-pwren-h {
505 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
506 };
507
508 usb_wifi_pwr: usb-wifi-pwr {
509 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
510 };
511
512 vcc_5v0_pwren_h: vcc-5v0-pwren-h {
513 rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
514 };
515 };
516 };
517
518 &pwm3 {
519 pinctrl-names = "default";
520 pinctrl-0 = <&pwm3m1_pins>;
521 status = "okay";
522 };
523
524 &saradc {
525 vref-supply = <&vcca_1v8_s0>;
526 status = "okay";
527 };
528
529 &sdhci {
530 bus-width = <8>;
531 mmc-hs400-1_8v;
532 mmc-hs400-enhanced-strobe;
533 no-sdio;
534 no-sd;
535 non-removable;
536 status = "okay";
537 };
538
539 &sdmmc {
540 bus-width = <4>;
541 cap-mmc-highspeed;
542 cap-sd-highspeed;
543 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
544 disable-wp;
545 no-sdio;
546 no-mmc;
547 pinctrl-names = "default";
548 pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det_pin>;
549 sd-uhs-sdr104;
550 vmmc-supply = <&vcc_3v3_s3>;
551 vqmmc-supply = <&vccio_sd_s0>;
552 status = "okay";
553 };
554
555 &sfc {
556 pinctrl-names = "default";
557 pinctrl-0 = <&fspim0_pins>;
558
559 flash@0 {
560 compatible = "jedec,spi-nor";
561 reg = <0>;
562 spi-max-frequency = <104000000>;
563 spi-rx-bus-width = <4>;
564 spi-tx-bus-width = <1>;
565 };
566 };
567
568 &spi2 {
569 status = "okay";
570 assigned-clocks = <&cru CLK_SPI2>;
571 assigned-clock-rates = <200000000>;
572 num-cs = <1>;
573 pinctrl-names = "default";
574 pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
575
576 pmic@0 {
577 compatible = "rockchip,rk806";
578 reg = <0>;
579 gpio-controller;
580 #gpio-cells = <2>;
581 interrupt-parent = <&gpio0>;
582 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
583 pinctrl-names = "default";
584 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
585 <&rk806_dvs2_null>, <&rk806_dvs3_null>;
586 spi-max-frequency = <1000000>;
587 system-power-controller;
588
589 vcc1-supply = <&vcc_sysin>;
590 vcc2-supply = <&vcc_sysin>;
591 vcc3-supply = <&vcc_sysin>;
592 vcc4-supply = <&vcc_sysin>;
593 vcc5-supply = <&vcc_sysin>;
594 vcc6-supply = <&vcc_sysin>;
595 vcc7-supply = <&vcc_sysin>;
596 vcc8-supply = <&vcc_sysin>;
597 vcc9-supply = <&vcc_sysin>;
598 vcc10-supply = <&vcc_sysin>;
599 vcc11-supply = <&vcc_2v0_pldo_s3>;
600 vcc12-supply = <&vcc_sysin>;
601 vcc13-supply = <&vcc_1v1_nldo_s3>;
602 vcc14-supply = <&vcc_1v1_nldo_s3>;
603 vcca-supply = <&vcca>;
604
605 rk806_dvs1_null: dvs1-null-pins {
606 pins = "gpio_pwrctrl1";
607 function = "pin_fun0";
608 };
609
610 rk806_dvs2_null: dvs2-null-pins {
611 pins = "gpio_pwrctrl2";
612 function = "pin_fun0";
613 };
614
615 rk806_dvs3_null: dvs3-null-pins {
616 pins = "gpio_pwrctrl3";
617 function = "pin_fun0";
618 };
619
620 regulators {
621 vdd_gpu_s0: dcdc-reg1 {
622 regulator-name = "vdd_gpu_s0";
623 regulator-boot-on;
624 regulator-min-microvolt = <550000>;
625 regulator-max-microvolt = <950000>;
626 regulator-ramp-delay = <12500>;
627 regulator-enable-ramp-delay = <400>;
628
629 regulator-state-mem {
630 regulator-off-in-suspend;
631 };
632 };
633
634 vdd_cpu_lit_s0: dcdc-reg2 {
635 regulator-name = "vdd_cpu_lit_s0";
636 regulator-always-on;
637 regulator-boot-on;
638 regulator-min-microvolt = <550000>;
639 regulator-max-microvolt = <950000>;
640 regulator-ramp-delay = <12500>;
641
642 regulator-state-mem {
643 regulator-off-in-suspend;
644 };
645 };
646
647 vdd_logic_s0: dcdc-reg3 {
648 regulator-name = "vdd_logic_s0";
649 regulator-always-on;
650 regulator-boot-on;
651 regulator-min-microvolt = <675000>;
652 regulator-max-microvolt = <750000>;
653 regulator-ramp-delay = <12500>;
654
655 regulator-state-mem {
656 regulator-on-in-suspend;
657 regulator-suspend-microvolt = <750000>;
658 };
659 };
660
661 vdd_vdenc_s0: dcdc-reg4 {
662 regulator-name = "vdd_vdenc_s0";
663 regulator-always-on;
664 regulator-boot-on;
665 regulator-min-microvolt = <550000>;
666 regulator-max-microvolt = <950000>;
667 regulator-ramp-delay = <12500>;
668
669 regulator-state-mem {
670 regulator-off-in-suspend;
671 };
672 };
673
674 vdd_ddr_s0: dcdc-reg5 {
675 regulator-name = "vdd_ddr_s0";
676 regulator-always-on;
677 regulator-boot-on;
678 regulator-min-microvolt = <675000>;
679 regulator-max-microvolt = <900000>;
680 regulator-ramp-delay = <12500>;
681
682 regulator-state-mem {
683 regulator-off-in-suspend;
684 regulator-suspend-microvolt = <850000>;
685 };
686 };
687
688 vdd2_ddr_s3: dcdc-reg6 {
689 regulator-name = "vdd2_ddr_s3";
690 regulator-always-on;
691 regulator-boot-on;
692
693 regulator-state-mem {
694 regulator-on-in-suspend;
695 };
696 };
697
698 vcc_2v0_pldo_s3: dcdc-reg7 {
699 regulator-name = "vdd_2v0_pldo_s3";
700 regulator-always-on;
701 regulator-boot-on;
702 regulator-min-microvolt = <2000000>;
703 regulator-max-microvolt = <2000000>;
704 regulator-ramp-delay = <12500>;
705
706 regulator-state-mem {
707 regulator-on-in-suspend;
708 regulator-suspend-microvolt = <2000000>;
709 };
710 };
711
712 vcc_3v3_s3: dcdc-reg8 {
713 regulator-name = "vcc_3v3_s3";
714 regulator-always-on;
715 regulator-boot-on;
716 regulator-min-microvolt = <3300000>;
717 regulator-max-microvolt = <3300000>;
718
719 regulator-state-mem {
720 regulator-on-in-suspend;
721 regulator-suspend-microvolt = <3300000>;
722 };
723 };
724
725 vddq_ddr_s0: dcdc-reg9 {
726 regulator-name = "vddq_ddr_s0";
727 regulator-always-on;
728 regulator-boot-on;
729
730 regulator-state-mem {
731 regulator-off-in-suspend;
732 };
733 };
734
735 vcc1v8_pmu_ddr_s3: dcdc-reg10 {
736 regulator-name = "vcc1v8_pmu_ddr_s3";
737 regulator-always-on;
738 regulator-boot-on;
739 regulator-min-microvolt = <1800000>;
740 regulator-max-microvolt = <1800000>;
741
742 regulator-state-mem {
743 regulator-on-in-suspend;
744 regulator-suspend-microvolt = <1800000>;
745 };
746 };
747
748 vcc_1v8_s0: pldo-reg1 {
749 regulator-name = "vcc_1v8_s0";
750 regulator-always-on;
751 regulator-boot-on;
752 regulator-min-microvolt = <1800000>;
753 regulator-max-microvolt = <1800000>;
754
755 regulator-state-mem {
756 regulator-on-in-suspend;
757 regulator-suspend-microvolt = <1800000>;
758 };
759 };
760
761 vcca_1v8_s0: pldo-reg2 {
762 regulator-name = "vcca_1v8_s0";
763 regulator-always-on;
764 regulator-boot-on;
765 regulator-min-microvolt = <1800000>;
766 regulator-max-microvolt = <1800000>;
767
768 regulator-state-mem {
769 regulator-on-in-suspend;
770 regulator-suspend-microvolt = <1800000>;
771 };
772 };
773
774 vdda_1v2_s0: pldo-reg3 {
775 regulator-name = "vdda_1v2_s0";
776 regulator-always-on;
777 regulator-boot-on;
778 regulator-min-microvolt = <1200000>;
779 regulator-max-microvolt = <1200000>;
780
781 regulator-state-mem {
782 regulator-off-in-suspend;
783 };
784 };
785
786 vcca_3v3_s0: pldo-reg4 {
787 regulator-name = "vcca_3v3_s0";
788 regulator-always-on;
789 regulator-boot-on;
790 regulator-min-microvolt = <3300000>;
791 regulator-max-microvolt = <3300000>;
792
793 regulator-state-mem {
794 regulator-on-in-suspend;
795 regulator-suspend-microvolt = <3300000>;
796 };
797 };
798
799 vccio_sd_s0: pldo-reg5 {
800 regulator-name = "vccio_sd_s0";
801 regulator-always-on;
802 regulator-boot-on;
803 regulator-min-microvolt = <1800000>;
804 regulator-max-microvolt = <3300000>;
805
806 regulator-state-mem {
807 regulator-off-in-suspend;
808 };
809 };
810
811 pldo6_s3: pldo-reg6 {
812 regulator-name = "pldo6_s3";
813 regulator-always-on;
814 regulator-boot-on;
815 regulator-min-microvolt = <1800000>;
816 regulator-max-microvolt = <1800000>;
817
818 regulator-state-mem {
819 regulator-on-in-suspend;
820 regulator-suspend-microvolt = <1800000>;
821 };
822 };
823
824 vdd_0v75_s3: nldo-reg1 {
825 regulator-name = "vdd_0v75_s3";
826 regulator-always-on;
827 regulator-boot-on;
828 regulator-min-microvolt = <750000>;
829 regulator-max-microvolt = <750000>;
830
831 regulator-state-mem {
832 regulator-on-in-suspend;
833 regulator-suspend-microvolt = <750000>;
834 };
835 };
836
837 vdda_ddr_pll_s0: nldo-reg2 {
838 regulator-name = "vdda_ddr_pll_s0";
839 regulator-always-on;
840 regulator-boot-on;
841 regulator-min-microvolt = <850000>;
842 regulator-max-microvolt = <850000>;
843
844 regulator-state-mem {
845 regulator-on-in-suspend;
846 regulator-suspend-microvolt = <850000>;
847 };
848 };
849
850 vdda_0v75_s0: nldo-reg3 {
851 regulator-name = "vdda_0v75_s0";
852 regulator-always-on;
853 regulator-boot-on;
854 regulator-min-microvolt = <750000>;
855 regulator-max-microvolt = <750000>;
856
857 regulator-state-mem {
858 regulator-off-in-suspend;
859 };
860 };
861
862 vdda_0v85_s0: nldo-reg4 {
863 regulator-name = "vdda_0v85_s0";
864 regulator-always-on;
865 regulator-boot-on;
866 regulator-min-microvolt = <850000>;
867 regulator-max-microvolt = <850000>;
868
869 regulator-state-mem {
870 regulator-off-in-suspend;
871 };
872 };
873
874 vdd_0v75_s0: nldo-reg5 {
875 regulator-name = "vdd_0v75_s0";
876 regulator-always-on;
877 regulator-boot-on;
878 regulator-min-microvolt = <750000>;
879 regulator-max-microvolt = <750000>;
880
881 regulator-state-mem {
882 regulator-off-in-suspend;
883 };
884 };
885 };
886 };
887 };
888
889 &tsadc {
890 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
891 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
892 status = "okay";
893 };
894
895 &u2phy0 {
896 status = "okay";
897 };
898
899 &u2phy0_otg {
900 phy-supply = <&vcc5v0_usb_otg0>;
901 status = "okay";
902 };
903
904 &u2phy2 {
905 status = "okay";
906 };
907
908 &u2phy2_host {
909 /* connected to USB hub, which is powered by vcc_5v0 */
910 phy-supply = <&vcc_5v0>;
911 status = "okay";
912 };
913
914 &u2phy3 {
915 status = "okay";
916 };
917
918 &u2phy3_host {
919 phy-supply = <&vcc5v0_usb_host>;
920 status = "okay";
921 };
922
923 &uart2 {
924 pinctrl-0 = <&uart2m0_xfer>;
925 status = "okay";
926 };
927
928 &usbdp_phy0 {
929 status = "okay";
930 };
931
932 &usb_host0_ehci {
933 status = "okay";
934 };
935
936 &usb_host0_xhci {
937 dr_mode = "host";
938 status = "okay";
939 };
940
941 &usb_host1_ehci {
942 status = "okay";
943 };
944
945 &usb_host1_ohci {
946 status = "okay";
947 };
948
949 &usb_host2_xhci {
950 status = "okay";
951 };
952
953 &vop_mmu {
954 status = "okay";
955 };
956
957 &vop {
958 status = "okay";
959 };
960
961 &vp0 {
962 vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
963 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
964 remote-endpoint = <&hdmi0_in_vp0>;
965 };
966 };