1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
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 "rk3568.dtsi"
15 model = "Rockchip RK3568 EVB1 DDR4 V10 Board";
16 compatible = "rockchip,rk3568-evb1-v10", "rockchip,rk3568";
26 stdout-path = "serial2:1500000n8";
30 compatible = "regulator-fixed";
31 regulator-name = "dc_12v";
34 regulator-min-microvolt = <12000000>;
35 regulator-max-microvolt = <12000000>;
39 compatible = "hdmi-connector";
43 hdmi_con_in: endpoint {
44 remote-endpoint = <&hdmi_out_con>;
50 compatible = "gpio-leds";
53 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
54 function = LED_FUNCTION_HEARTBEAT;
55 color = <LED_COLOR_ID_BLUE>;
56 linux,default-trigger = "heartbeat";
57 pinctrl-names = "default";
58 pinctrl-0 = <&led_work_en>;
63 compatible = "simple-audio-card";
64 simple-audio-card,format = "i2s";
65 simple-audio-card,name = "Analog RK809";
66 simple-audio-card,mclk-fs = <256>;
68 simple-audio-card,cpu {
69 sound-dai = <&i2s1_8ch>;
71 simple-audio-card,codec {
76 vcc3v3_sys: vcc3v3-sys {
77 compatible = "regulator-fixed";
78 regulator-name = "vcc3v3_sys";
81 regulator-min-microvolt = <3300000>;
82 regulator-max-microvolt = <3300000>;
83 vin-supply = <&dc_12v>;
86 vcc5v0_sys: vcc5v0-sys {
87 compatible = "regulator-fixed";
88 regulator-name = "vcc5v0_sys";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
93 vin-supply = <&dc_12v>;
96 vcc5v0_usb: vcc5v0-usb {
97 compatible = "regulator-fixed";
98 regulator-name = "vcc5v0_usb";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
103 vin-supply = <&dc_12v>;
106 vcc5v0_usb_host: vcc5v0-usb-host {
107 compatible = "regulator-fixed";
109 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&vcc5v0_usb_host_en>;
112 regulator-name = "vcc5v0_usb_host";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
115 vin-supply = <&vcc5v0_usb>;
118 vcc5v0_usb_otg: vcc5v0-usb-otg {
119 compatible = "regulator-fixed";
121 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&vcc5v0_usb_otg_en>;
124 regulator-name = "vcc5v0_usb_otg";
125 regulator-min-microvolt = <5000000>;
126 regulator-max-microvolt = <5000000>;
127 vin-supply = <&vcc5v0_usb>;
130 vcc3v3_lcd0_n: vcc3v3-lcd0-n {
131 compatible = "regulator-fixed";
132 regulator-name = "vcc3v3_lcd0_n";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
136 gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
137 vin-supply = <&vcc3v3_sys>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&vcc3v3_lcd0_n_en>;
141 regulator-state-mem {
142 regulator-off-in-suspend;
146 vcc3v3_lcd1_n: vcc3v3-lcd1-n {
147 compatible = "regulator-fixed";
148 regulator-name = "vcc3v3_lcd1_n";
149 regulator-min-microvolt = <3300000>;
150 regulator-max-microvolt = <3300000>;
152 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
153 vin-supply = <&vcc3v3_sys>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&vcc3v3_lcd1_n_en>;
157 regulator-state-mem {
158 regulator-off-in-suspend;
172 cpu-supply = <&vdd_cpu>;
176 cpu-supply = <&vdd_cpu>;
180 cpu-supply = <&vdd_cpu>;
184 cpu-supply = <&vdd_cpu>;
188 assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
189 assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>;
190 assigned-clock-rates = <0>, <125000000>;
191 clock_in_out = "output";
192 phy-handle = <&rgmii_phy0>;
193 phy-mode = "rgmii-id";
194 pinctrl-names = "default";
195 pinctrl-0 = <&gmac0_miim
204 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
205 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
206 assigned-clock-rates = <0>, <125000000>;
207 clock_in_out = "output";
208 phy-handle = <&rgmii_phy1>;
209 phy-mode = "rgmii-id";
210 pinctrl-names = "default";
211 pinctrl-0 = <&gmac1m1_miim
220 mali-supply = <&vdd_gpu>;
225 avdd-0v9-supply = <&vdda0v9_image>;
226 avdd-1v8-supply = <&vcca1v8_image>;
231 hdmi_in_vp0: endpoint {
232 remote-endpoint = <&vp0_out_hdmi>;
237 hdmi_out_con: endpoint {
238 remote-endpoint = <&hdmi_con_in>;
249 vdd_cpu: regulator@1c {
250 compatible = "tcs,tcs4525";
252 fcs,suspend-voltage-selector = <1>;
253 regulator-name = "vdd_cpu";
256 regulator-min-microvolt = <800000>;
257 regulator-max-microvolt = <1150000>;
258 regulator-ramp-delay = <2300>;
259 vin-supply = <&vcc5v0_sys>;
261 regulator-state-mem {
262 regulator-off-in-suspend;
267 compatible = "rockchip,rk809";
269 interrupt-parent = <&gpio0>;
270 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
271 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
272 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
274 clock-names = "mclk";
275 clocks = <&cru I2S1_MCLKOUT_TX>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
278 rockchip,system-power-controller;
279 #sound-dai-cells = <0>;
280 vcc1-supply = <&vcc3v3_sys>;
281 vcc2-supply = <&vcc3v3_sys>;
282 vcc3-supply = <&vcc3v3_sys>;
283 vcc4-supply = <&vcc3v3_sys>;
284 vcc5-supply = <&vcc3v3_sys>;
285 vcc6-supply = <&vcc3v3_sys>;
286 vcc7-supply = <&vcc3v3_sys>;
287 vcc8-supply = <&vcc3v3_sys>;
288 vcc9-supply = <&vcc3v3_sys>;
292 vdd_logic: DCDC_REG1 {
293 regulator-name = "vdd_logic";
296 regulator-initial-mode = <0x2>;
297 regulator-min-microvolt = <500000>;
298 regulator-max-microvolt = <1350000>;
299 regulator-ramp-delay = <6001>;
301 regulator-state-mem {
302 regulator-off-in-suspend;
307 regulator-name = "vdd_gpu";
309 regulator-initial-mode = <0x2>;
310 regulator-min-microvolt = <500000>;
311 regulator-max-microvolt = <1350000>;
312 regulator-ramp-delay = <6001>;
314 regulator-state-mem {
315 regulator-off-in-suspend;
320 regulator-name = "vcc_ddr";
323 regulator-initial-mode = <0x2>;
325 regulator-state-mem {
326 regulator-on-in-suspend;
331 regulator-name = "vdd_npu";
332 regulator-initial-mode = <0x2>;
333 regulator-min-microvolt = <500000>;
334 regulator-max-microvolt = <1350000>;
335 regulator-ramp-delay = <6001>;
337 regulator-state-mem {
338 regulator-off-in-suspend;
343 regulator-name = "vcc_1v8";
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
349 regulator-state-mem {
350 regulator-off-in-suspend;
354 vdda0v9_image: LDO_REG1 {
355 regulator-name = "vdda0v9_image";
356 regulator-min-microvolt = <900000>;
357 regulator-max-microvolt = <900000>;
359 regulator-state-mem {
360 regulator-off-in-suspend;
365 regulator-name = "vdda_0v9";
368 regulator-min-microvolt = <900000>;
369 regulator-max-microvolt = <900000>;
371 regulator-state-mem {
372 regulator-off-in-suspend;
376 vdda0v9_pmu: LDO_REG3 {
377 regulator-name = "vdda0v9_pmu";
380 regulator-min-microvolt = <900000>;
381 regulator-max-microvolt = <900000>;
383 regulator-state-mem {
384 regulator-on-in-suspend;
385 regulator-suspend-microvolt = <900000>;
389 vccio_acodec: LDO_REG4 {
390 regulator-name = "vccio_acodec";
392 regulator-min-microvolt = <3300000>;
393 regulator-max-microvolt = <3300000>;
395 regulator-state-mem {
396 regulator-off-in-suspend;
401 regulator-name = "vccio_sd";
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <3300000>;
405 regulator-state-mem {
406 regulator-off-in-suspend;
410 vcc3v3_pmu: LDO_REG6 {
411 regulator-name = "vcc3v3_pmu";
414 regulator-min-microvolt = <3300000>;
415 regulator-max-microvolt = <3300000>;
417 regulator-state-mem {
418 regulator-on-in-suspend;
419 regulator-suspend-microvolt = <3300000>;
424 regulator-name = "vcca_1v8";
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <1800000>;
430 regulator-state-mem {
431 regulator-off-in-suspend;
435 vcca1v8_pmu: LDO_REG8 {
436 regulator-name = "vcca1v8_pmu";
439 regulator-min-microvolt = <1800000>;
440 regulator-max-microvolt = <1800000>;
442 regulator-state-mem {
443 regulator-on-in-suspend;
444 regulator-suspend-microvolt = <1800000>;
448 vcca1v8_image: LDO_REG9 {
449 regulator-name = "vcca1v8_image";
450 regulator-min-microvolt = <1800000>;
451 regulator-max-microvolt = <1800000>;
453 regulator-state-mem {
454 regulator-off-in-suspend;
458 vcc_3v3: SWITCH_REG1 {
459 regulator-name = "vcc_3v3";
463 regulator-state-mem {
464 regulator-off-in-suspend;
468 vcc3v3_sd: SWITCH_REG2 {
469 regulator-name = "vcc3v3_sd";
471 regulator-state-mem {
472 regulator-off-in-suspend;
486 touchscreen0: goodix@14 {
487 compatible = "goodix,gt1151";
489 interrupt-parent = <&gpio0>;
490 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
491 AVDD28-supply = <&vcc3v3_lcd0_n>;
492 irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&touch_int &touch_rst>;
495 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
496 VDDIO-supply = <&vcc3v3_lcd0_n>;
505 rockchip,trcm-sync-tx-only;
510 rgmii_phy0: ethernet-phy@0 {
511 compatible = "ethernet-phy-ieee802.3-c22";
513 reset-assert-us = <20000>;
514 reset-deassert-us = <100000>;
515 reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
520 rgmii_phy1: ethernet-phy@0 {
521 compatible = "ethernet-phy-ieee802.3-c22";
523 reset-assert-us = <20000>;
524 reset-deassert-us = <100000>;
525 reset-gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>;
531 vcc3v3_lcd0_n_en: vcc3v3_lcd0_n_en {
532 rockchip,pins = <0 RK_PC7 0 &pcfg_pull_none>;
534 vcc3v3_lcd1_n_en: vcc3v3_lcd1_n_en {
535 rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>;
540 led_work_en: led_work_en {
541 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
548 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
553 touch_int: touch_int {
554 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
556 touch_rst: touch_rst {
557 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
562 vcc5v0_usb_host_en: vcc5v0_usb_host_en {
563 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
565 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
566 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
572 pmuio1-supply = <&vcc3v3_pmu>;
573 pmuio2-supply = <&vcc3v3_pmu>;
574 vccio1-supply = <&vccio_acodec>;
575 vccio2-supply = <&vcc_1v8>;
576 vccio3-supply = <&vccio_sd>;
577 vccio4-supply = <&vcc_1v8>;
578 vccio5-supply = <&vcc_3v3>;
579 vccio6-supply = <&vcc_1v8>;
580 vccio7-supply = <&vcc_3v3>;
585 vref-supply = <&vcca_1v8>;
591 max-frequency = <200000000>;
593 pinctrl-names = "default";
594 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
601 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
603 pinctrl-names = "default";
604 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
606 vmmc-supply = <&vcc3v3_sd>;
607 vqmmc-supply = <&vccio_sd>;
612 rockchip,hw-tshut-mode = <1>;
613 rockchip,hw-tshut-polarity = <0>;
630 extcon = <&usb2phy0>;
651 phy-supply = <&vcc5v0_usb_host>;
656 phy-supply = <&vcc5v0_usb_otg>;
665 phy-supply = <&vcc5v0_usb_host>;
670 phy-supply = <&vcc5v0_usb_host>;
675 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
676 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
685 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
686 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
687 remote-endpoint = <&hdmi_in_vp0>;