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-init-microvolt = <900000>;
297 regulator-initial-mode = <0x2>;
298 regulator-min-microvolt = <500000>;
299 regulator-max-microvolt = <1350000>;
300 regulator-ramp-delay = <6001>;
302 regulator-state-mem {
303 regulator-off-in-suspend;
308 regulator-name = "vdd_gpu";
310 regulator-init-microvolt = <900000>;
311 regulator-initial-mode = <0x2>;
312 regulator-min-microvolt = <500000>;
313 regulator-max-microvolt = <1350000>;
314 regulator-ramp-delay = <6001>;
316 regulator-state-mem {
317 regulator-off-in-suspend;
322 regulator-name = "vcc_ddr";
325 regulator-initial-mode = <0x2>;
327 regulator-state-mem {
328 regulator-on-in-suspend;
333 regulator-name = "vdd_npu";
334 regulator-init-microvolt = <900000>;
335 regulator-initial-mode = <0x2>;
336 regulator-min-microvolt = <500000>;
337 regulator-max-microvolt = <1350000>;
338 regulator-ramp-delay = <6001>;
340 regulator-state-mem {
341 regulator-off-in-suspend;
346 regulator-name = "vcc_1v8";
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <1800000>;
352 regulator-state-mem {
353 regulator-off-in-suspend;
357 vdda0v9_image: LDO_REG1 {
358 regulator-name = "vdda0v9_image";
359 regulator-min-microvolt = <900000>;
360 regulator-max-microvolt = <900000>;
362 regulator-state-mem {
363 regulator-off-in-suspend;
368 regulator-name = "vdda_0v9";
371 regulator-min-microvolt = <900000>;
372 regulator-max-microvolt = <900000>;
374 regulator-state-mem {
375 regulator-off-in-suspend;
379 vdda0v9_pmu: LDO_REG3 {
380 regulator-name = "vdda0v9_pmu";
383 regulator-min-microvolt = <900000>;
384 regulator-max-microvolt = <900000>;
386 regulator-state-mem {
387 regulator-on-in-suspend;
388 regulator-suspend-microvolt = <900000>;
392 vccio_acodec: LDO_REG4 {
393 regulator-name = "vccio_acodec";
395 regulator-min-microvolt = <3300000>;
396 regulator-max-microvolt = <3300000>;
398 regulator-state-mem {
399 regulator-off-in-suspend;
404 regulator-name = "vccio_sd";
405 regulator-min-microvolt = <1800000>;
406 regulator-max-microvolt = <3300000>;
408 regulator-state-mem {
409 regulator-off-in-suspend;
413 vcc3v3_pmu: LDO_REG6 {
414 regulator-name = "vcc3v3_pmu";
417 regulator-min-microvolt = <3300000>;
418 regulator-max-microvolt = <3300000>;
420 regulator-state-mem {
421 regulator-on-in-suspend;
422 regulator-suspend-microvolt = <3300000>;
427 regulator-name = "vcca_1v8";
430 regulator-min-microvolt = <1800000>;
431 regulator-max-microvolt = <1800000>;
433 regulator-state-mem {
434 regulator-off-in-suspend;
438 vcca1v8_pmu: LDO_REG8 {
439 regulator-name = "vcca1v8_pmu";
442 regulator-min-microvolt = <1800000>;
443 regulator-max-microvolt = <1800000>;
445 regulator-state-mem {
446 regulator-on-in-suspend;
447 regulator-suspend-microvolt = <1800000>;
451 vcca1v8_image: LDO_REG9 {
452 regulator-name = "vcca1v8_image";
453 regulator-min-microvolt = <1800000>;
454 regulator-max-microvolt = <1800000>;
456 regulator-state-mem {
457 regulator-off-in-suspend;
461 vcc_3v3: SWITCH_REG1 {
462 regulator-name = "vcc_3v3";
466 regulator-state-mem {
467 regulator-off-in-suspend;
471 vcc3v3_sd: SWITCH_REG2 {
472 regulator-name = "vcc3v3_sd";
474 regulator-state-mem {
475 regulator-off-in-suspend;
489 touchscreen0: goodix@14 {
490 compatible = "goodix,gt1151";
492 interrupt-parent = <&gpio0>;
493 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
494 AVDD28-supply = <&vcc3v3_lcd0_n>;
495 irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
496 pinctrl-names = "default";
497 pinctrl-0 = <&touch_int &touch_rst>;
498 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
499 VDDIO-supply = <&vcc3v3_lcd0_n>;
508 rockchip,trcm-sync-tx-only;
513 rgmii_phy0: ethernet-phy@0 {
514 compatible = "ethernet-phy-ieee802.3-c22";
516 reset-assert-us = <20000>;
517 reset-deassert-us = <100000>;
518 reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
523 rgmii_phy1: ethernet-phy@0 {
524 compatible = "ethernet-phy-ieee802.3-c22";
526 reset-assert-us = <20000>;
527 reset-deassert-us = <100000>;
528 reset-gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>;
534 vcc3v3_lcd0_n_en: vcc3v3_lcd0_n_en {
535 rockchip,pins = <0 RK_PC7 0 &pcfg_pull_none>;
537 vcc3v3_lcd1_n_en: vcc3v3_lcd1_n_en {
538 rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>;
543 led_work_en: led_work_en {
544 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
551 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
556 touch_int: touch_int {
557 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
559 touch_rst: touch_rst {
560 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
565 vcc5v0_usb_host_en: vcc5v0_usb_host_en {
566 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
568 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en {
569 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
575 pmuio1-supply = <&vcc3v3_pmu>;
576 pmuio2-supply = <&vcc3v3_pmu>;
577 vccio1-supply = <&vccio_acodec>;
578 vccio2-supply = <&vcc_1v8>;
579 vccio3-supply = <&vccio_sd>;
580 vccio4-supply = <&vcc_1v8>;
581 vccio5-supply = <&vcc_3v3>;
582 vccio6-supply = <&vcc_1v8>;
583 vccio7-supply = <&vcc_3v3>;
588 vref-supply = <&vcca_1v8>;
594 max-frequency = <200000000>;
596 pinctrl-names = "default";
597 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
604 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
606 pinctrl-names = "default";
607 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
609 vmmc-supply = <&vcc3v3_sd>;
610 vqmmc-supply = <&vccio_sd>;
615 rockchip,hw-tshut-mode = <1>;
616 rockchip,hw-tshut-polarity = <0>;
633 extcon = <&usb2phy0>;
654 phy-supply = <&vcc5v0_usb_host>;
659 vbus-supply = <&vcc5v0_usb_otg>;
668 phy-supply = <&vcc5v0_usb_host>;
673 phy-supply = <&vcc5v0_usb_host>;
678 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
679 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
688 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
689 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
690 remote-endpoint = <&hdmi_in_vp0>;