xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3588s-orangepi-5.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
184943d6fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
284943d6fSEmmanuel Vadot
384943d6fSEmmanuel Vadot/dts-v1/;
484943d6fSEmmanuel Vadot
584943d6fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
684943d6fSEmmanuel Vadot#include <dt-bindings/leds/common.h>
784943d6fSEmmanuel Vadot#include <dt-bindings/input/input.h>
884943d6fSEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
984943d6fSEmmanuel Vadot#include "rk3588s.dtsi"
1084943d6fSEmmanuel Vadot
1184943d6fSEmmanuel Vadot/ {
1284943d6fSEmmanuel Vadot	model = "Xunlong Orange Pi 5";
1384943d6fSEmmanuel Vadot	compatible = "xunlong,orangepi-5", "rockchip,rk3588s";
1484943d6fSEmmanuel Vadot
1584943d6fSEmmanuel Vadot	aliases {
16*8d13bc63SEmmanuel Vadot		ethernet0 = &gmac1;
1784943d6fSEmmanuel Vadot		mmc0 = &sdmmc;
1884943d6fSEmmanuel Vadot	};
1984943d6fSEmmanuel Vadot
2084943d6fSEmmanuel Vadot	chosen {
2184943d6fSEmmanuel Vadot		stdout-path = "serial2:1500000n8";
2284943d6fSEmmanuel Vadot	};
2384943d6fSEmmanuel Vadot
2484943d6fSEmmanuel Vadot	adc-keys {
2584943d6fSEmmanuel Vadot		compatible = "adc-keys";
2684943d6fSEmmanuel Vadot		io-channels = <&saradc 1>;
2784943d6fSEmmanuel Vadot		io-channel-names = "buttons";
2884943d6fSEmmanuel Vadot		keyup-threshold-microvolt = <1800000>;
2984943d6fSEmmanuel Vadot		poll-interval = <100>;
3084943d6fSEmmanuel Vadot
3184943d6fSEmmanuel Vadot		button-recovery {
3284943d6fSEmmanuel Vadot			label = "Recovery";
3384943d6fSEmmanuel Vadot			linux,code = <KEY_VENDOR>;
3484943d6fSEmmanuel Vadot			press-threshold-microvolt = <1800>;
3584943d6fSEmmanuel Vadot		};
3684943d6fSEmmanuel Vadot	};
3784943d6fSEmmanuel Vadot
3884943d6fSEmmanuel Vadot	leds {
3984943d6fSEmmanuel Vadot		compatible = "gpio-leds";
4084943d6fSEmmanuel Vadot		pinctrl-names = "default";
4184943d6fSEmmanuel Vadot		pinctrl-0 = <&leds_gpio>;
4284943d6fSEmmanuel Vadot
4384943d6fSEmmanuel Vadot		led-1 {
4484943d6fSEmmanuel Vadot			gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
4584943d6fSEmmanuel Vadot			label = "status_led";
4684943d6fSEmmanuel Vadot			linux,default-trigger = "heartbeat";
4784943d6fSEmmanuel Vadot		};
4884943d6fSEmmanuel Vadot	};
4984943d6fSEmmanuel Vadot
5084943d6fSEmmanuel Vadot	vbus_typec: vbus-typec-regulator {
5184943d6fSEmmanuel Vadot		compatible = "regulator-fixed";
5284943d6fSEmmanuel Vadot		enable-active-high;
5384943d6fSEmmanuel Vadot		gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
5484943d6fSEmmanuel Vadot		pinctrl-names = "default";
5584943d6fSEmmanuel Vadot		pinctrl-0 = <&typec5v_pwren>;
5684943d6fSEmmanuel Vadot		regulator-name = "vbus_typec";
5784943d6fSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
5884943d6fSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
5984943d6fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
6084943d6fSEmmanuel Vadot	};
6184943d6fSEmmanuel Vadot
6284943d6fSEmmanuel Vadot	vcc5v0_sys: vcc5v0-sys-regulator {
6384943d6fSEmmanuel Vadot		compatible = "regulator-fixed";
6484943d6fSEmmanuel Vadot		regulator-name = "vcc5v0_sys";
6584943d6fSEmmanuel Vadot		regulator-always-on;
6684943d6fSEmmanuel Vadot		regulator-boot-on;
6784943d6fSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
6884943d6fSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
6984943d6fSEmmanuel Vadot	};
7084943d6fSEmmanuel Vadot
7184943d6fSEmmanuel Vadot	vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
7284943d6fSEmmanuel Vadot		compatible = "regulator-fixed";
7384943d6fSEmmanuel Vadot		enable-active-low;
7484943d6fSEmmanuel Vadot		gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>;
7584943d6fSEmmanuel Vadot		regulator-name = "vcc_3v3_sd_s0";
7684943d6fSEmmanuel Vadot		regulator-boot-on;
7784943d6fSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
7884943d6fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
7984943d6fSEmmanuel Vadot		vin-supply = <&vcc_3v3_s3>;
8084943d6fSEmmanuel Vadot	};
8184943d6fSEmmanuel Vadot
8284943d6fSEmmanuel Vadot	vcc3v3_pcie20: vcc3v3-pcie20-regulator {
8384943d6fSEmmanuel Vadot		compatible = "regulator-fixed";
8484943d6fSEmmanuel Vadot		enable-active-high;
8584943d6fSEmmanuel Vadot		gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
8684943d6fSEmmanuel Vadot		regulator-name = "vcc3v3_pcie20";
8784943d6fSEmmanuel Vadot		regulator-boot-on;
8884943d6fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
8984943d6fSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
9084943d6fSEmmanuel Vadot		startup-delay-us = <50000>;
9184943d6fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
9284943d6fSEmmanuel Vadot	};
9384943d6fSEmmanuel Vadot};
9484943d6fSEmmanuel Vadot
9584943d6fSEmmanuel Vadot&combphy0_ps {
9684943d6fSEmmanuel Vadot	status = "okay";
9784943d6fSEmmanuel Vadot};
9884943d6fSEmmanuel Vadot
9984943d6fSEmmanuel Vadot&combphy2_psu {
10084943d6fSEmmanuel Vadot	status = "okay";
10184943d6fSEmmanuel Vadot};
10284943d6fSEmmanuel Vadot
10384943d6fSEmmanuel Vadot&cpu_b0 {
10484943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_big0_s0>;
10584943d6fSEmmanuel Vadot};
10684943d6fSEmmanuel Vadot
10784943d6fSEmmanuel Vadot&cpu_b1 {
10884943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_big0_s0>;
10984943d6fSEmmanuel Vadot};
11084943d6fSEmmanuel Vadot
11184943d6fSEmmanuel Vadot&cpu_b2 {
11284943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_big1_s0>;
11384943d6fSEmmanuel Vadot};
11484943d6fSEmmanuel Vadot
11584943d6fSEmmanuel Vadot&cpu_b3 {
11684943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_big1_s0>;
11784943d6fSEmmanuel Vadot};
11884943d6fSEmmanuel Vadot
11984943d6fSEmmanuel Vadot&cpu_l0 {
12084943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
12184943d6fSEmmanuel Vadot};
12284943d6fSEmmanuel Vadot
12384943d6fSEmmanuel Vadot&cpu_l1 {
12484943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
12584943d6fSEmmanuel Vadot};
12684943d6fSEmmanuel Vadot
12784943d6fSEmmanuel Vadot&cpu_l2 {
12884943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
12984943d6fSEmmanuel Vadot};
13084943d6fSEmmanuel Vadot
13184943d6fSEmmanuel Vadot&cpu_l3 {
13284943d6fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
13384943d6fSEmmanuel Vadot};
13484943d6fSEmmanuel Vadot
13584943d6fSEmmanuel Vadot&gmac1 {
13684943d6fSEmmanuel Vadot	clock_in_out = "output";
13784943d6fSEmmanuel Vadot	phy-handle = <&rgmii_phy1>;
13884943d6fSEmmanuel Vadot	phy-mode = "rgmii-rxid";
13984943d6fSEmmanuel Vadot	pinctrl-0 = <&gmac1_miim
14084943d6fSEmmanuel Vadot		     &gmac1_tx_bus2
14184943d6fSEmmanuel Vadot		     &gmac1_rx_bus2
14284943d6fSEmmanuel Vadot		     &gmac1_rgmii_clk
14384943d6fSEmmanuel Vadot		     &gmac1_rgmii_bus>;
14484943d6fSEmmanuel Vadot	pinctrl-names = "default";
14584943d6fSEmmanuel Vadot	tx_delay = <0x42>;
14684943d6fSEmmanuel Vadot	status = "okay";
14784943d6fSEmmanuel Vadot};
14884943d6fSEmmanuel Vadot
14984943d6fSEmmanuel Vadot&i2c0 {
15084943d6fSEmmanuel Vadot	pinctrl-names = "default";
15184943d6fSEmmanuel Vadot	pinctrl-0 = <&i2c0m2_xfer>;
15284943d6fSEmmanuel Vadot	status = "okay";
15384943d6fSEmmanuel Vadot
15484943d6fSEmmanuel Vadot	vdd_cpu_big0_s0: regulator@42 {
15584943d6fSEmmanuel Vadot		compatible = "rockchip,rk8602";
15684943d6fSEmmanuel Vadot		reg = <0x42>;
15784943d6fSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
15884943d6fSEmmanuel Vadot		regulator-name = "vdd_cpu_big0_s0";
15984943d6fSEmmanuel Vadot		regulator-always-on;
16084943d6fSEmmanuel Vadot		regulator-boot-on;
16184943d6fSEmmanuel Vadot		regulator-min-microvolt = <550000>;
16284943d6fSEmmanuel Vadot		regulator-max-microvolt = <1050000>;
16384943d6fSEmmanuel Vadot		regulator-ramp-delay = <2300>;
16484943d6fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
16584943d6fSEmmanuel Vadot
16684943d6fSEmmanuel Vadot		regulator-state-mem {
16784943d6fSEmmanuel Vadot			regulator-off-in-suspend;
16884943d6fSEmmanuel Vadot		};
16984943d6fSEmmanuel Vadot	};
17084943d6fSEmmanuel Vadot
17184943d6fSEmmanuel Vadot	vdd_cpu_big1_s0: regulator@43 {
17284943d6fSEmmanuel Vadot		compatible = "rockchip,rk8603", "rockchip,rk8602";
17384943d6fSEmmanuel Vadot		reg = <0x43>;
17484943d6fSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
17584943d6fSEmmanuel Vadot		regulator-name = "vdd_cpu_big1_s0";
17684943d6fSEmmanuel Vadot		regulator-always-on;
17784943d6fSEmmanuel Vadot		regulator-boot-on;
17884943d6fSEmmanuel Vadot		regulator-min-microvolt = <550000>;
17984943d6fSEmmanuel Vadot		regulator-max-microvolt = <1050000>;
18084943d6fSEmmanuel Vadot		regulator-ramp-delay = <2300>;
18184943d6fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
18284943d6fSEmmanuel Vadot
18384943d6fSEmmanuel Vadot		regulator-state-mem {
18484943d6fSEmmanuel Vadot			regulator-off-in-suspend;
18584943d6fSEmmanuel Vadot		};
18684943d6fSEmmanuel Vadot	};
18784943d6fSEmmanuel Vadot};
18884943d6fSEmmanuel Vadot
18984943d6fSEmmanuel Vadot&i2c2 {
19084943d6fSEmmanuel Vadot	status = "okay";
19184943d6fSEmmanuel Vadot
19284943d6fSEmmanuel Vadot	vdd_npu_s0: regulator@42 {
19384943d6fSEmmanuel Vadot		compatible = "rockchip,rk8602";
19484943d6fSEmmanuel Vadot		reg = <0x42>;
19584943d6fSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
19684943d6fSEmmanuel Vadot		regulator-name = "vdd_npu_s0";
19784943d6fSEmmanuel Vadot		regulator-always-on;
19884943d6fSEmmanuel Vadot		regulator-boot-on;
19984943d6fSEmmanuel Vadot		regulator-min-microvolt = <550000>;
20084943d6fSEmmanuel Vadot		regulator-max-microvolt = <950000>;
20184943d6fSEmmanuel Vadot		regulator-ramp-delay = <2300>;
20284943d6fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
20384943d6fSEmmanuel Vadot
20484943d6fSEmmanuel Vadot		regulator-state-mem {
20584943d6fSEmmanuel Vadot			regulator-off-in-suspend;
20684943d6fSEmmanuel Vadot		};
20784943d6fSEmmanuel Vadot	};
20884943d6fSEmmanuel Vadot};
20984943d6fSEmmanuel Vadot
21084943d6fSEmmanuel Vadot&i2c6 {
21184943d6fSEmmanuel Vadot	pinctrl-names = "default";
21284943d6fSEmmanuel Vadot	pinctrl-0 = <&i2c6m3_xfer>;
21384943d6fSEmmanuel Vadot	status = "okay";
21484943d6fSEmmanuel Vadot
21584943d6fSEmmanuel Vadot	hym8563: rtc@51 {
21684943d6fSEmmanuel Vadot		compatible = "haoyu,hym8563";
21784943d6fSEmmanuel Vadot		reg = <0x51>;
21884943d6fSEmmanuel Vadot		#clock-cells = <0>;
21984943d6fSEmmanuel Vadot		clock-output-names = "hym8563";
22084943d6fSEmmanuel Vadot		pinctrl-names = "default";
22184943d6fSEmmanuel Vadot		pinctrl-0 = <&hym8563_int>;
22284943d6fSEmmanuel Vadot		interrupt-parent = <&gpio0>;
22384943d6fSEmmanuel Vadot		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
22484943d6fSEmmanuel Vadot		wakeup-source;
22584943d6fSEmmanuel Vadot	};
22684943d6fSEmmanuel Vadot};
22784943d6fSEmmanuel Vadot
22884943d6fSEmmanuel Vadot&mdio1 {
22984943d6fSEmmanuel Vadot	rgmii_phy1: ethernet-phy@1 {
23084943d6fSEmmanuel Vadot		compatible = "ethernet-phy-ieee802.3-c22";
23184943d6fSEmmanuel Vadot		reg = <0x1>;
23284943d6fSEmmanuel Vadot		reset-assert-us = <20000>;
23384943d6fSEmmanuel Vadot		reset-deassert-us = <100000>;
23484943d6fSEmmanuel Vadot		reset-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;
23584943d6fSEmmanuel Vadot	};
23684943d6fSEmmanuel Vadot};
23784943d6fSEmmanuel Vadot
23884943d6fSEmmanuel Vadot&pcie2x1l2 {
23984943d6fSEmmanuel Vadot	reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
24084943d6fSEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie20>;
24184943d6fSEmmanuel Vadot	status = "okay";
24284943d6fSEmmanuel Vadot};
24384943d6fSEmmanuel Vadot
24484943d6fSEmmanuel Vadot&pinctrl {
24584943d6fSEmmanuel Vadot	gpio-func {
24684943d6fSEmmanuel Vadot		leds_gpio: leds-gpio {
24784943d6fSEmmanuel Vadot			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
24884943d6fSEmmanuel Vadot		};
24984943d6fSEmmanuel Vadot	};
25084943d6fSEmmanuel Vadot
25184943d6fSEmmanuel Vadot	hym8563 {
25284943d6fSEmmanuel Vadot		hym8563_int: hym8563-int {
25384943d6fSEmmanuel Vadot			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
25484943d6fSEmmanuel Vadot		};
25584943d6fSEmmanuel Vadot	};
25684943d6fSEmmanuel Vadot
25784943d6fSEmmanuel Vadot	usb-typec {
25884943d6fSEmmanuel Vadot		usbc0_int: usbc0-int {
25984943d6fSEmmanuel Vadot			rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
26084943d6fSEmmanuel Vadot		};
26184943d6fSEmmanuel Vadot
26284943d6fSEmmanuel Vadot		typec5v_pwren: typec5v-pwren {
26384943d6fSEmmanuel Vadot			rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
26484943d6fSEmmanuel Vadot		};
26584943d6fSEmmanuel Vadot	};
26684943d6fSEmmanuel Vadot};
26784943d6fSEmmanuel Vadot
26884943d6fSEmmanuel Vadot&saradc {
26984943d6fSEmmanuel Vadot	vref-supply = <&avcc_1v8_s0>;
27084943d6fSEmmanuel Vadot	status = "okay";
27184943d6fSEmmanuel Vadot};
27284943d6fSEmmanuel Vadot
27384943d6fSEmmanuel Vadot&sdmmc {
27484943d6fSEmmanuel Vadot	bus-width = <4>;
27584943d6fSEmmanuel Vadot	cap-sd-highspeed;
27684943d6fSEmmanuel Vadot	disable-wp;
27784943d6fSEmmanuel Vadot	max-frequency = <150000000>;
27884943d6fSEmmanuel Vadot	no-mmc;
27984943d6fSEmmanuel Vadot	no-sdio;
28084943d6fSEmmanuel Vadot	sd-uhs-sdr104;
28184943d6fSEmmanuel Vadot	vmmc-supply = <&vcc_3v3_sd_s0>;
28284943d6fSEmmanuel Vadot	vqmmc-supply = <&vccio_sd_s0>;
28384943d6fSEmmanuel Vadot	status = "okay";
28484943d6fSEmmanuel Vadot};
28584943d6fSEmmanuel Vadot
28684943d6fSEmmanuel Vadot&sfc {
28784943d6fSEmmanuel Vadot	pinctrl-names = "default";
28884943d6fSEmmanuel Vadot	pinctrl-0 = <&fspim0_pins>;
28984943d6fSEmmanuel Vadot	status = "okay";
29084943d6fSEmmanuel Vadot
29184943d6fSEmmanuel Vadot	flash@0 {
29284943d6fSEmmanuel Vadot		compatible = "jedec,spi-nor";
29384943d6fSEmmanuel Vadot		reg = <0x0>;
29484943d6fSEmmanuel Vadot		spi-max-frequency = <100000000>;
29584943d6fSEmmanuel Vadot		spi-rx-bus-width = <4>;
29684943d6fSEmmanuel Vadot		spi-tx-bus-width = <1>;
29784943d6fSEmmanuel Vadot	};
29884943d6fSEmmanuel Vadot};
29984943d6fSEmmanuel Vadot
30084943d6fSEmmanuel Vadot&spi2 {
30184943d6fSEmmanuel Vadot	status = "okay";
30284943d6fSEmmanuel Vadot	assigned-clocks = <&cru CLK_SPI2>;
30384943d6fSEmmanuel Vadot	assigned-clock-rates = <200000000>;
30484943d6fSEmmanuel Vadot	num-cs = <1>;
30584943d6fSEmmanuel Vadot	pinctrl-names = "default";
30684943d6fSEmmanuel Vadot	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
30784943d6fSEmmanuel Vadot
30884943d6fSEmmanuel Vadot	pmic@0 {
30984943d6fSEmmanuel Vadot		compatible = "rockchip,rk806";
31084943d6fSEmmanuel Vadot		reg = <0x0>;
31184943d6fSEmmanuel Vadot		interrupt-parent = <&gpio0>;
31284943d6fSEmmanuel Vadot		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
31384943d6fSEmmanuel Vadot		pinctrl-names = "default";
31484943d6fSEmmanuel Vadot		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
31584943d6fSEmmanuel Vadot				<&rk806_dvs2_null>, <&rk806_dvs3_null>;
31684943d6fSEmmanuel Vadot		spi-max-frequency = <1000000>;
317*8d13bc63SEmmanuel Vadot		system-power-controller;
31884943d6fSEmmanuel Vadot
31984943d6fSEmmanuel Vadot		vcc1-supply = <&vcc5v0_sys>;
32084943d6fSEmmanuel Vadot		vcc2-supply = <&vcc5v0_sys>;
32184943d6fSEmmanuel Vadot		vcc3-supply = <&vcc5v0_sys>;
32284943d6fSEmmanuel Vadot		vcc4-supply = <&vcc5v0_sys>;
32384943d6fSEmmanuel Vadot		vcc5-supply = <&vcc5v0_sys>;
32484943d6fSEmmanuel Vadot		vcc6-supply = <&vcc5v0_sys>;
32584943d6fSEmmanuel Vadot		vcc7-supply = <&vcc5v0_sys>;
32684943d6fSEmmanuel Vadot		vcc8-supply = <&vcc5v0_sys>;
32784943d6fSEmmanuel Vadot		vcc9-supply = <&vcc5v0_sys>;
32884943d6fSEmmanuel Vadot		vcc10-supply = <&vcc5v0_sys>;
32984943d6fSEmmanuel Vadot		vcc11-supply = <&vcc_2v0_pldo_s3>;
33084943d6fSEmmanuel Vadot		vcc12-supply = <&vcc5v0_sys>;
33184943d6fSEmmanuel Vadot		vcc13-supply = <&vcc_1v1_nldo_s3>;
33284943d6fSEmmanuel Vadot		vcc14-supply = <&vcc_1v1_nldo_s3>;
33384943d6fSEmmanuel Vadot		vcca-supply = <&vcc5v0_sys>;
33484943d6fSEmmanuel Vadot
33584943d6fSEmmanuel Vadot		gpio-controller;
33684943d6fSEmmanuel Vadot		#gpio-cells = <2>;
33784943d6fSEmmanuel Vadot
33884943d6fSEmmanuel Vadot		rk806_dvs1_null: dvs1-null-pins {
33984943d6fSEmmanuel Vadot			pins = "gpio_pwrctrl2";
34084943d6fSEmmanuel Vadot			function = "pin_fun0";
34184943d6fSEmmanuel Vadot		};
34284943d6fSEmmanuel Vadot
34384943d6fSEmmanuel Vadot		rk806_dvs2_null: dvs2-null-pins {
34484943d6fSEmmanuel Vadot			pins = "gpio_pwrctrl2";
34584943d6fSEmmanuel Vadot			function = "pin_fun0";
34684943d6fSEmmanuel Vadot		};
34784943d6fSEmmanuel Vadot
34884943d6fSEmmanuel Vadot		rk806_dvs3_null: dvs3-null-pins {
34984943d6fSEmmanuel Vadot			pins = "gpio_pwrctrl3";
35084943d6fSEmmanuel Vadot			function = "pin_fun0";
35184943d6fSEmmanuel Vadot		};
35284943d6fSEmmanuel Vadot
35384943d6fSEmmanuel Vadot		regulators {
35484943d6fSEmmanuel Vadot			vdd_gpu_s0: dcdc-reg1 {
35584943d6fSEmmanuel Vadot				regulator-name = "vdd_gpu_s0";
35684943d6fSEmmanuel Vadot				regulator-boot-on;
35784943d6fSEmmanuel Vadot				regulator-min-microvolt = <550000>;
35884943d6fSEmmanuel Vadot				regulator-max-microvolt = <950000>;
35984943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
36084943d6fSEmmanuel Vadot				regulator-enable-ramp-delay = <400>;
36184943d6fSEmmanuel Vadot
36284943d6fSEmmanuel Vadot				regulator-state-mem {
36384943d6fSEmmanuel Vadot					regulator-off-in-suspend;
36484943d6fSEmmanuel Vadot				};
36584943d6fSEmmanuel Vadot			};
36684943d6fSEmmanuel Vadot
36784943d6fSEmmanuel Vadot			vdd_cpu_lit_s0: dcdc-reg2 {
36884943d6fSEmmanuel Vadot				regulator-name = "vdd_cpu_lit_s0";
36984943d6fSEmmanuel Vadot				regulator-always-on;
37084943d6fSEmmanuel Vadot				regulator-boot-on;
37184943d6fSEmmanuel Vadot				regulator-min-microvolt = <550000>;
37284943d6fSEmmanuel Vadot				regulator-max-microvolt = <950000>;
37384943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
37484943d6fSEmmanuel Vadot
37584943d6fSEmmanuel Vadot				regulator-state-mem {
37684943d6fSEmmanuel Vadot					regulator-off-in-suspend;
37784943d6fSEmmanuel Vadot				};
37884943d6fSEmmanuel Vadot			};
37984943d6fSEmmanuel Vadot
38084943d6fSEmmanuel Vadot			vdd_log_s0: dcdc-reg3 {
38184943d6fSEmmanuel Vadot				regulator-name = "vdd_log_s0";
38284943d6fSEmmanuel Vadot				regulator-always-on;
38384943d6fSEmmanuel Vadot				regulator-boot-on;
38484943d6fSEmmanuel Vadot				regulator-min-microvolt = <675000>;
38584943d6fSEmmanuel Vadot				regulator-max-microvolt = <750000>;
38684943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
38784943d6fSEmmanuel Vadot
38884943d6fSEmmanuel Vadot				regulator-state-mem {
38984943d6fSEmmanuel Vadot					regulator-off-in-suspend;
39084943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
39184943d6fSEmmanuel Vadot				};
39284943d6fSEmmanuel Vadot			};
39384943d6fSEmmanuel Vadot
39484943d6fSEmmanuel Vadot			vdd_vdenc_s0: dcdc-reg4 {
39584943d6fSEmmanuel Vadot				regulator-name = "vdd_vdenc_s0";
39684943d6fSEmmanuel Vadot				regulator-always-on;
39784943d6fSEmmanuel Vadot				regulator-boot-on;
39884943d6fSEmmanuel Vadot				regulator-min-microvolt = <550000>;
39984943d6fSEmmanuel Vadot				regulator-max-microvolt = <950000>;
40084943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
40184943d6fSEmmanuel Vadot
40284943d6fSEmmanuel Vadot				regulator-state-mem {
40384943d6fSEmmanuel Vadot					regulator-off-in-suspend;
40484943d6fSEmmanuel Vadot				};
40584943d6fSEmmanuel Vadot			};
40684943d6fSEmmanuel Vadot
40784943d6fSEmmanuel Vadot			vdd_ddr_s0: dcdc-reg5 {
40884943d6fSEmmanuel Vadot				regulator-name = "vdd_ddr_s0";
40984943d6fSEmmanuel Vadot				regulator-always-on;
41084943d6fSEmmanuel Vadot				regulator-boot-on;
41184943d6fSEmmanuel Vadot				regulator-min-microvolt = <675000>;
41284943d6fSEmmanuel Vadot				regulator-max-microvolt = <900000>;
41384943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
41484943d6fSEmmanuel Vadot
41584943d6fSEmmanuel Vadot				regulator-state-mem {
41684943d6fSEmmanuel Vadot					regulator-off-in-suspend;
41784943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <850000>;
41884943d6fSEmmanuel Vadot				};
41984943d6fSEmmanuel Vadot			};
42084943d6fSEmmanuel Vadot
42184943d6fSEmmanuel Vadot			vcc_1v1_nldo_s3: vdd2_ddr_s3: dcdc-reg6 {
42284943d6fSEmmanuel Vadot				regulator-name = "vdd2_ddr_s3";
42384943d6fSEmmanuel Vadot				regulator-always-on;
42484943d6fSEmmanuel Vadot				regulator-boot-on;
42584943d6fSEmmanuel Vadot				regulator-max-microvolt = <1100000>;
42684943d6fSEmmanuel Vadot				regulator-min-microvolt = <1100000>;
42784943d6fSEmmanuel Vadot
42884943d6fSEmmanuel Vadot				regulator-state-mem {
42984943d6fSEmmanuel Vadot					regulator-on-in-suspend;
43084943d6fSEmmanuel Vadot				};
43184943d6fSEmmanuel Vadot			};
43284943d6fSEmmanuel Vadot
43384943d6fSEmmanuel Vadot			vcc_2v0_pldo_s3: dcdc-reg7 {
43484943d6fSEmmanuel Vadot				regulator-name = "vdd_2v0_pldo_s3";
43584943d6fSEmmanuel Vadot				regulator-always-on;
43684943d6fSEmmanuel Vadot				regulator-boot-on;
43784943d6fSEmmanuel Vadot				regulator-min-microvolt = <2000000>;
43884943d6fSEmmanuel Vadot				regulator-max-microvolt = <2000000>;
43984943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
44084943d6fSEmmanuel Vadot
44184943d6fSEmmanuel Vadot				regulator-state-mem {
44284943d6fSEmmanuel Vadot					regulator-on-in-suspend;
44384943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <2000000>;
44484943d6fSEmmanuel Vadot				};
44584943d6fSEmmanuel Vadot			};
44684943d6fSEmmanuel Vadot
44784943d6fSEmmanuel Vadot			vcc_3v3_s3: dcdc-reg8 {
44884943d6fSEmmanuel Vadot				regulator-name = "vcc_3v3_s3";
44984943d6fSEmmanuel Vadot				regulator-always-on;
45084943d6fSEmmanuel Vadot				regulator-boot-on;
45184943d6fSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
45284943d6fSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
45384943d6fSEmmanuel Vadot
45484943d6fSEmmanuel Vadot				regulator-state-mem {
45584943d6fSEmmanuel Vadot					regulator-on-in-suspend;
45684943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <3300000>;
45784943d6fSEmmanuel Vadot				};
45884943d6fSEmmanuel Vadot			};
45984943d6fSEmmanuel Vadot
46084943d6fSEmmanuel Vadot			vddq_ddr_s0: dcdc-reg9 {
46184943d6fSEmmanuel Vadot				regulator-name = "vddq_ddr_s0";
46284943d6fSEmmanuel Vadot				regulator-always-on;
46384943d6fSEmmanuel Vadot				regulator-boot-on;
46484943d6fSEmmanuel Vadot
46584943d6fSEmmanuel Vadot				regulator-state-mem {
46684943d6fSEmmanuel Vadot					regulator-off-in-suspend;
46784943d6fSEmmanuel Vadot				};
46884943d6fSEmmanuel Vadot			};
46984943d6fSEmmanuel Vadot
47084943d6fSEmmanuel Vadot			vcc_1v8_s3: dcdc-reg10 {
47184943d6fSEmmanuel Vadot				regulator-name = "vcc_1v8_s3";
47284943d6fSEmmanuel Vadot				regulator-always-on;
47384943d6fSEmmanuel Vadot				regulator-boot-on;
47484943d6fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
47584943d6fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
47684943d6fSEmmanuel Vadot
47784943d6fSEmmanuel Vadot				regulator-state-mem {
47884943d6fSEmmanuel Vadot					regulator-on-in-suspend;
47984943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
48084943d6fSEmmanuel Vadot				};
48184943d6fSEmmanuel Vadot			};
48284943d6fSEmmanuel Vadot
48384943d6fSEmmanuel Vadot			avcc_1v8_s0: pldo-reg1 {
48484943d6fSEmmanuel Vadot				regulator-name = "avcc_1v8_s0";
48584943d6fSEmmanuel Vadot				regulator-always-on;
48684943d6fSEmmanuel Vadot				regulator-boot-on;
48784943d6fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
48884943d6fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
48984943d6fSEmmanuel Vadot
49084943d6fSEmmanuel Vadot				regulator-state-mem {
49184943d6fSEmmanuel Vadot					regulator-off-in-suspend;
49284943d6fSEmmanuel Vadot				};
49384943d6fSEmmanuel Vadot			};
49484943d6fSEmmanuel Vadot
49584943d6fSEmmanuel Vadot			vcc_1v8_s0: pldo-reg2 {
49684943d6fSEmmanuel Vadot				regulator-name = "vcc_1v8_s0";
49784943d6fSEmmanuel Vadot				regulator-always-on;
49884943d6fSEmmanuel Vadot				regulator-boot-on;
49984943d6fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
50084943d6fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
50184943d6fSEmmanuel Vadot
50284943d6fSEmmanuel Vadot				regulator-state-mem {
50384943d6fSEmmanuel Vadot					regulator-off-in-suspend;
50484943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
50584943d6fSEmmanuel Vadot				};
50684943d6fSEmmanuel Vadot			};
50784943d6fSEmmanuel Vadot
50884943d6fSEmmanuel Vadot			avdd_1v2_s0: pldo-reg3 {
50984943d6fSEmmanuel Vadot				regulator-name = "avdd_1v2_s0";
51084943d6fSEmmanuel Vadot				regulator-always-on;
51184943d6fSEmmanuel Vadot				regulator-boot-on;
51284943d6fSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
51384943d6fSEmmanuel Vadot				regulator-max-microvolt = <1200000>;
51484943d6fSEmmanuel Vadot
51584943d6fSEmmanuel Vadot				regulator-state-mem {
51684943d6fSEmmanuel Vadot					regulator-off-in-suspend;
51784943d6fSEmmanuel Vadot				};
51884943d6fSEmmanuel Vadot			};
51984943d6fSEmmanuel Vadot
52084943d6fSEmmanuel Vadot			vcc_3v3_s0: pldo-reg4 {
52184943d6fSEmmanuel Vadot				regulator-name = "vcc_3v3_s0";
52284943d6fSEmmanuel Vadot				regulator-always-on;
52384943d6fSEmmanuel Vadot				regulator-boot-on;
52484943d6fSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
52584943d6fSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
52684943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
52784943d6fSEmmanuel Vadot
52884943d6fSEmmanuel Vadot				regulator-state-mem {
52984943d6fSEmmanuel Vadot					regulator-off-in-suspend;
53084943d6fSEmmanuel Vadot				};
53184943d6fSEmmanuel Vadot			};
53284943d6fSEmmanuel Vadot
53384943d6fSEmmanuel Vadot			vccio_sd_s0: pldo-reg5 {
53484943d6fSEmmanuel Vadot				regulator-name = "vccio_sd_s0";
53584943d6fSEmmanuel Vadot				regulator-always-on;
53684943d6fSEmmanuel Vadot				regulator-boot-on;
53784943d6fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
53884943d6fSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
53984943d6fSEmmanuel Vadot				regulator-ramp-delay = <12500>;
54084943d6fSEmmanuel Vadot
54184943d6fSEmmanuel Vadot				regulator-state-mem {
54284943d6fSEmmanuel Vadot					regulator-off-in-suspend;
54384943d6fSEmmanuel Vadot				};
54484943d6fSEmmanuel Vadot			};
54584943d6fSEmmanuel Vadot
54684943d6fSEmmanuel Vadot			pldo6_s3: pldo-reg6 {
54784943d6fSEmmanuel Vadot				regulator-name = "pldo6_s3";
54884943d6fSEmmanuel Vadot				regulator-always-on;
54984943d6fSEmmanuel Vadot				regulator-boot-on;
55084943d6fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
55184943d6fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
55284943d6fSEmmanuel Vadot
55384943d6fSEmmanuel Vadot				regulator-state-mem {
55484943d6fSEmmanuel Vadot					regulator-on-in-suspend;
55584943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
55684943d6fSEmmanuel Vadot				};
55784943d6fSEmmanuel Vadot			};
55884943d6fSEmmanuel Vadot
55984943d6fSEmmanuel Vadot			vdd_0v75_s3: nldo-reg1 {
56084943d6fSEmmanuel Vadot				regulator-name = "vdd_0v75_s3";
56184943d6fSEmmanuel Vadot				regulator-always-on;
56284943d6fSEmmanuel Vadot				regulator-boot-on;
56384943d6fSEmmanuel Vadot				regulator-min-microvolt = <750000>;
56484943d6fSEmmanuel Vadot				regulator-max-microvolt = <750000>;
56584943d6fSEmmanuel Vadot
56684943d6fSEmmanuel Vadot				regulator-state-mem {
56784943d6fSEmmanuel Vadot					regulator-on-in-suspend;
56884943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
56984943d6fSEmmanuel Vadot				};
57084943d6fSEmmanuel Vadot			};
57184943d6fSEmmanuel Vadot
57284943d6fSEmmanuel Vadot			vdd_ddr_pll_s0: nldo-reg2 {
57384943d6fSEmmanuel Vadot				regulator-name = "vdd_ddr_pll_s0";
57484943d6fSEmmanuel Vadot				regulator-always-on;
57584943d6fSEmmanuel Vadot				regulator-boot-on;
57684943d6fSEmmanuel Vadot				regulator-min-microvolt = <850000>;
57784943d6fSEmmanuel Vadot				regulator-max-microvolt = <850000>;
57884943d6fSEmmanuel Vadot
57984943d6fSEmmanuel Vadot				regulator-state-mem {
58084943d6fSEmmanuel Vadot					regulator-off-in-suspend;
58184943d6fSEmmanuel Vadot					regulator-suspend-microvolt = <850000>;
58284943d6fSEmmanuel Vadot				};
58384943d6fSEmmanuel Vadot			};
58484943d6fSEmmanuel Vadot
58584943d6fSEmmanuel Vadot			avdd_0v75_s0: nldo-reg3 {
58684943d6fSEmmanuel Vadot				regulator-name = "avdd_0v75_s0";
58784943d6fSEmmanuel Vadot				regulator-always-on;
58884943d6fSEmmanuel Vadot				regulator-boot-on;
58984943d6fSEmmanuel Vadot				regulator-min-microvolt = <750000>;
59084943d6fSEmmanuel Vadot				regulator-max-microvolt = <750000>;
59184943d6fSEmmanuel Vadot
59284943d6fSEmmanuel Vadot				regulator-state-mem {
59384943d6fSEmmanuel Vadot					regulator-off-in-suspend;
59484943d6fSEmmanuel Vadot				};
59584943d6fSEmmanuel Vadot			};
59684943d6fSEmmanuel Vadot
59784943d6fSEmmanuel Vadot			vdd_0v85_s0: nldo-reg4 {
59884943d6fSEmmanuel Vadot				regulator-name = "vdd_0v85_s0";
59984943d6fSEmmanuel Vadot				regulator-always-on;
60084943d6fSEmmanuel Vadot				regulator-boot-on;
60184943d6fSEmmanuel Vadot				regulator-min-microvolt = <850000>;
60284943d6fSEmmanuel Vadot				regulator-max-microvolt = <850000>;
60384943d6fSEmmanuel Vadot
60484943d6fSEmmanuel Vadot				regulator-state-mem {
60584943d6fSEmmanuel Vadot					regulator-off-in-suspend;
60684943d6fSEmmanuel Vadot				};
60784943d6fSEmmanuel Vadot			};
60884943d6fSEmmanuel Vadot
60984943d6fSEmmanuel Vadot			vdd_0v75_s0: nldo-reg5 {
61084943d6fSEmmanuel Vadot				regulator-name = "vdd_0v75_s0";
61184943d6fSEmmanuel Vadot				regulator-always-on;
61284943d6fSEmmanuel Vadot				regulator-boot-on;
61384943d6fSEmmanuel Vadot				regulator-min-microvolt = <750000>;
61484943d6fSEmmanuel Vadot				regulator-max-microvolt = <750000>;
61584943d6fSEmmanuel Vadot
61684943d6fSEmmanuel Vadot				regulator-state-mem {
61784943d6fSEmmanuel Vadot					regulator-off-in-suspend;
61884943d6fSEmmanuel Vadot				};
61984943d6fSEmmanuel Vadot			};
62084943d6fSEmmanuel Vadot		};
62184943d6fSEmmanuel Vadot	};
62284943d6fSEmmanuel Vadot};
62384943d6fSEmmanuel Vadot
62484943d6fSEmmanuel Vadot&tsadc {
62584943d6fSEmmanuel Vadot	status = "okay";
62684943d6fSEmmanuel Vadot};
62784943d6fSEmmanuel Vadot
62884943d6fSEmmanuel Vadot&u2phy2 {
62984943d6fSEmmanuel Vadot	status = "okay";
63084943d6fSEmmanuel Vadot};
63184943d6fSEmmanuel Vadot
63284943d6fSEmmanuel Vadot&u2phy2_host {
63384943d6fSEmmanuel Vadot	status = "okay";
63484943d6fSEmmanuel Vadot};
63584943d6fSEmmanuel Vadot
63684943d6fSEmmanuel Vadot&u2phy3 {
63784943d6fSEmmanuel Vadot	status = "okay";
63884943d6fSEmmanuel Vadot};
63984943d6fSEmmanuel Vadot
64084943d6fSEmmanuel Vadot&u2phy3_host {
64184943d6fSEmmanuel Vadot	status = "okay";
64284943d6fSEmmanuel Vadot};
64384943d6fSEmmanuel Vadot
64484943d6fSEmmanuel Vadot&uart2 {
64584943d6fSEmmanuel Vadot	pinctrl-0 = <&uart2m0_xfer>;
64684943d6fSEmmanuel Vadot	status = "okay";
64784943d6fSEmmanuel Vadot};
64884943d6fSEmmanuel Vadot
64984943d6fSEmmanuel Vadot&usb_host0_ehci {
65084943d6fSEmmanuel Vadot	status = "okay";
65184943d6fSEmmanuel Vadot};
65284943d6fSEmmanuel Vadot
65384943d6fSEmmanuel Vadot&usb_host0_ohci {
65484943d6fSEmmanuel Vadot	status = "okay";
65584943d6fSEmmanuel Vadot};
65684943d6fSEmmanuel Vadot
65784943d6fSEmmanuel Vadot&usb_host1_ehci {
65884943d6fSEmmanuel Vadot	status = "okay";
65984943d6fSEmmanuel Vadot};
66084943d6fSEmmanuel Vadot
66184943d6fSEmmanuel Vadot&usb_host1_ohci {
66284943d6fSEmmanuel Vadot	status = "okay";
66384943d6fSEmmanuel Vadot};
664*8d13bc63SEmmanuel Vadot
665*8d13bc63SEmmanuel Vadot&usb_host2_xhci {
666*8d13bc63SEmmanuel Vadot	status = "okay";
667*8d13bc63SEmmanuel Vadot};
668