Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3566-rock-3c.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 "rk3566t.dtsi"
9
10 / {
11 model = "Radxa ROCK 3C";
12 compatible = "radxa,rock-3c", "rockchip,rk3566";
13
14 aliases {
15 ethernet0 = &gmac1;
16 mmc0 = &sdhci;
17 mmc1 = &sdmmc0;
18 mmc2 = &sdmmc1;
19 };
20
21 chosen: chosen {
22 stdout-path = "serial2:1500000n8";
23 };
24
25 gmac1_clkin: external-gmac1-clock {
26 compatible = "fixed-clock";
27 clock-frequency = <125000000>;
28 clock-output-names = "gmac1_clkin";
29 #clock-cells = <0>;
30 };
31
32 hdmi-con {
33 compatible = "hdmi-connector";
34 type = "a";
35
36 port {
37 hdmi_con_in: endpoint {
38 remote-endpoint = <&hdmi_out_con>;
39 };
40 };
41 };
42
43 leds {
44 compatible = "gpio-leds";
45
46 led-0 {
47 gpios = <&gpio0 RK_PA0 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 = <&user_led2>;
53 };
54 };
55
56 sdio_pwrseq: sdio-pwrseq {
57 compatible = "mmc-pwrseq-simple";
58 clocks = <&rk809 1>;
59 clock-names = "ext_clock";
60 pinctrl-names = "default";
61 pinctrl-0 = <&wifi_reg_on_h>;
62 post-power-on-delay-ms = <100>;
63 power-off-delay-us = <5000000>;
64 reset-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
65 };
66
67 vcc5v_dcin: regulator-vcc5v-dcin {
68 compatible = "regulator-fixed";
69 regulator-name = "vcc5v_dcin";
70 regulator-always-on;
71 regulator-boot-on;
72 regulator-min-microvolt = <5000000>;
73 regulator-max-microvolt = <5000000>;
74 };
75
76 vcc3v3_pcie: regulator-vcc3v3-pcie {
77 compatible = "regulator-fixed";
78 enable-active-high;
79 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&pcie_pwr_en>;
82 regulator-name = "vcc3v3_pcie";
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85 vin-supply = <&vcc3v3_sys>;
86 };
87
88 vcc3v3_sys: regulator-vcc3v3-sys {
89 compatible = "regulator-fixed";
90 regulator-name = "vcc3v3_sys";
91 regulator-always-on;
92 regulator-boot-on;
93 regulator-min-microvolt = <3300000>;
94 regulator-max-microvolt = <3300000>;
95 vin-supply = <&vcc5v0_sys>;
96 };
97
98 vcc5v0_sys: regulator-vcc5v0-sys {
99 compatible = "regulator-fixed";
100 regulator-name = "vcc5v0_sys";
101 regulator-always-on;
102 regulator-boot-on;
103 regulator-min-microvolt = <5000000>;
104 regulator-max-microvolt = <5000000>;
105 vin-supply = <&vcc5v_dcin>;
106 };
107
108 vcc5v0_usb30_host: regulator-vcc5v0-usb30-host {
109 compatible = "regulator-fixed";
110 enable-active-high;
111 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&vcc5v0_usb30_host_en>;
114 regulator-name = "vcc5v0_usb30_host";
115 regulator-min-microvolt = <5000000>;
116 regulator-max-microvolt = <5000000>;
117 vin-supply = <&vcc5v0_sys>;
118 };
119
120 vcc5v0_usb_otg: regulator-vcc5v0-usb-otg {
121 compatible = "regulator-fixed";
122 enable-active-high;
123 gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&vcc5v0_usb_otg_en>;
126 regulator-name = "vcc5v0_usb_otg";
127 regulator-min-microvolt = <5000000>;
128 regulator-max-microvolt = <5000000>;
129 vin-supply = <&vcc5v0_sys>;
130 };
131
132 vcc_cam: regulator-vcc-cam {
133 compatible = "regulator-fixed";
134 enable-active-high;
135 gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&vcc_cam_en>;
138 regulator-name = "vcc_cam";
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
141 vin-supply = <&vcc3v3_sys>;
142
143 regulator-state-mem {
144 regulator-off-in-suspend;
145 };
146 };
147
148 vcc_mipi: regulator-vcc-mipi {
149 compatible = "regulator-fixed";
150 enable-active-high;
151 gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&vcc_mipi_en>;
154 regulator-name = "vcc_mipi";
155 regulator-min-microvolt = <3300000>;
156 regulator-max-microvolt = <3300000>;
157 vin-supply = <&vcc3v3_sys>;
158
159 regulator-state-mem {
160 regulator-off-in-suspend;
161 };
162 };
163 };
164
165 &combphy1 {
166 status = "okay";
167 };
168
169 &combphy2 {
170 status = "okay";
171 };
172
173 &cpu0 {
174 cpu-supply = <&vdd_cpu>;
175 };
176
177 &cpu1 {
178 cpu-supply = <&vdd_cpu>;
179 };
180
181 &cpu2 {
182 cpu-supply = <&vdd_cpu>;
183 };
184
185 &cpu3 {
186 cpu-supply = <&vdd_cpu>;
187 };
188
189 &gmac1 {
190 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
191 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>;
192 clock_in_out = "input";
193 phy-handle = <&rgmii_phy1>;
194 phy-mode = "rgmii-id";
195 phy-supply = <&vcc_3v3>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&gmac1m1_miim
198 &gmac1m1_tx_bus2
199 &gmac1m1_rx_bus2
200 &gmac1m1_rgmii_clk
201 &gmac1m1_rgmii_bus
202 &gmac1m1_clkinout>;
203 status = "okay";
204 };
205
206 &gpu {
207 mali-supply = <&vdd_gpu>;
208 status = "okay";
209 };
210
211 &hdmi {
212 avdd-0v9-supply = <&vdda0v9_image>;
213 avdd-1v8-supply = <&vcca1v8_image>;
214 status = "okay";
215 };
216
217 &hdmi_in {
218 hdmi_in_vp0: endpoint {
219 remote-endpoint = <&vp0_out_hdmi>;
220 };
221 };
222
223 &hdmi_out {
224 hdmi_out_con: endpoint {
225 remote-endpoint = <&hdmi_con_in>;
226 };
227 };
228
229 &hdmi_sound {
230 status = "okay";
231 };
232
233 &i2c0 {
234 status = "okay";
235
236 vdd_cpu: regulator@1c {
237 compatible = "tcs,tcs4525";
238 reg = <0x1c>;
239 fcs,suspend-voltage-selector = <1>;
240 regulator-name = "vdd_cpu";
241 regulator-always-on;
242 regulator-boot-on;
243 regulator-min-microvolt = <800000>;
244 regulator-max-microvolt = <1150000>;
245 regulator-ramp-delay = <2300>;
246 vin-supply = <&vcc5v0_sys>;
247
248 regulator-state-mem {
249 regulator-off-in-suspend;
250 };
251 };
252
253 rk809: pmic@20 {
254 compatible = "rockchip,rk809";
255 reg = <0x20>;
256 interrupt-parent = <&gpio0>;
257 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
258 clock-output-names = "rk808-clkout1", "rk808-clkout2";
259 pinctrl-names = "default";
260 pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>;
261 system-power-controller;
262 vcc1-supply = <&vcc3v3_sys>;
263 vcc2-supply = <&vcc3v3_sys>;
264 vcc3-supply = <&vcc3v3_sys>;
265 vcc4-supply = <&vcc3v3_sys>;
266 vcc5-supply = <&vcc3v3_sys>;
267 vcc6-supply = <&vcc3v3_sys>;
268 vcc7-supply = <&vcc3v3_sys>;
269 vcc8-supply = <&vcc3v3_sys>;
270 vcc9-supply = <&vcc3v3_sys>;
271 wakeup-source;
272 #clock-cells = <1>;
273
274 regulators {
275 vdd_logic: DCDC_REG1 {
276 regulator-name = "vdd_logic";
277 regulator-always-on;
278 regulator-boot-on;
279 regulator-initial-mode = <0x2>;
280 regulator-min-microvolt = <500000>;
281 regulator-max-microvolt = <1350000>;
282 regulator-ramp-delay = <6001>;
283
284 regulator-state-mem {
285 regulator-off-in-suspend;
286 regulator-suspend-microvolt = <900000>;
287 };
288 };
289
290 vdd_gpu: DCDC_REG2 {
291 regulator-name = "vdd_gpu";
292 regulator-always-on;
293 regulator-boot-on;
294 regulator-initial-mode = <0x2>;
295 regulator-min-microvolt = <500000>;
296 regulator-max-microvolt = <1350000>;
297 regulator-ramp-delay = <6001>;
298
299 regulator-state-mem {
300 regulator-off-in-suspend;
301 regulator-suspend-microvolt = <900000>;
302 };
303 };
304
305 vcc_ddr: DCDC_REG3 {
306 regulator-name = "vcc_ddr";
307 regulator-always-on;
308 regulator-boot-on;
309 regulator-initial-mode = <0x2>;
310
311 regulator-state-mem {
312 regulator-on-in-suspend;
313 };
314 };
315
316 vdd_npu: DCDC_REG4 {
317 regulator-name = "vdd_npu";
318 regulator-initial-mode = <0x2>;
319 regulator-min-microvolt = <500000>;
320 regulator-max-microvolt = <1350000>;
321 regulator-ramp-delay = <6001>;
322
323 regulator-state-mem {
324 regulator-off-in-suspend;
325 };
326 };
327
328 vcc_1v8: DCDC_REG5 {
329 regulator-name = "vcc_1v8";
330 regulator-always-on;
331 regulator-boot-on;
332 regulator-min-microvolt = <1800000>;
333 regulator-max-microvolt = <1800000>;
334
335 regulator-state-mem {
336 regulator-off-in-suspend;
337 };
338 };
339
340 vdda0v9_image: LDO_REG1 {
341 regulator-name = "vdda0v9_image";
342 regulator-min-microvolt = <900000>;
343 regulator-max-microvolt = <900000>;
344
345 regulator-state-mem {
346 regulator-off-in-suspend;
347 };
348 };
349
350 vdda_0v9: LDO_REG2 {
351 regulator-name = "vdda_0v9";
352 regulator-always-on;
353 regulator-boot-on;
354 regulator-min-microvolt = <900000>;
355 regulator-max-microvolt = <900000>;
356
357 regulator-state-mem {
358 regulator-off-in-suspend;
359 };
360 };
361
362 vdda0v9_pmu: LDO_REG3 {
363 regulator-name = "vdda0v9_pmu";
364 regulator-always-on;
365 regulator-boot-on;
366 regulator-min-microvolt = <900000>;
367 regulator-max-microvolt = <900000>;
368
369 regulator-state-mem {
370 regulator-on-in-suspend;
371 regulator-suspend-microvolt = <900000>;
372 };
373 };
374
375 vccio_acodec: LDO_REG4 {
376 regulator-name = "vccio_acodec";
377 regulator-always-on;
378 regulator-boot-on;
379 regulator-min-microvolt = <3300000>;
380 regulator-max-microvolt = <3300000>;
381
382 regulator-state-mem {
383 regulator-off-in-suspend;
384 };
385 };
386
387 vccio_sd: LDO_REG5 {
388 regulator-name = "vccio_sd";
389 regulator-min-microvolt = <1800000>;
390 regulator-max-microvolt = <3300000>;
391
392 regulator-state-mem {
393 regulator-off-in-suspend;
394 };
395 };
396
397 vcc3v3_pmu: LDO_REG6 {
398 regulator-name = "vcc3v3_pmu";
399 regulator-always-on;
400 regulator-boot-on;
401 regulator-min-microvolt = <3300000>;
402 regulator-max-microvolt = <3300000>;
403
404 regulator-state-mem {
405 regulator-on-in-suspend;
406 regulator-suspend-microvolt = <3300000>;
407 };
408 };
409
410 vcca_1v8: LDO_REG7 {
411 regulator-name = "vcca_1v8";
412 regulator-always-on;
413 regulator-boot-on;
414 regulator-min-microvolt = <1800000>;
415 regulator-max-microvolt = <1800000>;
416
417 regulator-state-mem {
418 regulator-off-in-suspend;
419 };
420 };
421
422 vcca1v8_pmu: LDO_REG8 {
423 regulator-name = "vcca1v8_pmu";
424 regulator-always-on;
425 regulator-boot-on;
426 regulator-min-microvolt = <1800000>;
427 regulator-max-microvolt = <1800000>;
428
429 regulator-state-mem {
430 regulator-on-in-suspend;
431 regulator-suspend-microvolt = <1800000>;
432 };
433 };
434
435 vcca1v8_image: LDO_REG9 {
436 regulator-name = "vcca1v8_image";
437 regulator-min-microvolt = <1800000>;
438 regulator-max-microvolt = <1800000>;
439
440 regulator-state-mem {
441 regulator-off-in-suspend;
442 };
443 };
444
445 vcc_3v3: SWITCH_REG1 {
446 regulator-name = "vcc_3v3";
447 regulator-always-on;
448 regulator-boot-on;
449
450 regulator-state-mem {
451 regulator-off-in-suspend;
452 };
453 };
454
455 vcc3v3_sd: SWITCH_REG2 {
456 regulator-name = "vcc3v3_sd";
457
458 regulator-state-mem {
459 regulator-off-in-suspend;
460 };
461 };
462 };
463 };
464
465 eeprom: eeprom@50 {
466 compatible = "belling,bl24c16a", "atmel,24c16";
467 reg = <0x50>;
468 pagesize = <16>;
469 read-only;
470 vcc-supply = <&vcca1v8_pmu>;
471 };
472 };
473
474 &i2s0_8ch {
475 status = "okay";
476 };
477
478 &i2s1_8ch {
479 pinctrl-names = "default";
480 pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>;
481 rockchip,trcm-sync-tx-only;
482 status = "okay";
483 };
484
485 &mdio1 {
486 rgmii_phy1: ethernet-phy@1 {
487 compatible = "ethernet-phy-ieee802.3-c22";
488 reg = <0x1>;
489 reset-assert-us = <20000>;
490 reset-deassert-us = <100000>;
491 reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
492 };
493 };
494
495 &pcie2x1 {
496 pinctrl-names = "default";
497 pinctrl-0 = <&pcie_reset_h>;
498 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
499 vpcie3v3-supply = <&vcc3v3_pcie>;
500 status = "okay";
501 };
502
503 &pinctrl {
504 bluetooth {
505 bt_reg_on_h: bt-reg-on-h {
506 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
507 };
508
509 bt_wake_host_h: bt-wake-host-h {
510 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
511 };
512
513 bt_host_wake_h: bt-host-wake-h {
514 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
515 };
516 };
517
518 cam {
519 vcc_cam_en: vcc_cam_en {
520 rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
521 };
522 };
523
524 display {
525 vcc_mipi_en: vcc_mipi_en {
526 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
527 };
528 };
529
530 leds {
531 user_led2: user-led2 {
532 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
533 };
534 };
535
536 pcie {
537 pcie_pwr_en: pcie-pwr-en {
538 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
539 };
540
541 pcie_reset_h: pcie-reset-h {
542 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
543 };
544 };
545
546 pmic {
547 pmic_int_l: pmic-int-l {
548 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
549 };
550 };
551
552 usb {
553 vcc5v0_usb30_host_en: vcc5v0-usb30-host-en {
554 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
555 };
556
557 vcc5v0_usb_otg_en: vcc5v0-usb-otg-en {
558 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
559 };
560 };
561
562 wifi {
563 wifi_host_wake_h: wifi-host-wake-h {
564 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
565 };
566
567 wifi_reg_on_h: wifi-reg-on-h {
568 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
569 };
570 };
571 };
572
573 &pmu_io_domains {
574 pmuio1-supply = <&vcc3v3_pmu>;
575 pmuio2-supply = <&vcca1v8_pmu>;
576 vccio1-supply = <&vccio_acodec>;
577 vccio2-supply = <&vcc_1v8>;
578 vccio3-supply = <&vccio_sd>;
579 vccio4-supply = <&vcca1v8_pmu>;
580 vccio5-supply = <&vcc_3v3>;
581 vccio6-supply = <&vcc_3v3>;
582 vccio7-supply = <&vcc_3v3>;
583 status = "okay";
584 };
585
586 &saradc {
587 vref-supply = <&vcca_1v8>;
588 status = "okay";
589 };
590
591 &sdhci {
592 bus-width = <8>;
593 max-frequency = <200000000>;
594 mmc-hs200-1_8v;
595 non-removable;
596 pinctrl-names = "default";
597 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
598 vmmc-supply = <&vcc_3v3>;
599 vqmmc-supply = <&vcc_1v8>;
600 status = "okay";
601 };
602
603 &sdmmc0 {
604 bus-width = <4>;
605 cap-sd-highspeed;
606 disable-wp;
607 pinctrl-names = "default";
608 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
609 sd-uhs-sdr50;
610 vmmc-supply = <&vcc3v3_sys>;
611 vqmmc-supply = <&vccio_sd>;
612 status = "okay";
613 };
614
615 &sdmmc1 {
616 bus-width = <4>;
617 cap-sd-highspeed;
618 cap-sdio-irq;
619 keep-power-in-suspend;
620 mmc-pwrseq = <&sdio_pwrseq>;
621 non-removable;
622 pinctrl-names = "default";
623 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk &sdmmc1_cmd>;
624 sd-uhs-sdr104;
625 vmmc-supply = <&vcc3v3_sys>;
626 vqmmc-supply = <&vcca1v8_pmu>;
627 status = "okay";
628 };
629
630 &sfc {
631 #address-cells = <1>;
632 #size-cells = <0>;
633 status = "okay";
634
635 flash@0 {
636 compatible = "jedec,spi-nor";
637 reg = <0x0>;
638 spi-max-frequency = <104000000>;
639 spi-rx-bus-width = <4>;
640 spi-tx-bus-width = <1>;
641 vcc-supply = <&vcc_1v8>;
642 };
643 };
644
645 &tsadc {
646 rockchip,hw-tshut-mode = <1>;
647 rockchip,hw-tshut-polarity = <0>;
648 status = "okay";
649 };
650
651 &uart1 {
652 pinctrl-names = "default";
653 pinctrl-0 = <&uart1m0_ctsn &uart1m0_rtsn &uart1m0_xfer>;
654 status = "okay";
655 };
656
657 &uart2 {
658 status = "okay";
659 };
660
661 &usb_host0_ehci {
662 status = "okay";
663 };
664
665 &usb_host0_ohci {
666 status = "okay";
667 };
668
669 &usb_host0_xhci {
670 dr_mode = "host";
671 status = "okay";
672 };
673
674 &usb_host1_ehci {
675 status = "okay";
676 };
677
678 &usb_host1_ohci {
679 status = "okay";
680 };
681
682 &usb_host1_xhci {
683 status = "okay";
684 };
685
686 &usb2phy0 {
687 status = "okay";
688 };
689
690 &usb2phy0_host {
691 phy-supply = <&vcc5v0_usb30_host>;
692 status = "okay";
693 };
694
695 &usb2phy0_otg {
696 phy-supply = <&vcc5v0_usb_otg>;
697 status = "okay";
698 };
699
700 &usb2phy1 {
701 status = "okay";
702 };
703
704 &usb2phy1_host {
705 phy-supply = <&vcc5v0_usb30_host>;
706 status = "okay";
707 };
708
709 &usb2phy1_otg {
710 phy-supply = <&vcc5v0_usb30_host>;
711 status = "okay";
712 };
713
714 &vop {
715 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
716 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
717 status = "okay";
718 };
719
720 &vop_mmu {
721 status = "okay";
722 };
723
724 &vp0 {
725 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
726 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
727 remote-endpoint = <&hdmi_in_vp0>;
728 };
729 };