1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
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>
11 model = "Radxa ROCK3 Model A";
12 compatible = "radxa,rock3a", "rockchip,rk3568";
21 stdout-path = "serial2:1500000n8";
25 compatible = "hdmi-connector";
29 hdmi_con_in: endpoint {
30 remote-endpoint = <&hdmi_out_con>;
35 gmac1_clkin: external-gmac1-clock {
36 compatible = "fixed-clock";
37 clock-frequency = <125000000>;
38 clock-output-names = "gmac1_clkin";
43 compatible = "gpio-leds";
46 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
47 function = LED_FUNCTION_HEARTBEAT;
48 color = <LED_COLOR_ID_BLUE>;
49 linux,default-trigger = "heartbeat";
50 pinctrl-names = "default";
51 pinctrl-0 = <&led_user_en>;
56 compatible = "simple-audio-card";
57 simple-audio-card,format = "i2s";
58 simple-audio-card,name = "Analog RK809";
59 simple-audio-card,mclk-fs = <256>;
61 simple-audio-card,cpu {
62 sound-dai = <&i2s1_8ch>;
65 simple-audio-card,codec {
70 sdio_pwrseq: sdio-pwrseq {
71 compatible = "mmc-pwrseq-simple";
73 clock-names = "ext_clock";
74 pinctrl-names = "default";
75 pinctrl-0 = <&wifi_enable>;
76 post-power-on-delay-ms = <100>;
77 power-off-delay-us = <5000000>;
78 reset-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>;
81 vcc12v_dcin: vcc12v-dcin-regulator {
82 compatible = "regulator-fixed";
83 regulator-name = "vcc12v_dcin";
88 pcie30_avdd0v9: pcie30-avdd0v9-regulator {
89 compatible = "regulator-fixed";
90 regulator-name = "pcie30_avdd0v9";
93 regulator-min-microvolt = <900000>;
94 regulator-max-microvolt = <900000>;
95 vin-supply = <&vcc3v3_sys>;
98 pcie30_avdd1v8: pcie30-avdd1v8-regulator {
99 compatible = "regulator-fixed";
100 regulator-name = "pcie30_avdd1v8";
103 regulator-min-microvolt = <1800000>;
104 regulator-max-microvolt = <1800000>;
105 vin-supply = <&vcc3v3_sys>;
108 /* pi6c pcie clock generator */
109 vcc3v3_pi6c_03: vcc3v3-pi6c-03-regulator {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc3v3_pi6c_03";
114 regulator-min-microvolt = <3300000>;
115 regulator-max-microvolt = <3300000>;
116 vin-supply = <&vcc5v0_sys>;
119 vcc3v3_pcie: vcc3v3-pcie-regulator {
120 compatible = "regulator-fixed";
122 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&pcie_enable_h>;
125 regulator-name = "vcc3v3_pcie";
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 vin-supply = <&vcc5v0_sys>;
131 vcc3v3_sys: vcc3v3-sys-regulator {
132 compatible = "regulator-fixed";
133 regulator-name = "vcc3v3_sys";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 vin-supply = <&vcc12v_dcin>;
141 vcc5v0_sys: vcc5v0-sys-regulator {
142 compatible = "regulator-fixed";
143 regulator-name = "vcc5v0_sys";
146 regulator-min-microvolt = <5000000>;
147 regulator-max-microvolt = <5000000>;
148 vin-supply = <&vcc12v_dcin>;
151 vcc5v0_usb: vcc5v0-usb-regulator {
152 compatible = "regulator-fixed";
153 regulator-name = "vcc5v0_usb";
156 regulator-min-microvolt = <5000000>;
157 regulator-max-microvolt = <5000000>;
158 vin-supply = <&vcc12v_dcin>;
161 vcc5v0_usb_host: vcc5v0-usb-host-regulator {
162 compatible = "regulator-fixed";
164 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&vcc5v0_usb_host_en>;
167 regulator-name = "vcc5v0_usb_host";
168 regulator-min-microvolt = <5000000>;
169 regulator-max-microvolt = <5000000>;
170 vin-supply = <&vcc5v0_usb>;
173 vcc5v0_usb_hub: vcc5v0-usb-hub-regulator {
174 compatible = "regulator-fixed";
176 gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&vcc5v0_usb_hub_en>;
179 regulator-name = "vcc5v0_usb_hub";
181 vin-supply = <&vcc5v0_usb>;
184 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
185 compatible = "regulator-fixed";
187 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&vcc5v0_usb_otg_en>;
190 regulator-name = "vcc5v0_usb_otg";
191 regulator-min-microvolt = <5000000>;
192 regulator-max-microvolt = <5000000>;
193 vin-supply = <&vcc5v0_usb>;
196 vcc_cam: vcc-cam-regulator {
197 compatible = "regulator-fixed";
199 gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&vcc_cam_en>;
202 regulator-name = "vcc_cam";
203 regulator-min-microvolt = <3300000>;
204 regulator-max-microvolt = <3300000>;
205 vin-supply = <&vcc3v3_sys>;
207 regulator-state-mem {
208 regulator-off-in-suspend;
212 vcc_mipi: vcc-mipi-regulator {
213 compatible = "regulator-fixed";
215 gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&vcc_mipi_en>;
218 regulator-name = "vcc_mipi";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
221 vin-supply = <&vcc3v3_sys>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
242 cpu-supply = <&vdd_cpu>;
246 cpu-supply = <&vdd_cpu>;
250 cpu-supply = <&vdd_cpu>;
254 cpu-supply = <&vdd_cpu>;
258 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
259 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>;
260 clock_in_out = "input";
261 phy-handle = <&rgmii_phy1>;
262 phy-mode = "rgmii-id";
263 phy-supply = <&vcc_3v3>;
264 pinctrl-names = "default";
265 pinctrl-0 = <&gmac1m1_miim
275 mali-supply = <&vdd_gpu>;
280 avdd-0v9-supply = <&vdda0v9_image>;
281 avdd-1v8-supply = <&vcca1v8_image>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm1_cec>;
288 hdmi_in_vp0: endpoint {
289 remote-endpoint = <&vp0_out_hdmi>;
294 hdmi_out_con: endpoint {
295 remote-endpoint = <&hdmi_con_in>;
306 vdd_cpu: regulator@1c {
307 compatible = "tcs,tcs4525";
309 fcs,suspend-voltage-selector = <1>;
310 regulator-name = "vdd_cpu";
313 regulator-min-microvolt = <800000>;
314 regulator-max-microvolt = <1150000>;
315 regulator-ramp-delay = <2300>;
316 vin-supply = <&vcc5v0_sys>;
318 regulator-state-mem {
319 regulator-off-in-suspend;
324 compatible = "rockchip,rk809";
326 interrupt-parent = <&gpio0>;
327 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
328 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
329 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
331 clock-names = "mclk";
332 clocks = <&cru I2S1_MCLKOUT_TX>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
335 rockchip,system-power-controller;
336 #sound-dai-cells = <0>;
337 vcc1-supply = <&vcc3v3_sys>;
338 vcc2-supply = <&vcc3v3_sys>;
339 vcc3-supply = <&vcc3v3_sys>;
340 vcc4-supply = <&vcc3v3_sys>;
341 vcc5-supply = <&vcc3v3_sys>;
342 vcc6-supply = <&vcc3v3_sys>;
343 vcc7-supply = <&vcc3v3_sys>;
344 vcc8-supply = <&vcc3v3_sys>;
345 vcc9-supply = <&vcc3v3_sys>;
349 vdd_logic: DCDC_REG1 {
350 regulator-name = "vdd_logic";
353 regulator-init-microvolt = <900000>;
354 regulator-initial-mode = <0x2>;
355 regulator-min-microvolt = <500000>;
356 regulator-max-microvolt = <1350000>;
357 regulator-ramp-delay = <6001>;
359 regulator-state-mem {
360 regulator-off-in-suspend;
365 regulator-name = "vdd_gpu";
367 regulator-init-microvolt = <900000>;
368 regulator-initial-mode = <0x2>;
369 regulator-min-microvolt = <500000>;
370 regulator-max-microvolt = <1350000>;
371 regulator-ramp-delay = <6001>;
373 regulator-state-mem {
374 regulator-off-in-suspend;
379 regulator-name = "vcc_ddr";
382 regulator-initial-mode = <0x2>;
384 regulator-state-mem {
385 regulator-on-in-suspend;
390 regulator-name = "vdd_npu";
391 regulator-init-microvolt = <900000>;
392 regulator-initial-mode = <0x2>;
393 regulator-min-microvolt = <500000>;
394 regulator-max-microvolt = <1350000>;
395 regulator-ramp-delay = <6001>;
397 regulator-state-mem {
398 regulator-off-in-suspend;
403 regulator-name = "vcc_1v8";
406 regulator-min-microvolt = <1800000>;
407 regulator-max-microvolt = <1800000>;
409 regulator-state-mem {
410 regulator-off-in-suspend;
414 vdda0v9_image: LDO_REG1 {
415 regulator-name = "vdda0v9_image";
416 regulator-min-microvolt = <900000>;
417 regulator-max-microvolt = <900000>;
419 regulator-state-mem {
420 regulator-off-in-suspend;
425 regulator-name = "vdda_0v9";
428 regulator-min-microvolt = <900000>;
429 regulator-max-microvolt = <900000>;
431 regulator-state-mem {
432 regulator-off-in-suspend;
436 vdda0v9_pmu: LDO_REG3 {
437 regulator-name = "vdda0v9_pmu";
440 regulator-min-microvolt = <900000>;
441 regulator-max-microvolt = <900000>;
443 regulator-state-mem {
444 regulator-on-in-suspend;
445 regulator-suspend-microvolt = <900000>;
449 vccio_acodec: LDO_REG4 {
450 regulator-name = "vccio_acodec";
452 regulator-min-microvolt = <3300000>;
453 regulator-max-microvolt = <3300000>;
455 regulator-state-mem {
456 regulator-off-in-suspend;
461 regulator-name = "vccio_sd";
462 regulator-min-microvolt = <1800000>;
463 regulator-max-microvolt = <3300000>;
465 regulator-state-mem {
466 regulator-off-in-suspend;
470 vcc3v3_pmu: LDO_REG6 {
471 regulator-name = "vcc3v3_pmu";
474 regulator-min-microvolt = <3300000>;
475 regulator-max-microvolt = <3300000>;
477 regulator-state-mem {
478 regulator-on-in-suspend;
479 regulator-suspend-microvolt = <3300000>;
484 regulator-name = "vcca_1v8";
487 regulator-min-microvolt = <1800000>;
488 regulator-max-microvolt = <1800000>;
490 regulator-state-mem {
491 regulator-off-in-suspend;
495 vcca1v8_pmu: LDO_REG8 {
496 regulator-name = "vcca1v8_pmu";
499 regulator-min-microvolt = <1800000>;
500 regulator-max-microvolt = <1800000>;
502 regulator-state-mem {
503 regulator-on-in-suspend;
504 regulator-suspend-microvolt = <1800000>;
508 vcca1v8_image: LDO_REG9 {
509 regulator-name = "vcca1v8_image";
510 regulator-min-microvolt = <1800000>;
511 regulator-max-microvolt = <1800000>;
513 regulator-state-mem {
514 regulator-off-in-suspend;
518 vcc_3v3: SWITCH_REG1 {
519 regulator-name = "vcc_3v3";
523 regulator-state-mem {
524 regulator-off-in-suspend;
528 vcc3v3_sd: SWITCH_REG2 {
529 regulator-name = "vcc3v3_sd";
531 regulator-state-mem {
532 regulator-off-in-suspend;
544 pinctrl-names = "default";
545 pinctrl-0 = <&i2c3m1_xfer>;
550 pinctrl-names = "default";
551 pinctrl-0 = <&i2c4m1_xfer>;
559 compatible = "haoyu,hym8563";
561 interrupt-parent = <&gpio0>;
562 interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
564 clock-output-names = "rtcic_32kout";
565 pinctrl-names = "default";
566 pinctrl-0 = <&hym8563_int>;
576 pinctrl-names = "default";
577 pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>;
578 rockchip,trcm-sync-tx-only;
583 rockchip,trcm-sync-tx-only;
588 rgmii_phy1: ethernet-phy@0 {
589 compatible = "ethernet-phy-ieee802.3-c22";
591 pinctrl-names = "default";
592 pinctrl-0 = <ð_phy_rst>;
593 reset-assert-us = <20000>;
594 reset-deassert-us = <100000>;
595 reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
600 pinctrl-names = "default";
601 pinctrl-0 = <&pcie_reset_h>;
602 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
603 vpcie3v3-supply = <&vcc3v3_pcie>;
608 phy-supply = <&vcc3v3_pi6c_03>;
613 pinctrl-names = "default";
614 pinctrl-0 = <&pcie30x2m1_pins>;
615 reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
616 vpcie3v3-supply = <&vcc3v3_pcie>;
622 vcc_cam_en: vcc_cam_en {
623 rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
628 vcc_mipi_en: vcc_mipi_en {
629 rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
634 eth_phy_rst: eth_phy_rst {
635 rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
640 hym8563_int: hym8563-int {
641 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
646 led_user_en: led_user_en {
647 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
652 pcie_enable_h: pcie-enable-h {
653 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
656 pcie_reset_h: pcie-reset-h {
657 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
664 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
669 vcc5v0_usb_host_en: vcc5v0_usb_host_en {
670 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
672 vcc5v0_usb_hub_en: vcc5v0_usb_hub_en {
673 rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
675 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
676 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
681 bt_enable: bt-enable {
682 rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
685 bt_host_wake: bt-host-wake {
686 rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
690 rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
695 wifi_enable: wifi-enable {
696 rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
702 pmuio1-supply = <&vcc3v3_pmu>;
703 pmuio2-supply = <&vcc3v3_pmu>;
704 vccio1-supply = <&vccio_acodec>;
705 vccio2-supply = <&vcc_1v8>;
706 vccio3-supply = <&vccio_sd>;
707 vccio4-supply = <&vcc_1v8>;
708 vccio5-supply = <&vcc_3v3>;
709 vccio6-supply = <&vcc_1v8>;
710 vccio7-supply = <&vcc_3v3>;
715 vref-supply = <&vcca_1v8>;
721 max-frequency = <200000000>;
723 pinctrl-names = "default";
724 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
725 vmmc-supply = <&vcc_3v3>;
726 vqmmc-supply = <&vcc_1v8>;
733 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
735 pinctrl-names = "default";
736 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
738 vmmc-supply = <&vcc3v3_sd>;
739 vqmmc-supply = <&vccio_sd>;
748 keep-power-in-suspend;
749 mmc-pwrseq = <&sdio_pwrseq>;
751 pinctrl-names = "default";
752 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
754 vmmc-supply = <&vcc3v3_sys>;
755 vqmmc-supply = <&vcc_1v8>;
760 rockchip,hw-tshut-mode = <1>;
761 rockchip,hw-tshut-polarity = <0>;
766 pinctrl-names = "default";
767 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
772 compatible = "brcm,bcm43438-bt";
775 device-wakeup-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
776 host-wakeup-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
777 shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
778 pinctrl-names = "default";
779 pinctrl-0 = <&bt_host_wake &bt_wake &bt_enable>;
780 vbat-supply = <&vcc3v3_sys>;
781 vddio-supply = <&vcc_1v8>;
782 /* vddio comes from regulator on module, use IO bank voltage instead */
799 extcon = <&usb2phy0>;
820 phy-supply = <&vcc5v0_usb_host>;
825 phy-supply = <&vcc5v0_usb_otg>;
834 phy-supply = <&vcc5v0_usb_host>;
839 phy-supply = <&vcc5v0_usb_host>;
844 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
845 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
854 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
855 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
856 remote-endpoint = <&hdmi_in_vp0>;