1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd.
4 * (http://www.friendlyelec.com)
6 * Copyright (c) 2023 Tianling Shen <cnsztl@gmail.com>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/pinctrl/rockchip.h>
14 #include <dt-bindings/soc/rockchip,vop2.h>
15 #include "rk3568.dtsi"
24 stdout-path = "serial2:1500000n8";
28 compatible = "hdmi-connector";
32 hdmi_con_in: endpoint {
33 remote-endpoint = <&hdmi_out_con>;
38 vdd_usbc: vdd-usbc-regulator {
39 compatible = "regulator-fixed";
40 regulator-name = "vdd_usbc";
43 regulator-min-microvolt = <5000000>;
44 regulator-max-microvolt = <5000000>;
47 vcc3v3_sys: vcc3v3-sys-regulator {
48 compatible = "regulator-fixed";
49 regulator-name = "vcc3v3_sys";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 vin-supply = <&vdd_usbc>;
57 vcc5v0_sys: vcc5v0-sys-regulator {
58 compatible = "regulator-fixed";
59 regulator-name = "vcc5v0_sys";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
64 vin-supply = <&vdd_usbc>;
67 vcc3v3_pcie: vcc3v3-pcie-regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "vcc3v3_pcie";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
73 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
74 startup-delay-us = <200000>;
75 vin-supply = <&vcc5v0_sys>;
78 vcc5v0_usb: vcc5v0-usb-regulator {
79 compatible = "regulator-fixed";
80 regulator-name = "vcc5v0_usb";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
85 vin-supply = <&vdd_usbc>;
88 vcc5v0_usb_host: vcc5v0-usb-host-regulator {
89 compatible = "regulator-fixed";
91 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&vcc5v0_usb_host_en>;
94 regulator-name = "vcc5v0_usb_host";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
99 vin-supply = <&vcc5v0_usb>;
102 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
103 compatible = "regulator-fixed";
105 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&vcc5v0_usb_otg_en>;
108 regulator-name = "vcc5v0_usb_otg";
109 regulator-min-microvolt = <5000000>;
110 regulator-max-microvolt = <5000000>;
111 vin-supply = <&vcc5v0_usb>;
114 pcie30_avdd0v9: pcie30-avdd0v9-regulator {
115 compatible = "regulator-fixed";
116 regulator-name = "pcie30_avdd0v9";
119 regulator-min-microvolt = <900000>;
120 regulator-max-microvolt = <900000>;
121 vin-supply = <&vcc3v3_sys>;
124 pcie30_avdd1v8: pcie30-avdd1v8-regulator {
125 compatible = "regulator-fixed";
126 regulator-name = "pcie30_avdd1v8";
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <1800000>;
131 vin-supply = <&vcc3v3_sys>;
148 cpu-supply = <&vdd_cpu>;
152 cpu-supply = <&vdd_cpu>;
156 cpu-supply = <&vdd_cpu>;
160 cpu-supply = <&vdd_cpu>;
164 mali-supply = <&vdd_gpu>;
169 avdd-0v9-supply = <&vdda0v9_image>;
170 avdd-1v8-supply = <&vcca1v8_image>;
175 hdmi_in_vp0: endpoint {
176 remote-endpoint = <&vp0_out_hdmi>;
181 hdmi_out_con: endpoint {
182 remote-endpoint = <&hdmi_con_in>;
193 vdd_cpu: regulator@1c {
194 compatible = "tcs,tcs4525";
196 fcs,suspend-voltage-selector = <1>;
197 regulator-name = "vdd_cpu";
200 regulator-min-microvolt = <800000>;
201 regulator-max-microvolt = <1150000>;
202 regulator-ramp-delay = <2300>;
203 vin-supply = <&vcc5v0_sys>;
205 regulator-state-mem {
206 regulator-off-in-suspend;
211 compatible = "rockchip,rk809";
213 interrupt-parent = <&gpio0>;
214 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&pmic_int>;
218 rockchip,system-power-controller;
219 vcc1-supply = <&vcc3v3_sys>;
220 vcc2-supply = <&vcc3v3_sys>;
221 vcc3-supply = <&vcc3v3_sys>;
222 vcc4-supply = <&vcc3v3_sys>;
223 vcc5-supply = <&vcc3v3_sys>;
224 vcc6-supply = <&vcc3v3_sys>;
225 vcc7-supply = <&vcc3v3_sys>;
226 vcc8-supply = <&vcc3v3_sys>;
227 vcc9-supply = <&vcc3v3_sys>;
231 vdd_logic: DCDC_REG1 {
232 regulator-name = "vdd_logic";
235 regulator-initial-mode = <0x2>;
236 regulator-min-microvolt = <500000>;
237 regulator-max-microvolt = <1350000>;
238 regulator-ramp-delay = <6001>;
240 regulator-state-mem {
241 regulator-off-in-suspend;
246 regulator-name = "vdd_gpu";
248 regulator-initial-mode = <0x2>;
249 regulator-min-microvolt = <500000>;
250 regulator-max-microvolt = <1350000>;
251 regulator-ramp-delay = <6001>;
253 regulator-state-mem {
254 regulator-off-in-suspend;
259 regulator-name = "vcc_ddr";
262 regulator-initial-mode = <0x2>;
264 regulator-state-mem {
265 regulator-on-in-suspend;
270 regulator-name = "vdd_npu";
271 regulator-initial-mode = <0x2>;
272 regulator-min-microvolt = <500000>;
273 regulator-max-microvolt = <1350000>;
274 regulator-ramp-delay = <6001>;
276 regulator-state-mem {
277 regulator-off-in-suspend;
282 regulator-name = "vcc_1v8";
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
288 regulator-state-mem {
289 regulator-off-in-suspend;
293 vdda0v9_image: LDO_REG1 {
294 regulator-name = "vdda0v9_image";
295 regulator-min-microvolt = <950000>;
296 regulator-max-microvolt = <950000>;
298 regulator-state-mem {
299 regulator-off-in-suspend;
304 regulator-name = "vdda_0v9";
307 regulator-min-microvolt = <900000>;
308 regulator-max-microvolt = <900000>;
310 regulator-state-mem {
311 regulator-off-in-suspend;
315 vdda0v9_pmu: LDO_REG3 {
316 regulator-name = "vdda0v9_pmu";
319 regulator-min-microvolt = <900000>;
320 regulator-max-microvolt = <900000>;
322 regulator-state-mem {
323 regulator-on-in-suspend;
324 regulator-suspend-microvolt = <900000>;
328 vccio_acodec: LDO_REG4 {
329 regulator-name = "vccio_acodec";
330 regulator-min-microvolt = <3300000>;
331 regulator-max-microvolt = <3300000>;
333 regulator-state-mem {
334 regulator-off-in-suspend;
339 regulator-name = "vccio_sd";
340 regulator-min-microvolt = <1800000>;
341 regulator-max-microvolt = <3300000>;
343 regulator-state-mem {
344 regulator-off-in-suspend;
348 vcc3v3_pmu: LDO_REG6 {
349 regulator-name = "vcc3v3_pmu";
352 regulator-min-microvolt = <3300000>;
353 regulator-max-microvolt = <3300000>;
355 regulator-state-mem {
356 regulator-on-in-suspend;
357 regulator-suspend-microvolt = <3300000>;
362 regulator-name = "vcca_1v8";
365 regulator-min-microvolt = <1800000>;
366 regulator-max-microvolt = <1800000>;
368 regulator-state-mem {
369 regulator-off-in-suspend;
373 vcca1v8_pmu: LDO_REG8 {
374 regulator-name = "vcca1v8_pmu";
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
380 regulator-state-mem {
381 regulator-on-in-suspend;
382 regulator-suspend-microvolt = <1800000>;
386 vcca1v8_image: LDO_REG9 {
387 regulator-name = "vcca1v8_image";
388 regulator-min-microvolt = <1800000>;
389 regulator-max-microvolt = <1800000>;
391 regulator-state-mem {
392 regulator-off-in-suspend;
396 vcc_3v3: SWITCH_REG1 {
397 regulator-name = "vcc_3v3";
401 regulator-state-mem {
402 regulator-off-in-suspend;
406 vcc3v3_sd: SWITCH_REG2 {
407 regulator-name = "vcc3v3_sd";
411 regulator-state-mem {
412 regulator-off-in-suspend;
424 compatible = "haoyu,hym8563";
426 interrupt-parent = <&gpio0>;
427 interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
429 clock-output-names = "rtcic_32kout";
430 pinctrl-names = "default";
431 pinctrl-0 = <&hym8563_int>;
447 hym8563_int: hym8563-int {
448 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
454 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
459 vcc5v0_usb_host_en: vcc5v0-usb-host-en {
460 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
463 vcc5v0_usb_otg_en: vcc5v0-usb-otg-en {
464 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
470 pmuio1-supply = <&vcc3v3_pmu>;
471 pmuio2-supply = <&vcc3v3_pmu>;
472 vccio1-supply = <&vccio_acodec>;
473 vccio3-supply = <&vccio_sd>;
474 vccio4-supply = <&vcc_1v8>;
475 vccio5-supply = <&vcc_3v3>;
476 vccio6-supply = <&vcc_1v8>;
477 vccio7-supply = <&vcc_3v3>;
482 vref-supply = <&vcca_1v8>;
488 max-frequency = <200000000>;
490 pinctrl-names = "default";
491 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
496 max-frequency = <150000000>;
503 vmmc-supply = <&vcc3v3_sd>;
504 vqmmc-supply = <&vccio_sd>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
511 rockchip,hw-tshut-mode = <1>;
512 rockchip,hw-tshut-polarity = <0>;
529 extcon = <&usb2phy0>;
551 phy-supply = <&vcc5v0_usb_host>;
564 phy-supply = <&vcc5v0_usb_otg>;
573 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
574 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
583 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
584 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
585 remote-endpoint = <&hdmi_in_vp0>;