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";
22 stdout-path = "serial2:1500000n8";
26 compatible = "hdmi-connector";
30 hdmi_con_in: endpoint {
31 remote-endpoint = <&hdmi_out_con>;
36 gmac1_clkin: external-gmac1-clock {
37 compatible = "fixed-clock";
38 clock-frequency = <125000000>;
39 clock-output-names = "gmac1_clkin";
44 compatible = "gpio-leds";
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>;
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>;
62 simple-audio-card,cpu {
63 sound-dai = <&i2s1_8ch>;
66 simple-audio-card,codec {
71 sdio_pwrseq: sdio-pwrseq {
72 compatible = "mmc-pwrseq-simple";
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>;
82 vcc12v_dcin: vcc12v-dcin-regulator {
83 compatible = "regulator-fixed";
84 regulator-name = "vcc12v_dcin";
89 pcie30_avdd0v9: pcie30-avdd0v9-regulator {
90 compatible = "regulator-fixed";
91 regulator-name = "pcie30_avdd0v9";
94 regulator-min-microvolt = <900000>;
95 regulator-max-microvolt = <900000>;
96 vin-supply = <&vcc3v3_sys>;
99 pcie30_avdd1v8: pcie30-avdd1v8-regulator {
100 compatible = "regulator-fixed";
101 regulator-name = "pcie30_avdd1v8";
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <1800000>;
106 vin-supply = <&vcc3v3_sys>;
109 /* pi6c pcie clock generator */
110 vcc3v3_pi6c_03: vcc3v3-pi6c-03-regulator {
111 compatible = "regulator-fixed";
112 regulator-name = "vcc3v3_pi6c_03";
115 regulator-min-microvolt = <3300000>;
116 regulator-max-microvolt = <3300000>;
117 vin-supply = <&vcc5v0_sys>;
120 vcc3v3_pcie: vcc3v3-pcie-regulator {
121 compatible = "regulator-fixed";
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>;
132 vcc3v3_sys: vcc3v3-sys-regulator {
133 compatible = "regulator-fixed";
134 regulator-name = "vcc3v3_sys";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
139 vin-supply = <&vcc12v_dcin>;
142 vcc5v0_sys: vcc5v0-sys-regulator {
143 compatible = "regulator-fixed";
144 regulator-name = "vcc5v0_sys";
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
149 vin-supply = <&vcc12v_dcin>;
152 vcc5v0_usb: vcc5v0-usb-regulator {
153 compatible = "regulator-fixed";
154 regulator-name = "vcc5v0_usb";
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
159 vin-supply = <&vcc12v_dcin>;
162 vcc5v0_usb_host: vcc5v0-usb-host-regulator {
163 compatible = "regulator-fixed";
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>;
174 vcc5v0_usb_hub: vcc5v0-usb-hub-regulator {
175 compatible = "regulator-fixed";
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";
182 vin-supply = <&vcc5v0_usb>;
185 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
186 compatible = "regulator-fixed";
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>;
197 vcc_cam: vcc-cam-regulator {
198 compatible = "regulator-fixed";
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>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
213 vcc_mipi: vcc-mipi-regulator {
214 compatible = "regulator-fixed";
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>;
224 regulator-state-mem {
225 regulator-off-in-suspend;
243 cpu-supply = <&vdd_cpu>;
247 cpu-supply = <&vdd_cpu>;
251 cpu-supply = <&vdd_cpu>;
255 cpu-supply = <&vdd_cpu>;
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
276 mali-supply = <&vdd_gpu>;
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>;
289 hdmi_in_vp0: endpoint {
290 remote-endpoint = <&vp0_out_hdmi>;
295 hdmi_out_con: endpoint {
296 remote-endpoint = <&hdmi_con_in>;
307 vdd_cpu: regulator@1c {
308 compatible = "tcs,tcs4525";
310 fcs,suspend-voltage-selector = <1>;
311 regulator-name = "vdd_cpu";
314 regulator-min-microvolt = <800000>;
315 regulator-max-microvolt = <1150000>;
316 regulator-ramp-delay = <2300>;
317 vin-supply = <&vcc5v0_sys>;
319 regulator-state-mem {
320 regulator-off-in-suspend;
325 compatible = "rockchip,rk809";
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>;
332 clock-names = "mclk";
333 clocks = <&cru I2S1_MCLKOUT_TX>;
334 pinctrl-names = "default";
335 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
336 rockchip,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>;
350 vdd_logic: DCDC_REG1 {
351 regulator-name = "vdd_logic";
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-initial-mode = <0x2>;
368 regulator-min-microvolt = <500000>;
369 regulator-max-microvolt = <1350000>;
370 regulator-ramp-delay = <6001>;
372 regulator-state-mem {
373 regulator-off-in-suspend;
378 regulator-name = "vcc_ddr";
381 regulator-initial-mode = <0x2>;
383 regulator-state-mem {
384 regulator-on-in-suspend;
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>;
395 regulator-state-mem {
396 regulator-off-in-suspend;
401 regulator-name = "vcc_1v8";
404 regulator-min-microvolt = <1800000>;
405 regulator-max-microvolt = <1800000>;
407 regulator-state-mem {
408 regulator-off-in-suspend;
412 vdda0v9_image: LDO_REG1 {
413 regulator-name = "vdda0v9_image";
414 regulator-min-microvolt = <900000>;
415 regulator-max-microvolt = <900000>;
417 regulator-state-mem {
418 regulator-off-in-suspend;
423 regulator-name = "vdda_0v9";
426 regulator-min-microvolt = <900000>;
427 regulator-max-microvolt = <900000>;
429 regulator-state-mem {
430 regulator-off-in-suspend;
434 vdda0v9_pmu: LDO_REG3 {
435 regulator-name = "vdda0v9_pmu";
438 regulator-min-microvolt = <900000>;
439 regulator-max-microvolt = <900000>;
441 regulator-state-mem {
442 regulator-on-in-suspend;
443 regulator-suspend-microvolt = <900000>;
447 vccio_acodec: LDO_REG4 {
448 regulator-name = "vccio_acodec";
450 regulator-min-microvolt = <3300000>;
451 regulator-max-microvolt = <3300000>;
453 regulator-state-mem {
454 regulator-off-in-suspend;
459 regulator-name = "vccio_sd";
460 regulator-min-microvolt = <1800000>;
461 regulator-max-microvolt = <3300000>;
463 regulator-state-mem {
464 regulator-off-in-suspend;
468 vcc3v3_pmu: LDO_REG6 {
469 regulator-name = "vcc3v3_pmu";
472 regulator-min-microvolt = <3300000>;
473 regulator-max-microvolt = <3300000>;
475 regulator-state-mem {
476 regulator-on-in-suspend;
477 regulator-suspend-microvolt = <3300000>;
482 regulator-name = "vcca_1v8";
485 regulator-min-microvolt = <1800000>;
486 regulator-max-microvolt = <1800000>;
488 regulator-state-mem {
489 regulator-off-in-suspend;
493 vcca1v8_pmu: LDO_REG8 {
494 regulator-name = "vcca1v8_pmu";
497 regulator-min-microvolt = <1800000>;
498 regulator-max-microvolt = <1800000>;
500 regulator-state-mem {
501 regulator-on-in-suspend;
502 regulator-suspend-microvolt = <1800000>;
506 vcca1v8_image: LDO_REG9 {
507 regulator-name = "vcca1v8_image";
508 regulator-min-microvolt = <1800000>;
509 regulator-max-microvolt = <1800000>;
511 regulator-state-mem {
512 regulator-off-in-suspend;
516 vcc_3v3: SWITCH_REG1 {
517 regulator-name = "vcc_3v3";
521 regulator-state-mem {
522 regulator-off-in-suspend;
526 vcc3v3_sd: SWITCH_REG2 {
527 regulator-name = "vcc3v3_sd";
529 regulator-state-mem {
530 regulator-off-in-suspend;
542 pinctrl-names = "default";
543 pinctrl-0 = <&i2c3m1_xfer>;
548 pinctrl-names = "default";
549 pinctrl-0 = <&i2c4m1_xfer>;
557 compatible = "haoyu,hym8563";
559 interrupt-parent = <&gpio0>;
560 interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
562 clock-output-names = "rtcic_32kout";
563 pinctrl-names = "default";
564 pinctrl-0 = <&hym8563_int>;
574 pinctrl-names = "default";
575 pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>;
576 rockchip,trcm-sync-tx-only;
581 rockchip,trcm-sync-tx-only;
586 rgmii_phy1: ethernet-phy@0 {
587 compatible = "ethernet-phy-ieee802.3-c22";
589 pinctrl-names = "default";
590 pinctrl-0 = <ð_phy_rst>;
591 reset-assert-us = <20000>;
592 reset-deassert-us = <100000>;
593 reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&pcie_reset_h>;
600 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
601 vpcie3v3-supply = <&vcc3v3_pcie>;
606 phy-supply = <&vcc3v3_pi6c_03>;
611 pinctrl-names = "default";
612 pinctrl-0 = <&pcie30x2m1_pins>;
613 reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
614 vpcie3v3-supply = <&vcc3v3_pcie>;
620 vcc_cam_en: vcc_cam_en {
621 rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
626 vcc_mipi_en: vcc_mipi_en {
627 rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
632 eth_phy_rst: eth_phy_rst {
633 rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
638 hym8563_int: hym8563-int {
639 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
644 led_user_en: led_user_en {
645 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
650 pcie_enable_h: pcie-enable-h {
651 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
654 pcie_reset_h: pcie-reset-h {
655 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
662 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
667 vcc5v0_usb_host_en: vcc5v0_usb_host_en {
668 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
670 vcc5v0_usb_hub_en: vcc5v0_usb_hub_en {
671 rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
673 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
674 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
679 bt_enable: bt-enable {
680 rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
683 bt_host_wake: bt-host-wake {
684 rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
688 rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
693 wifi_enable: wifi-enable {
694 rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
700 pmuio1-supply = <&vcc3v3_pmu>;
701 pmuio2-supply = <&vcc3v3_pmu>;
702 vccio1-supply = <&vccio_acodec>;
703 vccio2-supply = <&vcc_1v8>;
704 vccio3-supply = <&vccio_sd>;
705 vccio4-supply = <&vcc_1v8>;
706 vccio5-supply = <&vcc_3v3>;
707 vccio6-supply = <&vcc_1v8>;
708 vccio7-supply = <&vcc_3v3>;
713 vref-supply = <&vcca_1v8>;
719 max-frequency = <200000000>;
721 pinctrl-names = "default";
722 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
723 vmmc-supply = <&vcc_3v3>;
724 vqmmc-supply = <&vcc_1v8>;
731 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
733 pinctrl-names = "default";
734 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
736 vmmc-supply = <&vcc3v3_sd>;
737 vqmmc-supply = <&vccio_sd>;
746 keep-power-in-suspend;
747 mmc-pwrseq = <&sdio_pwrseq>;
749 pinctrl-names = "default";
750 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>;
755 vmmc-supply = <&vcc3v3_sys>;
756 vqmmc-supply = <&vcc_1v8>;
761 rockchip,hw-tshut-mode = <1>;
762 rockchip,hw-tshut-polarity = <0>;
767 pinctrl-names = "default";
768 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
773 compatible = "brcm,bcm43438-bt";
776 device-wakeup-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
777 host-wakeup-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
778 shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
779 pinctrl-names = "default";
780 pinctrl-0 = <&bt_host_wake &bt_wake &bt_enable>;
781 vbat-supply = <&vcc3v3_sys>;
782 vddio-supply = <&vcc_1v8>;
783 /* vddio comes from regulator on module, use IO bank voltage instead */
800 extcon = <&usb2phy0>;
821 phy-supply = <&vcc5v0_usb_host>;
826 phy-supply = <&vcc5v0_usb_otg>;
835 phy-supply = <&vcc5v0_usb_host>;
840 phy-supply = <&vcc5v0_usb_host>;
845 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
846 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
855 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
856 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
857 remote-endpoint = <&hdmi_in_vp0>;