xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3588s-evb1-v10.dts (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
15f62a964SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
25f62a964SEmmanuel Vadot/*
35f62a964SEmmanuel Vadot * Copyright (c) 2024 Rockchip Electronics Co., Ltd.
45f62a964SEmmanuel Vadot *
55f62a964SEmmanuel Vadot */
65f62a964SEmmanuel Vadot
75f62a964SEmmanuel Vadot/dts-v1/;
85f62a964SEmmanuel Vadot
95f62a964SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
105f62a964SEmmanuel Vadot#include <dt-bindings/input/input.h>
115f62a964SEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
12*ae5de77eSEmmanuel Vadot#include <dt-bindings/soc/rockchip,vop2.h>
135f62a964SEmmanuel Vadot#include <dt-bindings/usb/pd.h>
145f62a964SEmmanuel Vadot#include "rk3588s.dtsi"
155f62a964SEmmanuel Vadot
165f62a964SEmmanuel Vadot/ {
175f62a964SEmmanuel Vadot	model = "Rockchip RK3588S EVB1 V10 Board";
185f62a964SEmmanuel Vadot	compatible = "rockchip,rk3588s-evb1-v10", "rockchip,rk3588s";
195f62a964SEmmanuel Vadot
205f62a964SEmmanuel Vadot	aliases {
215f62a964SEmmanuel Vadot		mmc0 = &sdhci;
225f62a964SEmmanuel Vadot		mmc1 = &sdmmc;
235f62a964SEmmanuel Vadot	};
245f62a964SEmmanuel Vadot
255f62a964SEmmanuel Vadot	chosen {
265f62a964SEmmanuel Vadot		stdout-path = "serial2:1500000n8";
275f62a964SEmmanuel Vadot	};
285f62a964SEmmanuel Vadot
295f62a964SEmmanuel Vadot	adc-keys {
305f62a964SEmmanuel Vadot		compatible = "adc-keys";
315f62a964SEmmanuel Vadot		io-channels = <&saradc 1>;
325f62a964SEmmanuel Vadot		io-channel-names = "buttons";
335f62a964SEmmanuel Vadot		keyup-threshold-microvolt = <1800000>;
345f62a964SEmmanuel Vadot		poll-interval = <100>;
355f62a964SEmmanuel Vadot
365f62a964SEmmanuel Vadot		button-escape {
375f62a964SEmmanuel Vadot			label = "Escape";
385f62a964SEmmanuel Vadot			linux,code = <KEY_ESC>;
395f62a964SEmmanuel Vadot			press-threshold-microvolt = <1235000>;
405f62a964SEmmanuel Vadot		};
415f62a964SEmmanuel Vadot
425f62a964SEmmanuel Vadot		button-menu {
435f62a964SEmmanuel Vadot			label = "Menu";
445f62a964SEmmanuel Vadot			linux,code = <KEY_MENU>;
455f62a964SEmmanuel Vadot			press-threshold-microvolt = <890000>;
465f62a964SEmmanuel Vadot		};
475f62a964SEmmanuel Vadot
485f62a964SEmmanuel Vadot		button-vol-up {
495f62a964SEmmanuel Vadot			label = "Volume Up";
505f62a964SEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
515f62a964SEmmanuel Vadot			press-threshold-microvolt = <17000>;
525f62a964SEmmanuel Vadot		};
535f62a964SEmmanuel Vadot
545f62a964SEmmanuel Vadot		button-vol-down {
555f62a964SEmmanuel Vadot			label = "Volume Down";
565f62a964SEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
575f62a964SEmmanuel Vadot			press-threshold-microvolt = <417000>;
585f62a964SEmmanuel Vadot		};
595f62a964SEmmanuel Vadot	};
605f62a964SEmmanuel Vadot
615f62a964SEmmanuel Vadot	amp_headphone: amplifier-headphone {
625f62a964SEmmanuel Vadot		compatible = "simple-audio-amplifier";
635f62a964SEmmanuel Vadot		enable-gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
645f62a964SEmmanuel Vadot		pinctrl-names = "default";
655f62a964SEmmanuel Vadot		pinctrl-0 = <&headphone_amplifier_en>;
665f62a964SEmmanuel Vadot		sound-name-prefix = "Headphones Amplifier";
675f62a964SEmmanuel Vadot	};
685f62a964SEmmanuel Vadot
695f62a964SEmmanuel Vadot	amp_speaker: amplifier-speaker {
705f62a964SEmmanuel Vadot		compatible = "simple-audio-amplifier";
715f62a964SEmmanuel Vadot		enable-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
725f62a964SEmmanuel Vadot		pinctrl-names = "default";
735f62a964SEmmanuel Vadot		pinctrl-0 = <&speaker_amplifier_en>;
745f62a964SEmmanuel Vadot		sound-name-prefix = "Speaker Amplifier";
755f62a964SEmmanuel Vadot	};
765f62a964SEmmanuel Vadot
775f62a964SEmmanuel Vadot	analog-sound {
785f62a964SEmmanuel Vadot		compatible = "simple-audio-card";
795f62a964SEmmanuel Vadot		pinctrl-names = "default";
805f62a964SEmmanuel Vadot		pinctrl-0 = <&hp_detect>;
815f62a964SEmmanuel Vadot		simple-audio-card,name = "RK3588 EVB1 Audio";
825f62a964SEmmanuel Vadot		simple-audio-card,aux-devs = <&amp_headphone>, <&amp_speaker>;
835f62a964SEmmanuel Vadot		simple-audio-card,bitclock-master = <&masterdai>;
845f62a964SEmmanuel Vadot		simple-audio-card,format = "i2s";
855f62a964SEmmanuel Vadot		simple-audio-card,frame-master = <&masterdai>;
865f62a964SEmmanuel Vadot		simple-audio-card,hp-det-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
875f62a964SEmmanuel Vadot		simple-audio-card,mclk-fs = <256>;
885f62a964SEmmanuel Vadot		simple-audio-card,pin-switches = "Headphones", "Speaker";
895f62a964SEmmanuel Vadot		simple-audio-card,routing =
905f62a964SEmmanuel Vadot			"Speaker Amplifier INL", "LOUT2",
915f62a964SEmmanuel Vadot			"Speaker Amplifier INR", "ROUT2",
925f62a964SEmmanuel Vadot			"Speaker", "Speaker Amplifier OUTL",
935f62a964SEmmanuel Vadot			"Speaker", "Speaker Amplifier OUTR",
945f62a964SEmmanuel Vadot			"Headphones Amplifier INL", "LOUT1",
955f62a964SEmmanuel Vadot			"Headphones Amplifier INR", "ROUT1",
965f62a964SEmmanuel Vadot			"Headphones", "Headphones Amplifier OUTL",
975f62a964SEmmanuel Vadot			"Headphones", "Headphones Amplifier OUTR",
985f62a964SEmmanuel Vadot			"LINPUT1", "Onboard Microphone",
995f62a964SEmmanuel Vadot			"RINPUT1", "Onboard Microphone",
1005f62a964SEmmanuel Vadot			"LINPUT2", "Microphone Jack",
1015f62a964SEmmanuel Vadot			"RINPUT2", "Microphone Jack";
1025f62a964SEmmanuel Vadot		simple-audio-card,widgets =
1035f62a964SEmmanuel Vadot			"Microphone", "Microphone Jack",
1045f62a964SEmmanuel Vadot			"Microphone", "Onboard Microphone",
1055f62a964SEmmanuel Vadot			"Headphone", "Headphones",
1065f62a964SEmmanuel Vadot			"Speaker", "Speaker";
1075f62a964SEmmanuel Vadot
1085f62a964SEmmanuel Vadot		simple-audio-card,cpu {
1095f62a964SEmmanuel Vadot			sound-dai = <&i2s0_8ch>;
1105f62a964SEmmanuel Vadot		};
1115f62a964SEmmanuel Vadot
1125f62a964SEmmanuel Vadot		masterdai: simple-audio-card,codec {
1135f62a964SEmmanuel Vadot			sound-dai = <&es8388>;
1145f62a964SEmmanuel Vadot			system-clock-frequency = <12288000>;
1155f62a964SEmmanuel Vadot		};
1165f62a964SEmmanuel Vadot	};
1175f62a964SEmmanuel Vadot
1185f62a964SEmmanuel Vadot	backlight: backlight {
1195f62a964SEmmanuel Vadot		compatible = "pwm-backlight";
1205f62a964SEmmanuel Vadot		power-supply = <&vcc3v3_lcd_edp>;
1215f62a964SEmmanuel Vadot		pwms = <&pwm12 0 25000 0>;
1225f62a964SEmmanuel Vadot	};
1235f62a964SEmmanuel Vadot
1245f62a964SEmmanuel Vadot	combophy_avdd0v85: regulator-combophy-avdd0v85 {
1255f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1265f62a964SEmmanuel Vadot		regulator-name = "combophy_avdd0v85";
1275f62a964SEmmanuel Vadot		regulator-always-on;
1285f62a964SEmmanuel Vadot		regulator-boot-on;
1295f62a964SEmmanuel Vadot		regulator-min-microvolt = <850000>;
1305f62a964SEmmanuel Vadot		regulator-max-microvolt = <850000>;
1315f62a964SEmmanuel Vadot		vin-supply = <&vdd_0v85_s0>;
1325f62a964SEmmanuel Vadot	};
1335f62a964SEmmanuel Vadot
1345f62a964SEmmanuel Vadot	combophy_avdd1v8: regulator-combophy-avdd1v8 {
1355f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1365f62a964SEmmanuel Vadot		regulator-name = "combophy_avdd1v8";
1375f62a964SEmmanuel Vadot		regulator-always-on;
1385f62a964SEmmanuel Vadot		regulator-boot-on;
1395f62a964SEmmanuel Vadot		regulator-min-microvolt = <1800000>;
1405f62a964SEmmanuel Vadot		regulator-max-microvolt = <1800000>;
1415f62a964SEmmanuel Vadot		vin-supply = <&avcc_1v8_s0>;
1425f62a964SEmmanuel Vadot	};
1435f62a964SEmmanuel Vadot
1445f62a964SEmmanuel Vadot	vbus5v0_typec: regulator-vbus5v0-typec {
1455f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1465f62a964SEmmanuel Vadot		enable-active-high;
1475f62a964SEmmanuel Vadot		gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
1485f62a964SEmmanuel Vadot		pinctrl-names = "default";
1495f62a964SEmmanuel Vadot		pinctrl-0 = <&typec5v_pwren>;
1505f62a964SEmmanuel Vadot		regulator-name = "vbus5v0_typec";
1515f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1525f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
1535f62a964SEmmanuel Vadot		vin-supply = <&vcc5v0_usb>;
1545f62a964SEmmanuel Vadot	};
1555f62a964SEmmanuel Vadot
1565f62a964SEmmanuel Vadot	vcc12v_dcin: regulator-vcc12v-dcin {
1575f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1585f62a964SEmmanuel Vadot		regulator-name = "vcc12v_dcin";
1595f62a964SEmmanuel Vadot		regulator-always-on;
1605f62a964SEmmanuel Vadot		regulator-boot-on;
1615f62a964SEmmanuel Vadot		regulator-min-microvolt = <12000000>;
1625f62a964SEmmanuel Vadot		regulator-max-microvolt = <12000000>;
1635f62a964SEmmanuel Vadot	};
1645f62a964SEmmanuel Vadot
1655f62a964SEmmanuel Vadot	vcc3v3_lcd_edp: regulator-vcc3v3-lcd-edp {
1665f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1675f62a964SEmmanuel Vadot		enable-active-high;
1685f62a964SEmmanuel Vadot		gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>;
1695f62a964SEmmanuel Vadot		pinctrl-names = "default";
1705f62a964SEmmanuel Vadot		pinctrl-0 = <&vcc3v3_lcd_edp_en>;
1715f62a964SEmmanuel Vadot		regulator-name = "vcc3v3_lcd_edp";
1725f62a964SEmmanuel Vadot		regulator-boot-on;
1735f62a964SEmmanuel Vadot		vin-supply = <&vcc_3v3_s3>;
1745f62a964SEmmanuel Vadot	};
1755f62a964SEmmanuel Vadot
1765f62a964SEmmanuel Vadot	vcc3v3_pcie20: regulator-vcc3v3-pcie20 {
1775f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1785f62a964SEmmanuel Vadot		enable-active-high;
1795f62a964SEmmanuel Vadot		gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
1805f62a964SEmmanuel Vadot		pinctrl-names = "default";
1815f62a964SEmmanuel Vadot		pinctrl-0 = <&vcc3v3_pcie20_en>;
1825f62a964SEmmanuel Vadot		regulator-name = "vcc3v3_pcie20";
1835f62a964SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
1845f62a964SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
1855f62a964SEmmanuel Vadot		startup-delay-us = <5000>;
1865f62a964SEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
1875f62a964SEmmanuel Vadot	};
1885f62a964SEmmanuel Vadot
1895f62a964SEmmanuel Vadot	vcc5v0_host: regulator-vcc5v0-host {
1905f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
1915f62a964SEmmanuel Vadot		enable-active-high;
1925f62a964SEmmanuel Vadot		gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
1935f62a964SEmmanuel Vadot		pinctrl-names = "default";
1945f62a964SEmmanuel Vadot		pinctrl-0 = <&vcc5v0_host_en>;
1955f62a964SEmmanuel Vadot		regulator-name = "vcc5v0_host";
1965f62a964SEmmanuel Vadot		regulator-always-on;
1975f62a964SEmmanuel Vadot		regulator-boot-on;
1985f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1995f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
2005f62a964SEmmanuel Vadot		vin-supply = <&vcc5v0_usb>;
2015f62a964SEmmanuel Vadot	};
2025f62a964SEmmanuel Vadot
2035f62a964SEmmanuel Vadot	vcc5v0_sys: regulator-vcc5v0-sys {
2045f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
2055f62a964SEmmanuel Vadot		regulator-name = "vcc5v0_sys";
2065f62a964SEmmanuel Vadot		regulator-always-on;
2075f62a964SEmmanuel Vadot		regulator-boot-on;
2085f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
2095f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
2105f62a964SEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
2115f62a964SEmmanuel Vadot	};
2125f62a964SEmmanuel Vadot
2135f62a964SEmmanuel Vadot	vcc5v0_usb: regulator-vcc5v0-usb {
2145f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
2155f62a964SEmmanuel Vadot		regulator-name = "vcc5v0_usb";
2165f62a964SEmmanuel Vadot		regulator-always-on;
2175f62a964SEmmanuel Vadot		regulator-boot-on;
2185f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
2195f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
2205f62a964SEmmanuel Vadot		vin-supply = <&vcc5v0_usbdcin>;
2215f62a964SEmmanuel Vadot	};
2225f62a964SEmmanuel Vadot
2235f62a964SEmmanuel Vadot	vcc5v0_usbdcin: regulator-vcc5v0-usbdcin {
2245f62a964SEmmanuel Vadot		compatible = "regulator-fixed";
2255f62a964SEmmanuel Vadot		regulator-name = "vcc5v0_usbdcin";
2265f62a964SEmmanuel Vadot		regulator-always-on;
2275f62a964SEmmanuel Vadot		regulator-boot-on;
2285f62a964SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
2295f62a964SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
2305f62a964SEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
2315f62a964SEmmanuel Vadot	};
2325f62a964SEmmanuel Vadot};
2335f62a964SEmmanuel Vadot
2345f62a964SEmmanuel Vadot&combphy0_ps {
2355f62a964SEmmanuel Vadot	status = "okay";
2365f62a964SEmmanuel Vadot};
2375f62a964SEmmanuel Vadot
2385f62a964SEmmanuel Vadot&combphy2_psu {
2395f62a964SEmmanuel Vadot	status = "okay";
2405f62a964SEmmanuel Vadot};
2415f62a964SEmmanuel Vadot
242*ae5de77eSEmmanuel Vadot&edp0 {
243*ae5de77eSEmmanuel Vadot	force-hpd;
244*ae5de77eSEmmanuel Vadot	status = "okay";
245*ae5de77eSEmmanuel Vadot
246*ae5de77eSEmmanuel Vadot	aux-bus {
247*ae5de77eSEmmanuel Vadot		panel {
248*ae5de77eSEmmanuel Vadot			compatible = "edp-panel";
249*ae5de77eSEmmanuel Vadot			backlight = <&backlight>;
250*ae5de77eSEmmanuel Vadot			power-supply = <&vcc3v3_lcd_edp>;
251*ae5de77eSEmmanuel Vadot			no-hpd;
252*ae5de77eSEmmanuel Vadot
253*ae5de77eSEmmanuel Vadot			port {
254*ae5de77eSEmmanuel Vadot				panel_in_edp: endpoint {
255*ae5de77eSEmmanuel Vadot					remote-endpoint = <&edp_out_panel>;
256*ae5de77eSEmmanuel Vadot				};
257*ae5de77eSEmmanuel Vadot			};
258*ae5de77eSEmmanuel Vadot		};
259*ae5de77eSEmmanuel Vadot	};
260*ae5de77eSEmmanuel Vadot};
261*ae5de77eSEmmanuel Vadot
262*ae5de77eSEmmanuel Vadot&edp0_in {
263*ae5de77eSEmmanuel Vadot	edp0_in_vp2: endpoint {
264*ae5de77eSEmmanuel Vadot		remote-endpoint = <&vp2_out_edp0>;
265*ae5de77eSEmmanuel Vadot	};
266*ae5de77eSEmmanuel Vadot};
267*ae5de77eSEmmanuel Vadot
268*ae5de77eSEmmanuel Vadot&edp0_out {
269*ae5de77eSEmmanuel Vadot	edp_out_panel: endpoint {
270*ae5de77eSEmmanuel Vadot		remote-endpoint = <&panel_in_edp>;
271*ae5de77eSEmmanuel Vadot	};
272*ae5de77eSEmmanuel Vadot};
273*ae5de77eSEmmanuel Vadot
274*ae5de77eSEmmanuel Vadot&hdptxphy0 {
275*ae5de77eSEmmanuel Vadot	status = "okay";
276*ae5de77eSEmmanuel Vadot};
277*ae5de77eSEmmanuel Vadot
2785f62a964SEmmanuel Vadot&i2c3 {
2795f62a964SEmmanuel Vadot	status = "okay";
2805f62a964SEmmanuel Vadot
2815f62a964SEmmanuel Vadot	es8388: audio-codec@11 {
2828ccc0d23SEmmanuel Vadot		compatible = "everest,es8388", "everest,es8328";
2835f62a964SEmmanuel Vadot		reg = <0x11>;
2845f62a964SEmmanuel Vadot		clocks = <&cru I2S0_8CH_MCLKOUT>;
2855f62a964SEmmanuel Vadot		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
2865f62a964SEmmanuel Vadot		assigned-clock-rates = <12288000>;
2875f62a964SEmmanuel Vadot		AVDD-supply = <&avcc_1v8_s0>;
2885f62a964SEmmanuel Vadot		DVDD-supply = <&avcc_1v8_s0>;
2895f62a964SEmmanuel Vadot		HPVDD-supply = <&vcc_3v3_s0>;
2905f62a964SEmmanuel Vadot		PVDD-supply = <&vcc_3v3_s0>;
2915f62a964SEmmanuel Vadot		#sound-dai-cells = <0>;
2925f62a964SEmmanuel Vadot	};
2935f62a964SEmmanuel Vadot};
2945f62a964SEmmanuel Vadot
2955f62a964SEmmanuel Vadot&i2c8 {
2965f62a964SEmmanuel Vadot	pinctrl-names = "default";
2975f62a964SEmmanuel Vadot	pinctrl-0 = <&i2c8m2_xfer>;
2985f62a964SEmmanuel Vadot	status = "okay";
2995f62a964SEmmanuel Vadot
3005f62a964SEmmanuel Vadot	usbc0: usb-typec@22 {
3015f62a964SEmmanuel Vadot		compatible = "fcs,fusb302";
3025f62a964SEmmanuel Vadot		reg = <0x22>;
3035f62a964SEmmanuel Vadot		interrupt-parent = <&gpio0>;
3045f62a964SEmmanuel Vadot		interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
3055f62a964SEmmanuel Vadot		pinctrl-names = "default";
3065f62a964SEmmanuel Vadot		pinctrl-0 = <&usbc0_int>;
3075f62a964SEmmanuel Vadot		vbus-supply = <&vbus5v0_typec>;
3085f62a964SEmmanuel Vadot
3095f62a964SEmmanuel Vadot		usb_con: connector {
3105f62a964SEmmanuel Vadot			compatible = "usb-c-connector";
3115f62a964SEmmanuel Vadot			label = "USB-C";
3125f62a964SEmmanuel Vadot			data-role = "dual";
3135f62a964SEmmanuel Vadot			op-sink-microwatt = <1000000>;
3145f62a964SEmmanuel Vadot			power-role = "dual";
3155f62a964SEmmanuel Vadot			sink-pdos =
3165f62a964SEmmanuel Vadot				<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
3175f62a964SEmmanuel Vadot			source-pdos =
3185f62a964SEmmanuel Vadot				<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
3195f62a964SEmmanuel Vadot			try-power-role = "source";
3205f62a964SEmmanuel Vadot
3215f62a964SEmmanuel Vadot			ports {
3225f62a964SEmmanuel Vadot				#address-cells = <1>;
3235f62a964SEmmanuel Vadot				#size-cells = <0>;
3245f62a964SEmmanuel Vadot
3255f62a964SEmmanuel Vadot				port@0 {
3265f62a964SEmmanuel Vadot					reg = <0>;
3275f62a964SEmmanuel Vadot
3285f62a964SEmmanuel Vadot					usbc0_orien_sw: endpoint {
3295f62a964SEmmanuel Vadot						remote-endpoint = <&usbdp_phy0_orientation_switch>;
3305f62a964SEmmanuel Vadot					};
3315f62a964SEmmanuel Vadot				};
3325f62a964SEmmanuel Vadot
3335f62a964SEmmanuel Vadot				port@1 {
3345f62a964SEmmanuel Vadot					reg = <1>;
3355f62a964SEmmanuel Vadot
3365f62a964SEmmanuel Vadot					usbc0_role_sw: endpoint {
3375f62a964SEmmanuel Vadot						remote-endpoint = <&dwc3_0_role_switch>;
3385f62a964SEmmanuel Vadot					};
3395f62a964SEmmanuel Vadot				};
3405f62a964SEmmanuel Vadot
3415f62a964SEmmanuel Vadot				port@2 {
3425f62a964SEmmanuel Vadot					reg = <2>;
3435f62a964SEmmanuel Vadot
3445f62a964SEmmanuel Vadot					dp_altmode_mux: endpoint {
3455f62a964SEmmanuel Vadot						remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
3465f62a964SEmmanuel Vadot					};
3475f62a964SEmmanuel Vadot				};
3485f62a964SEmmanuel Vadot			};
3495f62a964SEmmanuel Vadot		};
3505f62a964SEmmanuel Vadot	};
3515f62a964SEmmanuel Vadot
3525f62a964SEmmanuel Vadot	hym8563: rtc@51 {
3535f62a964SEmmanuel Vadot		compatible = "haoyu,hym8563";
3545f62a964SEmmanuel Vadot		reg = <0x51>;
3555f62a964SEmmanuel Vadot		#clock-cells = <0>;
3565f62a964SEmmanuel Vadot		clock-output-names = "hym8563";
3575f62a964SEmmanuel Vadot		pinctrl-names = "default";
3585f62a964SEmmanuel Vadot		pinctrl-0 = <&hym8563_int>;
3595f62a964SEmmanuel Vadot		interrupt-parent = <&gpio0>;
3605f62a964SEmmanuel Vadot		interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>;
3615f62a964SEmmanuel Vadot		wakeup-source;
3625f62a964SEmmanuel Vadot	};
3635f62a964SEmmanuel Vadot};
3645f62a964SEmmanuel Vadot
3655f62a964SEmmanuel Vadot&pcie2x1l1 {
3665f62a964SEmmanuel Vadot	pinctrl-names = "default";
3675f62a964SEmmanuel Vadot	pinctrl-0 = <&pcie2_1_rst>;
3685f62a964SEmmanuel Vadot	reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
3695f62a964SEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie20>;
3705f62a964SEmmanuel Vadot	status = "okay";
3715f62a964SEmmanuel Vadot};
3725f62a964SEmmanuel Vadot
3735f62a964SEmmanuel Vadot&pcie2x1l2 {
3745f62a964SEmmanuel Vadot	pinctrl-names = "default";
3755f62a964SEmmanuel Vadot	pinctrl-0 = <&pcie2_2_rst>;
3765f62a964SEmmanuel Vadot	reset-gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
3775f62a964SEmmanuel Vadot	status = "okay";
3785f62a964SEmmanuel Vadot};
3795f62a964SEmmanuel Vadot
3808ccc0d23SEmmanuel Vadot&pd_gpu {
3818ccc0d23SEmmanuel Vadot	domain-supply = <&vdd_gpu_s0>;
3828ccc0d23SEmmanuel Vadot};
3838ccc0d23SEmmanuel Vadot
3845f62a964SEmmanuel Vadot&pinctrl {
3855f62a964SEmmanuel Vadot	audio {
3865f62a964SEmmanuel Vadot		hp_detect: headphone-detect {
3875f62a964SEmmanuel Vadot			rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
3885f62a964SEmmanuel Vadot		};
3895f62a964SEmmanuel Vadot
3905f62a964SEmmanuel Vadot		headphone_amplifier_en: headphone-amplifier-en {
3915f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
3925f62a964SEmmanuel Vadot		};
3935f62a964SEmmanuel Vadot
3945f62a964SEmmanuel Vadot		speaker_amplifier_en: speaker-amplifier-en {
3955f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
3965f62a964SEmmanuel Vadot		};
3975f62a964SEmmanuel Vadot	};
3985f62a964SEmmanuel Vadot
3995f62a964SEmmanuel Vadot	hym8563 {
4005f62a964SEmmanuel Vadot		hym8563_int: hym8563-int {
4015f62a964SEmmanuel Vadot			rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
4025f62a964SEmmanuel Vadot		};
4035f62a964SEmmanuel Vadot	};
4045f62a964SEmmanuel Vadot
4055f62a964SEmmanuel Vadot	lcd-edp {
4065f62a964SEmmanuel Vadot		vcc3v3_lcd_edp_en: vcc3v3-lcd-edp-en {
4075f62a964SEmmanuel Vadot			rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
4085f62a964SEmmanuel Vadot		};
4095f62a964SEmmanuel Vadot	};
4105f62a964SEmmanuel Vadot
4115f62a964SEmmanuel Vadot	pcie2 {
4125f62a964SEmmanuel Vadot		pcie2_1_rst: pcie2-1-rst {
4135f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
4145f62a964SEmmanuel Vadot		};
4155f62a964SEmmanuel Vadot
4165f62a964SEmmanuel Vadot		pcie2_2_rst: pcie2-2-rst {
4175f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
4185f62a964SEmmanuel Vadot		};
4195f62a964SEmmanuel Vadot
4205f62a964SEmmanuel Vadot		vcc3v3_pcie20_en: vcc3v3-pcie20-en {
4215f62a964SEmmanuel Vadot			rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
4225f62a964SEmmanuel Vadot		};
4235f62a964SEmmanuel Vadot	};
4245f62a964SEmmanuel Vadot
4255f62a964SEmmanuel Vadot	usb {
4265f62a964SEmmanuel Vadot		vcc5v0_host_en: vcc5v0-host-en {
4275f62a964SEmmanuel Vadot			rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
4285f62a964SEmmanuel Vadot		};
4295f62a964SEmmanuel Vadot	};
4305f62a964SEmmanuel Vadot
4315f62a964SEmmanuel Vadot	usb-typec {
4325f62a964SEmmanuel Vadot		typec5v_pwren: typec5v-pwren {
4335f62a964SEmmanuel Vadot			rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
4345f62a964SEmmanuel Vadot		};
4355f62a964SEmmanuel Vadot
4365f62a964SEmmanuel Vadot		usbc0_int: usbc0-int {
4375f62a964SEmmanuel Vadot			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
4385f62a964SEmmanuel Vadot		};
4395f62a964SEmmanuel Vadot	};
4405f62a964SEmmanuel Vadot};
4415f62a964SEmmanuel Vadot
4425f62a964SEmmanuel Vadot&pwm12 {
443*ae5de77eSEmmanuel Vadot	pinctrl-0 = <&pwm12m1_pins>;
4445f62a964SEmmanuel Vadot	status = "okay";
4455f62a964SEmmanuel Vadot};
4465f62a964SEmmanuel Vadot
4475f62a964SEmmanuel Vadot&saradc {
4485f62a964SEmmanuel Vadot	vref-supply = <&vcc_1v8_s0>;
4495f62a964SEmmanuel Vadot	status = "okay";
4505f62a964SEmmanuel Vadot};
4515f62a964SEmmanuel Vadot
4525f62a964SEmmanuel Vadot&sdhci {
4535f62a964SEmmanuel Vadot	bus-width = <8>;
4545f62a964SEmmanuel Vadot	mmc-hs400-1_8v;
4555f62a964SEmmanuel Vadot	mmc-hs400-enhanced-strobe;
4565f62a964SEmmanuel Vadot	no-sdio;
4575f62a964SEmmanuel Vadot	no-sd;
4585f62a964SEmmanuel Vadot	non-removable;
4595f62a964SEmmanuel Vadot	status = "okay";
4605f62a964SEmmanuel Vadot};
4615f62a964SEmmanuel Vadot
4625f62a964SEmmanuel Vadot&sdmmc {
4635f62a964SEmmanuel Vadot	bus-width = <4>;
4645f62a964SEmmanuel Vadot	cap-mmc-highspeed;
4655f62a964SEmmanuel Vadot	cap-sd-highspeed;
4665f62a964SEmmanuel Vadot	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
4675f62a964SEmmanuel Vadot	disable-wp;
4685f62a964SEmmanuel Vadot	max-frequency = <150000000>;
4695f62a964SEmmanuel Vadot	no-mmc;
4705f62a964SEmmanuel Vadot	no-sdio;
4715f62a964SEmmanuel Vadot	sd-uhs-sdr104;
4725f62a964SEmmanuel Vadot	vmmc-supply = <&vcc_3v3_sd_s0>;
4735f62a964SEmmanuel Vadot	vqmmc-supply = <&vccio_sd_s0>;
4745f62a964SEmmanuel Vadot	status = "okay";
4755f62a964SEmmanuel Vadot};
4765f62a964SEmmanuel Vadot
4775f62a964SEmmanuel Vadot&spi2 {
4785f62a964SEmmanuel Vadot	assigned-clocks = <&cru CLK_SPI2>;
4795f62a964SEmmanuel Vadot	assigned-clock-rates = <200000000>;
4805f62a964SEmmanuel Vadot	num-cs = <2>;
4815f62a964SEmmanuel Vadot	status = "okay";
4825f62a964SEmmanuel Vadot
4835f62a964SEmmanuel Vadot	pmic@0 {
4845f62a964SEmmanuel Vadot		compatible = "rockchip,rk806";
4855f62a964SEmmanuel Vadot		reg = <0x0>;
4865f62a964SEmmanuel Vadot		#gpio-cells = <2>;
4875f62a964SEmmanuel Vadot		gpio-controller;
4885f62a964SEmmanuel Vadot		interrupt-parent = <&gpio0>;
4895f62a964SEmmanuel Vadot		interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
4905f62a964SEmmanuel Vadot		pinctrl-names = "default";
4915f62a964SEmmanuel Vadot		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
4925f62a964SEmmanuel Vadot			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
4935f62a964SEmmanuel Vadot		spi-max-frequency = <1000000>;
4945f62a964SEmmanuel Vadot		system-power-controller;
4955f62a964SEmmanuel Vadot
4965f62a964SEmmanuel Vadot		vcc1-supply = <&vcc5v0_sys>;
4975f62a964SEmmanuel Vadot		vcc2-supply = <&vcc5v0_sys>;
4985f62a964SEmmanuel Vadot		vcc3-supply = <&vcc5v0_sys>;
4995f62a964SEmmanuel Vadot		vcc4-supply = <&vcc5v0_sys>;
5005f62a964SEmmanuel Vadot		vcc5-supply = <&vcc5v0_sys>;
5015f62a964SEmmanuel Vadot		vcc6-supply = <&vcc5v0_sys>;
5025f62a964SEmmanuel Vadot		vcc7-supply = <&vcc5v0_sys>;
5035f62a964SEmmanuel Vadot		vcc8-supply = <&vcc5v0_sys>;
5045f62a964SEmmanuel Vadot		vcc9-supply = <&vcc5v0_sys>;
5055f62a964SEmmanuel Vadot		vcc10-supply = <&vcc5v0_sys>;
5065f62a964SEmmanuel Vadot		vcc11-supply = <&vcc_2v0_pldo_s3>;
5075f62a964SEmmanuel Vadot		vcc12-supply = <&vcc5v0_sys>;
5085f62a964SEmmanuel Vadot		vcc13-supply = <&vcc5v0_sys>;
5095f62a964SEmmanuel Vadot		vcc14-supply = <&vcc_1v1_nldo_s3>;
5105f62a964SEmmanuel Vadot		vcca-supply = <&vcc5v0_sys>;
5115f62a964SEmmanuel Vadot
5125f62a964SEmmanuel Vadot		rk806_dvs1_null: dvs1-null-pins {
5135f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl1";
5145f62a964SEmmanuel Vadot			function = "pin_fun0";
5155f62a964SEmmanuel Vadot		};
5165f62a964SEmmanuel Vadot
5175f62a964SEmmanuel Vadot		rk806_dvs2_null: dvs2-null-pins {
5185f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl2";
5195f62a964SEmmanuel Vadot			function = "pin_fun0";
5205f62a964SEmmanuel Vadot		};
5215f62a964SEmmanuel Vadot
5225f62a964SEmmanuel Vadot		rk806_dvs3_null: dvs3-null-pins {
5235f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl3";
5245f62a964SEmmanuel Vadot			function = "pin_fun0";
5255f62a964SEmmanuel Vadot		};
5265f62a964SEmmanuel Vadot
5275f62a964SEmmanuel Vadot		regulators {
5285f62a964SEmmanuel Vadot			vdd_gpu_s0: dcdc-reg1 {
5295f62a964SEmmanuel Vadot				regulator-name = "vdd_gpu_s0";
5305f62a964SEmmanuel Vadot				regulator-boot-on;
5315f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
5325f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
5335f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
5345f62a964SEmmanuel Vadot				regulator-enable-ramp-delay = <400>;
5355f62a964SEmmanuel Vadot
5365f62a964SEmmanuel Vadot				regulator-state-mem {
5375f62a964SEmmanuel Vadot					regulator-off-in-suspend;
5385f62a964SEmmanuel Vadot				};
5395f62a964SEmmanuel Vadot			};
5405f62a964SEmmanuel Vadot
5415f62a964SEmmanuel Vadot			vdd_npu_s0: dcdc-reg2 {
5425f62a964SEmmanuel Vadot				regulator-name = "vdd_npu_s0";
5435f62a964SEmmanuel Vadot				regulator-always-on;
5445f62a964SEmmanuel Vadot				regulator-boot-on;
5455f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
5465f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
5475f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
5485f62a964SEmmanuel Vadot
5495f62a964SEmmanuel Vadot				regulator-state-mem {
5505f62a964SEmmanuel Vadot					regulator-off-in-suspend;
5515f62a964SEmmanuel Vadot				};
5525f62a964SEmmanuel Vadot			};
5535f62a964SEmmanuel Vadot
5545f62a964SEmmanuel Vadot			vdd_log_s0: dcdc-reg3 {
5555f62a964SEmmanuel Vadot				regulator-name = "vdd_log_s0";
5565f62a964SEmmanuel Vadot				regulator-always-on;
5575f62a964SEmmanuel Vadot				regulator-boot-on;
5585f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
5595f62a964SEmmanuel Vadot				regulator-max-microvolt = <800000>;
5605f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
5615f62a964SEmmanuel Vadot
5625f62a964SEmmanuel Vadot				regulator-state-mem {
5635f62a964SEmmanuel Vadot					regulator-off-in-suspend;
5645f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
5655f62a964SEmmanuel Vadot				};
5665f62a964SEmmanuel Vadot			};
5675f62a964SEmmanuel Vadot
5685f62a964SEmmanuel Vadot			vdd_vdenc_s0: dcdc-reg4 {
5695f62a964SEmmanuel Vadot				regulator-name = "vdd_vdenc_s0";
5705f62a964SEmmanuel Vadot				regulator-always-on;
5715f62a964SEmmanuel Vadot				regulator-boot-on;
5725f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
5735f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
5745f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
5755f62a964SEmmanuel Vadot
5765f62a964SEmmanuel Vadot				regulator-state-mem {
5775f62a964SEmmanuel Vadot					regulator-off-in-suspend;
5785f62a964SEmmanuel Vadot				};
5795f62a964SEmmanuel Vadot			};
5805f62a964SEmmanuel Vadot
5815f62a964SEmmanuel Vadot			vdd_gpu_mem_s0: dcdc-reg5 {
5825f62a964SEmmanuel Vadot				regulator-name = "vdd_gpu_mem_s0";
5835f62a964SEmmanuel Vadot				regulator-boot-on;
5845f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
5855f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
5865f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
5875f62a964SEmmanuel Vadot				regulator-enable-ramp-delay = <400>;
5885f62a964SEmmanuel Vadot
5895f62a964SEmmanuel Vadot				regulator-state-mem {
5905f62a964SEmmanuel Vadot					regulator-off-in-suspend;
5915f62a964SEmmanuel Vadot				};
5925f62a964SEmmanuel Vadot			};
5935f62a964SEmmanuel Vadot
5945f62a964SEmmanuel Vadot			vdd_npu_mem_s0: dcdc-reg6 {
5955f62a964SEmmanuel Vadot				regulator-name = "vdd_npu_mem_s0";
5965f62a964SEmmanuel Vadot				regulator-always-on;
5975f62a964SEmmanuel Vadot				regulator-boot-on;
5985f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
5995f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
6005f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6015f62a964SEmmanuel Vadot
6025f62a964SEmmanuel Vadot				regulator-state-mem {
6035f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6045f62a964SEmmanuel Vadot				};
6055f62a964SEmmanuel Vadot			};
6065f62a964SEmmanuel Vadot
6075f62a964SEmmanuel Vadot			vcc_2v0_pldo_s3: dcdc-reg7 {
6085f62a964SEmmanuel Vadot				regulator-name = "vdd_2v0_pldo_s3";
6095f62a964SEmmanuel Vadot				regulator-always-on;
6105f62a964SEmmanuel Vadot				regulator-boot-on;
6115f62a964SEmmanuel Vadot				regulator-min-microvolt = <2000000>;
6125f62a964SEmmanuel Vadot				regulator-max-microvolt = <2000000>;
6135f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6145f62a964SEmmanuel Vadot
6155f62a964SEmmanuel Vadot				regulator-state-mem {
6165f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6175f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <2000000>;
6185f62a964SEmmanuel Vadot				};
6195f62a964SEmmanuel Vadot			};
6205f62a964SEmmanuel Vadot
6215f62a964SEmmanuel Vadot			vdd_vdenc_mem_s0: dcdc-reg8 {
6225f62a964SEmmanuel Vadot				regulator-name = "vdd_vdenc_mem_s0";
6235f62a964SEmmanuel Vadot				regulator-always-on;
6245f62a964SEmmanuel Vadot				regulator-boot-on;
6255f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
6265f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
6275f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6285f62a964SEmmanuel Vadot
6295f62a964SEmmanuel Vadot				regulator-state-mem {
6305f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6315f62a964SEmmanuel Vadot				};
6325f62a964SEmmanuel Vadot			};
6335f62a964SEmmanuel Vadot
6345f62a964SEmmanuel Vadot			vdd2_ddr_s3: dcdc-reg9 {
6355f62a964SEmmanuel Vadot				regulator-name = "vdd2_ddr_s3";
6365f62a964SEmmanuel Vadot				regulator-always-on;
6375f62a964SEmmanuel Vadot				regulator-boot-on;
6385f62a964SEmmanuel Vadot
6395f62a964SEmmanuel Vadot				regulator-state-mem {
6405f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6415f62a964SEmmanuel Vadot				};
6425f62a964SEmmanuel Vadot			};
6435f62a964SEmmanuel Vadot
6445f62a964SEmmanuel Vadot			vcc_1v1_nldo_s3: dcdc-reg10 {
6455f62a964SEmmanuel Vadot				regulator-name = "vcc_1v1_nldo_s3";
6465f62a964SEmmanuel Vadot				regulator-always-on;
6475f62a964SEmmanuel Vadot				regulator-boot-on;
6485f62a964SEmmanuel Vadot				regulator-min-microvolt = <1100000>;
6495f62a964SEmmanuel Vadot				regulator-max-microvolt = <1100000>;
6505f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6515f62a964SEmmanuel Vadot
6525f62a964SEmmanuel Vadot				regulator-state-mem {
6535f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6545f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1100000>;
6555f62a964SEmmanuel Vadot				};
6565f62a964SEmmanuel Vadot			};
6575f62a964SEmmanuel Vadot
6585f62a964SEmmanuel Vadot			avcc_1v8_s0: pldo-reg1 {
6595f62a964SEmmanuel Vadot				regulator-name = "avcc_1v8_s0";
6605f62a964SEmmanuel Vadot				regulator-always-on;
6615f62a964SEmmanuel Vadot				regulator-boot-on;
6625f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
6635f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
6645f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6655f62a964SEmmanuel Vadot
6665f62a964SEmmanuel Vadot				regulator-state-mem {
6675f62a964SEmmanuel Vadot					regulator-off-in-suspend;
6685f62a964SEmmanuel Vadot				};
6695f62a964SEmmanuel Vadot			};
6705f62a964SEmmanuel Vadot
6715f62a964SEmmanuel Vadot			vdd1_1v8_ddr_s3: pldo-reg2 {
6725f62a964SEmmanuel Vadot				regulator-name = "vdd1_1v8_ddr_s3";
6735f62a964SEmmanuel Vadot				regulator-always-on;
6745f62a964SEmmanuel Vadot				regulator-boot-on;
6755f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
6765f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
6775f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6785f62a964SEmmanuel Vadot
6795f62a964SEmmanuel Vadot				regulator-state-mem {
6805f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6815f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
6825f62a964SEmmanuel Vadot				};
6835f62a964SEmmanuel Vadot			};
6845f62a964SEmmanuel Vadot
6855f62a964SEmmanuel Vadot			vcc_1v8_s3: pldo-reg3 {
6865f62a964SEmmanuel Vadot				regulator-name = "vcc_1v8_s3";
6875f62a964SEmmanuel Vadot				regulator-always-on;
6885f62a964SEmmanuel Vadot				regulator-boot-on;
6895f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
6905f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
6915f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
6925f62a964SEmmanuel Vadot
6935f62a964SEmmanuel Vadot				regulator-state-mem {
6945f62a964SEmmanuel Vadot					regulator-on-in-suspend;
6955f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
6965f62a964SEmmanuel Vadot				};
6975f62a964SEmmanuel Vadot			};
6985f62a964SEmmanuel Vadot
6995f62a964SEmmanuel Vadot			vcc_3v3_s0: pldo-reg4 {
7005f62a964SEmmanuel Vadot				regulator-name = "vcc_3v3_s0";
7015f62a964SEmmanuel Vadot				regulator-always-on;
7025f62a964SEmmanuel Vadot				regulator-boot-on;
7035f62a964SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
7045f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
7055f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
7065f62a964SEmmanuel Vadot
7075f62a964SEmmanuel Vadot				regulator-state-mem {
7085f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7095f62a964SEmmanuel Vadot				};
7105f62a964SEmmanuel Vadot			};
7115f62a964SEmmanuel Vadot
7125f62a964SEmmanuel Vadot			vccio_sd_s0: pldo-reg5 {
7135f62a964SEmmanuel Vadot				regulator-name = "vccio_sd_s0";
7145f62a964SEmmanuel Vadot				regulator-always-on;
7155f62a964SEmmanuel Vadot				regulator-boot-on;
7165f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
7175f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
7185f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
7195f62a964SEmmanuel Vadot
7205f62a964SEmmanuel Vadot				regulator-state-mem {
7215f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7225f62a964SEmmanuel Vadot				};
7235f62a964SEmmanuel Vadot			};
7245f62a964SEmmanuel Vadot
7255f62a964SEmmanuel Vadot			master_pldo6_s3: pldo-reg6 {
7265f62a964SEmmanuel Vadot				regulator-name = "master_pldo6_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			vdd_0v75_s3: nldo-reg1 {
7395f62a964SEmmanuel Vadot				regulator-name = "vdd_0v75_s3";
7405f62a964SEmmanuel Vadot				regulator-always-on;
7415f62a964SEmmanuel Vadot				regulator-boot-on;
7425f62a964SEmmanuel Vadot				regulator-min-microvolt = <750000>;
7435f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
7445f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
7455f62a964SEmmanuel Vadot
7465f62a964SEmmanuel Vadot				regulator-state-mem {
7475f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7485f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
7495f62a964SEmmanuel Vadot				};
7505f62a964SEmmanuel Vadot			};
7515f62a964SEmmanuel Vadot
7525f62a964SEmmanuel Vadot			vdd2l_0v9_ddr_s3: nldo-reg2 {
7535f62a964SEmmanuel Vadot				regulator-name = "vdd2l_0v9_ddr_s3";
7545f62a964SEmmanuel Vadot				regulator-always-on;
7555f62a964SEmmanuel Vadot				regulator-boot-on;
7565f62a964SEmmanuel Vadot				regulator-min-microvolt = <900000>;
7575f62a964SEmmanuel Vadot				regulator-max-microvolt = <900000>;
7585f62a964SEmmanuel Vadot
7595f62a964SEmmanuel Vadot				regulator-state-mem {
7605f62a964SEmmanuel Vadot					regulator-on-in-suspend;
7615f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <900000>;
7625f62a964SEmmanuel Vadot				};
7635f62a964SEmmanuel Vadot			};
7645f62a964SEmmanuel Vadot
7655f62a964SEmmanuel Vadot			master_nldo3: nldo-reg3 {
7665f62a964SEmmanuel Vadot				regulator-name = "master_nldo3";
7675f62a964SEmmanuel Vadot
7685f62a964SEmmanuel Vadot				regulator-state-mem {
7695f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7705f62a964SEmmanuel Vadot				};
7715f62a964SEmmanuel Vadot			};
7725f62a964SEmmanuel Vadot
7735f62a964SEmmanuel Vadot			avdd_0v75_s0: nldo-reg4 {
7745f62a964SEmmanuel Vadot				regulator-name = "avdd_0v75_s0";
7755f62a964SEmmanuel Vadot				regulator-always-on;
7765f62a964SEmmanuel Vadot				regulator-boot-on;
7775f62a964SEmmanuel Vadot				regulator-min-microvolt = <750000>;
7785f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
7795f62a964SEmmanuel Vadot
7805f62a964SEmmanuel Vadot				regulator-state-mem {
7815f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7825f62a964SEmmanuel Vadot				};
7835f62a964SEmmanuel Vadot			};
7845f62a964SEmmanuel Vadot
7855f62a964SEmmanuel Vadot			vdd_0v85_s0: nldo-reg5 {
7865f62a964SEmmanuel Vadot				regulator-name = "vdd_0v85_s0";
7875f62a964SEmmanuel Vadot				regulator-always-on;
7885f62a964SEmmanuel Vadot				regulator-boot-on;
7895f62a964SEmmanuel Vadot				regulator-min-microvolt = <850000>;
7905f62a964SEmmanuel Vadot				regulator-max-microvolt = <850000>;
7915f62a964SEmmanuel Vadot
7925f62a964SEmmanuel Vadot				regulator-state-mem {
7935f62a964SEmmanuel Vadot					regulator-off-in-suspend;
7945f62a964SEmmanuel Vadot				};
7955f62a964SEmmanuel Vadot			};
7965f62a964SEmmanuel Vadot		};
7975f62a964SEmmanuel Vadot	};
7985f62a964SEmmanuel Vadot
7995f62a964SEmmanuel Vadot	pmic@1 {
8005f62a964SEmmanuel Vadot		compatible = "rockchip,rk806";
8015f62a964SEmmanuel Vadot		reg = <0x01>;
8025f62a964SEmmanuel Vadot		#gpio-cells = <2>;
8035f62a964SEmmanuel Vadot		gpio-controller;
8045f62a964SEmmanuel Vadot		interrupt-parent = <&gpio0>;
8055f62a964SEmmanuel Vadot		interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
8065f62a964SEmmanuel Vadot		pinctrl-names = "default";
8075f62a964SEmmanuel Vadot		pinctrl-0 = <&rk806_slave_dvs1_null>, <&rk806_slave_dvs2_null>,
8085f62a964SEmmanuel Vadot			    <&rk806_slave_dvs3_null>;
8095f62a964SEmmanuel Vadot		spi-max-frequency = <1000000>;
8105f62a964SEmmanuel Vadot
8115f62a964SEmmanuel Vadot		vcc1-supply = <&vcc5v0_sys>;
8125f62a964SEmmanuel Vadot		vcc2-supply = <&vcc5v0_sys>;
8135f62a964SEmmanuel Vadot		vcc3-supply = <&vcc5v0_sys>;
8145f62a964SEmmanuel Vadot		vcc4-supply = <&vcc5v0_sys>;
8155f62a964SEmmanuel Vadot		vcc5-supply = <&vcc5v0_sys>;
8165f62a964SEmmanuel Vadot		vcc6-supply = <&vcc5v0_sys>;
8175f62a964SEmmanuel Vadot		vcc7-supply = <&vcc5v0_sys>;
8185f62a964SEmmanuel Vadot		vcc8-supply = <&vcc5v0_sys>;
8195f62a964SEmmanuel Vadot		vcc9-supply = <&vcc5v0_sys>;
8205f62a964SEmmanuel Vadot		vcc10-supply = <&vcc5v0_sys>;
8215f62a964SEmmanuel Vadot		vcc11-supply = <&vcc_2v0_pldo_s3>;
8225f62a964SEmmanuel Vadot		vcc12-supply = <&vcc5v0_sys>;
8235f62a964SEmmanuel Vadot		vcc13-supply = <&vcc_1v1_nldo_s3>;
8245f62a964SEmmanuel Vadot		vcc14-supply = <&vcc_2v0_pldo_s3>;
8255f62a964SEmmanuel Vadot		vcca-supply = <&vcc5v0_sys>;
8265f62a964SEmmanuel Vadot
8275f62a964SEmmanuel Vadot		rk806_slave_dvs1_null: dvs1-null-pins {
8285f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl1";
8295f62a964SEmmanuel Vadot			function = "pin_fun0";
8305f62a964SEmmanuel Vadot		};
8315f62a964SEmmanuel Vadot
8325f62a964SEmmanuel Vadot		rk806_slave_dvs2_null: dvs2-null-pins {
8335f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl2";
8345f62a964SEmmanuel Vadot			function = "pin_fun0";
8355f62a964SEmmanuel Vadot		};
8365f62a964SEmmanuel Vadot
8375f62a964SEmmanuel Vadot		rk806_slave_dvs3_null: dvs3-null-pins {
8385f62a964SEmmanuel Vadot			pins = "gpio_pwrctrl3";
8395f62a964SEmmanuel Vadot			function = "pin_fun0";
8405f62a964SEmmanuel Vadot		};
8415f62a964SEmmanuel Vadot
8425f62a964SEmmanuel Vadot		regulators {
8435f62a964SEmmanuel Vadot			vdd_cpu_big1_s0: dcdc-reg1 {
8445f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_big1_s0";
8455f62a964SEmmanuel Vadot				regulator-always-on;
8465f62a964SEmmanuel Vadot				regulator-boot-on;
8475f62a964SEmmanuel Vadot				regulator-coupled-with = <&vdd_cpu_big1_mem_s0>;
8485f62a964SEmmanuel Vadot				regulator-coupled-max-spread = <10000>;
8495f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
8505f62a964SEmmanuel Vadot				regulator-max-microvolt = <1050000>;
8515f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
8525f62a964SEmmanuel Vadot
8535f62a964SEmmanuel Vadot				regulator-state-mem {
8545f62a964SEmmanuel Vadot					regulator-off-in-suspend;
8555f62a964SEmmanuel Vadot				};
8565f62a964SEmmanuel Vadot			};
8575f62a964SEmmanuel Vadot
8585f62a964SEmmanuel Vadot			vdd_cpu_big0_s0: dcdc-reg2 {
8595f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_big0_s0";
8605f62a964SEmmanuel Vadot				regulator-always-on;
8615f62a964SEmmanuel Vadot				regulator-boot-on;
8625f62a964SEmmanuel Vadot				regulator-coupled-with = <&vdd_cpu_big0_mem_s0>;
8635f62a964SEmmanuel Vadot				regulator-coupled-max-spread = <10000>;
8645f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
8655f62a964SEmmanuel Vadot				regulator-max-microvolt = <1050000>;
8665f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
8675f62a964SEmmanuel Vadot
8685f62a964SEmmanuel Vadot				regulator-state-mem {
8695f62a964SEmmanuel Vadot					regulator-off-in-suspend;
8705f62a964SEmmanuel Vadot				};
8715f62a964SEmmanuel Vadot			};
8725f62a964SEmmanuel Vadot
8735f62a964SEmmanuel Vadot			vdd_cpu_lit_s0: dcdc-reg3 {
8745f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_lit_s0";
8755f62a964SEmmanuel Vadot				regulator-always-on;
8765f62a964SEmmanuel Vadot				regulator-boot-on;
8775f62a964SEmmanuel Vadot				regulator-coupled-with = <&vdd_cpu_lit_mem_s0>;
8785f62a964SEmmanuel Vadot				regulator-coupled-max-spread = <10000>;
8795f62a964SEmmanuel Vadot				regulator-min-microvolt = <550000>;
8805f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
8815f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
8825f62a964SEmmanuel Vadot
8835f62a964SEmmanuel Vadot				regulator-state-mem {
8845f62a964SEmmanuel Vadot					regulator-off-in-suspend;
8855f62a964SEmmanuel Vadot				};
8865f62a964SEmmanuel Vadot			};
8875f62a964SEmmanuel Vadot
8885f62a964SEmmanuel Vadot			vcc_3v3_s3: dcdc-reg4 {
8895f62a964SEmmanuel Vadot				regulator-name = "vcc_3v3_s3";
8905f62a964SEmmanuel Vadot				regulator-always-on;
8915f62a964SEmmanuel Vadot				regulator-boot-on;
8925f62a964SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
8935f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
8945f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
8955f62a964SEmmanuel Vadot
8965f62a964SEmmanuel Vadot				regulator-state-mem {
8975f62a964SEmmanuel Vadot					regulator-on-in-suspend;
8985f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <3300000>;
8995f62a964SEmmanuel Vadot				};
9005f62a964SEmmanuel Vadot			};
9015f62a964SEmmanuel Vadot
9025f62a964SEmmanuel Vadot			vdd_cpu_big1_mem_s0: dcdc-reg5 {
9035f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_big1_mem_s0";
9045f62a964SEmmanuel Vadot				regulator-always-on;
9055f62a964SEmmanuel Vadot				regulator-boot-on;
9065f62a964SEmmanuel Vadot				regulator-coupled-with = <&vdd_cpu_big1_s0>;
9075f62a964SEmmanuel Vadot				regulator-coupled-max-spread = <10000>;
9085f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
9095f62a964SEmmanuel Vadot				regulator-max-microvolt = <1050000>;
9105f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
9115f62a964SEmmanuel Vadot
9125f62a964SEmmanuel Vadot				regulator-state-mem {
9135f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9145f62a964SEmmanuel Vadot				};
9155f62a964SEmmanuel Vadot			};
9165f62a964SEmmanuel Vadot
9175f62a964SEmmanuel Vadot
9185f62a964SEmmanuel Vadot			vdd_cpu_big0_mem_s0: dcdc-reg6 {
9195f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_big0_mem_s0";
9205f62a964SEmmanuel Vadot				regulator-always-on;
9215f62a964SEmmanuel Vadot				regulator-boot-on;
9225f62a964SEmmanuel Vadot				regulator-coupled-with = <&vdd_cpu_big0_s0>;
9235f62a964SEmmanuel Vadot				regulator-coupled-max-spread = <10000>;
9245f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
9255f62a964SEmmanuel Vadot				regulator-max-microvolt = <1050000>;
9265f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
9275f62a964SEmmanuel Vadot
9285f62a964SEmmanuel Vadot				regulator-state-mem {
9295f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9305f62a964SEmmanuel Vadot				};
9315f62a964SEmmanuel Vadot			};
9325f62a964SEmmanuel Vadot
9335f62a964SEmmanuel Vadot			vcc_1v8_s0: dcdc-reg7 {
9345f62a964SEmmanuel Vadot				regulator-name = "vcc_1v8_s0";
9355f62a964SEmmanuel Vadot				regulator-always-on;
9365f62a964SEmmanuel Vadot				regulator-boot-on;
9375f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
9385f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
9395f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
9405f62a964SEmmanuel Vadot
9415f62a964SEmmanuel Vadot				regulator-state-mem {
9425f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9435f62a964SEmmanuel Vadot				};
9445f62a964SEmmanuel Vadot			};
9455f62a964SEmmanuel Vadot
9465f62a964SEmmanuel Vadot			vdd_cpu_lit_mem_s0: dcdc-reg8 {
9475f62a964SEmmanuel Vadot				regulator-name = "vdd_cpu_lit_mem_s0";
9485f62a964SEmmanuel Vadot				regulator-always-on;
9495f62a964SEmmanuel Vadot				regulator-boot-on;
9505f62a964SEmmanuel Vadot				regulator-coupled-with = <&vdd_cpu_lit_s0>;
9515f62a964SEmmanuel Vadot				regulator-coupled-max-spread = <10000>;
9525f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
9535f62a964SEmmanuel Vadot				regulator-max-microvolt = <950000>;
9545f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
9555f62a964SEmmanuel Vadot
9565f62a964SEmmanuel Vadot				regulator-state-mem {
9575f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9585f62a964SEmmanuel Vadot				};
9595f62a964SEmmanuel Vadot			};
9605f62a964SEmmanuel Vadot
9615f62a964SEmmanuel Vadot			vddq_ddr_s0: dcdc-reg9 {
9625f62a964SEmmanuel Vadot				regulator-name = "vddq_ddr_s0";
9635f62a964SEmmanuel Vadot				regulator-always-on;
9645f62a964SEmmanuel Vadot				regulator-boot-on;
9655f62a964SEmmanuel Vadot
9665f62a964SEmmanuel Vadot				regulator-state-mem {
9675f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9685f62a964SEmmanuel Vadot				};
9695f62a964SEmmanuel Vadot			};
9705f62a964SEmmanuel Vadot
9715f62a964SEmmanuel Vadot			vdd_ddr_s0: dcdc-reg10 {
9725f62a964SEmmanuel Vadot				regulator-name = "vdd_ddr_s0";
9735f62a964SEmmanuel Vadot				regulator-always-on;
9745f62a964SEmmanuel Vadot				regulator-boot-on;
9755f62a964SEmmanuel Vadot				regulator-min-microvolt = <675000>;
9765f62a964SEmmanuel Vadot				regulator-max-microvolt = <900000>;
9775f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
9785f62a964SEmmanuel Vadot
9795f62a964SEmmanuel Vadot				regulator-state-mem {
9805f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9815f62a964SEmmanuel Vadot				};
9825f62a964SEmmanuel Vadot			};
9835f62a964SEmmanuel Vadot
9845f62a964SEmmanuel Vadot			vcc_1v8_cam_s0: pldo-reg1 {
9855f62a964SEmmanuel Vadot				regulator-name = "vcc_1v8_cam_s0";
9865f62a964SEmmanuel Vadot				regulator-always-on;
9875f62a964SEmmanuel Vadot				regulator-boot-on;
9885f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
9895f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
9905f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
9915f62a964SEmmanuel Vadot
9925f62a964SEmmanuel Vadot				regulator-state-mem {
9935f62a964SEmmanuel Vadot					regulator-off-in-suspend;
9945f62a964SEmmanuel Vadot				};
9955f62a964SEmmanuel Vadot			};
9965f62a964SEmmanuel Vadot
9975f62a964SEmmanuel Vadot			avdd1v8_ddr_pll_s0: pldo-reg2 {
9985f62a964SEmmanuel Vadot				regulator-name = "avdd1v8_ddr_pll_s0";
9995f62a964SEmmanuel Vadot				regulator-always-on;
10005f62a964SEmmanuel Vadot				regulator-boot-on;
10015f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
10025f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
10035f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
10045f62a964SEmmanuel Vadot
10055f62a964SEmmanuel Vadot				regulator-state-mem {
10065f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10075f62a964SEmmanuel Vadot				};
10085f62a964SEmmanuel Vadot			};
10095f62a964SEmmanuel Vadot
10105f62a964SEmmanuel Vadot			vdd_1v8_pll_s0: pldo-reg3 {
10115f62a964SEmmanuel Vadot				regulator-name = "vdd_1v8_pll_s0";
10125f62a964SEmmanuel Vadot				regulator-always-on;
10135f62a964SEmmanuel Vadot				regulator-boot-on;
10145f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
10155f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
10165f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
10175f62a964SEmmanuel Vadot
10185f62a964SEmmanuel Vadot				regulator-state-mem {
10195f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10205f62a964SEmmanuel Vadot				};
10215f62a964SEmmanuel Vadot			};
10225f62a964SEmmanuel Vadot
10235f62a964SEmmanuel Vadot			vcc_3v3_sd_s0: pldo-reg4 {
10245f62a964SEmmanuel Vadot				regulator-name = "vcc_3v3_sd_s0";
10255f62a964SEmmanuel Vadot				regulator-always-on;
10265f62a964SEmmanuel Vadot				regulator-boot-on;
10275f62a964SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
10285f62a964SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
10295f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
10305f62a964SEmmanuel Vadot
10315f62a964SEmmanuel Vadot				regulator-state-mem {
10325f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10335f62a964SEmmanuel Vadot				};
10345f62a964SEmmanuel Vadot			};
10355f62a964SEmmanuel Vadot
10365f62a964SEmmanuel Vadot			vcc_2v8_cam_s0: pldo-reg5 {
10375f62a964SEmmanuel Vadot				regulator-name = "vcc_2v8_cam_s0";
10385f62a964SEmmanuel Vadot				regulator-always-on;
10395f62a964SEmmanuel Vadot				regulator-boot-on;
10405f62a964SEmmanuel Vadot				regulator-min-microvolt = <2800000>;
10415f62a964SEmmanuel Vadot				regulator-max-microvolt = <2800000>;
10425f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
10435f62a964SEmmanuel Vadot
10445f62a964SEmmanuel Vadot				regulator-state-mem {
10455f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10465f62a964SEmmanuel Vadot				};
10475f62a964SEmmanuel Vadot			};
10485f62a964SEmmanuel Vadot
10495f62a964SEmmanuel Vadot			pldo6_s3: pldo-reg6 {
10505f62a964SEmmanuel Vadot				regulator-name = "pldo6_s3";
10515f62a964SEmmanuel Vadot				regulator-always-on;
10525f62a964SEmmanuel Vadot				regulator-boot-on;
10535f62a964SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
10545f62a964SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
10555f62a964SEmmanuel Vadot
10565f62a964SEmmanuel Vadot				regulator-state-mem {
10575f62a964SEmmanuel Vadot					regulator-on-in-suspend;
10585f62a964SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
10595f62a964SEmmanuel Vadot				};
10605f62a964SEmmanuel Vadot			};
10615f62a964SEmmanuel Vadot
10625f62a964SEmmanuel Vadot			vdd_0v75_pll_s0: nldo-reg1 {
10635f62a964SEmmanuel Vadot				regulator-name = "vdd_0v75_pll_s0";
10645f62a964SEmmanuel Vadot				regulator-always-on;
10655f62a964SEmmanuel Vadot				regulator-boot-on;
10665f62a964SEmmanuel Vadot				regulator-min-microvolt = <750000>;
10675f62a964SEmmanuel Vadot				regulator-max-microvolt = <750000>;
10685f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
10695f62a964SEmmanuel Vadot
10705f62a964SEmmanuel Vadot				regulator-state-mem {
10715f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10725f62a964SEmmanuel Vadot				};
10735f62a964SEmmanuel Vadot			};
10745f62a964SEmmanuel Vadot
10755f62a964SEmmanuel Vadot			vdd_ddr_pll_s0: nldo-reg2 {
10765f62a964SEmmanuel Vadot				regulator-name = "vdd_ddr_pll_s0";
10775f62a964SEmmanuel Vadot				regulator-always-on;
10785f62a964SEmmanuel Vadot				regulator-boot-on;
10795f62a964SEmmanuel Vadot				regulator-min-microvolt = <850000>;
10805f62a964SEmmanuel Vadot				regulator-max-microvolt = <850000>;
10815f62a964SEmmanuel Vadot
10825f62a964SEmmanuel Vadot				regulator-state-mem {
10835f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10845f62a964SEmmanuel Vadot				};
10855f62a964SEmmanuel Vadot			};
10865f62a964SEmmanuel Vadot
10875f62a964SEmmanuel Vadot			slave_nldo3: nldo-reg3 {
10885f62a964SEmmanuel Vadot				regulator-name = "slave_nldo3";
10895f62a964SEmmanuel Vadot
10905f62a964SEmmanuel Vadot				regulator-state-mem {
10915f62a964SEmmanuel Vadot					regulator-off-in-suspend;
10925f62a964SEmmanuel Vadot				};
10935f62a964SEmmanuel Vadot			};
10945f62a964SEmmanuel Vadot
10955f62a964SEmmanuel Vadot			avdd_1v2_cam_s0: nldo-reg4 {
10965f62a964SEmmanuel Vadot				regulator-always-on;
10975f62a964SEmmanuel Vadot				regulator-boot-on;
10985f62a964SEmmanuel Vadot				regulator-min-microvolt = <1200000>;
10995f62a964SEmmanuel Vadot				regulator-max-microvolt = <1200000>;
11005f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
11015f62a964SEmmanuel Vadot				regulator-name = "avdd_1v2_cam_s0";
11025f62a964SEmmanuel Vadot
11035f62a964SEmmanuel Vadot				regulator-state-mem {
11045f62a964SEmmanuel Vadot					regulator-off-in-suspend;
11055f62a964SEmmanuel Vadot				};
11065f62a964SEmmanuel Vadot			};
11075f62a964SEmmanuel Vadot
11085f62a964SEmmanuel Vadot			avdd_1v2_s0: nldo-reg5 {
11095f62a964SEmmanuel Vadot				regulator-always-on;
11105f62a964SEmmanuel Vadot				regulator-boot-on;
11115f62a964SEmmanuel Vadot				regulator-min-microvolt = <1200000>;
11125f62a964SEmmanuel Vadot				regulator-max-microvolt = <1200000>;
11135f62a964SEmmanuel Vadot				regulator-ramp-delay = <12500>;
11145f62a964SEmmanuel Vadot				regulator-name = "avdd_1v2_s0";
11155f62a964SEmmanuel Vadot
11165f62a964SEmmanuel Vadot				regulator-state-mem {
11175f62a964SEmmanuel Vadot					regulator-off-in-suspend;
11185f62a964SEmmanuel Vadot				};
11195f62a964SEmmanuel Vadot			};
11205f62a964SEmmanuel Vadot		};
11215f62a964SEmmanuel Vadot	};
11225f62a964SEmmanuel Vadot};
11235f62a964SEmmanuel Vadot
11245f62a964SEmmanuel Vadot&tsadc {
11255f62a964SEmmanuel Vadot	status = "okay";
11265f62a964SEmmanuel Vadot};
11275f62a964SEmmanuel Vadot
11285f62a964SEmmanuel Vadot&u2phy0 {
11295f62a964SEmmanuel Vadot	status = "okay";
11305f62a964SEmmanuel Vadot};
11315f62a964SEmmanuel Vadot
11325f62a964SEmmanuel Vadot&u2phy2 {
11335f62a964SEmmanuel Vadot	status = "okay";
11345f62a964SEmmanuel Vadot};
11355f62a964SEmmanuel Vadot
11365f62a964SEmmanuel Vadot&u2phy3 {
11375f62a964SEmmanuel Vadot	status = "okay";
11385f62a964SEmmanuel Vadot};
11395f62a964SEmmanuel Vadot
11405f62a964SEmmanuel Vadot&u2phy0_otg {
11415f62a964SEmmanuel Vadot	status = "okay";
11425f62a964SEmmanuel Vadot};
11435f62a964SEmmanuel Vadot
11445f62a964SEmmanuel Vadot&u2phy2_host {
11455f62a964SEmmanuel Vadot	phy-supply = <&vcc5v0_host>;
11465f62a964SEmmanuel Vadot	status = "okay";
11475f62a964SEmmanuel Vadot};
11485f62a964SEmmanuel Vadot
11495f62a964SEmmanuel Vadot&u2phy3_host {
11505f62a964SEmmanuel Vadot	phy-supply = <&vcc5v0_host>;
11515f62a964SEmmanuel Vadot	status = "okay";
11525f62a964SEmmanuel Vadot};
11535f62a964SEmmanuel Vadot
11545f62a964SEmmanuel Vadot&uart2 {
11555f62a964SEmmanuel Vadot	pinctrl-names = "default";
11565f62a964SEmmanuel Vadot	pinctrl-0 = <&uart2m0_xfer>;
11575f62a964SEmmanuel Vadot	status = "okay";
11585f62a964SEmmanuel Vadot};
11595f62a964SEmmanuel Vadot
11605f62a964SEmmanuel Vadot&usb_host0_ehci {
11615f62a964SEmmanuel Vadot	status = "okay";
11625f62a964SEmmanuel Vadot};
11635f62a964SEmmanuel Vadot
11645f62a964SEmmanuel Vadot&usb_host0_ohci {
11655f62a964SEmmanuel Vadot	status = "okay";
11665f62a964SEmmanuel Vadot};
11675f62a964SEmmanuel Vadot
11685f62a964SEmmanuel Vadot&usb_host0_xhci {
11695f62a964SEmmanuel Vadot	usb-role-switch;
11705f62a964SEmmanuel Vadot	status = "okay";
11715f62a964SEmmanuel Vadot
11725f62a964SEmmanuel Vadot	port {
11735f62a964SEmmanuel Vadot		#address-cells = <1>;
11745f62a964SEmmanuel Vadot		#size-cells = <0>;
11755f62a964SEmmanuel Vadot
11765f62a964SEmmanuel Vadot		dwc3_0_role_switch: endpoint@0 {
11775f62a964SEmmanuel Vadot			reg = <0>;
11785f62a964SEmmanuel Vadot			remote-endpoint = <&usbc0_role_sw>;
11795f62a964SEmmanuel Vadot		};
11805f62a964SEmmanuel Vadot	};
11815f62a964SEmmanuel Vadot};
11825f62a964SEmmanuel Vadot
11835f62a964SEmmanuel Vadot&usb_host1_ehci {
11845f62a964SEmmanuel Vadot	status = "okay";
11855f62a964SEmmanuel Vadot};
11865f62a964SEmmanuel Vadot
11875f62a964SEmmanuel Vadot&usb_host1_ohci {
11885f62a964SEmmanuel Vadot	status = "okay";
11895f62a964SEmmanuel Vadot};
11905f62a964SEmmanuel Vadot
11915f62a964SEmmanuel Vadot&usbdp_phy0 {
11925f62a964SEmmanuel Vadot	mode-switch;
11935f62a964SEmmanuel Vadot	orientation-switch;
11945f62a964SEmmanuel Vadot	sbu1-dc-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
11955f62a964SEmmanuel Vadot	sbu2-dc-gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_HIGH>;
11965f62a964SEmmanuel Vadot	status = "okay";
11975f62a964SEmmanuel Vadot
11985f62a964SEmmanuel Vadot	port {
11995f62a964SEmmanuel Vadot		#address-cells = <1>;
12005f62a964SEmmanuel Vadot		#size-cells = <0>;
12015f62a964SEmmanuel Vadot
12025f62a964SEmmanuel Vadot		usbdp_phy0_orientation_switch: endpoint@0 {
12035f62a964SEmmanuel Vadot			reg = <0>;
12045f62a964SEmmanuel Vadot			remote-endpoint = <&usbc0_orien_sw>;
12055f62a964SEmmanuel Vadot		};
12065f62a964SEmmanuel Vadot
12075f62a964SEmmanuel Vadot		usbdp_phy0_dp_altmode_mux: endpoint@1 {
12085f62a964SEmmanuel Vadot			reg = <1>;
12095f62a964SEmmanuel Vadot			remote-endpoint = <&dp_altmode_mux>;
12105f62a964SEmmanuel Vadot		};
12115f62a964SEmmanuel Vadot	};
12125f62a964SEmmanuel Vadot};
1213*ae5de77eSEmmanuel Vadot
1214*ae5de77eSEmmanuel Vadot&vop_mmu {
1215*ae5de77eSEmmanuel Vadot	status = "okay";
1216*ae5de77eSEmmanuel Vadot};
1217*ae5de77eSEmmanuel Vadot
1218*ae5de77eSEmmanuel Vadot&vop {
1219*ae5de77eSEmmanuel Vadot	assigned-clocks = <&cru DCLK_VOP2_SRC>;
1220*ae5de77eSEmmanuel Vadot	assigned-clock-parents = <&cru PLL_V0PLL>;
1221*ae5de77eSEmmanuel Vadot	status = "okay";
1222*ae5de77eSEmmanuel Vadot};
1223*ae5de77eSEmmanuel Vadot
1224*ae5de77eSEmmanuel Vadot&vp2 {
1225*ae5de77eSEmmanuel Vadot	vp2_out_edp0: endpoint@ROCKCHIP_VOP2_EP_EDP0 {
1226*ae5de77eSEmmanuel Vadot		reg = <ROCKCHIP_VOP2_EP_EDP0>;
1227*ae5de77eSEmmanuel Vadot		remote-endpoint = <&edp0_in_vp2>;
1228*ae5de77eSEmmanuel Vadot	};
1229*ae5de77eSEmmanuel Vadot};
1230