18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci/dts-v1/;
78c2ecf20Sopenharmony_ci#include <dt-bindings/input/linux-event-codes.h>
88c2ecf20Sopenharmony_ci#include <dt-bindings/pwm/pwm.h>
98c2ecf20Sopenharmony_ci#include "rk3399.dtsi"
108c2ecf20Sopenharmony_ci#include "rk3399-opp.dtsi"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/ {
138c2ecf20Sopenharmony_ci	model = "Firefly ROC-RK3399-PC Board";
148c2ecf20Sopenharmony_ci	compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399";
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci	chosen {
178c2ecf20Sopenharmony_ci		stdout-path = "serial2:1500000n8";
188c2ecf20Sopenharmony_ci	};
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci	backlight: backlight {
218c2ecf20Sopenharmony_ci		compatible = "pwm-backlight";
228c2ecf20Sopenharmony_ci		pwms = <&pwm0 0 25000 0>;
238c2ecf20Sopenharmony_ci	};
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci	clkin_gmac: external-gmac-clock {
268c2ecf20Sopenharmony_ci		compatible = "fixed-clock";
278c2ecf20Sopenharmony_ci		clock-frequency = <125000000>;
288c2ecf20Sopenharmony_ci		clock-output-names = "clkin_gmac";
298c2ecf20Sopenharmony_ci		#clock-cells = <0>;
308c2ecf20Sopenharmony_ci	};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	adc-keys {
338c2ecf20Sopenharmony_ci		compatible = "adc-keys";
348c2ecf20Sopenharmony_ci		io-channels = <&saradc 1>;
358c2ecf20Sopenharmony_ci		io-channel-names = "buttons";
368c2ecf20Sopenharmony_ci		keyup-threshold-microvolt = <1500000>;
378c2ecf20Sopenharmony_ci		poll-interval = <100>;
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci		recovery {
408c2ecf20Sopenharmony_ci			label = "Recovery";
418c2ecf20Sopenharmony_ci			linux,code = <KEY_VENDOR>;
428c2ecf20Sopenharmony_ci			press-threshold-microvolt = <18000>;
438c2ecf20Sopenharmony_ci		};
448c2ecf20Sopenharmony_ci	};
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci	gpio-keys {
478c2ecf20Sopenharmony_ci		compatible = "gpio-keys";
488c2ecf20Sopenharmony_ci		autorepeat;
498c2ecf20Sopenharmony_ci		pinctrl-names = "default";
508c2ecf20Sopenharmony_ci		pinctrl-0 = <&pwr_key_l>;
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci		power {
538c2ecf20Sopenharmony_ci			debounce-interval = <100>;
548c2ecf20Sopenharmony_ci			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
558c2ecf20Sopenharmony_ci			label = "GPIO Key Power";
568c2ecf20Sopenharmony_ci			linux,code = <KEY_POWER>;
578c2ecf20Sopenharmony_ci			wakeup-source;
588c2ecf20Sopenharmony_ci		};
598c2ecf20Sopenharmony_ci	};
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci	leds {
628c2ecf20Sopenharmony_ci		compatible = "gpio-leds";
638c2ecf20Sopenharmony_ci		pinctrl-names = "default";
648c2ecf20Sopenharmony_ci		pinctrl-0 = <&work_led_pin>, <&diy_led_pin>, <&yellow_led_pin>;
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci		work_led: led-0 {
678c2ecf20Sopenharmony_ci			label = "green:work";
688c2ecf20Sopenharmony_ci			gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
698c2ecf20Sopenharmony_ci			default-state = "on";
708c2ecf20Sopenharmony_ci			linux,default-trigger = "heartbeat";
718c2ecf20Sopenharmony_ci		};
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci		diy_led: led-1 {
748c2ecf20Sopenharmony_ci			label = "red:diy";
758c2ecf20Sopenharmony_ci			gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
768c2ecf20Sopenharmony_ci			default-state = "off";
778c2ecf20Sopenharmony_ci			linux,default-trigger = "mmc2";
788c2ecf20Sopenharmony_ci		};
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci		yellow_led: led-2 {
818c2ecf20Sopenharmony_ci			label = "yellow:yellow-led";
828c2ecf20Sopenharmony_ci			gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
838c2ecf20Sopenharmony_ci			default-state = "off";
848c2ecf20Sopenharmony_ci			linux,default-trigger = "mmc1";
858c2ecf20Sopenharmony_ci		};
868c2ecf20Sopenharmony_ci	};
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci	sdio_pwrseq: sdio-pwrseq {
898c2ecf20Sopenharmony_ci		compatible = "mmc-pwrseq-simple";
908c2ecf20Sopenharmony_ci		clocks = <&rk808 1>;
918c2ecf20Sopenharmony_ci		clock-names = "ext_clock";
928c2ecf20Sopenharmony_ci		pinctrl-names = "default";
938c2ecf20Sopenharmony_ci		pinctrl-0 = <&wifi_enable_h>;
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci		/*
968c2ecf20Sopenharmony_ci		 * On the module itself this is one of these (depending
978c2ecf20Sopenharmony_ci		 * on the actual card populated):
988c2ecf20Sopenharmony_ci		 * - SDIO_RESET_L_WL_REG_ON
998c2ecf20Sopenharmony_ci		 * - PDN (power down when low)
1008c2ecf20Sopenharmony_ci		 */
1018c2ecf20Sopenharmony_ci		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
1028c2ecf20Sopenharmony_ci	};
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ci	vcc_vbus_typec0: vcc-vbus-typec0 {
1058c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1068c2ecf20Sopenharmony_ci		regulator-name = "vcc_vbus_typec0";
1078c2ecf20Sopenharmony_ci		regulator-always-on;
1088c2ecf20Sopenharmony_ci		regulator-boot-on;
1098c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
1108c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
1118c2ecf20Sopenharmony_ci	};
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci	sys_12v: sys-12v {
1148c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1158c2ecf20Sopenharmony_ci		regulator-name = "sys_12v";
1168c2ecf20Sopenharmony_ci		regulator-always-on;
1178c2ecf20Sopenharmony_ci		regulator-boot-on;
1188c2ecf20Sopenharmony_ci		vin-supply = <&dc_12v>;
1198c2ecf20Sopenharmony_ci	};
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci	/* switched by pmic_sleep */
1228c2ecf20Sopenharmony_ci	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
1238c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1248c2ecf20Sopenharmony_ci		regulator-name = "vcc1v8_s3";
1258c2ecf20Sopenharmony_ci		regulator-always-on;
1268c2ecf20Sopenharmony_ci		regulator-boot-on;
1278c2ecf20Sopenharmony_ci		regulator-min-microvolt = <1800000>;
1288c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1800000>;
1298c2ecf20Sopenharmony_ci		vin-supply = <&vcc_1v8>;
1308c2ecf20Sopenharmony_ci	};
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci	vcc3v0_sd: vcc3v0-sd {
1338c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1348c2ecf20Sopenharmony_ci		enable-active-high;
1358c2ecf20Sopenharmony_ci		gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
1368c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1378c2ecf20Sopenharmony_ci		pinctrl-0 = <&vcc3v0_sd_en>;
1388c2ecf20Sopenharmony_ci		regulator-name = "vcc3v0_sd";
1398c2ecf20Sopenharmony_ci		regulator-boot-on;
1408c2ecf20Sopenharmony_ci		regulator-min-microvolt = <3000000>;
1418c2ecf20Sopenharmony_ci		regulator-max-microvolt = <3000000>;
1428c2ecf20Sopenharmony_ci		vin-supply = <&vcc3v3_sys>;
1438c2ecf20Sopenharmony_ci	};
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci	vcc3v3_sys: vcc3v3-sys {
1468c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1478c2ecf20Sopenharmony_ci		regulator-name = "vcc3v3_sys";
1488c2ecf20Sopenharmony_ci		regulator-always-on;
1498c2ecf20Sopenharmony_ci		regulator-boot-on;
1508c2ecf20Sopenharmony_ci		regulator-min-microvolt = <3300000>;
1518c2ecf20Sopenharmony_ci		regulator-max-microvolt = <3300000>;
1528c2ecf20Sopenharmony_ci		vin-supply = <&sys_12v>;
1538c2ecf20Sopenharmony_ci	};
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci	vcca_0v9: vcca-0v9 {
1568c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1578c2ecf20Sopenharmony_ci		regulator-name = "vcca_0v9";
1588c2ecf20Sopenharmony_ci		regulator-always-on;
1598c2ecf20Sopenharmony_ci		regulator-boot-on;
1608c2ecf20Sopenharmony_ci		regulator-min-microvolt = <900000>;
1618c2ecf20Sopenharmony_ci		regulator-max-microvolt = <900000>;
1628c2ecf20Sopenharmony_ci		vin-supply = <&vcc3v3_sys>;
1638c2ecf20Sopenharmony_ci	};
1648c2ecf20Sopenharmony_ci
1658c2ecf20Sopenharmony_ci	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
1668c2ecf20Sopenharmony_ci	vcc5v0_host: vcc5v0-host-regulator {
1678c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1688c2ecf20Sopenharmony_ci		enable-active-high;
1698c2ecf20Sopenharmony_ci		gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
1708c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1718c2ecf20Sopenharmony_ci		pinctrl-0 = <&vcc5v0_host_en &hub_rst>;
1728c2ecf20Sopenharmony_ci		regulator-name = "vcc5v0_host";
1738c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
1748c2ecf20Sopenharmony_ci	};
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_ci	vcc_vbus_typec1: vcc-vbus-typec1 {
1778c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1788c2ecf20Sopenharmony_ci		enable-active-high;
1798c2ecf20Sopenharmony_ci		gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
1808c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1818c2ecf20Sopenharmony_ci		pinctrl-0 = <&vcc_vbus_typec1_en>;
1828c2ecf20Sopenharmony_ci		regulator-name = "vcc_vbus_typec1";
1838c2ecf20Sopenharmony_ci		regulator-always-on;
1848c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
1858c2ecf20Sopenharmony_ci	};
1868c2ecf20Sopenharmony_ci
1878c2ecf20Sopenharmony_ci	vcc_sys: vcc-sys {
1888c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1898c2ecf20Sopenharmony_ci		enable-active-high;
1908c2ecf20Sopenharmony_ci		gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
1918c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1928c2ecf20Sopenharmony_ci		pinctrl-0 = <&vcc_sys_en>;
1938c2ecf20Sopenharmony_ci		regulator-name = "vcc_sys";
1948c2ecf20Sopenharmony_ci		regulator-boot-on;
1958c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
1968c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
1978c2ecf20Sopenharmony_ci		vin-supply = <&sys_12v>;
1988c2ecf20Sopenharmony_ci	};
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci	vdd_log: vdd-log {
2018c2ecf20Sopenharmony_ci		compatible = "pwm-regulator";
2028c2ecf20Sopenharmony_ci		pwms = <&pwm2 0 25000 1>;
2038c2ecf20Sopenharmony_ci		regulator-name = "vdd_log";
2048c2ecf20Sopenharmony_ci		regulator-always-on;
2058c2ecf20Sopenharmony_ci		regulator-boot-on;
2068c2ecf20Sopenharmony_ci		regulator-min-microvolt = <450000>;
2078c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1400000>;
2088c2ecf20Sopenharmony_ci		pwm-supply = <&vcc3v3_sys>;
2098c2ecf20Sopenharmony_ci	};
2108c2ecf20Sopenharmony_ci};
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci&cpu_l0 {
2138c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2148c2ecf20Sopenharmony_ci};
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci&cpu_l1 {
2178c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2188c2ecf20Sopenharmony_ci};
2198c2ecf20Sopenharmony_ci
2208c2ecf20Sopenharmony_ci&cpu_l2 {
2218c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2228c2ecf20Sopenharmony_ci};
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci&cpu_l3 {
2258c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2268c2ecf20Sopenharmony_ci};
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci&cpu_b0 {
2298c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_b>;
2308c2ecf20Sopenharmony_ci};
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci&cpu_b1 {
2338c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_b>;
2348c2ecf20Sopenharmony_ci};
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci&emmc_phy {
2378c2ecf20Sopenharmony_ci	status = "okay";
2388c2ecf20Sopenharmony_ci};
2398c2ecf20Sopenharmony_ci
2408c2ecf20Sopenharmony_ci&gmac {
2418c2ecf20Sopenharmony_ci	assigned-clocks = <&cru SCLK_RMII_SRC>;
2428c2ecf20Sopenharmony_ci	assigned-clock-parents = <&clkin_gmac>;
2438c2ecf20Sopenharmony_ci	clock_in_out = "input";
2448c2ecf20Sopenharmony_ci	phy-supply = <&vcc_lan>;
2458c2ecf20Sopenharmony_ci	phy-mode = "rgmii";
2468c2ecf20Sopenharmony_ci	pinctrl-names = "default";
2478c2ecf20Sopenharmony_ci	pinctrl-0 = <&rgmii_pins>;
2488c2ecf20Sopenharmony_ci	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
2498c2ecf20Sopenharmony_ci	snps,reset-active-low;
2508c2ecf20Sopenharmony_ci	snps,reset-delays-us = <0 10000 50000>;
2518c2ecf20Sopenharmony_ci	tx_delay = <0x28>;
2528c2ecf20Sopenharmony_ci	rx_delay = <0x11>;
2538c2ecf20Sopenharmony_ci	status = "okay";
2548c2ecf20Sopenharmony_ci};
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci&gpu {
2578c2ecf20Sopenharmony_ci	mali-supply = <&vdd_gpu>;
2588c2ecf20Sopenharmony_ci	status = "okay";
2598c2ecf20Sopenharmony_ci};
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci&hdmi {
2628c2ecf20Sopenharmony_ci	ddc-i2c-bus = <&i2c3>;
2638c2ecf20Sopenharmony_ci	pinctrl-names = "default";
2648c2ecf20Sopenharmony_ci	pinctrl-0 = <&hdmi_cec>;
2658c2ecf20Sopenharmony_ci	status = "okay";
2668c2ecf20Sopenharmony_ci};
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci&hdmi_sound {
2698c2ecf20Sopenharmony_ci	status = "okay";
2708c2ecf20Sopenharmony_ci};
2718c2ecf20Sopenharmony_ci
2728c2ecf20Sopenharmony_ci&i2c0 {
2738c2ecf20Sopenharmony_ci	clock-frequency = <400000>;
2748c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <168>;
2758c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <4>;
2768c2ecf20Sopenharmony_ci	status = "okay";
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_ci	rk808: pmic@1b {
2798c2ecf20Sopenharmony_ci		compatible = "rockchip,rk808";
2808c2ecf20Sopenharmony_ci		reg = <0x1b>;
2818c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio1>;
2828c2ecf20Sopenharmony_ci		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
2838c2ecf20Sopenharmony_ci		#clock-cells = <1>;
2848c2ecf20Sopenharmony_ci		clock-output-names = "xin32k", "rk808-clkout2";
2858c2ecf20Sopenharmony_ci		pinctrl-names = "default";
2868c2ecf20Sopenharmony_ci		pinctrl-0 = <&pmic_int_l>;
2878c2ecf20Sopenharmony_ci		rockchip,system-power-controller;
2888c2ecf20Sopenharmony_ci		wakeup-source;
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci		vcc1-supply = <&vcc3v3_sys>;
2918c2ecf20Sopenharmony_ci		vcc2-supply = <&vcc3v3_sys>;
2928c2ecf20Sopenharmony_ci		vcc3-supply = <&vcc3v3_sys>;
2938c2ecf20Sopenharmony_ci		vcc4-supply = <&vcc3v3_sys>;
2948c2ecf20Sopenharmony_ci		vcc6-supply = <&vcc3v3_sys>;
2958c2ecf20Sopenharmony_ci		vcc7-supply = <&vcc3v3_sys>;
2968c2ecf20Sopenharmony_ci		vcc8-supply = <&vcc3v3_sys>;
2978c2ecf20Sopenharmony_ci		vcc9-supply = <&vcc3v3_sys>;
2988c2ecf20Sopenharmony_ci		vcc10-supply = <&vcc3v3_sys>;
2998c2ecf20Sopenharmony_ci		vcc11-supply = <&vcc3v3_sys>;
3008c2ecf20Sopenharmony_ci		vcc12-supply = <&vcc3v3_sys>;
3018c2ecf20Sopenharmony_ci		vcc13-supply = <&vcc3v3_sys>;
3028c2ecf20Sopenharmony_ci		vcc14-supply = <&vcc3v3_sys>;
3038c2ecf20Sopenharmony_ci		vddio-supply = <&vcc_3v0>;
3048c2ecf20Sopenharmony_ci
3058c2ecf20Sopenharmony_ci		regulators {
3068c2ecf20Sopenharmony_ci			vdd_center: DCDC_REG1 {
3078c2ecf20Sopenharmony_ci				regulator-name = "vdd_center";
3088c2ecf20Sopenharmony_ci				regulator-always-on;
3098c2ecf20Sopenharmony_ci				regulator-boot-on;
3108c2ecf20Sopenharmony_ci				regulator-min-microvolt = <750000>;
3118c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3128c2ecf20Sopenharmony_ci				regulator-ramp-delay = <6001>;
3138c2ecf20Sopenharmony_ci				regulator-state-mem {
3148c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3158c2ecf20Sopenharmony_ci				};
3168c2ecf20Sopenharmony_ci			};
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci			vdd_cpu_l: DCDC_REG2 {
3198c2ecf20Sopenharmony_ci				regulator-name = "vdd_cpu_l";
3208c2ecf20Sopenharmony_ci				regulator-always-on;
3218c2ecf20Sopenharmony_ci				regulator-boot-on;
3228c2ecf20Sopenharmony_ci				regulator-min-microvolt = <750000>;
3238c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3248c2ecf20Sopenharmony_ci				regulator-ramp-delay = <6001>;
3258c2ecf20Sopenharmony_ci				regulator-state-mem {
3268c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3278c2ecf20Sopenharmony_ci				};
3288c2ecf20Sopenharmony_ci			};
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ci			vcc_ddr: DCDC_REG3 {
3318c2ecf20Sopenharmony_ci				regulator-name = "vcc_ddr";
3328c2ecf20Sopenharmony_ci				regulator-always-on;
3338c2ecf20Sopenharmony_ci				regulator-boot-on;
3348c2ecf20Sopenharmony_ci				regulator-state-mem {
3358c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3368c2ecf20Sopenharmony_ci				};
3378c2ecf20Sopenharmony_ci			};
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_ci			vcc_1v8: DCDC_REG4 {
3408c2ecf20Sopenharmony_ci				regulator-name = "vcc_1v8";
3418c2ecf20Sopenharmony_ci				regulator-always-on;
3428c2ecf20Sopenharmony_ci				regulator-boot-on;
3438c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3448c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3458c2ecf20Sopenharmony_ci				regulator-state-mem {
3468c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3478c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1800000>;
3488c2ecf20Sopenharmony_ci				};
3498c2ecf20Sopenharmony_ci			};
3508c2ecf20Sopenharmony_ci
3518c2ecf20Sopenharmony_ci			vcca1v8_codec: LDO_REG1 {
3528c2ecf20Sopenharmony_ci				regulator-name = "vcca1v8_codec";
3538c2ecf20Sopenharmony_ci				regulator-always-on;
3548c2ecf20Sopenharmony_ci				regulator-boot-on;
3558c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3568c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3578c2ecf20Sopenharmony_ci				regulator-state-mem {
3588c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3598c2ecf20Sopenharmony_ci				};
3608c2ecf20Sopenharmony_ci			};
3618c2ecf20Sopenharmony_ci
3628c2ecf20Sopenharmony_ci			vcc1v8_hdmi: LDO_REG2 {
3638c2ecf20Sopenharmony_ci				regulator-name = "vcc1v8_hdmi";
3648c2ecf20Sopenharmony_ci				regulator-always-on;
3658c2ecf20Sopenharmony_ci				regulator-boot-on;
3668c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3678c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3688c2ecf20Sopenharmony_ci				regulator-state-mem {
3698c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3708c2ecf20Sopenharmony_ci				};
3718c2ecf20Sopenharmony_ci			};
3728c2ecf20Sopenharmony_ci
3738c2ecf20Sopenharmony_ci			vcc1v8_pmu: LDO_REG3 {
3748c2ecf20Sopenharmony_ci				regulator-name = "vcc1v8_pmu";
3758c2ecf20Sopenharmony_ci				regulator-always-on;
3768c2ecf20Sopenharmony_ci				regulator-boot-on;
3778c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3788c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3798c2ecf20Sopenharmony_ci				regulator-state-mem {
3808c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3818c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1800000>;
3828c2ecf20Sopenharmony_ci				};
3838c2ecf20Sopenharmony_ci			};
3848c2ecf20Sopenharmony_ci
3858c2ecf20Sopenharmony_ci			vcc_sdio: LDO_REG4 {
3868c2ecf20Sopenharmony_ci				regulator-name = "vcc_sdio";
3878c2ecf20Sopenharmony_ci				regulator-always-on;
3888c2ecf20Sopenharmony_ci				regulator-boot-on;
3898c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3908c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
3918c2ecf20Sopenharmony_ci				regulator-state-mem {
3928c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3938c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <3000000>;
3948c2ecf20Sopenharmony_ci				};
3958c2ecf20Sopenharmony_ci			};
3968c2ecf20Sopenharmony_ci
3978c2ecf20Sopenharmony_ci			vcca3v0_codec: LDO_REG5 {
3988c2ecf20Sopenharmony_ci				regulator-name = "vcca3v0_codec";
3998c2ecf20Sopenharmony_ci				regulator-always-on;
4008c2ecf20Sopenharmony_ci				regulator-boot-on;
4018c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
4028c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
4038c2ecf20Sopenharmony_ci				regulator-state-mem {
4048c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4058c2ecf20Sopenharmony_ci				};
4068c2ecf20Sopenharmony_ci			};
4078c2ecf20Sopenharmony_ci
4088c2ecf20Sopenharmony_ci			vcc_1v5: LDO_REG6 {
4098c2ecf20Sopenharmony_ci				regulator-name = "vcc_1v5";
4108c2ecf20Sopenharmony_ci				regulator-always-on;
4118c2ecf20Sopenharmony_ci				regulator-boot-on;
4128c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1500000>;
4138c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1500000>;
4148c2ecf20Sopenharmony_ci				regulator-state-mem {
4158c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
4168c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1500000>;
4178c2ecf20Sopenharmony_ci				};
4188c2ecf20Sopenharmony_ci			};
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ci			vcca0v9_hdmi: LDO_REG7 {
4218c2ecf20Sopenharmony_ci				regulator-name = "vcca0v9_hdmi";
4228c2ecf20Sopenharmony_ci				regulator-always-on;
4238c2ecf20Sopenharmony_ci				regulator-boot-on;
4248c2ecf20Sopenharmony_ci				regulator-min-microvolt = <900000>;
4258c2ecf20Sopenharmony_ci				regulator-max-microvolt = <900000>;
4268c2ecf20Sopenharmony_ci				regulator-state-mem {
4278c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4288c2ecf20Sopenharmony_ci				};
4298c2ecf20Sopenharmony_ci			};
4308c2ecf20Sopenharmony_ci
4318c2ecf20Sopenharmony_ci			vcc_3v0: LDO_REG8 {
4328c2ecf20Sopenharmony_ci				regulator-name = "vcc_3v0";
4338c2ecf20Sopenharmony_ci				regulator-always-on;
4348c2ecf20Sopenharmony_ci				regulator-boot-on;
4358c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
4368c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
4378c2ecf20Sopenharmony_ci				regulator-state-mem {
4388c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
4398c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <3000000>;
4408c2ecf20Sopenharmony_ci				};
4418c2ecf20Sopenharmony_ci			};
4428c2ecf20Sopenharmony_ci
4438c2ecf20Sopenharmony_ci			vcc3v3_s3: vcc_lan: SWITCH_REG1 {
4448c2ecf20Sopenharmony_ci				regulator-name = "vcc3v3_s3";
4458c2ecf20Sopenharmony_ci				regulator-always-on;
4468c2ecf20Sopenharmony_ci				regulator-boot-on;
4478c2ecf20Sopenharmony_ci				regulator-state-mem {
4488c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4498c2ecf20Sopenharmony_ci				};
4508c2ecf20Sopenharmony_ci			};
4518c2ecf20Sopenharmony_ci
4528c2ecf20Sopenharmony_ci			vcc3v3_s0: SWITCH_REG2 {
4538c2ecf20Sopenharmony_ci				regulator-name = "vcc3v3_s0";
4548c2ecf20Sopenharmony_ci				regulator-always-on;
4558c2ecf20Sopenharmony_ci				regulator-boot-on;
4568c2ecf20Sopenharmony_ci				regulator-state-mem {
4578c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4588c2ecf20Sopenharmony_ci				};
4598c2ecf20Sopenharmony_ci			};
4608c2ecf20Sopenharmony_ci		};
4618c2ecf20Sopenharmony_ci	};
4628c2ecf20Sopenharmony_ci
4638c2ecf20Sopenharmony_ci	vdd_cpu_b: regulator@40 {
4648c2ecf20Sopenharmony_ci		compatible = "silergy,syr827";
4658c2ecf20Sopenharmony_ci		reg = <0x40>;
4668c2ecf20Sopenharmony_ci		fcs,suspend-voltage-selector = <1>;
4678c2ecf20Sopenharmony_ci		pinctrl-names = "default";
4688c2ecf20Sopenharmony_ci		pinctrl-0 = <&vsel1_pin>;
4698c2ecf20Sopenharmony_ci		regulator-name = "vdd_cpu_b";
4708c2ecf20Sopenharmony_ci		regulator-min-microvolt = <712500>;
4718c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1500000>;
4728c2ecf20Sopenharmony_ci		regulator-ramp-delay = <1000>;
4738c2ecf20Sopenharmony_ci		regulator-always-on;
4748c2ecf20Sopenharmony_ci		regulator-boot-on;
4758c2ecf20Sopenharmony_ci		vin-supply = <&vcc3v3_sys>;
4768c2ecf20Sopenharmony_ci
4778c2ecf20Sopenharmony_ci		regulator-state-mem {
4788c2ecf20Sopenharmony_ci			regulator-off-in-suspend;
4798c2ecf20Sopenharmony_ci		};
4808c2ecf20Sopenharmony_ci	};
4818c2ecf20Sopenharmony_ci
4828c2ecf20Sopenharmony_ci	vdd_gpu: regulator@41 {
4838c2ecf20Sopenharmony_ci		compatible = "silergy,syr828";
4848c2ecf20Sopenharmony_ci		reg = <0x41>;
4858c2ecf20Sopenharmony_ci		fcs,suspend-voltage-selector = <1>;
4868c2ecf20Sopenharmony_ci		pinctrl-names = "default";
4878c2ecf20Sopenharmony_ci		pinctrl-0 = <&vsel2_pin>;
4888c2ecf20Sopenharmony_ci		regulator-name = "vdd_gpu";
4898c2ecf20Sopenharmony_ci		regulator-min-microvolt = <712500>;
4908c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1500000>;
4918c2ecf20Sopenharmony_ci		regulator-ramp-delay = <1000>;
4928c2ecf20Sopenharmony_ci		regulator-always-on;
4938c2ecf20Sopenharmony_ci		regulator-boot-on;
4948c2ecf20Sopenharmony_ci		vin-supply = <&vcc3v3_sys>;
4958c2ecf20Sopenharmony_ci
4968c2ecf20Sopenharmony_ci		regulator-state-mem {
4978c2ecf20Sopenharmony_ci			regulator-off-in-suspend;
4988c2ecf20Sopenharmony_ci		};
4998c2ecf20Sopenharmony_ci	};
5008c2ecf20Sopenharmony_ci};
5018c2ecf20Sopenharmony_ci
5028c2ecf20Sopenharmony_ci&i2c1 {
5038c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <300>;
5048c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <15>;
5058c2ecf20Sopenharmony_ci	status = "okay";
5068c2ecf20Sopenharmony_ci};
5078c2ecf20Sopenharmony_ci
5088c2ecf20Sopenharmony_ci&i2c3 {
5098c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <450>;
5108c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <15>;
5118c2ecf20Sopenharmony_ci	status = "okay";
5128c2ecf20Sopenharmony_ci};
5138c2ecf20Sopenharmony_ci
5148c2ecf20Sopenharmony_ci&i2c4 {
5158c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <600>;
5168c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <20>;
5178c2ecf20Sopenharmony_ci	status = "okay";
5188c2ecf20Sopenharmony_ci
5198c2ecf20Sopenharmony_ci	fusb1: usb-typec@22 {
5208c2ecf20Sopenharmony_ci		compatible = "fcs,fusb302";
5218c2ecf20Sopenharmony_ci		reg = <0x22>;
5228c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio1>;
5238c2ecf20Sopenharmony_ci		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
5248c2ecf20Sopenharmony_ci		pinctrl-names = "default";
5258c2ecf20Sopenharmony_ci		pinctrl-0 = <&fusb1_int>;
5268c2ecf20Sopenharmony_ci		vbus-supply = <&vcc_vbus_typec1>;
5278c2ecf20Sopenharmony_ci		status = "okay";
5288c2ecf20Sopenharmony_ci	};
5298c2ecf20Sopenharmony_ci};
5308c2ecf20Sopenharmony_ci
5318c2ecf20Sopenharmony_ci&i2c7 {
5328c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <600>;
5338c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <20>;
5348c2ecf20Sopenharmony_ci	status = "okay";
5358c2ecf20Sopenharmony_ci
5368c2ecf20Sopenharmony_ci	fusb0: usb-typec@22 {
5378c2ecf20Sopenharmony_ci		compatible = "fcs,fusb302";
5388c2ecf20Sopenharmony_ci		reg = <0x22>;
5398c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio1>;
5408c2ecf20Sopenharmony_ci		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
5418c2ecf20Sopenharmony_ci		pinctrl-names = "default";
5428c2ecf20Sopenharmony_ci		pinctrl-0 = <&fusb0_int>;
5438c2ecf20Sopenharmony_ci		vbus-supply = <&vcc_vbus_typec0>;
5448c2ecf20Sopenharmony_ci		status = "okay";
5458c2ecf20Sopenharmony_ci	};
5468c2ecf20Sopenharmony_ci
5478c2ecf20Sopenharmony_ci	mp8859: regulator@66 {
5488c2ecf20Sopenharmony_ci		compatible = "mps,mp8859";
5498c2ecf20Sopenharmony_ci		reg = <0x66>;
5508c2ecf20Sopenharmony_ci		dc_12v: mp8859_dcdc {
5518c2ecf20Sopenharmony_ci			regulator-name = "dc_12v";
5528c2ecf20Sopenharmony_ci			regulator-min-microvolt = <12000000>;
5538c2ecf20Sopenharmony_ci			regulator-max-microvolt = <12000000>;
5548c2ecf20Sopenharmony_ci			regulator-always-on;
5558c2ecf20Sopenharmony_ci			regulator-boot-on;
5568c2ecf20Sopenharmony_ci			vin-supply = <&vcc_vbus_typec0>;
5578c2ecf20Sopenharmony_ci
5588c2ecf20Sopenharmony_ci			regulator-state-mem {
5598c2ecf20Sopenharmony_ci				regulator-on-in-suspend;
5608c2ecf20Sopenharmony_ci				regulator-suspend-microvolt = <12000000>;
5618c2ecf20Sopenharmony_ci			};
5628c2ecf20Sopenharmony_ci		};
5638c2ecf20Sopenharmony_ci	};
5648c2ecf20Sopenharmony_ci};
5658c2ecf20Sopenharmony_ci
5668c2ecf20Sopenharmony_ci&i2s0 {
5678c2ecf20Sopenharmony_ci	rockchip,playback-channels = <8>;
5688c2ecf20Sopenharmony_ci	rockchip,capture-channels = <8>;
5698c2ecf20Sopenharmony_ci	status = "okay";
5708c2ecf20Sopenharmony_ci};
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_ci&i2s1 {
5738c2ecf20Sopenharmony_ci	rockchip,playback-channels = <2>;
5748c2ecf20Sopenharmony_ci	rockchip,capture-channels = <2>;
5758c2ecf20Sopenharmony_ci	status = "okay";
5768c2ecf20Sopenharmony_ci};
5778c2ecf20Sopenharmony_ci
5788c2ecf20Sopenharmony_ci&i2s2 {
5798c2ecf20Sopenharmony_ci	status = "okay";
5808c2ecf20Sopenharmony_ci};
5818c2ecf20Sopenharmony_ci
5828c2ecf20Sopenharmony_ci&io_domains {
5838c2ecf20Sopenharmony_ci	audio-supply = <&vcca1v8_codec>;
5848c2ecf20Sopenharmony_ci	bt656-supply = <&vcc_3v0>;
5858c2ecf20Sopenharmony_ci	gpio1830-supply = <&vcc_3v0>;
5868c2ecf20Sopenharmony_ci	sdmmc-supply = <&vcc_sdio>;
5878c2ecf20Sopenharmony_ci	status = "okay";
5888c2ecf20Sopenharmony_ci};
5898c2ecf20Sopenharmony_ci
5908c2ecf20Sopenharmony_ci&pmu_io_domains {
5918c2ecf20Sopenharmony_ci	pmu1830-supply = <&vcc_3v0>;
5928c2ecf20Sopenharmony_ci	status = "okay";
5938c2ecf20Sopenharmony_ci};
5948c2ecf20Sopenharmony_ci
5958c2ecf20Sopenharmony_ci&pinctrl {
5968c2ecf20Sopenharmony_ci	buttons {
5978c2ecf20Sopenharmony_ci		pwr_key_l: pwr-key-l {
5988c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
5998c2ecf20Sopenharmony_ci		};
6008c2ecf20Sopenharmony_ci	};
6018c2ecf20Sopenharmony_ci
6028c2ecf20Sopenharmony_ci	lcd-panel {
6038c2ecf20Sopenharmony_ci		lcd_panel_reset: lcd-panel-reset {
6048c2ecf20Sopenharmony_ci			rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
6058c2ecf20Sopenharmony_ci		};
6068c2ecf20Sopenharmony_ci	};
6078c2ecf20Sopenharmony_ci
6088c2ecf20Sopenharmony_ci	leds {
6098c2ecf20Sopenharmony_ci		diy_led_pin: diy-led-pin {
6108c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
6118c2ecf20Sopenharmony_ci		};
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci		work_led_pin: work-led-pin {
6148c2ecf20Sopenharmony_ci			rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
6158c2ecf20Sopenharmony_ci		};
6168c2ecf20Sopenharmony_ci
6178c2ecf20Sopenharmony_ci		yellow_led_pin: yellow-led-pin {
6188c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
6198c2ecf20Sopenharmony_ci		};
6208c2ecf20Sopenharmony_ci	};
6218c2ecf20Sopenharmony_ci
6228c2ecf20Sopenharmony_ci	pmic {
6238c2ecf20Sopenharmony_ci		vsel1_pin: vsel1-pin {
6248c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
6258c2ecf20Sopenharmony_ci		};
6268c2ecf20Sopenharmony_ci
6278c2ecf20Sopenharmony_ci		vsel2_pin: vsel2-pin {
6288c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
6298c2ecf20Sopenharmony_ci		};
6308c2ecf20Sopenharmony_ci	};
6318c2ecf20Sopenharmony_ci
6328c2ecf20Sopenharmony_ci	sdio-pwrseq {
6338c2ecf20Sopenharmony_ci		wifi_enable_h: wifi-enable-h {
6348c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
6358c2ecf20Sopenharmony_ci		};
6368c2ecf20Sopenharmony_ci	};
6378c2ecf20Sopenharmony_ci
6388c2ecf20Sopenharmony_ci	sdmmc {
6398c2ecf20Sopenharmony_ci		vcc3v0_sd_en: vcc3v0-sd-en {
6408c2ecf20Sopenharmony_ci			rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
6418c2ecf20Sopenharmony_ci		};
6428c2ecf20Sopenharmony_ci	};
6438c2ecf20Sopenharmony_ci
6448c2ecf20Sopenharmony_ci	pmic {
6458c2ecf20Sopenharmony_ci		pmic_int_l: pmic-int-l {
6468c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
6478c2ecf20Sopenharmony_ci		};
6488c2ecf20Sopenharmony_ci	};
6498c2ecf20Sopenharmony_ci
6508c2ecf20Sopenharmony_ci	usb2 {
6518c2ecf20Sopenharmony_ci		vcc5v0_host_en: vcc5v0-host-en {
6528c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
6538c2ecf20Sopenharmony_ci		};
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci		vcc_sys_en: vcc-sys-en {
6568c2ecf20Sopenharmony_ci			rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
6578c2ecf20Sopenharmony_ci		};
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci		hub_rst: hub-rst {
6608c2ecf20Sopenharmony_ci			rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_output_high>;
6618c2ecf20Sopenharmony_ci		};
6628c2ecf20Sopenharmony_ci	};
6638c2ecf20Sopenharmony_ci
6648c2ecf20Sopenharmony_ci	usb-typec {
6658c2ecf20Sopenharmony_ci		vcc_vbus_typec1_en: vcc-vbus-typec1-en {
6668c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
6678c2ecf20Sopenharmony_ci		};
6688c2ecf20Sopenharmony_ci	};
6698c2ecf20Sopenharmony_ci
6708c2ecf20Sopenharmony_ci	fusb30x {
6718c2ecf20Sopenharmony_ci		fusb0_int: fusb0-int {
6728c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
6738c2ecf20Sopenharmony_ci		};
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci		fusb1_int: fusb1-int {
6768c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
6778c2ecf20Sopenharmony_ci		};
6788c2ecf20Sopenharmony_ci	};
6798c2ecf20Sopenharmony_ci};
6808c2ecf20Sopenharmony_ci
6818c2ecf20Sopenharmony_ci&pwm0 {
6828c2ecf20Sopenharmony_ci	status = "okay";
6838c2ecf20Sopenharmony_ci};
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_ci&pwm2 {
6868c2ecf20Sopenharmony_ci	status = "okay";
6878c2ecf20Sopenharmony_ci};
6888c2ecf20Sopenharmony_ci
6898c2ecf20Sopenharmony_ci&saradc {
6908c2ecf20Sopenharmony_ci	vref-supply = <&vcca1v8_s3>;
6918c2ecf20Sopenharmony_ci	status = "okay";
6928c2ecf20Sopenharmony_ci};
6938c2ecf20Sopenharmony_ci
6948c2ecf20Sopenharmony_ci&sdmmc {
6958c2ecf20Sopenharmony_ci	bus-width = <4>;
6968c2ecf20Sopenharmony_ci	cap-sd-highspeed;
6978c2ecf20Sopenharmony_ci	cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
6988c2ecf20Sopenharmony_ci	disable-wp;
6998c2ecf20Sopenharmony_ci	max-frequency = <150000000>;
7008c2ecf20Sopenharmony_ci	pinctrl-names = "default";
7018c2ecf20Sopenharmony_ci	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
7028c2ecf20Sopenharmony_ci	sd-uhs-sdr104;
7038c2ecf20Sopenharmony_ci	vmmc-supply = <&vcc3v0_sd>;
7048c2ecf20Sopenharmony_ci	vqmmc-supply = <&vcc_sdio>;
7058c2ecf20Sopenharmony_ci	status = "okay";
7068c2ecf20Sopenharmony_ci};
7078c2ecf20Sopenharmony_ci
7088c2ecf20Sopenharmony_ci&sdhci {
7098c2ecf20Sopenharmony_ci	bus-width = <8>;
7108c2ecf20Sopenharmony_ci	non-removable;
7118c2ecf20Sopenharmony_ci	status = "okay";
7128c2ecf20Sopenharmony_ci};
7138c2ecf20Sopenharmony_ci
7148c2ecf20Sopenharmony_ci&spi1 {
7158c2ecf20Sopenharmony_ci	status = "okay";
7168c2ecf20Sopenharmony_ci
7178c2ecf20Sopenharmony_ci	flash@0 {
7188c2ecf20Sopenharmony_ci		compatible = "jedec,spi-nor";
7198c2ecf20Sopenharmony_ci		reg = <0>;
7208c2ecf20Sopenharmony_ci		spi-max-frequency = <10000000>;
7218c2ecf20Sopenharmony_ci	};
7228c2ecf20Sopenharmony_ci};
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_ci&tcphy0 {
7258c2ecf20Sopenharmony_ci	status = "okay";
7268c2ecf20Sopenharmony_ci};
7278c2ecf20Sopenharmony_ci
7288c2ecf20Sopenharmony_ci&tcphy1 {
7298c2ecf20Sopenharmony_ci	status = "okay";
7308c2ecf20Sopenharmony_ci};
7318c2ecf20Sopenharmony_ci
7328c2ecf20Sopenharmony_ci&tsadc {
7338c2ecf20Sopenharmony_ci	/* tshut mode 0:CRU 1:GPIO */
7348c2ecf20Sopenharmony_ci	rockchip,hw-tshut-mode = <1>;
7358c2ecf20Sopenharmony_ci	/* tshut polarity 0:LOW 1:HIGH */
7368c2ecf20Sopenharmony_ci	rockchip,hw-tshut-polarity = <1>;
7378c2ecf20Sopenharmony_ci	status = "okay";
7388c2ecf20Sopenharmony_ci};
7398c2ecf20Sopenharmony_ci
7408c2ecf20Sopenharmony_ci&u2phy0 {
7418c2ecf20Sopenharmony_ci	status = "okay";
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_ci	u2phy0_otg: otg-port {
7448c2ecf20Sopenharmony_ci		phy-supply = <&vcc_vbus_typec0>;
7458c2ecf20Sopenharmony_ci		status = "okay";
7468c2ecf20Sopenharmony_ci	};
7478c2ecf20Sopenharmony_ci
7488c2ecf20Sopenharmony_ci	u2phy0_host: host-port {
7498c2ecf20Sopenharmony_ci		phy-supply = <&vcc5v0_host>;
7508c2ecf20Sopenharmony_ci		status = "okay";
7518c2ecf20Sopenharmony_ci	};
7528c2ecf20Sopenharmony_ci};
7538c2ecf20Sopenharmony_ci
7548c2ecf20Sopenharmony_ci&u2phy1 {
7558c2ecf20Sopenharmony_ci	status = "okay";
7568c2ecf20Sopenharmony_ci
7578c2ecf20Sopenharmony_ci	u2phy1_otg: otg-port {
7588c2ecf20Sopenharmony_ci		phy-supply = <&vcc_vbus_typec1>;
7598c2ecf20Sopenharmony_ci		status = "okay";
7608c2ecf20Sopenharmony_ci	};
7618c2ecf20Sopenharmony_ci
7628c2ecf20Sopenharmony_ci	u2phy1_host: host-port {
7638c2ecf20Sopenharmony_ci		phy-supply = <&vcc5v0_host>;
7648c2ecf20Sopenharmony_ci		status = "okay";
7658c2ecf20Sopenharmony_ci	};
7668c2ecf20Sopenharmony_ci};
7678c2ecf20Sopenharmony_ci
7688c2ecf20Sopenharmony_ci&uart0 {
7698c2ecf20Sopenharmony_ci	pinctrl-names = "default";
7708c2ecf20Sopenharmony_ci	pinctrl-0 = <&uart0_xfer &uart0_cts>;
7718c2ecf20Sopenharmony_ci	status = "okay";
7728c2ecf20Sopenharmony_ci};
7738c2ecf20Sopenharmony_ci
7748c2ecf20Sopenharmony_ci&uart2 {
7758c2ecf20Sopenharmony_ci	status = "okay";
7768c2ecf20Sopenharmony_ci};
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_ci&usb_host0_ehci {
7798c2ecf20Sopenharmony_ci	status = "okay";
7808c2ecf20Sopenharmony_ci};
7818c2ecf20Sopenharmony_ci
7828c2ecf20Sopenharmony_ci&usb_host0_ohci {
7838c2ecf20Sopenharmony_ci	status = "okay";
7848c2ecf20Sopenharmony_ci};
7858c2ecf20Sopenharmony_ci
7868c2ecf20Sopenharmony_ci&usb_host1_ehci {
7878c2ecf20Sopenharmony_ci	status = "okay";
7888c2ecf20Sopenharmony_ci};
7898c2ecf20Sopenharmony_ci
7908c2ecf20Sopenharmony_ci&usb_host1_ohci {
7918c2ecf20Sopenharmony_ci	status = "okay";
7928c2ecf20Sopenharmony_ci};
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_ci&usbdrd3_0 {
7958c2ecf20Sopenharmony_ci	status = "okay";
7968c2ecf20Sopenharmony_ci};
7978c2ecf20Sopenharmony_ci
7988c2ecf20Sopenharmony_ci&usbdrd_dwc3_0 {
7998c2ecf20Sopenharmony_ci	status = "okay";
8008c2ecf20Sopenharmony_ci};
8018c2ecf20Sopenharmony_ci
8028c2ecf20Sopenharmony_ci&usbdrd3_1 {
8038c2ecf20Sopenharmony_ci	status = "okay";
8048c2ecf20Sopenharmony_ci};
8058c2ecf20Sopenharmony_ci
8068c2ecf20Sopenharmony_ci&usbdrd_dwc3_1 {
8078c2ecf20Sopenharmony_ci	status = "okay";
8088c2ecf20Sopenharmony_ci	dr_mode = "host";
8098c2ecf20Sopenharmony_ci};
8108c2ecf20Sopenharmony_ci
8118c2ecf20Sopenharmony_ci&vopb {
8128c2ecf20Sopenharmony_ci	status = "okay";
8138c2ecf20Sopenharmony_ci};
8148c2ecf20Sopenharmony_ci
8158c2ecf20Sopenharmony_ci&vopb_mmu {
8168c2ecf20Sopenharmony_ci	status = "okay";
8178c2ecf20Sopenharmony_ci};
8188c2ecf20Sopenharmony_ci
8198c2ecf20Sopenharmony_ci&vopl {
8208c2ecf20Sopenharmony_ci	status = "okay";
8218c2ecf20Sopenharmony_ci};
8228c2ecf20Sopenharmony_ci
8238c2ecf20Sopenharmony_ci&vopl_mmu {
8248c2ecf20Sopenharmony_ci	status = "okay";
8258c2ecf20Sopenharmony_ci};
826