18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2017 Fuzhou Rockchip Electronics 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-RK3399 Board";
148c2ecf20Sopenharmony_ci	compatible = "firefly,firefly-rk3399", "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		enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
238c2ecf20Sopenharmony_ci		pwms = <&pwm0 0 25000 0>;
248c2ecf20Sopenharmony_ci		brightness-levels = <
258c2ecf20Sopenharmony_ci			  0   1   2   3   4   5   6   7
268c2ecf20Sopenharmony_ci			  8   9  10  11  12  13  14  15
278c2ecf20Sopenharmony_ci			 16  17  18  19  20  21  22  23
288c2ecf20Sopenharmony_ci			 24  25  26  27  28  29  30  31
298c2ecf20Sopenharmony_ci			 32  33  34  35  36  37  38  39
308c2ecf20Sopenharmony_ci			 40  41  42  43  44  45  46  47
318c2ecf20Sopenharmony_ci			 48  49  50  51  52  53  54  55
328c2ecf20Sopenharmony_ci			 56  57  58  59  60  61  62  63
338c2ecf20Sopenharmony_ci			 64  65  66  67  68  69  70  71
348c2ecf20Sopenharmony_ci			 72  73  74  75  76  77  78  79
358c2ecf20Sopenharmony_ci			 80  81  82  83  84  85  86  87
368c2ecf20Sopenharmony_ci			 88  89  90  91  92  93  94  95
378c2ecf20Sopenharmony_ci			 96  97  98  99 100 101 102 103
388c2ecf20Sopenharmony_ci			104 105 106 107 108 109 110 111
398c2ecf20Sopenharmony_ci			112 113 114 115 116 117 118 119
408c2ecf20Sopenharmony_ci			120 121 122 123 124 125 126 127
418c2ecf20Sopenharmony_ci			128 129 130 131 132 133 134 135
428c2ecf20Sopenharmony_ci			136 137 138 139 140 141 142 143
438c2ecf20Sopenharmony_ci			144 145 146 147 148 149 150 151
448c2ecf20Sopenharmony_ci			152 153 154 155 156 157 158 159
458c2ecf20Sopenharmony_ci			160 161 162 163 164 165 166 167
468c2ecf20Sopenharmony_ci			168 169 170 171 172 173 174 175
478c2ecf20Sopenharmony_ci			176 177 178 179 180 181 182 183
488c2ecf20Sopenharmony_ci			184 185 186 187 188 189 190 191
498c2ecf20Sopenharmony_ci			192 193 194 195 196 197 198 199
508c2ecf20Sopenharmony_ci			200 201 202 203 204 205 206 207
518c2ecf20Sopenharmony_ci			208 209 210 211 212 213 214 215
528c2ecf20Sopenharmony_ci			216 217 218 219 220 221 222 223
538c2ecf20Sopenharmony_ci			224 225 226 227 228 229 230 231
548c2ecf20Sopenharmony_ci			232 233 234 235 236 237 238 239
558c2ecf20Sopenharmony_ci			240 241 242 243 244 245 246 247
568c2ecf20Sopenharmony_ci			248 249 250 251 252 253 254 255>;
578c2ecf20Sopenharmony_ci		default-brightness-level = <200>;
588c2ecf20Sopenharmony_ci	};
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci	clkin_gmac: external-gmac-clock {
618c2ecf20Sopenharmony_ci		compatible = "fixed-clock";
628c2ecf20Sopenharmony_ci		clock-frequency = <125000000>;
638c2ecf20Sopenharmony_ci		clock-output-names = "clkin_gmac";
648c2ecf20Sopenharmony_ci		#clock-cells = <0>;
658c2ecf20Sopenharmony_ci	};
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci	dc_12v: dc-12v {
688c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
698c2ecf20Sopenharmony_ci		regulator-name = "dc_12v";
708c2ecf20Sopenharmony_ci		regulator-always-on;
718c2ecf20Sopenharmony_ci		regulator-boot-on;
728c2ecf20Sopenharmony_ci		regulator-min-microvolt = <12000000>;
738c2ecf20Sopenharmony_ci		regulator-max-microvolt = <12000000>;
748c2ecf20Sopenharmony_ci	};
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci	gpio-keys {
778c2ecf20Sopenharmony_ci		compatible = "gpio-keys";
788c2ecf20Sopenharmony_ci		autorepeat;
798c2ecf20Sopenharmony_ci		pinctrl-names = "default";
808c2ecf20Sopenharmony_ci		pinctrl-0 = <&pwrbtn>;
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci		power {
838c2ecf20Sopenharmony_ci			debounce-interval = <100>;
848c2ecf20Sopenharmony_ci			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
858c2ecf20Sopenharmony_ci			label = "GPIO Key Power";
868c2ecf20Sopenharmony_ci			linux,code = <KEY_POWER>;
878c2ecf20Sopenharmony_ci			wakeup-source;
888c2ecf20Sopenharmony_ci		};
898c2ecf20Sopenharmony_ci	};
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci	leds {
928c2ecf20Sopenharmony_ci		compatible = "gpio-leds";
938c2ecf20Sopenharmony_ci		pinctrl-names = "default";
948c2ecf20Sopenharmony_ci		pinctrl-0 = <&work_led_pin>, <&diy_led_pin>;
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci		work_led: led-0 {
978c2ecf20Sopenharmony_ci			label = "work";
988c2ecf20Sopenharmony_ci			default-state = "on";
998c2ecf20Sopenharmony_ci			gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
1008c2ecf20Sopenharmony_ci		};
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci		diy_led: led-1 {
1038c2ecf20Sopenharmony_ci			label = "diy";
1048c2ecf20Sopenharmony_ci			default-state = "off";
1058c2ecf20Sopenharmony_ci			gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
1068c2ecf20Sopenharmony_ci		};
1078c2ecf20Sopenharmony_ci	};
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci	rt5640-sound {
1108c2ecf20Sopenharmony_ci		compatible = "simple-audio-card";
1118c2ecf20Sopenharmony_ci		simple-audio-card,name = "rockchip,rt5640-codec";
1128c2ecf20Sopenharmony_ci		simple-audio-card,format = "i2s";
1138c2ecf20Sopenharmony_ci		simple-audio-card,mclk-fs = <256>;
1148c2ecf20Sopenharmony_ci		simple-audio-card,widgets =
1158c2ecf20Sopenharmony_ci			"Microphone", "Mic Jack",
1168c2ecf20Sopenharmony_ci			"Headphone", "Headphone Jack";
1178c2ecf20Sopenharmony_ci		simple-audio-card,routing =
1188c2ecf20Sopenharmony_ci			"Mic Jack", "MICBIAS1",
1198c2ecf20Sopenharmony_ci			"IN1P", "Mic Jack",
1208c2ecf20Sopenharmony_ci			"Headphone Jack", "HPOL",
1218c2ecf20Sopenharmony_ci			"Headphone Jack", "HPOR";
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_ci		simple-audio-card,cpu {
1248c2ecf20Sopenharmony_ci			sound-dai = <&i2s1>;
1258c2ecf20Sopenharmony_ci		};
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci		simple-audio-card,codec {
1288c2ecf20Sopenharmony_ci			sound-dai = <&rt5640>;
1298c2ecf20Sopenharmony_ci		};
1308c2ecf20Sopenharmony_ci	};
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci	sdio_pwrseq: sdio-pwrseq {
1338c2ecf20Sopenharmony_ci		compatible = "mmc-pwrseq-simple";
1348c2ecf20Sopenharmony_ci		clocks = <&rk808 1>;
1358c2ecf20Sopenharmony_ci		clock-names = "ext_clock";
1368c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1378c2ecf20Sopenharmony_ci		pinctrl-0 = <&wifi_enable_h>;
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci		/*
1408c2ecf20Sopenharmony_ci		 * On the module itself this is one of these (depending
1418c2ecf20Sopenharmony_ci		 * on the actual card populated):
1428c2ecf20Sopenharmony_ci		 * - SDIO_RESET_L_WL_REG_ON
1438c2ecf20Sopenharmony_ci		 * - PDN (power down when low)
1448c2ecf20Sopenharmony_ci		 */
1458c2ecf20Sopenharmony_ci		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
1468c2ecf20Sopenharmony_ci	};
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci	/* switched by pmic_sleep */
1498c2ecf20Sopenharmony_ci	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
1508c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1518c2ecf20Sopenharmony_ci		regulator-name = "vcc1v8_s3";
1528c2ecf20Sopenharmony_ci		regulator-always-on;
1538c2ecf20Sopenharmony_ci		regulator-boot-on;
1548c2ecf20Sopenharmony_ci		regulator-min-microvolt = <1800000>;
1558c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1800000>;
1568c2ecf20Sopenharmony_ci		vin-supply = <&vcc_1v8>;
1578c2ecf20Sopenharmony_ci	};
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci	vcc3v3_pcie: vcc3v3-pcie-regulator {
1608c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1618c2ecf20Sopenharmony_ci		enable-active-high;
1628c2ecf20Sopenharmony_ci		gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
1638c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1648c2ecf20Sopenharmony_ci		pinctrl-0 = <&pcie_pwr_en>;
1658c2ecf20Sopenharmony_ci		regulator-name = "vcc3v3_pcie";
1668c2ecf20Sopenharmony_ci		regulator-always-on;
1678c2ecf20Sopenharmony_ci		regulator-boot-on;
1688c2ecf20Sopenharmony_ci		vin-supply = <&dc_12v>;
1698c2ecf20Sopenharmony_ci	};
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci	vcc3v3_sys: vcc3v3-sys {
1728c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1738c2ecf20Sopenharmony_ci		regulator-name = "vcc3v3_sys";
1748c2ecf20Sopenharmony_ci		regulator-always-on;
1758c2ecf20Sopenharmony_ci		regulator-boot-on;
1768c2ecf20Sopenharmony_ci		regulator-min-microvolt = <3300000>;
1778c2ecf20Sopenharmony_ci		regulator-max-microvolt = <3300000>;
1788c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
1798c2ecf20Sopenharmony_ci	};
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ci	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
1828c2ecf20Sopenharmony_ci	vcc5v0_host: vcc5v0-host-regulator {
1838c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1848c2ecf20Sopenharmony_ci		enable-active-high;
1858c2ecf20Sopenharmony_ci		gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
1868c2ecf20Sopenharmony_ci		pinctrl-names = "default";
1878c2ecf20Sopenharmony_ci		pinctrl-0 = <&vcc5v0_host_en>;
1888c2ecf20Sopenharmony_ci		regulator-name = "vcc5v0_host";
1898c2ecf20Sopenharmony_ci		regulator-always-on;
1908c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
1918c2ecf20Sopenharmony_ci	};
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_ci	vcc_sys: vcc-sys {
1948c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1958c2ecf20Sopenharmony_ci		regulator-name = "vcc_sys";
1968c2ecf20Sopenharmony_ci		regulator-always-on;
1978c2ecf20Sopenharmony_ci		regulator-boot-on;
1988c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
1998c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
2008c2ecf20Sopenharmony_ci		vin-supply = <&dc_12v>;
2018c2ecf20Sopenharmony_ci	};
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci	vdd_log: vdd-log {
2048c2ecf20Sopenharmony_ci		compatible = "pwm-regulator";
2058c2ecf20Sopenharmony_ci		pwms = <&pwm2 0 25000 1>;
2068c2ecf20Sopenharmony_ci		regulator-name = "vdd_log";
2078c2ecf20Sopenharmony_ci		regulator-always-on;
2088c2ecf20Sopenharmony_ci		regulator-boot-on;
2098c2ecf20Sopenharmony_ci		regulator-min-microvolt = <430000>;
2108c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1400000>;
2118c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
2128c2ecf20Sopenharmony_ci	};
2138c2ecf20Sopenharmony_ci};
2148c2ecf20Sopenharmony_ci
2158c2ecf20Sopenharmony_ci&cpu_l0 {
2168c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2178c2ecf20Sopenharmony_ci};
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_ci&cpu_l1 {
2208c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2218c2ecf20Sopenharmony_ci};
2228c2ecf20Sopenharmony_ci
2238c2ecf20Sopenharmony_ci&cpu_l2 {
2248c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2258c2ecf20Sopenharmony_ci};
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_ci&cpu_l3 {
2288c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_l>;
2298c2ecf20Sopenharmony_ci};
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci&cpu_b0 {
2328c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_b>;
2338c2ecf20Sopenharmony_ci};
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ci&cpu_b1 {
2368c2ecf20Sopenharmony_ci	cpu-supply = <&vdd_cpu_b>;
2378c2ecf20Sopenharmony_ci};
2388c2ecf20Sopenharmony_ci
2398c2ecf20Sopenharmony_ci&emmc_phy {
2408c2ecf20Sopenharmony_ci	status = "okay";
2418c2ecf20Sopenharmony_ci};
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_ci&gmac {
2448c2ecf20Sopenharmony_ci	assigned-clocks = <&cru SCLK_RMII_SRC>;
2458c2ecf20Sopenharmony_ci	assigned-clock-parents = <&clkin_gmac>;
2468c2ecf20Sopenharmony_ci	clock_in_out = "input";
2478c2ecf20Sopenharmony_ci	phy-supply = <&vcc_lan>;
2488c2ecf20Sopenharmony_ci	phy-mode = "rgmii";
2498c2ecf20Sopenharmony_ci	pinctrl-names = "default";
2508c2ecf20Sopenharmony_ci	pinctrl-0 = <&rgmii_pins>;
2518c2ecf20Sopenharmony_ci	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
2528c2ecf20Sopenharmony_ci	snps,reset-active-low;
2538c2ecf20Sopenharmony_ci	snps,reset-delays-us = <0 10000 50000>;
2548c2ecf20Sopenharmony_ci	tx_delay = <0x28>;
2558c2ecf20Sopenharmony_ci	rx_delay = <0x11>;
2568c2ecf20Sopenharmony_ci	status = "okay";
2578c2ecf20Sopenharmony_ci};
2588c2ecf20Sopenharmony_ci
2598c2ecf20Sopenharmony_ci&hdmi {
2608c2ecf20Sopenharmony_ci	ddc-i2c-bus = <&i2c3>;
2618c2ecf20Sopenharmony_ci	pinctrl-names = "default";
2628c2ecf20Sopenharmony_ci	pinctrl-0 = <&hdmi_cec>;
2638c2ecf20Sopenharmony_ci	status = "okay";
2648c2ecf20Sopenharmony_ci};
2658c2ecf20Sopenharmony_ci
2668c2ecf20Sopenharmony_ci&i2c0 {
2678c2ecf20Sopenharmony_ci	clock-frequency = <400000>;
2688c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <168>;
2698c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <4>;
2708c2ecf20Sopenharmony_ci	status = "okay";
2718c2ecf20Sopenharmony_ci
2728c2ecf20Sopenharmony_ci	rk808: pmic@1b {
2738c2ecf20Sopenharmony_ci		compatible = "rockchip,rk808";
2748c2ecf20Sopenharmony_ci		reg = <0x1b>;
2758c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio1>;
2768c2ecf20Sopenharmony_ci		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
2778c2ecf20Sopenharmony_ci		#clock-cells = <1>;
2788c2ecf20Sopenharmony_ci		clock-output-names = "xin32k", "rk808-clkout2";
2798c2ecf20Sopenharmony_ci		pinctrl-names = "default";
2808c2ecf20Sopenharmony_ci		pinctrl-0 = <&pmic_int_l>;
2818c2ecf20Sopenharmony_ci		rockchip,system-power-controller;
2828c2ecf20Sopenharmony_ci		wakeup-source;
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci		vcc1-supply = <&vcc_sys>;
2858c2ecf20Sopenharmony_ci		vcc2-supply = <&vcc_sys>;
2868c2ecf20Sopenharmony_ci		vcc3-supply = <&vcc_sys>;
2878c2ecf20Sopenharmony_ci		vcc4-supply = <&vcc_sys>;
2888c2ecf20Sopenharmony_ci		vcc6-supply = <&vcc_sys>;
2898c2ecf20Sopenharmony_ci		vcc7-supply = <&vcc_sys>;
2908c2ecf20Sopenharmony_ci		vcc8-supply = <&vcc3v3_sys>;
2918c2ecf20Sopenharmony_ci		vcc9-supply = <&vcc_sys>;
2928c2ecf20Sopenharmony_ci		vcc10-supply = <&vcc_sys>;
2938c2ecf20Sopenharmony_ci		vcc11-supply = <&vcc_sys>;
2948c2ecf20Sopenharmony_ci		vcc12-supply = <&vcc3v3_sys>;
2958c2ecf20Sopenharmony_ci		vddio-supply = <&vcc1v8_pmu>;
2968c2ecf20Sopenharmony_ci
2978c2ecf20Sopenharmony_ci		regulators {
2988c2ecf20Sopenharmony_ci			vdd_center: DCDC_REG1 {
2998c2ecf20Sopenharmony_ci				regulator-name = "vdd_center";
3008c2ecf20Sopenharmony_ci				regulator-always-on;
3018c2ecf20Sopenharmony_ci				regulator-boot-on;
3028c2ecf20Sopenharmony_ci				regulator-min-microvolt = <750000>;
3038c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3048c2ecf20Sopenharmony_ci				regulator-ramp-delay = <6001>;
3058c2ecf20Sopenharmony_ci				regulator-state-mem {
3068c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3078c2ecf20Sopenharmony_ci				};
3088c2ecf20Sopenharmony_ci			};
3098c2ecf20Sopenharmony_ci
3108c2ecf20Sopenharmony_ci			vdd_cpu_l: DCDC_REG2 {
3118c2ecf20Sopenharmony_ci				regulator-name = "vdd_cpu_l";
3128c2ecf20Sopenharmony_ci				regulator-always-on;
3138c2ecf20Sopenharmony_ci				regulator-boot-on;
3148c2ecf20Sopenharmony_ci				regulator-min-microvolt = <750000>;
3158c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3168c2ecf20Sopenharmony_ci				regulator-ramp-delay = <6001>;
3178c2ecf20Sopenharmony_ci				regulator-state-mem {
3188c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3198c2ecf20Sopenharmony_ci				};
3208c2ecf20Sopenharmony_ci			};
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_ci			vcc_ddr: DCDC_REG3 {
3238c2ecf20Sopenharmony_ci				regulator-name = "vcc_ddr";
3248c2ecf20Sopenharmony_ci				regulator-always-on;
3258c2ecf20Sopenharmony_ci				regulator-boot-on;
3268c2ecf20Sopenharmony_ci				regulator-state-mem {
3278c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3288c2ecf20Sopenharmony_ci				};
3298c2ecf20Sopenharmony_ci			};
3308c2ecf20Sopenharmony_ci
3318c2ecf20Sopenharmony_ci			vcc_1v8: DCDC_REG4 {
3328c2ecf20Sopenharmony_ci				regulator-name = "vcc_1v8";
3338c2ecf20Sopenharmony_ci				regulator-always-on;
3348c2ecf20Sopenharmony_ci				regulator-boot-on;
3358c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3368c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3378c2ecf20Sopenharmony_ci				regulator-state-mem {
3388c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3398c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1800000>;
3408c2ecf20Sopenharmony_ci				};
3418c2ecf20Sopenharmony_ci			};
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci			vcc1v8_dvp: LDO_REG1 {
3448c2ecf20Sopenharmony_ci				regulator-name = "vcc1v8_dvp";
3458c2ecf20Sopenharmony_ci				regulator-always-on;
3468c2ecf20Sopenharmony_ci				regulator-boot-on;
3478c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3488c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3498c2ecf20Sopenharmony_ci				regulator-state-mem {
3508c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3518c2ecf20Sopenharmony_ci				};
3528c2ecf20Sopenharmony_ci			};
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_ci			vcc2v8_dvp: LDO_REG2 {
3558c2ecf20Sopenharmony_ci				regulator-name = "vcc2v8_dvp";
3568c2ecf20Sopenharmony_ci				regulator-always-on;
3578c2ecf20Sopenharmony_ci				regulator-boot-on;
3588c2ecf20Sopenharmony_ci				regulator-min-microvolt = <2800000>;
3598c2ecf20Sopenharmony_ci				regulator-max-microvolt = <2800000>;
3608c2ecf20Sopenharmony_ci				regulator-state-mem {
3618c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3628c2ecf20Sopenharmony_ci				};
3638c2ecf20Sopenharmony_ci			};
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci			vcc1v8_pmu: LDO_REG3 {
3668c2ecf20Sopenharmony_ci				regulator-name = "vcc1v8_pmu";
3678c2ecf20Sopenharmony_ci				regulator-always-on;
3688c2ecf20Sopenharmony_ci				regulator-boot-on;
3698c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3708c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
3718c2ecf20Sopenharmony_ci				regulator-state-mem {
3728c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3738c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1800000>;
3748c2ecf20Sopenharmony_ci				};
3758c2ecf20Sopenharmony_ci			};
3768c2ecf20Sopenharmony_ci
3778c2ecf20Sopenharmony_ci			vcc_sdio: LDO_REG4 {
3788c2ecf20Sopenharmony_ci				regulator-name = "vcc_sdio";
3798c2ecf20Sopenharmony_ci				regulator-always-on;
3808c2ecf20Sopenharmony_ci				regulator-boot-on;
3818c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
3828c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
3838c2ecf20Sopenharmony_ci				regulator-state-mem {
3848c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
3858c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <3000000>;
3868c2ecf20Sopenharmony_ci				};
3878c2ecf20Sopenharmony_ci			};
3888c2ecf20Sopenharmony_ci
3898c2ecf20Sopenharmony_ci			vcca3v0_codec: LDO_REG5 {
3908c2ecf20Sopenharmony_ci				regulator-name = "vcca3v0_codec";
3918c2ecf20Sopenharmony_ci				regulator-always-on;
3928c2ecf20Sopenharmony_ci				regulator-boot-on;
3938c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
3948c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
3958c2ecf20Sopenharmony_ci				regulator-state-mem {
3968c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
3978c2ecf20Sopenharmony_ci				};
3988c2ecf20Sopenharmony_ci			};
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_ci			vcc_1v5: LDO_REG6 {
4018c2ecf20Sopenharmony_ci				regulator-name = "vcc_1v5";
4028c2ecf20Sopenharmony_ci				regulator-always-on;
4038c2ecf20Sopenharmony_ci				regulator-boot-on;
4048c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1500000>;
4058c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1500000>;
4068c2ecf20Sopenharmony_ci				regulator-state-mem {
4078c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
4088c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <1500000>;
4098c2ecf20Sopenharmony_ci				};
4108c2ecf20Sopenharmony_ci			};
4118c2ecf20Sopenharmony_ci
4128c2ecf20Sopenharmony_ci			vcca1v8_codec: LDO_REG7 {
4138c2ecf20Sopenharmony_ci				regulator-name = "vcca1v8_codec";
4148c2ecf20Sopenharmony_ci				regulator-always-on;
4158c2ecf20Sopenharmony_ci				regulator-boot-on;
4168c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
4178c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1800000>;
4188c2ecf20Sopenharmony_ci				regulator-state-mem {
4198c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4208c2ecf20Sopenharmony_ci				};
4218c2ecf20Sopenharmony_ci			};
4228c2ecf20Sopenharmony_ci
4238c2ecf20Sopenharmony_ci			vcc_3v0: LDO_REG8 {
4248c2ecf20Sopenharmony_ci				regulator-name = "vcc_3v0";
4258c2ecf20Sopenharmony_ci				regulator-always-on;
4268c2ecf20Sopenharmony_ci				regulator-boot-on;
4278c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
4288c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
4298c2ecf20Sopenharmony_ci				regulator-state-mem {
4308c2ecf20Sopenharmony_ci					regulator-on-in-suspend;
4318c2ecf20Sopenharmony_ci					regulator-suspend-microvolt = <3000000>;
4328c2ecf20Sopenharmony_ci				};
4338c2ecf20Sopenharmony_ci			};
4348c2ecf20Sopenharmony_ci
4358c2ecf20Sopenharmony_ci			vcc3v3_s3: vcc_lan: SWITCH_REG1 {
4368c2ecf20Sopenharmony_ci				regulator-name = "vcc3v3_s3";
4378c2ecf20Sopenharmony_ci				regulator-always-on;
4388c2ecf20Sopenharmony_ci				regulator-boot-on;
4398c2ecf20Sopenharmony_ci				regulator-state-mem {
4408c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4418c2ecf20Sopenharmony_ci				};
4428c2ecf20Sopenharmony_ci			};
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ci			vcc3v3_s0: SWITCH_REG2 {
4458c2ecf20Sopenharmony_ci				regulator-name = "vcc3v3_s0";
4468c2ecf20Sopenharmony_ci				regulator-always-on;
4478c2ecf20Sopenharmony_ci				regulator-boot-on;
4488c2ecf20Sopenharmony_ci				regulator-state-mem {
4498c2ecf20Sopenharmony_ci					regulator-off-in-suspend;
4508c2ecf20Sopenharmony_ci				};
4518c2ecf20Sopenharmony_ci			};
4528c2ecf20Sopenharmony_ci		};
4538c2ecf20Sopenharmony_ci	};
4548c2ecf20Sopenharmony_ci
4558c2ecf20Sopenharmony_ci	vdd_cpu_b: regulator@40 {
4568c2ecf20Sopenharmony_ci		compatible = "silergy,syr827";
4578c2ecf20Sopenharmony_ci		reg = <0x40>;
4588c2ecf20Sopenharmony_ci		fcs,suspend-voltage-selector = <0>;
4598c2ecf20Sopenharmony_ci		regulator-name = "vdd_cpu_b";
4608c2ecf20Sopenharmony_ci		regulator-min-microvolt = <712500>;
4618c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1500000>;
4628c2ecf20Sopenharmony_ci		regulator-ramp-delay = <1000>;
4638c2ecf20Sopenharmony_ci		regulator-always-on;
4648c2ecf20Sopenharmony_ci		regulator-boot-on;
4658c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
4668c2ecf20Sopenharmony_ci
4678c2ecf20Sopenharmony_ci		regulator-state-mem {
4688c2ecf20Sopenharmony_ci			regulator-off-in-suspend;
4698c2ecf20Sopenharmony_ci		};
4708c2ecf20Sopenharmony_ci	};
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ci	vdd_gpu: regulator@41 {
4738c2ecf20Sopenharmony_ci		compatible = "silergy,syr828";
4748c2ecf20Sopenharmony_ci		reg = <0x41>;
4758c2ecf20Sopenharmony_ci		fcs,suspend-voltage-selector = <1>;
4768c2ecf20Sopenharmony_ci		regulator-name = "vdd_gpu";
4778c2ecf20Sopenharmony_ci		regulator-min-microvolt = <712500>;
4788c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1500000>;
4798c2ecf20Sopenharmony_ci		regulator-ramp-delay = <1000>;
4808c2ecf20Sopenharmony_ci		regulator-always-on;
4818c2ecf20Sopenharmony_ci		regulator-boot-on;
4828c2ecf20Sopenharmony_ci		vin-supply = <&vcc_sys>;
4838c2ecf20Sopenharmony_ci
4848c2ecf20Sopenharmony_ci		regulator-state-mem {
4858c2ecf20Sopenharmony_ci			regulator-off-in-suspend;
4868c2ecf20Sopenharmony_ci		};
4878c2ecf20Sopenharmony_ci	};
4888c2ecf20Sopenharmony_ci};
4898c2ecf20Sopenharmony_ci
4908c2ecf20Sopenharmony_ci&i2c1 {
4918c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <300>;
4928c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <15>;
4938c2ecf20Sopenharmony_ci	status = "okay";
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_ci	rt5640: rt5640@1c {
4968c2ecf20Sopenharmony_ci		compatible = "realtek,rt5640";
4978c2ecf20Sopenharmony_ci		reg = <0x1c>;
4988c2ecf20Sopenharmony_ci		clocks = <&cru SCLK_I2S_8CH_OUT>;
4998c2ecf20Sopenharmony_ci		clock-names = "mclk";
5008c2ecf20Sopenharmony_ci		realtek,in1-differential;
5018c2ecf20Sopenharmony_ci		#sound-dai-cells = <0>;
5028c2ecf20Sopenharmony_ci		pinctrl-names = "default";
5038c2ecf20Sopenharmony_ci		pinctrl-0 = <&rt5640_hpcon>;
5048c2ecf20Sopenharmony_ci	};
5058c2ecf20Sopenharmony_ci};
5068c2ecf20Sopenharmony_ci
5078c2ecf20Sopenharmony_ci&i2c3 {
5088c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <450>;
5098c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <15>;
5108c2ecf20Sopenharmony_ci	status = "okay";
5118c2ecf20Sopenharmony_ci};
5128c2ecf20Sopenharmony_ci
5138c2ecf20Sopenharmony_ci&i2c4 {
5148c2ecf20Sopenharmony_ci	i2c-scl-rising-time-ns = <600>;
5158c2ecf20Sopenharmony_ci	i2c-scl-falling-time-ns = <20>;
5168c2ecf20Sopenharmony_ci	status = "okay";
5178c2ecf20Sopenharmony_ci
5188c2ecf20Sopenharmony_ci	accelerometer@68 {
5198c2ecf20Sopenharmony_ci		compatible = "invensense,mpu6500";
5208c2ecf20Sopenharmony_ci		reg = <0x68>;
5218c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio1>;
5228c2ecf20Sopenharmony_ci		interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>;
5238c2ecf20Sopenharmony_ci	};
5248c2ecf20Sopenharmony_ci};
5258c2ecf20Sopenharmony_ci
5268c2ecf20Sopenharmony_ci&i2s0 {
5278c2ecf20Sopenharmony_ci	rockchip,playback-channels = <8>;
5288c2ecf20Sopenharmony_ci	rockchip,capture-channels = <8>;
5298c2ecf20Sopenharmony_ci	status = "okay";
5308c2ecf20Sopenharmony_ci};
5318c2ecf20Sopenharmony_ci
5328c2ecf20Sopenharmony_ci&i2s1 {
5338c2ecf20Sopenharmony_ci	rockchip,playback-channels = <2>;
5348c2ecf20Sopenharmony_ci	rockchip,capture-channels = <2>;
5358c2ecf20Sopenharmony_ci	status = "okay";
5368c2ecf20Sopenharmony_ci};
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci&i2s2 {
5398c2ecf20Sopenharmony_ci	status = "okay";
5408c2ecf20Sopenharmony_ci};
5418c2ecf20Sopenharmony_ci
5428c2ecf20Sopenharmony_ci&io_domains {
5438c2ecf20Sopenharmony_ci	status = "okay";
5448c2ecf20Sopenharmony_ci
5458c2ecf20Sopenharmony_ci	bt656-supply = <&vcc1v8_dvp>;
5468c2ecf20Sopenharmony_ci	audio-supply = <&vcca1v8_codec>;
5478c2ecf20Sopenharmony_ci	sdmmc-supply = <&vcc_sdio>;
5488c2ecf20Sopenharmony_ci	gpio1830-supply = <&vcc_3v0>;
5498c2ecf20Sopenharmony_ci};
5508c2ecf20Sopenharmony_ci
5518c2ecf20Sopenharmony_ci&pcie_phy {
5528c2ecf20Sopenharmony_ci	status = "okay";
5538c2ecf20Sopenharmony_ci};
5548c2ecf20Sopenharmony_ci
5558c2ecf20Sopenharmony_ci&pcie0 {
5568c2ecf20Sopenharmony_ci	ep-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
5578c2ecf20Sopenharmony_ci	num-lanes = <4>;
5588c2ecf20Sopenharmony_ci	pinctrl-names = "default";
5598c2ecf20Sopenharmony_ci	pinctrl-0 = <&pcie_clkreqn_cpm>;
5608c2ecf20Sopenharmony_ci	status = "okay";
5618c2ecf20Sopenharmony_ci};
5628c2ecf20Sopenharmony_ci
5638c2ecf20Sopenharmony_ci&pmu_io_domains {
5648c2ecf20Sopenharmony_ci	pmu1830-supply = <&vcc_3v0>;
5658c2ecf20Sopenharmony_ci	status = "okay";
5668c2ecf20Sopenharmony_ci};
5678c2ecf20Sopenharmony_ci
5688c2ecf20Sopenharmony_ci&pinctrl {
5698c2ecf20Sopenharmony_ci	buttons {
5708c2ecf20Sopenharmony_ci		pwrbtn: pwrbtn {
5718c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
5728c2ecf20Sopenharmony_ci		};
5738c2ecf20Sopenharmony_ci	};
5748c2ecf20Sopenharmony_ci
5758c2ecf20Sopenharmony_ci	lcd-panel {
5768c2ecf20Sopenharmony_ci		lcd_panel_reset: lcd-panel-reset {
5778c2ecf20Sopenharmony_ci			rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
5788c2ecf20Sopenharmony_ci		};
5798c2ecf20Sopenharmony_ci	};
5808c2ecf20Sopenharmony_ci
5818c2ecf20Sopenharmony_ci	pcie {
5828c2ecf20Sopenharmony_ci		pcie_pwr_en: pcie-pwr-en {
5838c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
5848c2ecf20Sopenharmony_ci		};
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_ci		pcie_3g_drv: pcie-3g-drv {
5878c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
5888c2ecf20Sopenharmony_ci		};
5898c2ecf20Sopenharmony_ci	};
5908c2ecf20Sopenharmony_ci
5918c2ecf20Sopenharmony_ci	pmic {
5928c2ecf20Sopenharmony_ci		vsel1_pin: vsel1-pin {
5938c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
5948c2ecf20Sopenharmony_ci		};
5958c2ecf20Sopenharmony_ci
5968c2ecf20Sopenharmony_ci		vsel2_pin: vsel2-pin {
5978c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
5988c2ecf20Sopenharmony_ci		};
5998c2ecf20Sopenharmony_ci	};
6008c2ecf20Sopenharmony_ci
6018c2ecf20Sopenharmony_ci	sdio-pwrseq {
6028c2ecf20Sopenharmony_ci		wifi_enable_h: wifi-enable-h {
6038c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
6048c2ecf20Sopenharmony_ci		};
6058c2ecf20Sopenharmony_ci	};
6068c2ecf20Sopenharmony_ci
6078c2ecf20Sopenharmony_ci	rt5640 {
6088c2ecf20Sopenharmony_ci		rt5640_hpcon: rt5640-hpcon {
6098c2ecf20Sopenharmony_ci			rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
6108c2ecf20Sopenharmony_ci		};
6118c2ecf20Sopenharmony_ci	};
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci	pmic {
6148c2ecf20Sopenharmony_ci		pmic_int_l: pmic-int-l {
6158c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
6168c2ecf20Sopenharmony_ci		};
6178c2ecf20Sopenharmony_ci	};
6188c2ecf20Sopenharmony_ci
6198c2ecf20Sopenharmony_ci	usb2 {
6208c2ecf20Sopenharmony_ci		vcc5v0_host_en: vcc5v0-host-en {
6218c2ecf20Sopenharmony_ci			rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
6228c2ecf20Sopenharmony_ci		};
6238c2ecf20Sopenharmony_ci	};
6248c2ecf20Sopenharmony_ci
6258c2ecf20Sopenharmony_ci	wifi {
6268c2ecf20Sopenharmony_ci		wifi_host_wake_l: wifi-host-wake-l {
6278c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
6288c2ecf20Sopenharmony_ci		};
6298c2ecf20Sopenharmony_ci	};
6308c2ecf20Sopenharmony_ci
6318c2ecf20Sopenharmony_ci	leds {
6328c2ecf20Sopenharmony_ci		work_led_pin: work-led-pin {
6338c2ecf20Sopenharmony_ci			rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
6348c2ecf20Sopenharmony_ci		};
6358c2ecf20Sopenharmony_ci
6368c2ecf20Sopenharmony_ci		diy_led_pin: diy-led-pin {
6378c2ecf20Sopenharmony_ci			rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
6388c2ecf20Sopenharmony_ci		};
6398c2ecf20Sopenharmony_ci	};
6408c2ecf20Sopenharmony_ci};
6418c2ecf20Sopenharmony_ci
6428c2ecf20Sopenharmony_ci&pwm0 {
6438c2ecf20Sopenharmony_ci	status = "okay";
6448c2ecf20Sopenharmony_ci};
6458c2ecf20Sopenharmony_ci
6468c2ecf20Sopenharmony_ci&pwm2 {
6478c2ecf20Sopenharmony_ci	status = "okay";
6488c2ecf20Sopenharmony_ci};
6498c2ecf20Sopenharmony_ci
6508c2ecf20Sopenharmony_ci&saradc {
6518c2ecf20Sopenharmony_ci	vref-supply = <&vcca1v8_s3>;
6528c2ecf20Sopenharmony_ci	status = "okay";
6538c2ecf20Sopenharmony_ci};
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci&sdio0 {
6568c2ecf20Sopenharmony_ci	/* WiFi & BT combo module Ampak AP6356S */
6578c2ecf20Sopenharmony_ci	bus-width = <4>;
6588c2ecf20Sopenharmony_ci	cap-sdio-irq;
6598c2ecf20Sopenharmony_ci	cap-sd-highspeed;
6608c2ecf20Sopenharmony_ci	keep-power-in-suspend;
6618c2ecf20Sopenharmony_ci	mmc-pwrseq = <&sdio_pwrseq>;
6628c2ecf20Sopenharmony_ci	non-removable;
6638c2ecf20Sopenharmony_ci	pinctrl-names = "default";
6648c2ecf20Sopenharmony_ci	pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
6658c2ecf20Sopenharmony_ci	sd-uhs-sdr104;
6668c2ecf20Sopenharmony_ci
6678c2ecf20Sopenharmony_ci	/* Power supply */
6688c2ecf20Sopenharmony_ci	vqmmc-supply = <&vcc1v8_s3>;	/* IO line */
6698c2ecf20Sopenharmony_ci	vmmc-supply = <&vcc_sdio>;	/* card's power */
6708c2ecf20Sopenharmony_ci
6718c2ecf20Sopenharmony_ci	#address-cells = <1>;
6728c2ecf20Sopenharmony_ci	#size-cells = <0>;
6738c2ecf20Sopenharmony_ci	status = "okay";
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci	brcmf: wifi@1 {
6768c2ecf20Sopenharmony_ci		reg = <1>;
6778c2ecf20Sopenharmony_ci		compatible = "brcm,bcm4329-fmac";
6788c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio0>;
6798c2ecf20Sopenharmony_ci		interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
6808c2ecf20Sopenharmony_ci		interrupt-names = "host-wake";
6818c2ecf20Sopenharmony_ci		brcm,drive-strength = <5>;
6828c2ecf20Sopenharmony_ci		pinctrl-names = "default";
6838c2ecf20Sopenharmony_ci		pinctrl-0 = <&wifi_host_wake_l>;
6848c2ecf20Sopenharmony_ci	};
6858c2ecf20Sopenharmony_ci};
6868c2ecf20Sopenharmony_ci
6878c2ecf20Sopenharmony_ci&sdmmc {
6888c2ecf20Sopenharmony_ci	bus-width = <4>;
6898c2ecf20Sopenharmony_ci	cap-mmc-highspeed;
6908c2ecf20Sopenharmony_ci	cap-sd-highspeed;
6918c2ecf20Sopenharmony_ci	cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
6928c2ecf20Sopenharmony_ci	disable-wp;
6938c2ecf20Sopenharmony_ci	max-frequency = <150000000>;
6948c2ecf20Sopenharmony_ci	pinctrl-names = "default";
6958c2ecf20Sopenharmony_ci	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
6968c2ecf20Sopenharmony_ci	status = "okay";
6978c2ecf20Sopenharmony_ci};
6988c2ecf20Sopenharmony_ci
6998c2ecf20Sopenharmony_ci&sdhci {
7008c2ecf20Sopenharmony_ci	bus-width = <8>;
7018c2ecf20Sopenharmony_ci	mmc-hs400-1_8v;
7028c2ecf20Sopenharmony_ci	mmc-hs400-enhanced-strobe;
7038c2ecf20Sopenharmony_ci	non-removable;
7048c2ecf20Sopenharmony_ci	status = "okay";
7058c2ecf20Sopenharmony_ci};
7068c2ecf20Sopenharmony_ci
7078c2ecf20Sopenharmony_ci&tcphy0 {
7088c2ecf20Sopenharmony_ci	status = "okay";
7098c2ecf20Sopenharmony_ci};
7108c2ecf20Sopenharmony_ci
7118c2ecf20Sopenharmony_ci&tcphy1 {
7128c2ecf20Sopenharmony_ci	status = "okay";
7138c2ecf20Sopenharmony_ci};
7148c2ecf20Sopenharmony_ci
7158c2ecf20Sopenharmony_ci&tsadc {
7168c2ecf20Sopenharmony_ci	/* tshut mode 0:CRU 1:GPIO */
7178c2ecf20Sopenharmony_ci	rockchip,hw-tshut-mode = <1>;
7188c2ecf20Sopenharmony_ci	/* tshut polarity 0:LOW 1:HIGH */
7198c2ecf20Sopenharmony_ci	rockchip,hw-tshut-polarity = <1>;
7208c2ecf20Sopenharmony_ci	status = "okay";
7218c2ecf20Sopenharmony_ci};
7228c2ecf20Sopenharmony_ci
7238c2ecf20Sopenharmony_ci&u2phy0 {
7248c2ecf20Sopenharmony_ci	status = "okay";
7258c2ecf20Sopenharmony_ci
7268c2ecf20Sopenharmony_ci	u2phy0_otg: otg-port {
7278c2ecf20Sopenharmony_ci		status = "okay";
7288c2ecf20Sopenharmony_ci	};
7298c2ecf20Sopenharmony_ci
7308c2ecf20Sopenharmony_ci	u2phy0_host: host-port {
7318c2ecf20Sopenharmony_ci		phy-supply = <&vcc5v0_host>;
7328c2ecf20Sopenharmony_ci		status = "okay";
7338c2ecf20Sopenharmony_ci	};
7348c2ecf20Sopenharmony_ci};
7358c2ecf20Sopenharmony_ci
7368c2ecf20Sopenharmony_ci&u2phy1 {
7378c2ecf20Sopenharmony_ci	status = "okay";
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_ci	u2phy1_otg: otg-port {
7408c2ecf20Sopenharmony_ci		status = "okay";
7418c2ecf20Sopenharmony_ci	};
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_ci	u2phy1_host: host-port {
7448c2ecf20Sopenharmony_ci		phy-supply = <&vcc5v0_host>;
7458c2ecf20Sopenharmony_ci		status = "okay";
7468c2ecf20Sopenharmony_ci	};
7478c2ecf20Sopenharmony_ci};
7488c2ecf20Sopenharmony_ci
7498c2ecf20Sopenharmony_ci&uart0 {
7508c2ecf20Sopenharmony_ci	pinctrl-names = "default";
7518c2ecf20Sopenharmony_ci	pinctrl-0 = <&uart0_xfer &uart0_cts>;
7528c2ecf20Sopenharmony_ci	status = "okay";
7538c2ecf20Sopenharmony_ci};
7548c2ecf20Sopenharmony_ci
7558c2ecf20Sopenharmony_ci&uart2 {
7568c2ecf20Sopenharmony_ci	status = "okay";
7578c2ecf20Sopenharmony_ci};
7588c2ecf20Sopenharmony_ci
7598c2ecf20Sopenharmony_ci&usb_host0_ehci {
7608c2ecf20Sopenharmony_ci	status = "okay";
7618c2ecf20Sopenharmony_ci};
7628c2ecf20Sopenharmony_ci
7638c2ecf20Sopenharmony_ci&usb_host0_ohci {
7648c2ecf20Sopenharmony_ci	status = "okay";
7658c2ecf20Sopenharmony_ci};
7668c2ecf20Sopenharmony_ci
7678c2ecf20Sopenharmony_ci&usb_host1_ehci {
7688c2ecf20Sopenharmony_ci	status = "okay";
7698c2ecf20Sopenharmony_ci};
7708c2ecf20Sopenharmony_ci
7718c2ecf20Sopenharmony_ci&usb_host1_ohci {
7728c2ecf20Sopenharmony_ci	status = "okay";
7738c2ecf20Sopenharmony_ci};
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_ci&usbdrd3_0 {
7768c2ecf20Sopenharmony_ci	status = "okay";
7778c2ecf20Sopenharmony_ci};
7788c2ecf20Sopenharmony_ci
7798c2ecf20Sopenharmony_ci&usbdrd_dwc3_0 {
7808c2ecf20Sopenharmony_ci	status = "okay";
7818c2ecf20Sopenharmony_ci	dr_mode = "otg";
7828c2ecf20Sopenharmony_ci};
7838c2ecf20Sopenharmony_ci
7848c2ecf20Sopenharmony_ci&usbdrd3_1 {
7858c2ecf20Sopenharmony_ci	status = "okay";
7868c2ecf20Sopenharmony_ci};
7878c2ecf20Sopenharmony_ci
7888c2ecf20Sopenharmony_ci&usbdrd_dwc3_1 {
7898c2ecf20Sopenharmony_ci	status = "okay";
7908c2ecf20Sopenharmony_ci	dr_mode = "host";
7918c2ecf20Sopenharmony_ci};
7928c2ecf20Sopenharmony_ci
7938c2ecf20Sopenharmony_ci&vopb {
7948c2ecf20Sopenharmony_ci	status = "okay";
7958c2ecf20Sopenharmony_ci};
7968c2ecf20Sopenharmony_ci
7978c2ecf20Sopenharmony_ci&vopb_mmu {
7988c2ecf20Sopenharmony_ci	status = "okay";
7998c2ecf20Sopenharmony_ci};
8008c2ecf20Sopenharmony_ci
8018c2ecf20Sopenharmony_ci&vopl {
8028c2ecf20Sopenharmony_ci	status = "okay";
8038c2ecf20Sopenharmony_ci};
8048c2ecf20Sopenharmony_ci
8058c2ecf20Sopenharmony_ci&vopl_mmu {
8068c2ecf20Sopenharmony_ci	status = "okay";
8078c2ecf20Sopenharmony_ci};
808