1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4 * Copyright (c) 2019 Radxa Limited
5 * Copyright (c) 2022 Amarula Solutions(India)
9 #include <dt-bindings/leds/common.h>
10 #include "rk3399.dtsi"
11 #include "rk3399-t-opp.dtsi"
14 model = "Radxa ROCK 4C+";
15 compatible = "radxa,rock-4c-plus", "rockchip,rk3399";
24 stdout-path = "serial2:1500000n8";
27 clkin_gmac: external-gmac-clock {
28 compatible = "fixed-clock";
29 clock-frequency = <125000000>;
30 clock-output-names = "clkin_gmac";
35 compatible = "gpio-leds";
36 pinctrl-names = "default";
37 pinctrl-0 = <&user_led1 &user_led2>;
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "default-on";
49 function = LED_FUNCTION_STATUS;
50 color = <LED_COLOR_ID_BLUE>;
51 gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "heartbeat";
56 sdio_pwrseq: sdio-pwrseq {
57 compatible = "mmc-pwrseq-simple";
59 clock-names = "ext_clock";
60 pinctrl-names = "default";
61 pinctrl-0 = <&wifi_enable_h>;
62 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
65 vcc_3v3: vcc-3v3-regulator {
66 compatible = "regulator-fixed";
67 regulator-name = "vcc_3v3";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
72 vin-supply = <&vcc3v3_sys>;
75 vcc3v3_phy1: vcc3v3-phy1-regulator {
76 compatible = "regulator-fixed";
77 regulator-name = "vcc3v3_phy1";
80 regulator-min-microvolt = <3300000>;
81 regulator-max-microvolt = <3300000>;
82 vin-supply = <&vcc_3v3>;
85 vcc5v0_host1: vcc5v0-host-regulator {
86 compatible = "regulator-fixed";
88 gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&vcc5v0_host_en>;
91 regulator-name = "vcc5v0_host1";
94 vin-supply = <&vcc5v0_host0_s0>;
97 vcc5v0_sys: vcc5v0-sys-regulator {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc5v0_sys";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
106 vcc5v0_typec: vcc5v0-typec-regulator {
107 compatible = "regulator-fixed";
109 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&vcc5v0_typec0_en>;
112 regulator-name = "vcc5v0_typec";
115 vin-supply = <&vcc5v0_sys>;
118 vdd_log: vdd-log-regulator {
119 compatible = "regulator-fixed";
120 regulator-name = "vdd_log";
123 regulator-min-microvolt = <950000>;
124 regulator-max-microvolt = <950000>;
125 vin-supply = <&vcc5v0_sys>;
130 cpu-supply = <&vdd_cpu_l>;
134 cpu-supply = <&vdd_cpu_l>;
138 cpu-supply = <&vdd_cpu_l>;
142 cpu-supply = <&vdd_cpu_l>;
146 cpu-supply = <&vdd_cpu_b>;
150 cpu-supply = <&vdd_cpu_b>;
158 assigned-clocks = <&cru SCLK_RMII_SRC>;
159 assigned-clock-parents = <&clkin_gmac>;
160 clock_in_out = "input";
161 phy-supply = <&vcc3v3_phy1>;
163 pinctrl-names = "default";
164 pinctrl-0 = <&rgmii_pins>;
165 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
166 snps,reset-active-low;
167 snps,reset-delays-us = <0 10000 50000>;
174 mali-supply = <&vdd_gpu>;
179 avdd-0v9-supply = <&vcc_0v9_s0>;
180 avdd-1v8-supply = <&vcc_1v8_s0>;
181 ddc-i2c-bus = <&i2c3>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&hdmi_cec>;
193 i2c-scl-falling-time-ns = <30>;
194 i2c-scl-rising-time-ns = <180>;
195 clock-frequency = <400000>;
198 compatible = "rockchip,rk809";
200 interrupt-parent = <&gpio1>;
201 interrupts = <RK_PC5 IRQ_TYPE_LEVEL_LOW>;
203 clock-output-names = "rk808-clkout1", "rk808-clkout2";
204 pinctrl-names = "default";
205 pinctrl-0 = <&pmic_int_l>;
206 rockchip,system-power-controller;
209 vcc1-supply = <&vcc5v0_sys>;
210 vcc2-supply = <&vcc5v0_sys>;
211 vcc3-supply = <&vcc5v0_sys>;
212 vcc4-supply = <&vcc5v0_sys>;
213 vcc5-supply = <&vcc_buck5_s3>;
214 vcc6-supply = <&vcc_buck5_s3>;
215 vcc7-supply = <&vcc5v0_sys>;
216 vcc8-supply = <&vcc3v3_sys>;
217 vcc9-supply = <&vcc5v0_sys>;
220 vdd_center: DCDC_REG1 {
223 regulator-min-microvolt = <750000>;
224 regulator-max-microvolt = <1350000>;
225 regulator-initial-mode = <0x2>;
226 regulator-name = "vdd_center";
227 regulator-state-mem {
228 regulator-off-in-suspend;
229 regulator-suspend-microvolt = <900000>;
233 vdd_cpu_l: DCDC_REG2 {
236 regulator-min-microvolt = <750000>;
237 regulator-max-microvolt = <1350000>;
238 regulator-ramp-delay = <6001>;
239 regulator-initial-mode = <0x2>;
240 regulator-name = "vdd_cpu_l";
241 regulator-state-mem {
242 regulator-off-in-suspend;
249 regulator-name = "vcc_ddr";
250 regulator-initial-mode = <0x2>;
251 regulator-state-mem {
252 regulator-on-in-suspend;
256 vcc3v3_sys: DCDC_REG4 {
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-initial-mode = <0x2>;
262 regulator-name = "vcc3v3_sys";
263 regulator-state-mem {
264 regulator-on-in-suspend;
265 regulator-suspend-microvolt = <3300000>;
269 vcc_buck5_s3: DCDC_REG5 {
272 regulator-min-microvolt = <3300000>;
273 regulator-max-microvolt = <3300000>;
274 regulator-name = "vcc_buck5_s3";
275 regulator-state-mem {
276 regulator-on-in-suspend;
277 regulator-suspend-microvolt = <3300000>;
281 vcc_0v9_s3: LDO_REG1 {
284 regulator-min-microvolt = <900000>;
285 regulator-max-microvolt = <900000>;
286 regulator-name = "vcc_0v9_s3";
287 regulator-state-mem {
288 regulator-off-in-suspend;
292 vcc_1v8_s3: LDO_REG2 {
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
297 regulator-name = "vcc_1v8_s3";
298 regulator-state-mem {
299 regulator-on-in-suspend;
300 regulator-suspend-microvolt = <1800000>;
304 vcc_0v9_s0: LDO_REG3 {
307 regulator-min-microvolt = <900000>;
308 regulator-max-microvolt = <900000>;
309 regulator-name = "vcc_0v9_s0";
310 regulator-state-mem {
311 regulator-on-in-suspend;
312 regulator-suspend-microvolt = <900000>;
316 vcc_1v8_s0: LDO_REG4 {
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
321 regulator-name = "vcc_1v8_s0";
322 regulator-state-mem {
323 regulator-off-in-suspend;
330 regulator-min-microvolt = <3000000>;
331 regulator-max-microvolt = <3000000>;
332 regulator-name = "vcc_mipi";
333 regulator-state-mem {
334 regulator-off-in-suspend;
338 vcc_1v5_s0: LDO_REG6 {
341 regulator-min-microvolt = <1500000>;
342 regulator-max-microvolt = <1500000>;
343 regulator-name = "vcc_1v5_s0";
344 regulator-state-mem {
345 regulator-off-in-suspend;
349 vcc_3v0_s0: LDO_REG7 {
352 regulator-min-microvolt = <3000000>;
353 regulator-max-microvolt = <3000000>;
354 regulator-name = "vcc_3v0_s0";
355 regulator-state-mem {
356 regulator-off-in-suspend;
360 vcc_sdio_s0: LDO_REG8 {
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <3300000>;
365 regulator-name = "vcc_sdio_s0";
366 regulator-state-mem {
367 regulator-off-in-suspend;
374 regulator-min-microvolt = <3300000>;
375 regulator-max-microvolt = <3300000>;
376 regulator-name = "vcc_cam";
377 regulator-state-mem {
378 regulator-off-in-suspend;
382 vcc5v0_host0_s0: SWITCH_REG1 {
385 regulator-name = "vcc5v0_host0_s0";
386 regulator-state-mem {
387 regulator-on-in-suspend;
391 lcd_3v3: SWITCH_REG2 {
394 regulator-name = "lcd_3v3";
395 regulator-state-mem {
396 regulator-off-in-suspend;
402 vdd_cpu_b: regulator@40 {
403 compatible = "silergy,syr827";
405 fcs,suspend-voltage-selector = <1>;
406 regulator-compatible = "fan53555-reg";
407 pinctrl-0 = <&vsel1_gpio>;
408 vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
409 regulator-name = "vdd_cpu_b";
410 regulator-min-microvolt = <712500>;
411 regulator-max-microvolt = <1500000>;
412 regulator-ramp-delay = <1000>;
415 vin-supply = <&vcc5v0_sys>;
416 regulator-state-mem {
417 regulator-off-in-suspend;
421 vdd_gpu: regulator@41 {
422 compatible = "silergy,syr828";
424 fcs,suspend-voltage-selector = <1>;
425 regulator-compatible = "fan53555-reg";
426 pinctrl-0 = <&vsel2_gpio>;
427 vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
428 regulator-name = "vdd_gpu";
429 regulator-min-microvolt = <712500>;
430 regulator-max-microvolt = <1500000>;
431 regulator-ramp-delay = <1000>;
434 vin-supply = <&vcc5v0_sys>;
435 regulator-initial-mode = <1>; /* 1:force PWM 2:auto */
436 regulator-state-mem {
437 regulator-off-in-suspend;
443 i2c-scl-rising-time-ns = <450>;
444 i2c-scl-falling-time-ns = <15>;
453 audio-supply = <&vcc_1v8_s0>;
454 bt656-supply = <&vcc_3v0_s0>;
455 gpio1830-supply = <&vcc_3v0_s0>;
456 sdmmc-supply = <&vcc_sdio_s0>;
462 bt_enable_h: bt-enable-h {
463 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
466 bt_host_wake_l: bt-host-wake-l {
467 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
470 bt_wake_l: bt-wake-l {
471 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
476 user_led1: user-led1 {
477 rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
480 user_led2: user-led2 {
481 rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
486 pmic_int_l: pmic-int-l {
487 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
490 vsel1_gpio: vsel1-gpio {
491 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
494 vsel2_gpio: vsel2-gpio {
495 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
500 sdmmc_bus4: sdmmc-bus4 {
501 rockchip,pins = <4 8 1 &pcfg_pull_up_8ma>,
502 <4 9 1 &pcfg_pull_up_8ma>,
503 <4 10 1 &pcfg_pull_up_8ma>,
504 <4 11 1 &pcfg_pull_up_8ma>;
507 sdmmc_clk: sdmmc-clk {
508 rockchip,pins = <4 12 1 &pcfg_pull_none_18ma>;
511 sdmmc_cmd: sdmmc-cmd {
512 rockchip,pins = <4 13 1 &pcfg_pull_up_8ma>;
517 vcc5v0_typec0_en: vcc5v0-typec-en {
518 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
523 vcc5v0_host_en: vcc5v0-host-en {
524 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
529 wifi_enable_h: wifi-enable-h {
530 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
533 wifi_host_wake_l: wifi-host-wake-l {
534 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
540 pmu1830-supply = <&vcc_3v0_s0>;
546 vref-supply = <&vcc_1v8_s3>;
550 max-frequency = <150000000>;
558 #address-cells = <1>;
561 clock-frequency = <50000000>;
564 keep-power-in-suspend;
565 mmc-pwrseq = <&sdio_pwrseq>;
567 pinctrl-names = "default";
568 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
573 compatible = "brcm,bcm4329-fmac";
575 interrupt-parent = <&gpio0>;
576 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
577 interrupt-names = "host-wake";
578 pinctrl-names = "default";
579 pinctrl-0 = <&wifi_host_wake_l>;
587 card-detect-delay = <800>;
589 pinctrl-names = "default";
590 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
591 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
592 vqmmc-supply = <&vcc_sdio_s0>;
605 rockchip,hw-tshut-mode = <1>;
606 rockchip,hw-tshut-polarity = <1>;
613 u2phy0_otg: otg-port {
617 u2phy0_host: host-port {
618 phy-supply = <&vcc5v0_host1>;
626 u2phy1_otg: otg-port {
630 u2phy1_host: host-port {
631 phy-supply = <&vcc5v0_host1>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
642 compatible = "brcm,bcm4345c5";
645 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
646 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
647 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
648 max-speed = <1500000>;
649 pinctrl-names = "default";
650 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
651 vbat-supply = <&vcc3v3_sys>;
652 vddio-supply = <&vcc_1v8_s3>;