18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci/dts-v1/;
78c2ecf20Sopenharmony_ci#include <dt-bindings/pwm/pwm.h>
88c2ecf20Sopenharmony_ci#include "rk3399.dtsi"
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/ {
118c2ecf20Sopenharmony_ci	model = "Rockchip RK3399 Evaluation Board";
128c2ecf20Sopenharmony_ci	compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	backlight: backlight {
158c2ecf20Sopenharmony_ci		compatible = "pwm-backlight";
168c2ecf20Sopenharmony_ci		brightness-levels = <
178c2ecf20Sopenharmony_ci			  0   1   2   3   4   5   6   7
188c2ecf20Sopenharmony_ci			  8   9  10  11  12  13  14  15
198c2ecf20Sopenharmony_ci			 16  17  18  19  20  21  22  23
208c2ecf20Sopenharmony_ci			 24  25  26  27  28  29  30  31
218c2ecf20Sopenharmony_ci			 32  33  34  35  36  37  38  39
228c2ecf20Sopenharmony_ci			 40  41  42  43  44  45  46  47
238c2ecf20Sopenharmony_ci			 48  49  50  51  52  53  54  55
248c2ecf20Sopenharmony_ci			 56  57  58  59  60  61  62  63
258c2ecf20Sopenharmony_ci			 64  65  66  67  68  69  70  71
268c2ecf20Sopenharmony_ci			 72  73  74  75  76  77  78  79
278c2ecf20Sopenharmony_ci			 80  81  82  83  84  85  86  87
288c2ecf20Sopenharmony_ci			 88  89  90  91  92  93  94  95
298c2ecf20Sopenharmony_ci			 96  97  98  99 100 101 102 103
308c2ecf20Sopenharmony_ci			104 105 106 107 108 109 110 111
318c2ecf20Sopenharmony_ci			112 113 114 115 116 117 118 119
328c2ecf20Sopenharmony_ci			120 121 122 123 124 125 126 127
338c2ecf20Sopenharmony_ci			128 129 130 131 132 133 134 135
348c2ecf20Sopenharmony_ci			136 137 138 139 140 141 142 143
358c2ecf20Sopenharmony_ci			144 145 146 147 148 149 150 151
368c2ecf20Sopenharmony_ci			152 153 154 155 156 157 158 159
378c2ecf20Sopenharmony_ci			160 161 162 163 164 165 166 167
388c2ecf20Sopenharmony_ci			168 169 170 171 172 173 174 175
398c2ecf20Sopenharmony_ci			176 177 178 179 180 181 182 183
408c2ecf20Sopenharmony_ci			184 185 186 187 188 189 190 191
418c2ecf20Sopenharmony_ci			192 193 194 195 196 197 198 199
428c2ecf20Sopenharmony_ci			200 201 202 203 204 205 206 207
438c2ecf20Sopenharmony_ci			208 209 210 211 212 213 214 215
448c2ecf20Sopenharmony_ci			216 217 218 219 220 221 222 223
458c2ecf20Sopenharmony_ci			224 225 226 227 228 229 230 231
468c2ecf20Sopenharmony_ci			232 233 234 235 236 237 238 239
478c2ecf20Sopenharmony_ci			240 241 242 243 244 245 246 247
488c2ecf20Sopenharmony_ci			248 249 250 251 252 253 254 255>;
498c2ecf20Sopenharmony_ci		default-brightness-level = <200>;
508c2ecf20Sopenharmony_ci		pwms = <&pwm0 0 25000 0>;
518c2ecf20Sopenharmony_ci	};
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	edp_panel: edp-panel {
548c2ecf20Sopenharmony_ci		compatible ="lg,lp079qx1-sp0v";
558c2ecf20Sopenharmony_ci		backlight = <&backlight>;
568c2ecf20Sopenharmony_ci		enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
578c2ecf20Sopenharmony_ci		power-supply = <&vcc3v3_s0>;
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci		port {
608c2ecf20Sopenharmony_ci			panel_in_edp: endpoint {
618c2ecf20Sopenharmony_ci				remote-endpoint = <&edp_out_panel>;
628c2ecf20Sopenharmony_ci			};
638c2ecf20Sopenharmony_ci		};
648c2ecf20Sopenharmony_ci	};
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci	clkin_gmac: external-gmac-clock {
678c2ecf20Sopenharmony_ci		compatible = "fixed-clock";
688c2ecf20Sopenharmony_ci		clock-frequency = <125000000>;
698c2ecf20Sopenharmony_ci		clock-output-names = "clkin_gmac";
708c2ecf20Sopenharmony_ci		#clock-cells = <0>;
718c2ecf20Sopenharmony_ci	};
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci	vdd_center: vdd-center {
748c2ecf20Sopenharmony_ci		compatible = "pwm-regulator";
758c2ecf20Sopenharmony_ci		pwms = <&pwm3 0 25000 0>;
768c2ecf20Sopenharmony_ci		regulator-name = "vdd_center";
778c2ecf20Sopenharmony_ci		regulator-min-microvolt = <800000>;
788c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1400000>;
798c2ecf20Sopenharmony_ci		regulator-always-on;
808c2ecf20Sopenharmony_ci		regulator-boot-on;
818c2ecf20Sopenharmony_ci		status = "okay";
828c2ecf20Sopenharmony_ci	};
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci	vcc3v3_sys: vcc3v3-sys {
858c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
868c2ecf20Sopenharmony_ci		regulator-name = "vcc3v3_sys";
878c2ecf20Sopenharmony_ci		regulator-always-on;
888c2ecf20Sopenharmony_ci		regulator-boot-on;
898c2ecf20Sopenharmony_ci		regulator-min-microvolt = <3300000>;
908c2ecf20Sopenharmony_ci		regulator-max-microvolt = <3300000>;
918c2ecf20Sopenharmony_ci	};
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci	vcc5v0_sys: vcc5v0-sys {
948c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
958c2ecf20Sopenharmony_ci		regulator-name = "vcc5v0_sys";
968c2ecf20Sopenharmony_ci		regulator-always-on;
978c2ecf20Sopenharmony_ci		regulator-boot-on;
988c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
998c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
1008c2ecf20Sopenharmony_ci	};
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci	vcc5v0_host: vcc5v0-host-regulator {
1038c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1048c2ecf20Sopenharmony_ci		enable-active-high;
1058c2ecf20Sopenharmony_ci		gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
1068c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1078c2ecf20Sopenharmony_ci		pinctrl-0 = <&vcc5v0_host_en>;
1088c2ecf20Sopenharmony_ci		regulator-name = "vcc5v0_host";
1098c2ecf20Sopenharmony_ci		vin-supply = <&vcc5v0_sys>;
1108c2ecf20Sopenharmony_ci	};
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci	vcc_phy: vcc-phy-regulator {
1138c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1148c2ecf20Sopenharmony_ci		regulator-name = "vcc_phy";
1158c2ecf20Sopenharmony_ci		regulator-always-on;
1168c2ecf20Sopenharmony_ci		regulator-boot-on;
1178c2ecf20Sopenharmony_ci	};
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci	vcc_phy: vcc-phy-regulator {
1208c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1218c2ecf20Sopenharmony_ci		regulator-name = "vcc_phy";
1228c2ecf20Sopenharmony_ci		regulator-always-on;
1238c2ecf20Sopenharmony_ci		regulator-boot-on;
1248c2ecf20Sopenharmony_ci	};
1258c2ecf20Sopenharmony_ci
1268c2ecf20Sopenharmony_ci};
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci&edp {
1298c2ecf20Sopenharmony_ci	status = "okay";
1308c2ecf20Sopenharmony_ci	force-hpd;
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci	ports {
1338c2ecf20Sopenharmony_ci		edp_out: port@1 {
1348c2ecf20Sopenharmony_ci			reg = <1>;
1358c2ecf20Sopenharmony_ci			#address-cells = <1>;
1368c2ecf20Sopenharmony_ci			#size-cells = <0>;
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci			edp_out_panel: endpoint@0 {
1398c2ecf20Sopenharmony_ci				reg = <0>;
1408c2ecf20Sopenharmony_ci				remote-endpoint = <&panel_in_edp>;
1418c2ecf20Sopenharmony_ci			};
1428c2ecf20Sopenharmony_ci		};
1438c2ecf20Sopenharmony_ci	};
1448c2ecf20Sopenharmony_ci};
1458c2ecf20Sopenharmony_ci
1468c2ecf20Sopenharmony_ci&emmc_phy {
1478c2ecf20Sopenharmony_ci	status = "okay";
1488c2ecf20Sopenharmony_ci};
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci&gmac {
1518c2ecf20Sopenharmony_ci	assigned-clocks = <&cru SCLK_RMII_SRC>;
1528c2ecf20Sopenharmony_ci	assigned-clock-parents = <&clkin_gmac>;
1538c2ecf20Sopenharmony_ci	clock_in_out = "input";
1548c2ecf20Sopenharmony_ci	phy-supply = <&vcc_phy>;
1558c2ecf20Sopenharmony_ci	phy-mode = "rgmii";
1568c2ecf20Sopenharmony_ci	pinctrl-names = "default";
1578c2ecf20Sopenharmony_ci	pinctrl-0 = <&rgmii_pins>;
1588c2ecf20Sopenharmony_ci	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
1598c2ecf20Sopenharmony_ci	snps,reset-active-low;
1608c2ecf20Sopenharmony_ci	snps,reset-delays-us = <0 10000 50000>;
1618c2ecf20Sopenharmony_ci	tx_delay = <0x28>;
1628c2ecf20Sopenharmony_ci	rx_delay = <0x11>;
1638c2ecf20Sopenharmony_ci	status = "okay";
1648c2ecf20Sopenharmony_ci};
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ci&i2c0 {
1678c2ecf20Sopenharmony_ci	status = "okay";
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci	rk808: pmic@1b {
1708c2ecf20Sopenharmony_ci		compatible = "rockchip,rk808";
1718c2ecf20Sopenharmony_ci		reg = <0x1b>;
1728c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio1>;
1738c2ecf20Sopenharmony_ci		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
1748c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1758c2ecf20Sopenharmony_ci		pinctrl-0 = <&pmic_int_l>;
1768c2ecf20Sopenharmony_ci		rockchip,system-power-controller;
1778c2ecf20Sopenharmony_ci		wakeup-source;
1788c2ecf20Sopenharmony_ci		#clock-cells = <1>;
1798c2ecf20Sopenharmony_ci		clock-output-names = "rk808-clkout1", "rk808-clkout2";
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ci		vcc1-supply = <&vcc3v3_sys>;
1828c2ecf20Sopenharmony_ci		vcc2-supply = <&vcc3v3_sys>;
1838c2ecf20Sopenharmony_ci		vcc3-supply = <&vcc3v3_sys>;
1848c2ecf20Sopenharmony_ci		vcc4-supply = <&vcc3v3_sys>;
1858c2ecf20Sopenharmony_ci		vcc6-supply = <&vcc3v3_sys>;
1868c2ecf20Sopenharmony_ci		vcc7-supply = <&vcc3v3_sys>;
1878c2ecf20Sopenharmony_ci		vcc8-supply = <&vcc3v3_sys>;
1888c2ecf20Sopenharmony_ci		vcc9-supply = <&vcc3v3_sys>;
1898c2ecf20Sopenharmony_ci		vcc10-supply = <&vcc3v3_sys>;
1908c2ecf20Sopenharmony_ci		vcc11-supply = <&vcc3v3_sys>;
1918c2ecf20Sopenharmony_ci		vcc12-supply = <&vcc3v3_sys>;
1928c2ecf20Sopenharmony_ci		vddio-supply = <&vcc1v8_pmu>;
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci		regulators {
1958c2ecf20Sopenharmony_ci			vdd_log: DCDC_REG1 {
1968c2ecf20Sopenharmony_ci				regulator-name = "vdd_log";
1978c2ecf20Sopenharmony_ci				regulator-min-microvolt = <750000>;
1988c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
1998c2ecf20Sopenharmony_ci				regulator-ramp-delay = <6001>;
2008c2ecf20Sopenharmony_ci				regulator-always-on;
2018c2ecf20Sopenharmony_ci				regulator-boot-on;
2028c2ecf20Sopenharmony_ci				regulator-state-mem {
2038c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
2048c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <900000>;
2058c2ecf20Sopenharmony_ci				};
2068c2ecf20Sopenharmony_ci			};
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci			vdd_cpu_l: DCDC_REG2 {
2098c2ecf20Sopenharmony_ci				regulator-name = "vdd_cpu_l";
2108c2ecf20Sopenharmony_ci				regulator-min-microvolt = <750000>;
2118c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
2128c2ecf20Sopenharmony_ci				regulator-ramp-delay = <6001>;
2138c2ecf20Sopenharmony_ci				regulator-always-on;
2148c2ecf20Sopenharmony_ci				regulator-boot-on;
2158c2ecf20Sopenharmony_ci				regulator-state-mem {
2168c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
2178c2ecf20Sopenharmony_ci				};
2188c2ecf20Sopenharmony_ci			};
2198c2ecf20Sopenharmony_ci
2208c2ecf20Sopenharmony_ci			vcc_ddr: DCDC_REG3 {
2218c2ecf20Sopenharmony_ci				regulator-name = "vcc_ddr";
2228c2ecf20Sopenharmony_ci				regulator-always-on;
2238c2ecf20Sopenharmony_ci				regulator-boot-on;
2248c2ecf20Sopenharmony_ci				regulator-state-mem {
2258c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
2268c2ecf20Sopenharmony_ci				};
2278c2ecf20Sopenharmony_ci			};
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_ci			vcc_1v8: DCDC_REG4 {
2308c2ecf20Sopenharmony_ci				regulator-name = "vcc_1v8";
2318c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
2328c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
2338c2ecf20Sopenharmony_ci				regulator-always-on;
2348c2ecf20Sopenharmony_ci				regulator-boot-on;
2358c2ecf20Sopenharmony_ci				regulator-state-mem {
2368c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
2378c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1800000>;
2388c2ecf20Sopenharmony_ci				};
2398c2ecf20Sopenharmony_ci			};
2408c2ecf20Sopenharmony_ci
2418c2ecf20Sopenharmony_ci			vcc1v8_dvp: LDO_REG1 {
2428c2ecf20Sopenharmony_ci				regulator-name = "vcc1v8_dvp";
2438c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
2448c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
2458c2ecf20Sopenharmony_ci				regulator-always-on;
2468c2ecf20Sopenharmony_ci				regulator-boot-on;
2478c2ecf20Sopenharmony_ci				regulator-state-mem {
2488c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
2498c2ecf20Sopenharmony_ci				};
2508c2ecf20Sopenharmony_ci			};
2518c2ecf20Sopenharmony_ci
2528c2ecf20Sopenharmony_ci			vcc3v0_tp: LDO_REG2 {
2538c2ecf20Sopenharmony_ci				regulator-name = "vcc3v0_tp";
2548c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
2558c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
2568c2ecf20Sopenharmony_ci				regulator-always-on;
2578c2ecf20Sopenharmony_ci				regulator-boot-on;
2588c2ecf20Sopenharmony_ci				regulator-state-mem {
2598c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
2608c2ecf20Sopenharmony_ci				};
2618c2ecf20Sopenharmony_ci			};
2628c2ecf20Sopenharmony_ci
2638c2ecf20Sopenharmony_ci			vcc1v8_pmu: LDO_REG3 {
2648c2ecf20Sopenharmony_ci				regulator-name = "vcc1v8_pmu";
2658c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
2668c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
2678c2ecf20Sopenharmony_ci				regulator-always-on;
2688c2ecf20Sopenharmony_ci				regulator-boot-on;
2698c2ecf20Sopenharmony_ci				regulator-state-mem {
2708c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
2718c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1800000>;
2728c2ecf20Sopenharmony_ci				};
2738c2ecf20Sopenharmony_ci			};
2748c2ecf20Sopenharmony_ci
2758c2ecf20Sopenharmony_ci			vcc_sd: LDO_REG4 {
2768c2ecf20Sopenharmony_ci				regulator-name = "vcc_sd";
2778c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
2788c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
2798c2ecf20Sopenharmony_ci				regulator-always-on;
2808c2ecf20Sopenharmony_ci				regulator-boot-on;
2818c2ecf20Sopenharmony_ci				regulator-state-mem {
2828c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
2838c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <3000000>;
2848c2ecf20Sopenharmony_ci				};
2858c2ecf20Sopenharmony_ci			};
2868c2ecf20Sopenharmony_ci
2878c2ecf20Sopenharmony_ci			vcca3v0_codec: LDO_REG5 {
2888c2ecf20Sopenharmony_ci				regulator-name = "vcca3v0_codec";
2898c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
2908c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
2918c2ecf20Sopenharmony_ci				regulator-always-on;
2928c2ecf20Sopenharmony_ci				regulator-boot-on;
2938c2ecf20Sopenharmony_ci				regulator-state-mem {
2948c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
2958c2ecf20Sopenharmony_ci				};
2968c2ecf20Sopenharmony_ci			};
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci			vcc_1v5: LDO_REG6 {
2998c2ecf20Sopenharmony_ci				regulator-name = "vcc_1v5";
3008c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1500000>;
3018c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1500000>;
3028c2ecf20Sopenharmony_ci				regulator-always-on;
3038c2ecf20Sopenharmony_ci				regulator-boot-on;
3048c2ecf20Sopenharmony_ci				regulator-state-mem {
3058c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3068c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1500000>;
3078c2ecf20Sopenharmony_ci				};
3088c2ecf20Sopenharmony_ci			};
3098c2ecf20Sopenharmony_ci
3108c2ecf20Sopenharmony_ci			vcca1v8_codec: LDO_REG7 {
3118c2ecf20Sopenharmony_ci				regulator-name = "vcca1v8_codec";
3128c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3138c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3148c2ecf20Sopenharmony_ci				regulator-always-on;
3158c2ecf20Sopenharmony_ci				regulator-boot-on;
3168c2ecf20Sopenharmony_ci				regulator-state-mem {
3178c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3188c2ecf20Sopenharmony_ci				};
3198c2ecf20Sopenharmony_ci			};
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_ci			vcc_3v0: LDO_REG8 {
3228c2ecf20Sopenharmony_ci				regulator-name = "vcc_3v0";
3238c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
3248c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
3258c2ecf20Sopenharmony_ci				regulator-always-on;
3268c2ecf20Sopenharmony_ci				regulator-boot-on;
3278c2ecf20Sopenharmony_ci				regulator-state-mem {
3288c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3298c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <3000000>;
3308c2ecf20Sopenharmony_ci				};
3318c2ecf20Sopenharmony_ci			};
3328c2ecf20Sopenharmony_ci
3338c2ecf20Sopenharmony_ci			vcc3v3_s3: SWITCH_REG1 {
3348c2ecf20Sopenharmony_ci				regulator-name = "vcc3v3_s3";
3358c2ecf20Sopenharmony_ci				regulator-always-on;
3368c2ecf20Sopenharmony_ci				regulator-boot-on;
3378c2ecf20Sopenharmony_ci				regulator-state-mem {
3388c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3398c2ecf20Sopenharmony_ci				};
3408c2ecf20Sopenharmony_ci			};
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_ci			vcc3v3_s0: SWITCH_REG2 {
3438c2ecf20Sopenharmony_ci				regulator-name = "vcc3v3_s0";
3448c2ecf20Sopenharmony_ci				regulator-always-on;
3458c2ecf20Sopenharmony_ci				regulator-boot-on;
3468c2ecf20Sopenharmony_ci				regulator-state-mem {
3478c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3488c2ecf20Sopenharmony_ci				};
3498c2ecf20Sopenharmony_ci			};
3508c2ecf20Sopenharmony_ci		};
3518c2ecf20Sopenharmony_ci	};
3528c2ecf20Sopenharmony_ci
3538c2ecf20Sopenharmony_ci	vdd_cpu_b: regulator@40 {
3548c2ecf20Sopenharmony_ci		compatible = "silergy,syr827";
3558c2ecf20Sopenharmony_ci		reg = <0x40>;
3568c2ecf20Sopenharmony_ci		fcs,suspend-voltage-selector = <1>;
3578c2ecf20Sopenharmony_ci		regulator-name = "vdd_cpu_b";
3588c2ecf20Sopenharmony_ci		regulator-min-microvolt = <712500>;
3598c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1500000>;
3608c2ecf20Sopenharmony_ci		regulator-ramp-delay = <1000>;
3618c2ecf20Sopenharmony_ci		regulator-always-on;
3628c2ecf20Sopenharmony_ci		regulator-boot-on;
3638c2ecf20Sopenharmony_ci		vin-supply = <&vcc5v0_sys>;
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci		regulator-state-mem {
3668c2ecf20Sopenharmony_ci			regulator-off-in-suspend;
3678c2ecf20Sopenharmony_ci		};
3688c2ecf20Sopenharmony_ci	};
3698c2ecf20Sopenharmony_ci
3708c2ecf20Sopenharmony_ci	vdd_gpu: regulator@41 {
3718c2ecf20Sopenharmony_ci		compatible = "silergy,syr828";
3728c2ecf20Sopenharmony_ci		reg = <0x41>;
3738c2ecf20Sopenharmony_ci		fcs,suspend-voltage-selector = <1>;
3748c2ecf20Sopenharmony_ci		regulator-name = "vdd_gpu";
3758c2ecf20Sopenharmony_ci		regulator-min-microvolt = <712500>;
3768c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1500000>;
3778c2ecf20Sopenharmony_ci		regulator-ramp-delay = <1000>;
3788c2ecf20Sopenharmony_ci		regulator-always-on;
3798c2ecf20Sopenharmony_ci		regulator-boot-on;
3808c2ecf20Sopenharmony_ci		vin-supply = <&vcc5v0_sys>;
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci		regulator-state-mem {
3838c2ecf20Sopenharmony_ci			regulator-off-in-suspend;
3848c2ecf20Sopenharmony_ci		};
3858c2ecf20Sopenharmony_ci	};
3868c2ecf20Sopenharmony_ci};
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_ci&pwm0 {
3898c2ecf20Sopenharmony_ci	status = "okay";
3908c2ecf20Sopenharmony_ci};
3918c2ecf20Sopenharmony_ci
3928c2ecf20Sopenharmony_ci&pwm2 {
3938c2ecf20Sopenharmony_ci	status = "okay";
3948c2ecf20Sopenharmony_ci};
3958c2ecf20Sopenharmony_ci
3968c2ecf20Sopenharmony_ci&pwm3 {
3978c2ecf20Sopenharmony_ci	status = "okay";
3988c2ecf20Sopenharmony_ci};
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_ci&sdhci {
4018c2ecf20Sopenharmony_ci	bus-width = <8>;
4028c2ecf20Sopenharmony_ci	mmc-hs400-1_8v;
4038c2ecf20Sopenharmony_ci	mmc-hs400-enhanced-strobe;
4048c2ecf20Sopenharmony_ci	non-removable;
4058c2ecf20Sopenharmony_ci	status = "okay";
4068c2ecf20Sopenharmony_ci};
4078c2ecf20Sopenharmony_ci
4088c2ecf20Sopenharmony_ci&pcie_phy {
4098c2ecf20Sopenharmony_ci	status = "disabled";
4108c2ecf20Sopenharmony_ci};
4118c2ecf20Sopenharmony_ci
4128c2ecf20Sopenharmony_ci&pcie0 {
4138c2ecf20Sopenharmony_ci	ep-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>;
4148c2ecf20Sopenharmony_ci	num-lanes = <4>;
4158c2ecf20Sopenharmony_ci	pinctrl-names = "default";
4168c2ecf20Sopenharmony_ci	pinctrl-0 = <&pcie_clkreqn_cpm>;
4178c2ecf20Sopenharmony_ci	status = "disabled";
4188c2ecf20Sopenharmony_ci};
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ci&u2phy0 {
4218c2ecf20Sopenharmony_ci	status = "okay";
4228c2ecf20Sopenharmony_ci};
4238c2ecf20Sopenharmony_ci
4248c2ecf20Sopenharmony_ci&u2phy0_host {
4258c2ecf20Sopenharmony_ci	phy-supply = <&vcc5v0_host>;
4268c2ecf20Sopenharmony_ci	status = "okay";
4278c2ecf20Sopenharmony_ci};
4288c2ecf20Sopenharmony_ci
4298c2ecf20Sopenharmony_ci&u2phy1 {
4308c2ecf20Sopenharmony_ci	status = "okay";
4318c2ecf20Sopenharmony_ci};
4328c2ecf20Sopenharmony_ci
4338c2ecf20Sopenharmony_ci&u2phy1_host {
4348c2ecf20Sopenharmony_ci	phy-supply = <&vcc5v0_host>;
4358c2ecf20Sopenharmony_ci	status = "okay";
4368c2ecf20Sopenharmony_ci};
4378c2ecf20Sopenharmony_ci
4388c2ecf20Sopenharmony_ci&uart2 {
4398c2ecf20Sopenharmony_ci	status = "okay";
4408c2ecf20Sopenharmony_ci};
4418c2ecf20Sopenharmony_ci
4428c2ecf20Sopenharmony_ci&usb_host0_ehci {
4438c2ecf20Sopenharmony_ci	status = "okay";
4448c2ecf20Sopenharmony_ci};
4458c2ecf20Sopenharmony_ci
4468c2ecf20Sopenharmony_ci&usb_host0_ohci {
4478c2ecf20Sopenharmony_ci	status = "okay";
4488c2ecf20Sopenharmony_ci};
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci&usb_host1_ehci {
4518c2ecf20Sopenharmony_ci	status = "okay";
4528c2ecf20Sopenharmony_ci};
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_ci&usb_host1_ohci {
4558c2ecf20Sopenharmony_ci	status = "okay";
4568c2ecf20Sopenharmony_ci};
4578c2ecf20Sopenharmony_ci
4588c2ecf20Sopenharmony_ci&pinctrl {
4598c2ecf20Sopenharmony_ci	pmic {
4608c2ecf20Sopenharmony_ci		pmic_int_l: pmic-int-l {
4618c2ecf20Sopenharmony_ci			rockchip,pins =
4628c2ecf20Sopenharmony_ci				<1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
4638c2ecf20Sopenharmony_ci		};
4648c2ecf20Sopenharmony_ci	};
4658c2ecf20Sopenharmony_ci
4668c2ecf20Sopenharmony_ci	usb2 {
4678c2ecf20Sopenharmony_ci		vcc5v0_host_en: vcc5v0-host-en {
4688c2ecf20Sopenharmony_ci			rockchip,pins =
4698c2ecf20Sopenharmony_ci				<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
4708c2ecf20Sopenharmony_ci		};
4718c2ecf20Sopenharmony_ci	};
4728c2ecf20Sopenharmony_ci};
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_ci&vopb {
4758c2ecf20Sopenharmony_ci	status = "okay";
4768c2ecf20Sopenharmony_ci};
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_ci&vopb_mmu {
4798c2ecf20Sopenharmony_ci	status = "okay";
4808c2ecf20Sopenharmony_ci};
481