Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3568-rock-3a.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3 /dts-v1/;
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
7 #include <dt-bindings/soc/rockchip,vop2.h>
8 #include "rk3568.dtsi"
9
10 / {
11 model = "Radxa ROCK 3A";
12 compatible = "radxa,rock3a", "rockchip,rk3568";
13
14 aliases {
15 ethernet0 = &gmac1;
16 mmc0 = &sdhci;
17 mmc1 = &sdmmc0;
18 mmc2 = &sdmmc2;
19 };
20
21 chosen: chosen {
22 stdout-path = "serial2:1500000n8";
23 };
24
25 hdmi-con {
26 compatible = "hdmi-connector";
27 type = "a";
28
29 port {
30 hdmi_con_in: endpoint {
31 remote-endpoint = <&hdmi_out_con>;
32 };
33 };
34 };
35
36 gmac1_clkin: external-gmac1-clock {
37 compatible = "fixed-clock";
38 clock-frequency = <125000000>;
39 clock-output-names = "gmac1_clkin";
40 #clock-cells = <0>;
41 };
42
43 leds {
44 compatible = "gpio-leds";
45
46 led_user: led-0 {
47 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
48 function = LED_FUNCTION_HEARTBEAT;
49 color = <LED_COLOR_ID_BLUE>;
50 linux,default-trigger = "heartbeat";
51 pinctrl-names = "default";
52 pinctrl-0 = <&led_user_en>;
53 };
54 };
55
56 rk809-sound {
57 compatible = "simple-audio-card";
58 simple-audio-card,format = "i2s";
59 simple-audio-card,name = "Analog RK809";
60 simple-audio-card,mclk-fs = <256>;
61
62 simple-audio-card,cpu {
63 sound-dai = <&i2s1_8ch>;
64 };
65
66 simple-audio-card,codec {
67 sound-dai = <&rk809>;
68 };
69 };
70
71 sdio_pwrseq: sdio-pwrseq {
72 compatible = "mmc-pwrseq-simple";
73 clocks = <&rk809 1>;
74 clock-names = "ext_clock";
75 pinctrl-names = "default";
76 pinctrl-0 = <&wifi_enable>;
77 post-power-on-delay-ms = <100>;
78 power-off-delay-us = <5000000>;
79 reset-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>;
80 };
81
82 vcc12v_dcin: regulator-vcc12v-dcin {
83 compatible = "regulator-fixed";
84 regulator-name = "vcc12v_dcin";
85 regulator-always-on;
86 regulator-boot-on;
87 };
88
89 pcie30_avdd0v9: regulator-pcie30-avdd0v9 {
90 compatible = "regulator-fixed";
91 regulator-name = "pcie30_avdd0v9";
92 regulator-always-on;
93 regulator-boot-on;
94 regulator-min-microvolt = <900000>;
95 regulator-max-microvolt = <900000>;
96 vin-supply = <&vcc3v3_sys>;
97 };
98
99 pcie30_avdd1v8: regulator-pcie30-avdd1v8 {
100 compatible = "regulator-fixed";
101 regulator-name = "pcie30_avdd1v8";
102 regulator-always-on;
103 regulator-boot-on;
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <1800000>;
106 vin-supply = <&vcc3v3_sys>;
107 };
108
109 /* pi6c pcie clock generator */
110 vcc3v3_pi6c_03: regulator-vcc3v3-pi6c-03 {
111 compatible = "regulator-fixed";
112 regulator-name = "vcc3v3_pi6c_03";
113 regulator-always-on;
114 regulator-boot-on;
115 regulator-min-microvolt = <3300000>;
116 regulator-max-microvolt = <3300000>;
117 vin-supply = <&vcc5v0_sys>;
118 };
119
120 vcc3v3_pcie: regulator-vcc3v3-pcie {
121 compatible = "regulator-fixed";
122 enable-active-high;
123 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&pcie_enable_h>;
126 regulator-name = "vcc3v3_pcie";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
129 vin-supply = <&vcc5v0_sys>;
130 };
131
132 vcc3v3_sys: regulator-vcc3v3-sys {
133 compatible = "regulator-fixed";
134 regulator-name = "vcc3v3_sys";
135 regulator-always-on;
136 regulator-boot-on;
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
139 vin-supply = <&vcc12v_dcin>;
140 };
141
142 vcc5v0_sys: regulator-vcc5v0-sys {
143 compatible = "regulator-fixed";
144 regulator-name = "vcc5v0_sys";
145 regulator-always-on;
146 regulator-boot-on;
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
149 vin-supply = <&vcc12v_dcin>;
150 };
151
152 vcc5v0_usb: regulator-vcc5v0-usb {
153 compatible = "regulator-fixed";
154 regulator-name = "vcc5v0_usb";
155 regulator-always-on;
156 regulator-boot-on;
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
159 vin-supply = <&vcc12v_dcin>;
160 };
161
162 vcc5v0_usb_host: regulator-vcc5v0-usb-host {
163 compatible = "regulator-fixed";
164 enable-active-high;
165 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
166 pinctrl-names = "default";
167 pinctrl-0 = <&vcc5v0_usb_host_en>;
168 regulator-name = "vcc5v0_usb_host";
169 regulator-min-microvolt = <5000000>;
170 regulator-max-microvolt = <5000000>;
171 vin-supply = <&vcc5v0_usb>;
172 };
173
174 vcc5v0_usb_hub: regulator-vcc5v0-usb-hub {
175 compatible = "regulator-fixed";
176 enable-active-high;
177 gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&vcc5v0_usb_hub_en>;
180 regulator-name = "vcc5v0_usb_hub";
181 regulator-always-on;
182 vin-supply = <&vcc5v0_usb>;
183 };
184
185 vcc5v0_usb_otg: regulator-vcc5v0-usb-otg {
186 compatible = "regulator-fixed";
187 enable-active-high;
188 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&vcc5v0_usb_otg_en>;
191 regulator-name = "vcc5v0_usb_otg";
192 regulator-min-microvolt = <5000000>;
193 regulator-max-microvolt = <5000000>;
194 vin-supply = <&vcc5v0_usb>;
195 };
196
197 vcc_cam: regulator-vcc-cam {
198 compatible = "regulator-fixed";
199 enable-active-high;
200 gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&vcc_cam_en>;
203 regulator-name = "vcc_cam";
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
206 vin-supply = <&vcc3v3_sys>;
207
208 regulator-state-mem {
209 regulator-off-in-suspend;
210 };
211 };
212
213 vcc_mipi: regulator-vcc-mipi {
214 compatible = "regulator-fixed";
215 enable-active-high;
216 gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&vcc_mipi_en>;
219 regulator-name = "vcc_mipi";
220 regulator-min-microvolt = <3300000>;
221 regulator-max-microvolt = <3300000>;
222 vin-supply = <&vcc3v3_sys>;
223
224 regulator-state-mem {
225 regulator-off-in-suspend;
226 };
227 };
228 };
229
230 &combphy0 {
231 status = "okay";
232 };
233
234 &combphy1 {
235 status = "okay";
236 };
237
238 &combphy2 {
239 status = "okay";
240 };
241
242 &cpu0 {
243 cpu-supply = <&vdd_cpu>;
244 };
245
246 &cpu1 {
247 cpu-supply = <&vdd_cpu>;
248 };
249
250 &cpu2 {
251 cpu-supply = <&vdd_cpu>;
252 };
253
254 &cpu3 {
255 cpu-supply = <&vdd_cpu>;
256 };
257
258 &gmac1 {
259 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
260 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>;
261 clock_in_out = "input";
262 phy-handle = <&rgmii_phy1>;
263 phy-mode = "rgmii-id";
264 phy-supply = <&vcc_3v3>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&gmac1m1_miim
267 &gmac1m1_tx_bus2
268 &gmac1m1_rx_bus2
269 &gmac1m1_rgmii_clk
270 &gmac1m1_clkinout
271 &gmac1m1_rgmii_bus>;
272 status = "okay";
273 };
274
275 &gpu {
276 mali-supply = <&vdd_gpu>;
277 status = "okay";
278 };
279
280 &hdmi {
281 avdd-0v9-supply = <&vdda0v9_image>;
282 avdd-1v8-supply = <&vcca1v8_image>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm1_cec>;
285 status = "okay";
286 };
287
288 &hdmi_in {
289 hdmi_in_vp0: endpoint {
290 remote-endpoint = <&vp0_out_hdmi>;
291 };
292 };
293
294 &hdmi_out {
295 hdmi_out_con: endpoint {
296 remote-endpoint = <&hdmi_con_in>;
297 };
298 };
299
300 &hdmi_sound {
301 status = "okay";
302 };
303
304 &i2c0 {
305 status = "okay";
306
307 vdd_cpu: regulator@1c {
308 compatible = "tcs,tcs4525";
309 reg = <0x1c>;
310 fcs,suspend-voltage-selector = <1>;
311 regulator-name = "vdd_cpu";
312 regulator-always-on;
313 regulator-boot-on;
314 regulator-min-microvolt = <800000>;
315 regulator-max-microvolt = <1150000>;
316 regulator-ramp-delay = <2300>;
317 vin-supply = <&vcc5v0_sys>;
318
319 regulator-state-mem {
320 regulator-off-in-suspend;
321 };
322 };
323
324 rk809: pmic@20 {
325 compatible = "rockchip,rk809";
326 reg = <0x20>;
327 interrupt-parent = <&gpio0>;
328 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
329 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
330 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
331 #clock-cells = <1>;
332 clock-names = "mclk";
333 clocks = <&cru I2S1_MCLKOUT_TX>;
334 pinctrl-names = "default";
335 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
336 system-power-controller;
337 #sound-dai-cells = <0>;
338 vcc1-supply = <&vcc3v3_sys>;
339 vcc2-supply = <&vcc3v3_sys>;
340 vcc3-supply = <&vcc3v3_sys>;
341 vcc4-supply = <&vcc3v3_sys>;
342 vcc5-supply = <&vcc3v3_sys>;
343 vcc6-supply = <&vcc3v3_sys>;
344 vcc7-supply = <&vcc3v3_sys>;
345 vcc8-supply = <&vcc3v3_sys>;
346 vcc9-supply = <&vcc3v3_sys>;
347 wakeup-source;
348
349 regulators {
350 vdd_logic: DCDC_REG1 {
351 regulator-name = "vdd_logic";
352 regulator-always-on;
353 regulator-boot-on;
354 regulator-initial-mode = <0x2>;
355 regulator-min-microvolt = <500000>;
356 regulator-max-microvolt = <1350000>;
357 regulator-ramp-delay = <6001>;
358
359 regulator-state-mem {
360 regulator-off-in-suspend;
361 };
362 };
363
364 vdd_gpu: DCDC_REG2 {
365 regulator-name = "vdd_gpu";
366 regulator-always-on;
367 regulator-initial-mode = <0x2>;
368 regulator-min-microvolt = <500000>;
369 regulator-max-microvolt = <1350000>;
370 regulator-ramp-delay = <6001>;
371
372 regulator-state-mem {
373 regulator-off-in-suspend;
374 };
375 };
376
377 vcc_ddr: DCDC_REG3 {
378 regulator-name = "vcc_ddr";
379 regulator-always-on;
380 regulator-boot-on;
381 regulator-initial-mode = <0x2>;
382
383 regulator-state-mem {
384 regulator-on-in-suspend;
385 };
386 };
387
388 vdd_npu: DCDC_REG4 {
389 regulator-name = "vdd_npu";
390 regulator-initial-mode = <0x2>;
391 regulator-min-microvolt = <500000>;
392 regulator-max-microvolt = <1350000>;
393 regulator-ramp-delay = <6001>;
394
395 regulator-state-mem {
396 regulator-off-in-suspend;
397 };
398 };
399
400 vcc_1v8: DCDC_REG5 {
401 regulator-name = "vcc_1v8";
402 regulator-always-on;
403 regulator-boot-on;
404 regulator-min-microvolt = <1800000>;
405 regulator-max-microvolt = <1800000>;
406
407 regulator-state-mem {
408 regulator-off-in-suspend;
409 };
410 };
411
412 vdda0v9_image: LDO_REG1 {
413 regulator-name = "vdda0v9_image";
414 regulator-min-microvolt = <900000>;
415 regulator-max-microvolt = <900000>;
416
417 regulator-state-mem {
418 regulator-off-in-suspend;
419 };
420 };
421
422 vdda_0v9: LDO_REG2 {
423 regulator-name = "vdda_0v9";
424 regulator-always-on;
425 regulator-boot-on;
426 regulator-min-microvolt = <900000>;
427 regulator-max-microvolt = <900000>;
428
429 regulator-state-mem {
430 regulator-off-in-suspend;
431 };
432 };
433
434 vdda0v9_pmu: LDO_REG3 {
435 regulator-name = "vdda0v9_pmu";
436 regulator-always-on;
437 regulator-boot-on;
438 regulator-min-microvolt = <900000>;
439 regulator-max-microvolt = <900000>;
440
441 regulator-state-mem {
442 regulator-on-in-suspend;
443 regulator-suspend-microvolt = <900000>;
444 };
445 };
446
447 vccio_acodec: LDO_REG4 {
448 regulator-name = "vccio_acodec";
449 regulator-always-on;
450 regulator-min-microvolt = <3300000>;
451 regulator-max-microvolt = <3300000>;
452
453 regulator-state-mem {
454 regulator-off-in-suspend;
455 };
456 };
457
458 vccio_sd: LDO_REG5 {
459 regulator-name = "vccio_sd";
460 regulator-min-microvolt = <1800000>;
461 regulator-max-microvolt = <3300000>;
462
463 regulator-state-mem {
464 regulator-off-in-suspend;
465 };
466 };
467
468 vcc3v3_pmu: LDO_REG6 {
469 regulator-name = "vcc3v3_pmu";
470 regulator-always-on;
471 regulator-boot-on;
472 regulator-min-microvolt = <3300000>;
473 regulator-max-microvolt = <3300000>;
474
475 regulator-state-mem {
476 regulator-on-in-suspend;
477 regulator-suspend-microvolt = <3300000>;
478 };
479 };
480
481 vcca_1v8: LDO_REG7 {
482 regulator-name = "vcca_1v8";
483 regulator-always-on;
484 regulator-boot-on;
485 regulator-min-microvolt = <1800000>;
486 regulator-max-microvolt = <1800000>;
487
488 regulator-state-mem {
489 regulator-off-in-suspend;
490 };
491 };
492
493 vcca1v8_pmu: LDO_REG8 {
494 regulator-name = "vcca1v8_pmu";
495 regulator-always-on;
496 regulator-boot-on;
497 regulator-min-microvolt = <1800000>;
498 regulator-max-microvolt = <1800000>;
499
500 regulator-state-mem {
501 regulator-on-in-suspend;
502 regulator-suspend-microvolt = <1800000>;
503 };
504 };
505
506 vcca1v8_image: LDO_REG9 {
507 regulator-name = "vcca1v8_image";
508 regulator-min-microvolt = <1800000>;
509 regulator-max-microvolt = <1800000>;
510
511 regulator-state-mem {
512 regulator-off-in-suspend;
513 };
514 };
515
516 vcc_3v3: SWITCH_REG1 {
517 regulator-name = "vcc_3v3";
518 regulator-always-on;
519 regulator-boot-on;
520
521 regulator-state-mem {
522 regulator-off-in-suspend;
523 };
524 };
525
526 vcc3v3_sd: SWITCH_REG2 {
527 regulator-name = "vcc3v3_sd";
528
529 regulator-state-mem {
530 regulator-off-in-suspend;
531 };
532 };
533 };
534 };
535
536 eeprom@50 {
537 compatible = "belling,bl24c16a", "atmel,24c16";
538 reg = <0x50>;
539 pagesize = <16>;
540 read-only;
541 vcc-supply = <&vcc3v3_pmu>;
542 };
543 };
544
545 &i2c3 {
546 pinctrl-names = "default";
547 pinctrl-0 = <&i2c3m1_xfer>;
548 status = "disabled";
549 };
550
551 &i2c4 {
552 pinctrl-names = "default";
553 pinctrl-0 = <&i2c4m1_xfer>;
554 status = "disabled";
555 };
556
557 &i2c5 {
558 status = "okay";
559
560 hym8563: rtc@51 {
561 compatible = "haoyu,hym8563";
562 reg = <0x51>;
563 interrupt-parent = <&gpio0>;
564 interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
565 #clock-cells = <0>;
566 clock-output-names = "rtcic_32kout";
567 pinctrl-names = "default";
568 pinctrl-0 = <&hym8563_int>;
569 wakeup-source;
570 };
571 };
572
573 &i2s0_8ch {
574 status = "okay";
575 };
576
577 &i2s1_8ch {
578 pinctrl-names = "default";
579 pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>;
580 rockchip,trcm-sync-tx-only;
581 status = "okay";
582 };
583
584 &i2s2_2ch {
585 rockchip,trcm-sync-tx-only;
586 status = "okay";
587 };
588
589 &mdio1 {
590 rgmii_phy1: ethernet-phy@0 {
591 compatible = "ethernet-phy-ieee802.3-c22";
592 reg = <0x0>;
593 pinctrl-names = "default";
594 pinctrl-0 = <&eth_phy_rst>;
595 reset-assert-us = <20000>;
596 reset-deassert-us = <100000>;
597 reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
598 };
599 };
600
601 &pcie2x1 {
602 pinctrl-names = "default";
603 pinctrl-0 = <&pcie_reset_h>;
604 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
605 vpcie3v3-supply = <&vcc3v3_pcie>;
606 status = "okay";
607 };
608
609 &pcie30phy {
610 phy-supply = <&vcc3v3_pi6c_03>;
611 status = "okay";
612 };
613
614 &pcie3x2 {
615 pinctrl-names = "default";
616 pinctrl-0 = <&pcie30x2m1_pins>;
617 reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
618 vpcie3v3-supply = <&vcc3v3_pcie>;
619 status = "okay";
620 };
621
622 &pinctrl {
623 cam {
624 vcc_cam_en: vcc_cam_en {
625 rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
626 };
627 };
628
629 display {
630 vcc_mipi_en: vcc_mipi_en {
631 rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
632 };
633 };
634
635 ethernet {
636 eth_phy_rst: eth_phy_rst {
637 rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
638 };
639 };
640
641 hym8563 {
642 hym8563_int: hym8563-int {
643 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
644 };
645 };
646
647 leds {
648 led_user_en: led_user_en {
649 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
650 };
651 };
652
653 pcie {
654 pcie_enable_h: pcie-enable-h {
655 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
656 };
657
658 pcie_reset_h: pcie-reset-h {
659 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
660 };
661 };
662
663 pmic {
664 pmic_int: pmic_int {
665 rockchip,pins =
666 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
667 };
668 };
669
670 usb {
671 vcc5v0_usb_host_en: vcc5v0_usb_host_en {
672 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
673 };
674 vcc5v0_usb_hub_en: vcc5v0_usb_hub_en {
675 rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
676 };
677 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
678 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
679 };
680 };
681
682 bt {
683 bt_enable: bt-enable {
684 rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
685 };
686
687 bt_host_wake: bt-host-wake {
688 rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
689 };
690
691 bt_wake: bt-wake {
692 rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
693 };
694 };
695
696 sdio-pwrseq {
697 wifi_enable: wifi-enable {
698 rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
699 };
700 };
701 };
702
703 &pmu_io_domains {
704 pmuio1-supply = <&vcc3v3_pmu>;
705 pmuio2-supply = <&vcc3v3_pmu>;
706 vccio1-supply = <&vccio_acodec>;
707 vccio2-supply = <&vcc_1v8>;
708 vccio3-supply = <&vccio_sd>;
709 vccio4-supply = <&vcc_1v8>;
710 vccio5-supply = <&vcc_3v3>;
711 vccio6-supply = <&vcc_1v8>;
712 vccio7-supply = <&vcc_3v3>;
713 status = "okay";
714 };
715
716 &saradc {
717 vref-supply = <&vcca_1v8>;
718 status = "okay";
719 };
720
721 &sdhci {
722 bus-width = <8>;
723 max-frequency = <200000000>;
724 non-removable;
725 pinctrl-names = "default";
726 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
727 vmmc-supply = <&vcc_3v3>;
728 vqmmc-supply = <&vcc_1v8>;
729 status = "okay";
730 };
731
732 &sdmmc0 {
733 bus-width = <4>;
734 cap-sd-highspeed;
735 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
736 disable-wp;
737 pinctrl-names = "default";
738 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
739 sd-uhs-sdr50;
740 vmmc-supply = <&vcc3v3_sd>;
741 vqmmc-supply = <&vccio_sd>;
742 status = "okay";
743 };
744
745 &sdmmc2 {
746 bus-width = <4>;
747 disable-wp;
748 cap-sd-highspeed;
749 cap-sdio-irq;
750 keep-power-in-suspend;
751 mmc-pwrseq = <&sdio_pwrseq>;
752 non-removable;
753 pinctrl-names = "default";
754 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
755 sd-uhs-sdr12;
756 sd-uhs-sdr25;
757 sd-uhs-sdr50;
758 sd-uhs-sdr104;
759 vmmc-supply = <&vcc3v3_sys>;
760 vqmmc-supply = <&vcc_1v8>;
761 status = "okay";
762 };
763
764 &sfc {
765 #address-cells = <1>;
766 #size-cells = <0>;
767 status = "okay";
768
769 flash@0 {
770 compatible = "jedec,spi-nor";
771 reg = <0x0>;
772 spi-max-frequency = <104000000>;
773 spi-rx-bus-width = <4>;
774 spi-tx-bus-width = <1>;
775 };
776 };
777
778 &tsadc {
779 rockchip,hw-tshut-mode = <1>;
780 rockchip,hw-tshut-polarity = <0>;
781 status = "okay";
782 };
783
784 &uart1 {
785 pinctrl-names = "default";
786 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
787 uart-has-rtscts;
788 status = "okay";
789 };
790
791 &uart2 {
792 status = "okay";
793 };
794
795 &usb_host0_ehci {
796 status = "okay";
797 };
798
799 &usb_host0_ohci {
800 status = "okay";
801 };
802
803 &usb_host0_xhci {
804 extcon = <&usb2phy0>;
805 status = "okay";
806 };
807
808 &usb_host1_ehci {
809 status = "okay";
810 };
811
812 &usb_host1_ohci {
813 status = "okay";
814 };
815
816 &usb_host1_xhci {
817 status = "okay";
818 };
819
820 &usb2phy0 {
821 status = "okay";
822 };
823
824 &usb2phy0_host {
825 phy-supply = <&vcc5v0_usb_host>;
826 status = "okay";
827 };
828
829 &usb2phy0_otg {
830 phy-supply = <&vcc5v0_usb_otg>;
831 status = "okay";
832 };
833
834 &usb2phy1 {
835 status = "okay";
836 };
837
838 &usb2phy1_host {
839 phy-supply = <&vcc5v0_usb_host>;
840 status = "okay";
841 };
842
843 &usb2phy1_otg {
844 phy-supply = <&vcc5v0_usb_host>;
845 status = "okay";
846 };
847
848 &vop {
849 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
850 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
851 status = "okay";
852 };
853
854 &vop_mmu {
855 status = "okay";
856 };
857
858 &vp0 {
859 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
860 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
861 remote-endpoint = <&hdmi_in_vp0>;
862 };
863 };