xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3588s-rock-5c.dts (revision 8ccc0d235c226d84112561d453c49904398d085c)
15f62a964SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
25f62a964SEmmanuel Vadot/*
35f62a964SEmmanuel Vadot * Copyright (c) 2024 Radxa Computer (Shenzhen) Co., Ltd.
45f62a964SEmmanuel Vadot */
55f62a964SEmmanuel Vadot
65f62a964SEmmanuel Vadot/dts-v1/;
75f62a964SEmmanuel Vadot
85f62a964SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
95f62a964SEmmanuel Vadot#include <dt-bindings/leds/common.h>
105f62a964SEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
115f62a964SEmmanuel Vadot#include <dt-bindings/soc/rockchip,vop2.h>
125f62a964SEmmanuel Vadot#include "rk3588s.dtsi"
135f62a964SEmmanuel Vadot
145f62a964SEmmanuel Vadot/ {
155f62a964SEmmanuel Vadot	model = "Radxa ROCK 5C";
165f62a964SEmmanuel Vadot	compatible = "radxa,rock-5c", "rockchip,rk3588s";
175f62a964SEmmanuel Vadot
185f62a964SEmmanuel Vadot	aliases {
195f62a964SEmmanuel Vadot		ethernet0 = &gmac1;
205f62a964SEmmanuel Vadot		mmc0 = &sdhci;
215f62a964SEmmanuel Vadot		mmc1 = &sdmmc;
225f62a964SEmmanuel Vadot	};
235f62a964SEmmanuel Vadot
245f62a964SEmmanuel Vadot	chosen {
255f62a964SEmmanuel Vadot		stdout-path = "serial2:1500000n8";
265f62a964SEmmanuel Vadot	};
275f62a964SEmmanuel Vadot
285f62a964SEmmanuel Vadot	analog-sound {
295f62a964SEmmanuel Vadot		compatible = "audio-graph-card";
305f62a964SEmmanuel Vadot		label = "rk3588-es8316";
315f62a964SEmmanuel Vadot		dais = <&i2s0_8ch_p0>;
325f62a964SEmmanuel Vadot		routing = "MIC2", "Mic Jack",
335f62a964SEmmanuel Vadot			  "Headphones", "HPOL",
345f62a964SEmmanuel Vadot			  "Headphones", "HPOR";
355f62a964SEmmanuel Vadot		widgets = "Microphone", "Mic Jack",
365f62a964SEmmanuel Vadot			  "Headphone", "Headphones";
375f62a964SEmmanuel Vadot	};
385f62a964SEmmanuel Vadot
395f62a964SEmmanuel Vadot	hdmi0-con {
405f62a964SEmmanuel Vadot		compatible = "hdmi-connector";
415f62a964SEmmanuel Vadot		type = "a";
425f62a964SEmmanuel Vadot
435f62a964SEmmanuel Vadot		port {
445f62a964SEmmanuel Vadot			hdmi0_con_in: endpoint {
455f62a964SEmmanuel Vadot				remote-endpoint = <&hdmi0_out_con>;
465f62a964SEmmanuel Vadot			};
475f62a964SEmmanuel Vadot		};
485f62a964SEmmanuel Vadot	};
495f62a964SEmmanuel Vadot
505f62a964SEmmanuel Vadot	leds {
515f62a964SEmmanuel Vadot		compatible = "gpio-leds";
525f62a964SEmmanuel Vadot		pinctrl-names = "default";
535f62a964SEmmanuel Vadot		pinctrl-0 = <&led_pins>;
545f62a964SEmmanuel Vadot
555f62a964SEmmanuel Vadot		led-0 {
565f62a964SEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
575f62a964SEmmanuel Vadot			default-state = "on";
585f62a964SEmmanuel Vadot			function = LED_FUNCTION_POWER;
595f62a964SEmmanuel Vadot			gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
605f62a964SEmmanuel Vadot		};
615f62a964SEmmanuel Vadot
625f62a964SEmmanuel Vadot		led-1 {
635f62a964SEmmanuel Vadot			color = <LED_COLOR_ID_BLUE>;
645f62a964SEmmanuel Vadot			default-state = "on";
655f62a964SEmmanuel Vadot			function = LED_FUNCTION_HEARTBEAT;
665f62a964SEmmanuel Vadot			gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
675f62a964SEmmanuel Vadot			linux,default-trigger = "heartbeat";
685f62a964SEmmanuel Vadot		};
695f62a964SEmmanuel Vadot	};
705f62a964SEmmanuel Vadot
71*8ccc0d23SEmmanuel Vadot	fan: fan {
725f62a964SEmmanuel Vadot		compatible = "pwm-fan";
735f62a964SEmmanuel Vadot		#cooling-cells = <2>;
74*8ccc0d23SEmmanuel Vadot		cooling-levels = <0 24 44 64 128 192 255>;
755f62a964SEmmanuel Vadot		fan-supply = <&vcc_5v0>;
765f62a964SEmmanuel Vadot		pwms = <&pwm3 0 10000 0>;
775f62a964SEmmanuel Vadot	};
785f62a964SEmmanuel Vadot
795f62a964SEmmanuel Vadot	pcie2x1l2_3v3: regulator-pcie2x1l2-3v3 {
805f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
815f62a964SEmmanuel Vadot		enable-active-high;
825f62a964SEmmanuel Vadot		gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
835f62a964SEmmanuel Vadot		pinctrl-names = "default";
845f62a964SEmmanuel Vadot		pinctrl-0 = <&pow_en>;
855f62a964SEmmanuel Vadot		regulator-name = "pcie2x1l2_3v3";
865f62a964SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
875f62a964SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
885f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
895f62a964SEmmanuel Vadot	};
905f62a964SEmmanuel Vadot
915f62a964SEmmanuel Vadot	vcc5v_dcin: regulator-vcc5v-dcin {
925f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
935f62a964SEmmanuel Vadot		regulator-name = "vcc5v_dcin";
945f62a964SEmmanuel Vadot		regulator-always-on;
955f62a964SEmmanuel Vadot		regulator-boot-on;
965f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
975f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
985f62a964SEmmanuel Vadot	};
995f62a964SEmmanuel Vadot
1005f62a964SEmmanuel Vadot	vcc5v0_usb_host: regulator-vcc5v0-usb-host {
1015f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1025f62a964SEmmanuel Vadot		enable-active-high;
1035f62a964SEmmanuel Vadot		gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
1045f62a964SEmmanuel Vadot		pinctrl-names = "default";
1055f62a964SEmmanuel Vadot		pinctrl-0 = <&usb_host_pwren_h>;
1065f62a964SEmmanuel Vadot		regulator-name = "vcc5v0_usb_host";
1075f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1085f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
1095f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
1105f62a964SEmmanuel Vadot	};
1115f62a964SEmmanuel Vadot
1125f62a964SEmmanuel Vadot	vcc5v0_usb_otg0: regulator-vcc5v0-usb-otg0 {
1135f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1145f62a964SEmmanuel Vadot		enable-active-high;
1155f62a964SEmmanuel Vadot		gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
1165f62a964SEmmanuel Vadot		pinctrl-names = "default";
1175f62a964SEmmanuel Vadot		pinctrl-0 = <&usb_otg_pwren_h>;
1185f62a964SEmmanuel Vadot		regulator-name = "vcc5v0_usb_otg0";
1195f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1205f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
1215f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
1225f62a964SEmmanuel Vadot	};
1235f62a964SEmmanuel Vadot
1245f62a964SEmmanuel Vadot	vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
1255f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1265f62a964SEmmanuel Vadot		regulator-name = "vcc_1v1_nldo_s3";
1275f62a964SEmmanuel Vadot		regulator-always-on;
1285f62a964SEmmanuel Vadot		regulator-boot-on;
1295f62a964SEmmanuel Vadot		regulator-min-microvolt = <1100000>;
1305f62a964SEmmanuel Vadot		regulator-max-microvolt = <1100000>;
1315f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
1325f62a964SEmmanuel Vadot	};
1335f62a964SEmmanuel Vadot
1345f62a964SEmmanuel Vadot	vcc_3v3_pmu: regulator-vcc-3v3-pmu {
1355f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1365f62a964SEmmanuel Vadot		regulator-name = "vcc_3v3_pmu";
1375f62a964SEmmanuel Vadot		regulator-always-on;
1385f62a964SEmmanuel Vadot		regulator-boot-on;
1395f62a964SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
1405f62a964SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
1415f62a964SEmmanuel Vadot		vin-supply = <&vcc_3v3_s3>;
1425f62a964SEmmanuel Vadot	};
1435f62a964SEmmanuel Vadot
1445f62a964SEmmanuel Vadot	vcc_3v3_s0: regulator-vcc-3v3-s0 {
1455f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1465f62a964SEmmanuel Vadot		regulator-name = "vcc_3v3_s0";
1475f62a964SEmmanuel Vadot		regulator-always-on;
1485f62a964SEmmanuel Vadot		regulator-boot-on;
1495f62a964SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
1505f62a964SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
1515f62a964SEmmanuel Vadot		vin-supply = <&vcc_1v8_s0>;
1525f62a964SEmmanuel Vadot	};
1535f62a964SEmmanuel Vadot
1545f62a964SEmmanuel Vadot	vcc_5v0: regulator-vcc-5v0 {
1555f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1565f62a964SEmmanuel Vadot		enable-active-high;
1575f62a964SEmmanuel Vadot		gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
1585f62a964SEmmanuel Vadot		pinctrl-names = "default";
1595f62a964SEmmanuel Vadot		pinctrl-0 = <&vcc_5v0_pwren_h>;
1605f62a964SEmmanuel Vadot		regulator-name = "vcc_5v0";
1615f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1625f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
1635f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
1645f62a964SEmmanuel Vadot	};
1655f62a964SEmmanuel Vadot
1665f62a964SEmmanuel Vadot	vcc_sysin: regulator-vcc-sysin {
1675f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1685f62a964SEmmanuel Vadot		regulator-name = "vcc_sysin";
1695f62a964SEmmanuel Vadot		regulator-always-on;
1705f62a964SEmmanuel Vadot		regulator-boot-on;
1715f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1725f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
1735f62a964SEmmanuel Vadot		vin-supply = <&vcc5v_dcin>;
1745f62a964SEmmanuel Vadot	};
1755f62a964SEmmanuel Vadot
1765f62a964SEmmanuel Vadot	vcca: regulator-vcca {
1775f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1785f62a964SEmmanuel Vadot		regulator-name = "vcca";
1795f62a964SEmmanuel Vadot		regulator-always-on;
1805f62a964SEmmanuel Vadot		regulator-boot-on;
1815f62a964SEmmanuel Vadot		regulator-min-microvolt = <4000000>;
1825f62a964SEmmanuel Vadot		regulator-max-microvolt = <4000000>;
1835f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
1845f62a964SEmmanuel Vadot	};
1855f62a964SEmmanuel Vadot
1865f62a964SEmmanuel Vadot	vdd_3v3: regulator-vdd-3v3 {
1875f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1885f62a964SEmmanuel Vadot		enable-active-high;
1895f62a964SEmmanuel Vadot		gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
1905f62a964SEmmanuel Vadot		pinctrl-names = "default";
1915f62a964SEmmanuel Vadot		pinctrl-0 = <&usb_wifi_pwr>;
1925f62a964SEmmanuel Vadot		regulator-name = "vdd_3v3";
1935f62a964SEmmanuel Vadot		regulator-always-on;
1945f62a964SEmmanuel Vadot		regulator-boot-on;
1955f62a964SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
1965f62a964SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
1975f62a964SEmmanuel Vadot		vin-supply = <&vcc_3v3_s3>;
1985f62a964SEmmanuel Vadot	};
1995f62a964SEmmanuel Vadot};
2005f62a964SEmmanuel Vadot
2015f62a964SEmmanuel Vadot&combphy0_ps {
2025f62a964SEmmanuel Vadot	status = "okay";
2035f62a964SEmmanuel Vadot};
2045f62a964SEmmanuel Vadot
2055f62a964SEmmanuel Vadot&combphy2_psu {
2065f62a964SEmmanuel Vadot	status = "okay";
2075f62a964SEmmanuel Vadot};
2085f62a964SEmmanuel Vadot
2095f62a964SEmmanuel Vadot&cpu_b0 {
2105f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big0_s0>;
2115f62a964SEmmanuel Vadot};
2125f62a964SEmmanuel Vadot
2135f62a964SEmmanuel Vadot&cpu_b1 {
2145f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big0_s0>;
2155f62a964SEmmanuel Vadot};
2165f62a964SEmmanuel Vadot
2175f62a964SEmmanuel Vadot&cpu_b2 {
2185f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big1_s0>;
2195f62a964SEmmanuel Vadot};
2205f62a964SEmmanuel Vadot
2215f62a964SEmmanuel Vadot&cpu_b3 {
2225f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big1_s0>;
2235f62a964SEmmanuel Vadot};
2245f62a964SEmmanuel Vadot
2255f62a964SEmmanuel Vadot&cpu_l0 {
2265f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
2275f62a964SEmmanuel Vadot};
2285f62a964SEmmanuel Vadot
2295f62a964SEmmanuel Vadot&cpu_l1 {
2305f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
2315f62a964SEmmanuel Vadot};
2325f62a964SEmmanuel Vadot
2335f62a964SEmmanuel Vadot&cpu_l2 {
2345f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
2355f62a964SEmmanuel Vadot};
2365f62a964SEmmanuel Vadot
2375f62a964SEmmanuel Vadot&cpu_l3 {
2385f62a964SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
2395f62a964SEmmanuel Vadot};
2405f62a964SEmmanuel Vadot
2415f62a964SEmmanuel Vadot&gmac1 {
2425f62a964SEmmanuel Vadot	phy-handle = <&rgmii_phy1>;
2435f62a964SEmmanuel Vadot	phy-mode = "rgmii-id";
2445f62a964SEmmanuel Vadot	phy-supply = <&vcc_3v3_s0>;
2455f62a964SEmmanuel Vadot	pinctrl-0 = <&gmac1_miim
2465f62a964SEmmanuel Vadot		     &gmac1_tx_bus2
2475f62a964SEmmanuel Vadot		     &gmac1_rx_bus2
2485f62a964SEmmanuel Vadot		     &gmac1_rgmii_clk
2495f62a964SEmmanuel Vadot		     &gmac1_rgmii_bus
2505f62a964SEmmanuel Vadot		     &gmac1_clkinout>;
2515f62a964SEmmanuel Vadot	pinctrl-names = "default";
2525f62a964SEmmanuel Vadot	status = "okay";
2535f62a964SEmmanuel Vadot};
2545f62a964SEmmanuel Vadot
2555f62a964SEmmanuel Vadot&gpu {
2565f62a964SEmmanuel Vadot	mali-supply = <&vdd_gpu_s0>;
2575f62a964SEmmanuel Vadot	status = "okay";
2585f62a964SEmmanuel Vadot};
2595f62a964SEmmanuel Vadot
2605f62a964SEmmanuel Vadot&hdmi0 {
2615f62a964SEmmanuel Vadot	pinctrl-names = "default";
2625f62a964SEmmanuel Vadot	pinctrl-0 = <&hdmim0_tx0_cec
2635f62a964SEmmanuel Vadot		     &hdmim1_tx0_hpd
2645f62a964SEmmanuel Vadot		     &hdmim0_tx0_scl
2655f62a964SEmmanuel Vadot		     &hdmim0_tx0_sda>;
2665f62a964SEmmanuel Vadot	status = "okay";
2675f62a964SEmmanuel Vadot};
2685f62a964SEmmanuel Vadot
2695f62a964SEmmanuel Vadot&hdmi0_in {
2705f62a964SEmmanuel Vadot	hdmi0_in_vp0: endpoint {
2715f62a964SEmmanuel Vadot		remote-endpoint = <&vp0_out_hdmi0>;
2725f62a964SEmmanuel Vadot	};
2735f62a964SEmmanuel Vadot};
2745f62a964SEmmanuel Vadot
2755f62a964SEmmanuel Vadot&hdmi0_out {
2765f62a964SEmmanuel Vadot	hdmi0_out_con: endpoint {
2775f62a964SEmmanuel Vadot		remote-endpoint = <&hdmi0_con_in>;
2785f62a964SEmmanuel Vadot	};
2795f62a964SEmmanuel Vadot};
2805f62a964SEmmanuel Vadot
281*8ccc0d23SEmmanuel Vadot&hdptxphy0 {
2825f62a964SEmmanuel Vadot	status = "okay";
2835f62a964SEmmanuel Vadot};
2845f62a964SEmmanuel Vadot
2855f62a964SEmmanuel Vadot&i2c0 {
2865f62a964SEmmanuel Vadot	pinctrl-names = "default";
2875f62a964SEmmanuel Vadot	pinctrl-0 = <&i2c0m2_xfer>;
2885f62a964SEmmanuel Vadot	status = "okay";
2895f62a964SEmmanuel Vadot
2905f62a964SEmmanuel Vadot	vdd_cpu_big0_s0: regulator@42 {
2915f62a964SEmmanuel Vadot		compatible = "rockchip,rk8602";
2925f62a964SEmmanuel Vadot		reg = <0x42>;
2935f62a964SEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
2945f62a964SEmmanuel Vadot		regulator-name = "vdd_cpu_big0_s0";
2955f62a964SEmmanuel Vadot		regulator-always-on;
2965f62a964SEmmanuel Vadot		regulator-boot-on;
2975f62a964SEmmanuel Vadot		regulator-min-microvolt = <550000>;
2985f62a964SEmmanuel Vadot		regulator-max-microvolt = <1050000>;
2995f62a964SEmmanuel Vadot		regulator-ramp-delay = <2300>;
3005f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
3015f62a964SEmmanuel Vadot
3025f62a964SEmmanuel Vadot		regulator-state-mem {
3035f62a964SEmmanuel Vadot			regulator-off-in-suspend;
3045f62a964SEmmanuel Vadot		};
3055f62a964SEmmanuel Vadot	};
3065f62a964SEmmanuel Vadot
3075f62a964SEmmanuel Vadot	vdd_cpu_big1_s0: regulator@43 {
3085f62a964SEmmanuel Vadot		compatible = "rockchip,rk8603", "rockchip,rk8602";
3095f62a964SEmmanuel Vadot		reg = <0x43>;
3105f62a964SEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
3115f62a964SEmmanuel Vadot		regulator-name = "vdd_cpu_big1_s0";
3125f62a964SEmmanuel Vadot		regulator-always-on;
3135f62a964SEmmanuel Vadot		regulator-boot-on;
3145f62a964SEmmanuel Vadot		regulator-min-microvolt = <550000>;
3155f62a964SEmmanuel Vadot		regulator-max-microvolt = <1050000>;
3165f62a964SEmmanuel Vadot		regulator-ramp-delay = <2300>;
3175f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
3185f62a964SEmmanuel Vadot
3195f62a964SEmmanuel Vadot		regulator-state-mem {
3205f62a964SEmmanuel Vadot			regulator-off-in-suspend;
3215f62a964SEmmanuel Vadot		};
3225f62a964SEmmanuel Vadot	};
3235f62a964SEmmanuel Vadot
3245f62a964SEmmanuel Vadot	eeprom@50 {
3255f62a964SEmmanuel Vadot		compatible = "belling,bl24c16a", "atmel,24c16";
3265f62a964SEmmanuel Vadot		reg = <0x50>;
3275f62a964SEmmanuel Vadot		pagesize = <16>;
3285f62a964SEmmanuel Vadot		vcc-supply = <&vcc_3v3_pmu>;
3295f62a964SEmmanuel Vadot	};
3305f62a964SEmmanuel Vadot};
3315f62a964SEmmanuel Vadot
3325f62a964SEmmanuel Vadot&i2c2 {
3335f62a964SEmmanuel Vadot	status = "okay";
3345f62a964SEmmanuel Vadot
3355f62a964SEmmanuel Vadot	vdd_npu_s0: regulator@42 {
3365f62a964SEmmanuel Vadot		compatible = "rockchip,rk8602";
3375f62a964SEmmanuel Vadot		reg = <0x42>;
3385f62a964SEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
3395f62a964SEmmanuel Vadot		regulator-name = "vdd_npu_s0";
3405f62a964SEmmanuel Vadot		regulator-always-on;
3415f62a964SEmmanuel Vadot		regulator-boot-on;
3425f62a964SEmmanuel Vadot		regulator-min-microvolt = <550000>;
3435f62a964SEmmanuel Vadot		regulator-max-microvolt = <950000>;
3445f62a964SEmmanuel Vadot		regulator-ramp-delay = <2300>;
3455f62a964SEmmanuel Vadot		vin-supply = <&vcc_sysin>;
3465f62a964SEmmanuel Vadot
3475f62a964SEmmanuel Vadot		regulator-state-mem {
3485f62a964SEmmanuel Vadot			regulator-off-in-suspend;
3495f62a964SEmmanuel Vadot		};
3505f62a964SEmmanuel Vadot	};
3515f62a964SEmmanuel Vadot};
3525f62a964SEmmanuel Vadot
3535f62a964SEmmanuel Vadot&i2c5 {
3545f62a964SEmmanuel Vadot	pinctrl-names = "default";
3555f62a964SEmmanuel Vadot	pinctrl-0 = <&i2c5m2_xfer>;
3565f62a964SEmmanuel Vadot	status = "okay";
3575f62a964SEmmanuel Vadot
3585f62a964SEmmanuel Vadot	rtc@51 {
3595f62a964SEmmanuel Vadot		compatible = "haoyu,hym8563";
3605f62a964SEmmanuel Vadot		reg = <0x51>;
3615f62a964SEmmanuel Vadot		#clock-cells = <0>;
3625f62a964SEmmanuel Vadot		clock-output-names = "rtcic_32kout";
3635f62a964SEmmanuel Vadot		interrupt-parent = <&gpio0>;
3645f62a964SEmmanuel Vadot		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
3655f62a964SEmmanuel Vadot		pinctrl-names = "default";
3665f62a964SEmmanuel Vadot		pinctrl-0 = <&rtc_int_l>;
3675f62a964SEmmanuel Vadot	};
3685f62a964SEmmanuel Vadot};
3695f62a964SEmmanuel Vadot
3705f62a964SEmmanuel Vadot&i2c7 {
3715f62a964SEmmanuel Vadot	status = "okay";
3725f62a964SEmmanuel Vadot
3735f62a964SEmmanuel Vadot	audio-codec@11 {
3745f62a964SEmmanuel Vadot		compatible = "everest,es8316";
3755f62a964SEmmanuel Vadot		reg = <0x11>;
3765f62a964SEmmanuel Vadot		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
3775f62a964SEmmanuel Vadot		assigned-clock-rates = <12288000>;
3785f62a964SEmmanuel Vadot		clocks = <&cru I2S0_8CH_MCLKOUT>;
3795f62a964SEmmanuel Vadot		clock-names = "mclk";
3805f62a964SEmmanuel Vadot		#sound-dai-cells = <0>;
3815f62a964SEmmanuel Vadot
3825f62a964SEmmanuel Vadot		port {
3835f62a964SEmmanuel Vadot			es8316_p0_0: endpoint {
3845f62a964SEmmanuel Vadot				remote-endpoint = <&i2s0_8ch_p0_0>;
3855f62a964SEmmanuel Vadot			};
3865f62a964SEmmanuel Vadot		};
3875f62a964SEmmanuel Vadot	};
3885f62a964SEmmanuel Vadot};
3895f62a964SEmmanuel Vadot
3905f62a964SEmmanuel Vadot&i2s0_8ch {
3915f62a964SEmmanuel Vadot	pinctrl-names = "default";
3925f62a964SEmmanuel Vadot	pinctrl-0 = <&i2s0_lrck
3935f62a964SEmmanuel Vadot		     &i2s0_mclk
3945f62a964SEmmanuel Vadot		     &i2s0_sclk
3955f62a964SEmmanuel Vadot		     &i2s0_sdi0
3965f62a964SEmmanuel Vadot		     &i2s0_sdo0>;
3975f62a964SEmmanuel Vadot	status = "okay";
3985f62a964SEmmanuel Vadot
3995f62a964SEmmanuel Vadot	i2s0_8ch_p0: port {
4005f62a964SEmmanuel Vadot		i2s0_8ch_p0_0: endpoint {
4015f62a964SEmmanuel Vadot			dai-format = "i2s";
4025f62a964SEmmanuel Vadot			mclk-fs = <256>;
4035f62a964SEmmanuel Vadot			remote-endpoint = <&es8316_p0_0>;
4045f62a964SEmmanuel Vadot		};
4055f62a964SEmmanuel Vadot	};
4065f62a964SEmmanuel Vadot};
4075f62a964SEmmanuel Vadot
4085f62a964SEmmanuel Vadot&mdio1 {
4095f62a964SEmmanuel Vadot	rgmii_phy1: ethernet-phy@1 {
4105f62a964SEmmanuel Vadot		compatible = "ethernet-phy-id001c.c916";
4115f62a964SEmmanuel Vadot		reg = <1>;
4125f62a964SEmmanuel Vadot		pinctrl-names = "default";
4135f62a964SEmmanuel Vadot		pinctrl-0 = <&gmac1_rstn>;
4145f62a964SEmmanuel Vadot		reset-assert-us = <20000>;
4155f62a964SEmmanuel Vadot		reset-deassert-us = <100000>;
4165f62a964SEmmanuel Vadot		reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
4175f62a964SEmmanuel Vadot	};
4185f62a964SEmmanuel Vadot};
4195f62a964SEmmanuel Vadot
420*8ccc0d23SEmmanuel Vadot&package_thermal {
421*8ccc0d23SEmmanuel Vadot	polling-delay = <1000>;
422*8ccc0d23SEmmanuel Vadot
423*8ccc0d23SEmmanuel Vadot	trips {
424*8ccc0d23SEmmanuel Vadot		package_fan0: package-fan0 {
425*8ccc0d23SEmmanuel Vadot			temperature = <55000>;
426*8ccc0d23SEmmanuel Vadot			hysteresis = <2000>;
427*8ccc0d23SEmmanuel Vadot			type = "active";
428*8ccc0d23SEmmanuel Vadot		};
429*8ccc0d23SEmmanuel Vadot
430*8ccc0d23SEmmanuel Vadot		package_fan1: package-fan1 {
431*8ccc0d23SEmmanuel Vadot			temperature = <65000>;
432*8ccc0d23SEmmanuel Vadot			hysteresis = <2000>;
433*8ccc0d23SEmmanuel Vadot			type = "active";
434*8ccc0d23SEmmanuel Vadot		};
435*8ccc0d23SEmmanuel Vadot	};
436*8ccc0d23SEmmanuel Vadot
437*8ccc0d23SEmmanuel Vadot	cooling-maps {
438*8ccc0d23SEmmanuel Vadot		map0 {
439*8ccc0d23SEmmanuel Vadot			trip = <&package_fan0>;
440*8ccc0d23SEmmanuel Vadot			cooling-device = <&fan THERMAL_NO_LIMIT 1>;
441*8ccc0d23SEmmanuel Vadot		};
442*8ccc0d23SEmmanuel Vadot
443*8ccc0d23SEmmanuel Vadot		map1 {
444*8ccc0d23SEmmanuel Vadot			trip = <&package_fan1>;
445*8ccc0d23SEmmanuel Vadot			cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
446*8ccc0d23SEmmanuel Vadot		};
447*8ccc0d23SEmmanuel Vadot	};
448*8ccc0d23SEmmanuel Vadot};
449*8ccc0d23SEmmanuel Vadot
4505f62a964SEmmanuel Vadot&pcie2x1l2 {
4515f62a964SEmmanuel Vadot	pinctrl-names = "default";
4525f62a964SEmmanuel Vadot	pinctrl-0 = <&pcie20x1_2_perstn_m0>;
4535f62a964SEmmanuel Vadot	reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
4545f62a964SEmmanuel Vadot	vpcie3v3-supply = <&pcie2x1l2_3v3>;
4555f62a964SEmmanuel Vadot	status = "okay";
4565f62a964SEmmanuel Vadot};
4575f62a964SEmmanuel Vadot
458*8ccc0d23SEmmanuel Vadot&pd_gpu {
459*8ccc0d23SEmmanuel Vadot	domain-supply = <&vdd_gpu_s0>;
460*8ccc0d23SEmmanuel Vadot};
461*8ccc0d23SEmmanuel Vadot
4625f62a964SEmmanuel Vadot&pinctrl {
4635f62a964SEmmanuel Vadot	leds {
4645f62a964SEmmanuel Vadot		led_pins: led-pins {
4655f62a964SEmmanuel Vadot			rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>,
4665f62a964SEmmanuel Vadot					<3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
4675f62a964SEmmanuel Vadot		};
4685f62a964SEmmanuel Vadot	};
4695f62a964SEmmanuel Vadot
4705f62a964SEmmanuel Vadot	mdio {
4715f62a964SEmmanuel Vadot		gmac1_rstn: gmac1-rstn {
4725f62a964SEmmanuel Vadot			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
4735f62a964SEmmanuel Vadot		};
4745f62a964SEmmanuel Vadot	};
4755f62a964SEmmanuel Vadot
4765f62a964SEmmanuel Vadot	pcie {
4775f62a964SEmmanuel Vadot		pcie20x1_2_perstn_m0: pcie20x1-2-perstn-m0 {
4785f62a964SEmmanuel Vadot			rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
4795f62a964SEmmanuel Vadot		};
4805f62a964SEmmanuel Vadot
4815f62a964SEmmanuel Vadot		pow_en: pow-en {
4825f62a964SEmmanuel Vadot			rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
4835f62a964SEmmanuel Vadot		};
4845f62a964SEmmanuel Vadot	};
4855f62a964SEmmanuel Vadot
4865f62a964SEmmanuel Vadot	rtc {
4875f62a964SEmmanuel Vadot		rtc_int_l: rtc-int-l {
4885f62a964SEmmanuel Vadot			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
4895f62a964SEmmanuel Vadot		};
4905f62a964SEmmanuel Vadot	};
4915f62a964SEmmanuel Vadot
4925f62a964SEmmanuel Vadot	usb {
4935f62a964SEmmanuel Vadot		usb_host_pwren_h: usb-host-pwren-h {
4945f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
4955f62a964SEmmanuel Vadot		};
4965f62a964SEmmanuel Vadot
4975f62a964SEmmanuel Vadot		usb_otg_pwren_h: usb-otg-pwren-h {
4985f62a964SEmmanuel Vadot			rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
4995f62a964SEmmanuel Vadot		};
5005f62a964SEmmanuel Vadot
5015f62a964SEmmanuel Vadot		usb_wifi_pwr: usb-wifi-pwr {
5025f62a964SEmmanuel Vadot			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
5035f62a964SEmmanuel Vadot		};
5045f62a964SEmmanuel Vadot
5055f62a964SEmmanuel Vadot		vcc_5v0_pwren_h: vcc-5v0-pwren-h {
5065f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
5075f62a964SEmmanuel Vadot		};
5085f62a964SEmmanuel Vadot	};
5095f62a964SEmmanuel Vadot};
5105f62a964SEmmanuel Vadot
5115f62a964SEmmanuel Vadot&pwm3 {
5125f62a964SEmmanuel Vadot	pinctrl-names = "default";
5135f62a964SEmmanuel Vadot	pinctrl-0 = <&pwm3m1_pins>;
5145f62a964SEmmanuel Vadot	status = "okay";
5155f62a964SEmmanuel Vadot};
5165f62a964SEmmanuel Vadot
5175f62a964SEmmanuel Vadot&saradc {
5185f62a964SEmmanuel Vadot	vref-supply = <&vcca_1v8_s0>;
5195f62a964SEmmanuel Vadot	status = "okay";
5205f62a964SEmmanuel Vadot};
5215f62a964SEmmanuel Vadot
5225f62a964SEmmanuel Vadot&sdhci {
5235f62a964SEmmanuel Vadot	bus-width = <8>;
5245f62a964SEmmanuel Vadot	mmc-hs400-1_8v;
5255f62a964SEmmanuel Vadot	mmc-hs400-enhanced-strobe;
5265f62a964SEmmanuel Vadot	no-sdio;
5275f62a964SEmmanuel Vadot	no-sd;
5285f62a964SEmmanuel Vadot	non-removable;
5295f62a964SEmmanuel Vadot	status = "okay";
5305f62a964SEmmanuel Vadot};
5315f62a964SEmmanuel Vadot
5325f62a964SEmmanuel Vadot&sdmmc {
5335f62a964SEmmanuel Vadot	bus-width = <4>;
5345f62a964SEmmanuel Vadot	cap-mmc-highspeed;
5355f62a964SEmmanuel Vadot	cap-sd-highspeed;
5365f62a964SEmmanuel Vadot	disable-wp;
5375f62a964SEmmanuel Vadot	no-sdio;
5385f62a964SEmmanuel Vadot	no-mmc;
5395f62a964SEmmanuel Vadot	sd-uhs-sdr104;
5405f62a964SEmmanuel Vadot	vmmc-supply = <&vcc_3v3_s3>;
5415f62a964SEmmanuel Vadot	vqmmc-supply = <&vccio_sd_s0>;
5425f62a964SEmmanuel Vadot	status = "okay";
5435f62a964SEmmanuel Vadot};
5445f62a964SEmmanuel Vadot
5455f62a964SEmmanuel Vadot&sfc {
5465f62a964SEmmanuel Vadot	pinctrl-names = "default";
5475f62a964SEmmanuel Vadot	pinctrl-0 = <&fspim0_pins>;
5485f62a964SEmmanuel Vadot
5495f62a964SEmmanuel Vadot	flash@0 {
5505f62a964SEmmanuel Vadot		compatible = "jedec,spi-nor";
5515f62a964SEmmanuel Vadot		reg = <0>;
5525f62a964SEmmanuel Vadot		spi-max-frequency = <104000000>;
5535f62a964SEmmanuel Vadot		spi-rx-bus-width = <4>;
5545f62a964SEmmanuel Vadot		spi-tx-bus-width = <1>;
5555f62a964SEmmanuel Vadot	};
5565f62a964SEmmanuel Vadot};
5575f62a964SEmmanuel Vadot
5585f62a964SEmmanuel Vadot&spi2 {
5595f62a964SEmmanuel Vadot	status = "okay";
5605f62a964SEmmanuel Vadot	assigned-clocks = <&cru CLK_SPI2>;
5615f62a964SEmmanuel Vadot	assigned-clock-rates = <200000000>;
5625f62a964SEmmanuel Vadot	num-cs = <1>;
5635f62a964SEmmanuel Vadot	pinctrl-names = "default";
5645f62a964SEmmanuel Vadot	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
5655f62a964SEmmanuel Vadot
5665f62a964SEmmanuel Vadot	pmic@0 {
5675f62a964SEmmanuel Vadot		compatible = "rockchip,rk806";
5685f62a964SEmmanuel Vadot		reg = <0>;
5695f62a964SEmmanuel Vadot		gpio-controller;
5705f62a964SEmmanuel Vadot		#gpio-cells = <2>;
5715f62a964SEmmanuel Vadot		interrupt-parent = <&gpio0>;
5725f62a964SEmmanuel Vadot		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
5735f62a964SEmmanuel Vadot		pinctrl-names = "default";
5745f62a964SEmmanuel Vadot		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
5755f62a964SEmmanuel Vadot			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
5765f62a964SEmmanuel Vadot		spi-max-frequency = <1000000>;
5775f62a964SEmmanuel Vadot		system-power-controller;
5785f62a964SEmmanuel Vadot
5795f62a964SEmmanuel Vadot		vcc1-supply = <&vcc_sysin>;
5805f62a964SEmmanuel Vadot		vcc2-supply = <&vcc_sysin>;
5815f62a964SEmmanuel Vadot		vcc3-supply = <&vcc_sysin>;
5825f62a964SEmmanuel Vadot		vcc4-supply = <&vcc_sysin>;
5835f62a964SEmmanuel Vadot		vcc5-supply = <&vcc_sysin>;
5845f62a964SEmmanuel Vadot		vcc6-supply = <&vcc_sysin>;
5855f62a964SEmmanuel Vadot		vcc7-supply = <&vcc_sysin>;
5865f62a964SEmmanuel Vadot		vcc8-supply = <&vcc_sysin>;
5875f62a964SEmmanuel Vadot		vcc9-supply = <&vcc_sysin>;
5885f62a964SEmmanuel Vadot		vcc10-supply = <&vcc_sysin>;
5895f62a964SEmmanuel Vadot		vcc11-supply = <&vcc_2v0_pldo_s3>;
5905f62a964SEmmanuel Vadot		vcc12-supply = <&vcc_sysin>;
5915f62a964SEmmanuel Vadot		vcc13-supply = <&vcc_1v1_nldo_s3>;
5925f62a964SEmmanuel Vadot		vcc14-supply = <&vcc_1v1_nldo_s3>;
5935f62a964SEmmanuel Vadot		vcca-supply = <&vcca>;
5945f62a964SEmmanuel Vadot
5955f62a964SEmmanuel Vadot		rk806_dvs1_null: dvs1-null-pins {
5965f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl1";
5975f62a964SEmmanuel Vadot			function = "pin_fun0";
5985f62a964SEmmanuel Vadot		};
5995f62a964SEmmanuel Vadot
6005f62a964SEmmanuel Vadot		rk806_dvs2_null: dvs2-null-pins {
6015f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl2";
6025f62a964SEmmanuel Vadot			function = "pin_fun0";
6035f62a964SEmmanuel Vadot		};
6045f62a964SEmmanuel Vadot
6055f62a964SEmmanuel Vadot		rk806_dvs3_null: dvs3-null-pins {
6065f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl3";
6075f62a964SEmmanuel Vadot			function = "pin_fun0";
6085f62a964SEmmanuel Vadot		};
6095f62a964SEmmanuel Vadot
6105f62a964SEmmanuel Vadot		regulators {
6115f62a964SEmmanuel Vadot			vdd_gpu_s0: dcdc-reg1 {
6125f62a964SEmmanuel Vadot				regulator-name = "vdd_gpu_s0";
6135f62a964SEmmanuel Vadot				regulator-boot-on;
6145f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
6155f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
6165f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6175f62a964SEmmanuel Vadot				regulator-enable-ramp-delay = <400>;
6185f62a964SEmmanuel Vadot
6195f62a964SEmmanuel Vadot				regulator-state-mem {
6205f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6215f62a964SEmmanuel Vadot				};
6225f62a964SEmmanuel Vadot			};
6235f62a964SEmmanuel Vadot
6245f62a964SEmmanuel Vadot			vdd_cpu_lit_s0: dcdc-reg2 {
6255f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_lit_s0";
6265f62a964SEmmanuel Vadot				regulator-always-on;
6275f62a964SEmmanuel Vadot				regulator-boot-on;
6285f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
6295f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
6305f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6315f62a964SEmmanuel Vadot
6325f62a964SEmmanuel Vadot				regulator-state-mem {
6335f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6345f62a964SEmmanuel Vadot				};
6355f62a964SEmmanuel Vadot			};
6365f62a964SEmmanuel Vadot
6375f62a964SEmmanuel Vadot			vdd_logic_s0: dcdc-reg3 {
6385f62a964SEmmanuel Vadot				regulator-name = "vdd_logic_s0";
6395f62a964SEmmanuel Vadot				regulator-always-on;
6405f62a964SEmmanuel Vadot				regulator-boot-on;
6415f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
6425f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
6435f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6445f62a964SEmmanuel Vadot
6455f62a964SEmmanuel Vadot				regulator-state-mem {
6465f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6475f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
6485f62a964SEmmanuel Vadot				};
6495f62a964SEmmanuel Vadot			};
6505f62a964SEmmanuel Vadot
6515f62a964SEmmanuel Vadot			vdd_vdenc_s0: dcdc-reg4 {
6525f62a964SEmmanuel Vadot				regulator-name = "vdd_vdenc_s0";
6535f62a964SEmmanuel Vadot				regulator-always-on;
6545f62a964SEmmanuel Vadot				regulator-boot-on;
6555f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
6565f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
6575f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6585f62a964SEmmanuel Vadot
6595f62a964SEmmanuel Vadot				regulator-state-mem {
6605f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6615f62a964SEmmanuel Vadot				};
6625f62a964SEmmanuel Vadot			};
6635f62a964SEmmanuel Vadot
6645f62a964SEmmanuel Vadot			vdd_ddr_s0: dcdc-reg5 {
6655f62a964SEmmanuel Vadot				regulator-name = "vdd_ddr_s0";
6665f62a964SEmmanuel Vadot				regulator-always-on;
6675f62a964SEmmanuel Vadot				regulator-boot-on;
6685f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
6695f62a964SEmmanuel Vadot				regulator-max-microvolt = <900000>;
6705f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6715f62a964SEmmanuel Vadot
6725f62a964SEmmanuel Vadot				regulator-state-mem {
6735f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6745f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <850000>;
6755f62a964SEmmanuel Vadot				};
6765f62a964SEmmanuel Vadot			};
6775f62a964SEmmanuel Vadot
6785f62a964SEmmanuel Vadot			vdd2_ddr_s3: dcdc-reg6 {
6795f62a964SEmmanuel Vadot				regulator-name = "vdd2_ddr_s3";
6805f62a964SEmmanuel Vadot				regulator-always-on;
6815f62a964SEmmanuel Vadot				regulator-boot-on;
6825f62a964SEmmanuel Vadot
6835f62a964SEmmanuel Vadot				regulator-state-mem {
6845f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6855f62a964SEmmanuel Vadot				};
6865f62a964SEmmanuel Vadot			};
6875f62a964SEmmanuel Vadot
6885f62a964SEmmanuel Vadot			vcc_2v0_pldo_s3: dcdc-reg7 {
6895f62a964SEmmanuel Vadot				regulator-name = "vdd_2v0_pldo_s3";
6905f62a964SEmmanuel Vadot				regulator-always-on;
6915f62a964SEmmanuel Vadot				regulator-boot-on;
6925f62a964SEmmanuel Vadot				regulator-min-microvolt = <2000000>;
6935f62a964SEmmanuel Vadot				regulator-max-microvolt = <2000000>;
6945f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6955f62a964SEmmanuel Vadot
6965f62a964SEmmanuel Vadot				regulator-state-mem {
6975f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6985f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <2000000>;
6995f62a964SEmmanuel Vadot				};
7005f62a964SEmmanuel Vadot			};
7015f62a964SEmmanuel Vadot
7025f62a964SEmmanuel Vadot			vcc_3v3_s3: dcdc-reg8 {
7035f62a964SEmmanuel Vadot				regulator-name = "vcc_3v3_s3";
7045f62a964SEmmanuel Vadot				regulator-always-on;
7055f62a964SEmmanuel Vadot				regulator-boot-on;
7065f62a964SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
7075f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
7085f62a964SEmmanuel Vadot
7095f62a964SEmmanuel Vadot				regulator-state-mem {
7105f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7115f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <3300000>;
7125f62a964SEmmanuel Vadot				};
7135f62a964SEmmanuel Vadot			};
7145f62a964SEmmanuel Vadot
7155f62a964SEmmanuel Vadot			vddq_ddr_s0: dcdc-reg9 {
7165f62a964SEmmanuel Vadot				regulator-name = "vddq_ddr_s0";
7175f62a964SEmmanuel Vadot				regulator-always-on;
7185f62a964SEmmanuel Vadot				regulator-boot-on;
7195f62a964SEmmanuel Vadot
7205f62a964SEmmanuel Vadot				regulator-state-mem {
7215f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7225f62a964SEmmanuel Vadot				};
7235f62a964SEmmanuel Vadot			};
7245f62a964SEmmanuel Vadot
7255f62a964SEmmanuel Vadot			vcc1v8_pmu_ddr_s3: dcdc-reg10 {
7265f62a964SEmmanuel Vadot				regulator-name = "vcc1v8_pmu_ddr_s3";
7275f62a964SEmmanuel Vadot				regulator-always-on;
7285f62a964SEmmanuel Vadot				regulator-boot-on;
7295f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
7305f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
7315f62a964SEmmanuel Vadot
7325f62a964SEmmanuel Vadot				regulator-state-mem {
7335f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7345f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
7355f62a964SEmmanuel Vadot				};
7365f62a964SEmmanuel Vadot			};
7375f62a964SEmmanuel Vadot
7385f62a964SEmmanuel Vadot			vcc_1v8_s0: pldo-reg1 {
7395f62a964SEmmanuel Vadot				regulator-name = "vcc_1v8_s0";
7405f62a964SEmmanuel Vadot				regulator-always-on;
7415f62a964SEmmanuel Vadot				regulator-boot-on;
7425f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
7435f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
7445f62a964SEmmanuel Vadot
7455f62a964SEmmanuel Vadot				regulator-state-mem {
7465f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7475f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
7485f62a964SEmmanuel Vadot				};
7495f62a964SEmmanuel Vadot			};
7505f62a964SEmmanuel Vadot
7515f62a964SEmmanuel Vadot			vcca_1v8_s0: pldo-reg2 {
7525f62a964SEmmanuel Vadot				regulator-name = "vcca_1v8_s0";
7535f62a964SEmmanuel Vadot				regulator-always-on;
7545f62a964SEmmanuel Vadot				regulator-boot-on;
7555f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
7565f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
7575f62a964SEmmanuel Vadot
7585f62a964SEmmanuel Vadot				regulator-state-mem {
7595f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7605f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
7615f62a964SEmmanuel Vadot				};
7625f62a964SEmmanuel Vadot			};
7635f62a964SEmmanuel Vadot
7645f62a964SEmmanuel Vadot			vdda_1v2_s0: pldo-reg3 {
7655f62a964SEmmanuel Vadot				regulator-name = "vdda_1v2_s0";
7665f62a964SEmmanuel Vadot				regulator-always-on;
7675f62a964SEmmanuel Vadot				regulator-boot-on;
7685f62a964SEmmanuel Vadot				regulator-min-microvolt = <1200000>;
7695f62a964SEmmanuel Vadot				regulator-max-microvolt = <1200000>;
7705f62a964SEmmanuel Vadot
7715f62a964SEmmanuel Vadot				regulator-state-mem {
7725f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7735f62a964SEmmanuel Vadot				};
7745f62a964SEmmanuel Vadot			};
7755f62a964SEmmanuel Vadot
7765f62a964SEmmanuel Vadot			vcca_3v3_s0: pldo-reg4 {
7775f62a964SEmmanuel Vadot				regulator-name = "vcca_3v3_s0";
7785f62a964SEmmanuel Vadot				regulator-always-on;
7795f62a964SEmmanuel Vadot				regulator-boot-on;
7805f62a964SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
7815f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
7825f62a964SEmmanuel Vadot
7835f62a964SEmmanuel Vadot				regulator-state-mem {
7845f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7855f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <3300000>;
7865f62a964SEmmanuel Vadot				};
7875f62a964SEmmanuel Vadot			};
7885f62a964SEmmanuel Vadot
7895f62a964SEmmanuel Vadot			vccio_sd_s0: pldo-reg5 {
7905f62a964SEmmanuel Vadot				regulator-name = "vccio_sd_s0";
7915f62a964SEmmanuel Vadot				regulator-always-on;
7925f62a964SEmmanuel Vadot				regulator-boot-on;
7935f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
7945f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
7955f62a964SEmmanuel Vadot
7965f62a964SEmmanuel Vadot				regulator-state-mem {
7975f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7985f62a964SEmmanuel Vadot				};
7995f62a964SEmmanuel Vadot			};
8005f62a964SEmmanuel Vadot
8015f62a964SEmmanuel Vadot			pldo6_s3: pldo-reg6 {
8025f62a964SEmmanuel Vadot				regulator-name = "pldo6_s3";
8035f62a964SEmmanuel Vadot				regulator-always-on;
8045f62a964SEmmanuel Vadot				regulator-boot-on;
8055f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
8065f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
8075f62a964SEmmanuel Vadot
8085f62a964SEmmanuel Vadot				regulator-state-mem {
8095f62a964SEmmanuel Vadot					regulator-on-in-suspend;
8105f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
8115f62a964SEmmanuel Vadot				};
8125f62a964SEmmanuel Vadot			};
8135f62a964SEmmanuel Vadot
8145f62a964SEmmanuel Vadot			vdd_0v75_s3: nldo-reg1 {
8155f62a964SEmmanuel Vadot				regulator-name = "vdd_0v75_s3";
8165f62a964SEmmanuel Vadot				regulator-always-on;
8175f62a964SEmmanuel Vadot				regulator-boot-on;
8185f62a964SEmmanuel Vadot				regulator-min-microvolt = <750000>;
8195f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
8205f62a964SEmmanuel Vadot
8215f62a964SEmmanuel Vadot				regulator-state-mem {
8225f62a964SEmmanuel Vadot					regulator-on-in-suspend;
8235f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
8245f62a964SEmmanuel Vadot				};
8255f62a964SEmmanuel Vadot			};
8265f62a964SEmmanuel Vadot
8275f62a964SEmmanuel Vadot			vdda_ddr_pll_s0: nldo-reg2 {
8285f62a964SEmmanuel Vadot				regulator-name = "vdda_ddr_pll_s0";
8295f62a964SEmmanuel Vadot				regulator-always-on;
8305f62a964SEmmanuel Vadot				regulator-boot-on;
8315f62a964SEmmanuel Vadot				regulator-min-microvolt = <850000>;
8325f62a964SEmmanuel Vadot				regulator-max-microvolt = <850000>;
8335f62a964SEmmanuel Vadot
8345f62a964SEmmanuel Vadot				regulator-state-mem {
8355f62a964SEmmanuel Vadot					regulator-on-in-suspend;
8365f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <850000>;
8375f62a964SEmmanuel Vadot				};
8385f62a964SEmmanuel Vadot			};
8395f62a964SEmmanuel Vadot
8405f62a964SEmmanuel Vadot			vdda_0v75_s0: nldo-reg3 {
8415f62a964SEmmanuel Vadot				regulator-name = "vdda_0v75_s0";
8425f62a964SEmmanuel Vadot				regulator-always-on;
8435f62a964SEmmanuel Vadot				regulator-boot-on;
8445f62a964SEmmanuel Vadot				regulator-min-microvolt = <750000>;
8455f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
8465f62a964SEmmanuel Vadot
8475f62a964SEmmanuel Vadot				regulator-state-mem {
8485f62a964SEmmanuel Vadot					regulator-off-in-suspend;
8495f62a964SEmmanuel Vadot				};
8505f62a964SEmmanuel Vadot			};
8515f62a964SEmmanuel Vadot
8525f62a964SEmmanuel Vadot			vdda_0v85_s0: nldo-reg4 {
8535f62a964SEmmanuel Vadot				regulator-name = "vdda_0v85_s0";
8545f62a964SEmmanuel Vadot				regulator-always-on;
8555f62a964SEmmanuel Vadot				regulator-boot-on;
8565f62a964SEmmanuel Vadot				regulator-min-microvolt = <850000>;
8575f62a964SEmmanuel Vadot				regulator-max-microvolt = <850000>;
8585f62a964SEmmanuel Vadot
8595f62a964SEmmanuel Vadot				regulator-state-mem {
8605f62a964SEmmanuel Vadot					regulator-off-in-suspend;
8615f62a964SEmmanuel Vadot				};
8625f62a964SEmmanuel Vadot			};
8635f62a964SEmmanuel Vadot
8645f62a964SEmmanuel Vadot			vdd_0v75_s0: nldo-reg5 {
8655f62a964SEmmanuel Vadot				regulator-name = "vdd_0v75_s0";
8665f62a964SEmmanuel Vadot				regulator-always-on;
8675f62a964SEmmanuel Vadot				regulator-boot-on;
8685f62a964SEmmanuel Vadot				regulator-min-microvolt = <750000>;
8695f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
8705f62a964SEmmanuel Vadot
8715f62a964SEmmanuel Vadot				regulator-state-mem {
8725f62a964SEmmanuel Vadot					regulator-off-in-suspend;
8735f62a964SEmmanuel Vadot				};
8745f62a964SEmmanuel Vadot			};
8755f62a964SEmmanuel Vadot		};
8765f62a964SEmmanuel Vadot	};
8775f62a964SEmmanuel Vadot};
8785f62a964SEmmanuel Vadot
8795f62a964SEmmanuel Vadot&tsadc {
880*8ccc0d23SEmmanuel Vadot	rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
881*8ccc0d23SEmmanuel Vadot	rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
8825f62a964SEmmanuel Vadot	status = "okay";
8835f62a964SEmmanuel Vadot};
8845f62a964SEmmanuel Vadot
8855f62a964SEmmanuel Vadot&u2phy0 {
8865f62a964SEmmanuel Vadot	status = "okay";
8875f62a964SEmmanuel Vadot};
8885f62a964SEmmanuel Vadot
8895f62a964SEmmanuel Vadot&u2phy0_otg {
8905f62a964SEmmanuel Vadot	phy-supply = <&vcc5v0_usb_otg0>;
8915f62a964SEmmanuel Vadot	status = "okay";
8925f62a964SEmmanuel Vadot};
8935f62a964SEmmanuel Vadot
8945f62a964SEmmanuel Vadot&u2phy2 {
8955f62a964SEmmanuel Vadot	status = "okay";
8965f62a964SEmmanuel Vadot};
8975f62a964SEmmanuel Vadot
8985f62a964SEmmanuel Vadot&u2phy2_host {
8995f62a964SEmmanuel Vadot	/* connected to USB hub, which is powered by vcc_5v0 */
9005f62a964SEmmanuel Vadot	phy-supply = <&vcc_5v0>;
9015f62a964SEmmanuel Vadot	status = "okay";
9025f62a964SEmmanuel Vadot};
9035f62a964SEmmanuel Vadot
9045f62a964SEmmanuel Vadot&u2phy3 {
9055f62a964SEmmanuel Vadot	status = "okay";
9065f62a964SEmmanuel Vadot};
9075f62a964SEmmanuel Vadot
9085f62a964SEmmanuel Vadot&u2phy3_host {
9095f62a964SEmmanuel Vadot	phy-supply = <&vcc5v0_usb_host>;
9105f62a964SEmmanuel Vadot	status = "okay";
9115f62a964SEmmanuel Vadot};
9125f62a964SEmmanuel Vadot
9135f62a964SEmmanuel Vadot&uart2 {
9145f62a964SEmmanuel Vadot	pinctrl-0 = <&uart2m0_xfer>;
9155f62a964SEmmanuel Vadot	status = "okay";
9165f62a964SEmmanuel Vadot};
9175f62a964SEmmanuel Vadot
9185f62a964SEmmanuel Vadot&usbdp_phy0 {
9195f62a964SEmmanuel Vadot	status = "okay";
9205f62a964SEmmanuel Vadot};
9215f62a964SEmmanuel Vadot
9225f62a964SEmmanuel Vadot&usb_host0_ehci {
9235f62a964SEmmanuel Vadot	status = "okay";
9245f62a964SEmmanuel Vadot};
9255f62a964SEmmanuel Vadot
9265f62a964SEmmanuel Vadot&usb_host0_xhci {
9275f62a964SEmmanuel Vadot	dr_mode = "host";
9285f62a964SEmmanuel Vadot	status = "okay";
9295f62a964SEmmanuel Vadot};
9305f62a964SEmmanuel Vadot
9315f62a964SEmmanuel Vadot&usb_host1_ehci {
9325f62a964SEmmanuel Vadot	status = "okay";
9335f62a964SEmmanuel Vadot};
9345f62a964SEmmanuel Vadot
9355f62a964SEmmanuel Vadot&usb_host1_ohci {
9365f62a964SEmmanuel Vadot	status = "okay";
9375f62a964SEmmanuel Vadot};
9385f62a964SEmmanuel Vadot
9395f62a964SEmmanuel Vadot&usb_host2_xhci {
9405f62a964SEmmanuel Vadot	status = "okay";
9415f62a964SEmmanuel Vadot};
9425f62a964SEmmanuel Vadot
9435f62a964SEmmanuel Vadot&vop_mmu {
9445f62a964SEmmanuel Vadot	status = "okay";
9455f62a964SEmmanuel Vadot};
9465f62a964SEmmanuel Vadot
9475f62a964SEmmanuel Vadot&vop {
9485f62a964SEmmanuel Vadot	status = "okay";
9495f62a964SEmmanuel Vadot};
9505f62a964SEmmanuel Vadot
9515f62a964SEmmanuel Vadot&vp0 {
9525f62a964SEmmanuel Vadot	vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
9535f62a964SEmmanuel Vadot		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
9545f62a964SEmmanuel Vadot		remote-endpoint = <&hdmi0_in_vp0>;
9555f62a964SEmmanuel Vadot	};
9565f62a964SEmmanuel Vadot};
957