1e4f3fb49SAkash Gajjar// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2e4f3fb49SAkash Gajjar/*
3e4f3fb49SAkash Gajjar * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4e4f3fb49SAkash Gajjar * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com>
5e4f3fb49SAkash Gajjar */
6e4f3fb49SAkash Gajjar
7e4f3fb49SAkash Gajjar/dts-v1/;
8e4f3fb49SAkash Gajjar#include <dt-bindings/input/linux-event-codes.h>
9e4f3fb49SAkash Gajjar#include <dt-bindings/pwm/pwm.h>
10e4f3fb49SAkash Gajjar#include "rk3399.dtsi"
11e4f3fb49SAkash Gajjar#include "rk3399-opp.dtsi"
12e4f3fb49SAkash Gajjar
13e4f3fb49SAkash Gajjar/ {
14e4f3fb49SAkash Gajjar	model = "Pine64 RockPro64";
15e4f3fb49SAkash Gajjar	compatible = "pine64,rockpro64", "rockchip,rk3399";
16e4f3fb49SAkash Gajjar
17e4f3fb49SAkash Gajjar	chosen {
18e4f3fb49SAkash Gajjar		stdout-path = "serial2:1500000n8";
19e4f3fb49SAkash Gajjar	};
20e4f3fb49SAkash Gajjar
21e4f3fb49SAkash Gajjar	clkin_gmac: external-gmac-clock {
22e4f3fb49SAkash Gajjar		compatible = "fixed-clock";
23e4f3fb49SAkash Gajjar		clock-frequency = <125000000>;
24e4f3fb49SAkash Gajjar		clock-output-names = "clkin_gmac";
25e4f3fb49SAkash Gajjar		#clock-cells = <0>;
26e4f3fb49SAkash Gajjar	};
27e4f3fb49SAkash Gajjar
28e4f3fb49SAkash Gajjar	gpio-keys {
29e4f3fb49SAkash Gajjar		compatible = "gpio-keys";
30e4f3fb49SAkash Gajjar		autorepeat;
31e4f3fb49SAkash Gajjar		pinctrl-names = "default";
32e4f3fb49SAkash Gajjar		pinctrl-0 = <&pwrbtn>;
33e4f3fb49SAkash Gajjar
34e4f3fb49SAkash Gajjar		power {
35e4f3fb49SAkash Gajjar			debounce-interval = <100>;
36e4f3fb49SAkash Gajjar			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
37e4f3fb49SAkash Gajjar			label = "GPIO Key Power";
38e4f3fb49SAkash Gajjar			linux,code = <KEY_POWER>;
39e4f3fb49SAkash Gajjar			wakeup-source;
40e4f3fb49SAkash Gajjar		};
41e4f3fb49SAkash Gajjar	};
42e4f3fb49SAkash Gajjar
43e4f3fb49SAkash Gajjar	leds {
44e4f3fb49SAkash Gajjar		compatible = "gpio-leds";
45e4f3fb49SAkash Gajjar		pinctrl-names = "default";
46e4f3fb49SAkash Gajjar		pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>;
47e4f3fb49SAkash Gajjar
48e4f3fb49SAkash Gajjar		work-led {
49e4f3fb49SAkash Gajjar			label = "work";
50e4f3fb49SAkash Gajjar			default-state = "on";
51e4f3fb49SAkash Gajjar			gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
52e4f3fb49SAkash Gajjar		};
53e4f3fb49SAkash Gajjar
54e4f3fb49SAkash Gajjar		diy-led {
55e4f3fb49SAkash Gajjar			label = "diy";
56e4f3fb49SAkash Gajjar			default-state = "off";
57e4f3fb49SAkash Gajjar			gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
58e4f3fb49SAkash Gajjar		};
59e4f3fb49SAkash Gajjar	};
60e4f3fb49SAkash Gajjar
61e4f3fb49SAkash Gajjar	sdio_pwrseq: sdio-pwrseq {
62e4f3fb49SAkash Gajjar		compatible = "mmc-pwrseq-simple";
63e4f3fb49SAkash Gajjar		clocks = <&rk808 1>;
64e4f3fb49SAkash Gajjar		clock-names = "ext_clock";
65e4f3fb49SAkash Gajjar		pinctrl-names = "default";
66e4f3fb49SAkash Gajjar		pinctrl-0 = <&wifi_enable_h>;
67e4f3fb49SAkash Gajjar
68e4f3fb49SAkash Gajjar		/*
69e4f3fb49SAkash Gajjar		 * On the module itself this is one of these (depending
70e4f3fb49SAkash Gajjar		 * on the actual card populated):
71e4f3fb49SAkash Gajjar		 * - SDIO_RESET_L_WL_REG_ON
72e4f3fb49SAkash Gajjar		 * - PDN (power down when low)
73e4f3fb49SAkash Gajjar		 */
74e4f3fb49SAkash Gajjar		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
75e4f3fb49SAkash Gajjar	};
76e4f3fb49SAkash Gajjar
7778dd84ecSAkash Gajjar	vcc12v_dcin: vcc12v-dcin {
7878dd84ecSAkash Gajjar		compatible = "regulator-fixed";
7978dd84ecSAkash Gajjar		regulator-name = "vcc12v_dcin";
8078dd84ecSAkash Gajjar		regulator-always-on;
8178dd84ecSAkash Gajjar		regulator-boot-on;
8278dd84ecSAkash Gajjar		regulator-min-microvolt = <12000000>;
8378dd84ecSAkash Gajjar		regulator-max-microvolt = <12000000>;
8478dd84ecSAkash Gajjar	};
8578dd84ecSAkash Gajjar
86e4f3fb49SAkash Gajjar	/* switched by pmic_sleep */
87e4f3fb49SAkash Gajjar	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
88e4f3fb49SAkash Gajjar		compatible = "regulator-fixed";
89e4f3fb49SAkash Gajjar		regulator-name = "vcc1v8_s3";
90e4f3fb49SAkash Gajjar		regulator-always-on;
91e4f3fb49SAkash Gajjar		regulator-boot-on;
92e4f3fb49SAkash Gajjar		regulator-min-microvolt = <1800000>;
93e4f3fb49SAkash Gajjar		regulator-max-microvolt = <1800000>;
94e4f3fb49SAkash Gajjar		vin-supply = <&vcc_1v8>;
95e4f3fb49SAkash Gajjar	};
96e4f3fb49SAkash Gajjar
97e4f3fb49SAkash Gajjar	vcc3v3_pcie: vcc3v3-pcie-regulator {
98e4f3fb49SAkash Gajjar		compatible = "regulator-fixed";
99e4f3fb49SAkash Gajjar		enable-active-high;
100690e16baSOskari Lemmela		gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
101e4f3fb49SAkash Gajjar		pinctrl-names = "default";
102e4f3fb49SAkash Gajjar		pinctrl-0 = <&pcie_pwr_en>;
103e4f3fb49SAkash Gajjar		regulator-name = "vcc3v3_pcie";
104e4f3fb49SAkash Gajjar		regulator-always-on;
105e4f3fb49SAkash Gajjar		regulator-boot-on;
10678dd84ecSAkash Gajjar		vin-supply = <&vcc12v_dcin>;
107e4f3fb49SAkash Gajjar	};
108e4f3fb49SAkash Gajjar
109e4f3fb49SAkash Gajjar	vcc3v3_sys: vcc3v3-sys {
110e4f3fb49SAkash Gajjar		compatible = "regulator-fixed";
111e4f3fb49SAkash Gajjar		regulator-name = "vcc3v3_sys";
112e4f3fb49SAkash Gajjar		regulator-always-on;
113e4f3fb49SAkash Gajjar		regulator-boot-on;
114e4f3fb49SAkash Gajjar		regulator-min-microvolt = <3300000>;
115e4f3fb49SAkash Gajjar		regulator-max-microvolt = <3300000>;
11678dd84ecSAkash Gajjar		vin-supply = <&vcc5v0_sys>;
117e4f3fb49SAkash Gajjar	};
118e4f3fb49SAkash Gajjar
119e4f3fb49SAkash Gajjar	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
120e4f3fb49SAkash Gajjar	vcc5v0_host: vcc5v0-host-regulator {
121e4f3fb49SAkash Gajjar		compatible = "regulator-fixed";
122e4f3fb49SAkash Gajjar		enable-active-high;
123e4f3fb49SAkash Gajjar		gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
124e4f3fb49SAkash Gajjar		pinctrl-names = "default";
125e4f3fb49SAkash Gajjar		pinctrl-0 = <&vcc5v0_host_en>;
126e4f3fb49SAkash Gajjar		regulator-name = "vcc5v0_host";
127e4f3fb49SAkash Gajjar		regulator-always-on;
1286db644c7SAkash Gajjar		vin-supply = <&vcc5v0_usb>;
129e4f3fb49SAkash Gajjar	};
130e4f3fb49SAkash Gajjar
131e4f3fb49SAkash Gajjar	vcc5v0_typec: vcc5v0-typec-regulator {
132e4f3fb49SAkash Gajjar		compatible = "regulator-fixed";
133e4f3fb49SAkash Gajjar		enable-active-high;
134e4f3fb49SAkash Gajjar		gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
135e4f3fb49SAkash Gajjar		pinctrl-names = "default";
136e4f3fb49SAkash Gajjar		pinctrl-0 = <&vcc5v0_typec_en>;
137e4f3fb49SAkash Gajjar		regulator-name = "vcc5v0_typec";
138e4f3fb49SAkash Gajjar		regulator-always-on;
1396db644c7SAkash Gajjar		vin-supply = <&vcc5v0_usb>;
140e4f3fb49SAkash Gajjar	};
141e4f3fb49SAkash Gajjar
14278dd84ecSAkash Gajjar	vcc5v0_sys: vcc5v0-sys {
143e4f3fb49SAkash Gajjar		compatible = "regulator-fixed";
14478dd84ecSAkash Gajjar		regulator-name = "vcc5v0_sys";
145e4f3fb49SAkash Gajjar		regulator-always-on;
146e4f3fb49SAkash Gajjar		regulator-boot-on;
147e4f3fb49SAkash Gajjar		regulator-min-microvolt = <5000000>;
148e4f3fb49SAkash Gajjar		regulator-max-microvolt = <5000000>;
14978dd84ecSAkash Gajjar		vin-supply = <&vcc12v_dcin>;
150e4f3fb49SAkash Gajjar	};
151e4f3fb49SAkash Gajjar
1526db644c7SAkash Gajjar	vcc5v0_usb: vcc5v0-usb {
1536db644c7SAkash Gajjar		compatible = "regulator-fixed";
1546db644c7SAkash Gajjar		regulator-name = "vcc5v0_usb";
1556db644c7SAkash Gajjar		regulator-always-on;
1566db644c7SAkash Gajjar		regulator-boot-on;
1576db644c7SAkash Gajjar		regulator-min-microvolt = <5000000>;
1586db644c7SAkash Gajjar		regulator-max-microvolt = <5000000>;
1596db644c7SAkash Gajjar		vin-supply = <&vcc12v_dcin>;
1606db644c7SAkash Gajjar	};
1616db644c7SAkash Gajjar
162e4f3fb49SAkash Gajjar	vdd_log: vdd-log {
163e4f3fb49SAkash Gajjar		compatible = "pwm-regulator";
164e4f3fb49SAkash Gajjar		pwms = <&pwm2 0 25000 1>;
165e4f3fb49SAkash Gajjar		regulator-name = "vdd_log";
166e4f3fb49SAkash Gajjar		regulator-always-on;
167e4f3fb49SAkash Gajjar		regulator-boot-on;
168e4f3fb49SAkash Gajjar		regulator-min-microvolt = <800000>;
169e4f3fb49SAkash Gajjar		regulator-max-microvolt = <1400000>;
17078dd84ecSAkash Gajjar		vin-supply = <&vcc5v0_sys>;
171e4f3fb49SAkash Gajjar	};
172e4f3fb49SAkash Gajjar};
173e4f3fb49SAkash Gajjar
174e4f3fb49SAkash Gajjar&cpu_l0 {
175e4f3fb49SAkash Gajjar	cpu-supply = <&vdd_cpu_l>;
176e4f3fb49SAkash Gajjar};
177e4f3fb49SAkash Gajjar
178e4f3fb49SAkash Gajjar&cpu_l1 {
179e4f3fb49SAkash Gajjar	cpu-supply = <&vdd_cpu_l>;
180e4f3fb49SAkash Gajjar};
181e4f3fb49SAkash Gajjar
182e4f3fb49SAkash Gajjar&cpu_l2 {
183e4f3fb49SAkash Gajjar	cpu-supply = <&vdd_cpu_l>;
184e4f3fb49SAkash Gajjar};
185e4f3fb49SAkash Gajjar
186e4f3fb49SAkash Gajjar&cpu_l3 {
187e4f3fb49SAkash Gajjar	cpu-supply = <&vdd_cpu_l>;
188e4f3fb49SAkash Gajjar};
189e4f3fb49SAkash Gajjar
190e4f3fb49SAkash Gajjar&cpu_b0 {
191e4f3fb49SAkash Gajjar	cpu-supply = <&vdd_cpu_b>;
192e4f3fb49SAkash Gajjar};
193e4f3fb49SAkash Gajjar
194e4f3fb49SAkash Gajjar&cpu_b1 {
195e4f3fb49SAkash Gajjar	cpu-supply = <&vdd_cpu_b>;
196e4f3fb49SAkash Gajjar};
197e4f3fb49SAkash Gajjar
198e4f3fb49SAkash Gajjar&emmc_phy {
199e4f3fb49SAkash Gajjar	status = "okay";
200e4f3fb49SAkash Gajjar};
201e4f3fb49SAkash Gajjar
202e4f3fb49SAkash Gajjar&gmac {
203e4f3fb49SAkash Gajjar	assigned-clocks = <&cru SCLK_RMII_SRC>;
204e4f3fb49SAkash Gajjar	assigned-clock-parents = <&clkin_gmac>;
205e4f3fb49SAkash Gajjar	clock_in_out = "input";
206e4f3fb49SAkash Gajjar	phy-supply = <&vcc_lan>;
207e4f3fb49SAkash Gajjar	phy-mode = "rgmii";
208e4f3fb49SAkash Gajjar	pinctrl-names = "default";
209e4f3fb49SAkash Gajjar	pinctrl-0 = <&rgmii_pins>;
210e4f3fb49SAkash Gajjar	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
211e4f3fb49SAkash Gajjar	snps,reset-active-low;
212e4f3fb49SAkash Gajjar	snps,reset-delays-us = <0 10000 50000>;
213e4f3fb49SAkash Gajjar	tx_delay = <0x28>;
214e4f3fb49SAkash Gajjar	rx_delay = <0x11>;
215e4f3fb49SAkash Gajjar	status = "okay";
216e4f3fb49SAkash Gajjar};
217e4f3fb49SAkash Gajjar
218f7cb866aSOskari Lemmela&hdmi {
219f7cb866aSOskari Lemmela	ddc-i2c-bus = <&i2c3>;
220f7cb866aSOskari Lemmela	pinctrl-names = "default";
221f7cb866aSOskari Lemmela	pinctrl-0 = <&hdmi_cec>;
222f7cb866aSOskari Lemmela	status = "okay";
223f7cb866aSOskari Lemmela};
224f7cb866aSOskari Lemmela
225a0dbc5c9SKatsuhiro Suzuki&hdmi_sound {
226a0dbc5c9SKatsuhiro Suzuki	status = "okay";
227a0dbc5c9SKatsuhiro Suzuki};
228a0dbc5c9SKatsuhiro Suzuki
2292670712cSAndrius Štikonas&gpu {
2302670712cSAndrius Štikonas	mali-supply = <&vdd_gpu>;
2312670712cSAndrius Štikonas	status = "okay";
2322670712cSAndrius Štikonas};
2332670712cSAndrius Štikonas
234e4f3fb49SAkash Gajjar&i2c0 {
235e4f3fb49SAkash Gajjar	clock-frequency = <400000>;
236e4f3fb49SAkash Gajjar	i2c-scl-rising-time-ns = <168>;
237e4f3fb49SAkash Gajjar	i2c-scl-falling-time-ns = <4>;
238e4f3fb49SAkash Gajjar	status = "okay";
239e4f3fb49SAkash Gajjar
240e4f3fb49SAkash Gajjar	rk808: pmic@1b {
241e4f3fb49SAkash Gajjar		compatible = "rockchip,rk808";
242e4f3fb49SAkash Gajjar		reg = <0x1b>;
243e4f3fb49SAkash Gajjar		interrupt-parent = <&gpio1>;
244e4f3fb49SAkash Gajjar		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
245e4f3fb49SAkash Gajjar		#clock-cells = <1>;
246e4f3fb49SAkash Gajjar		clock-output-names = "xin32k", "rk808-clkout2";
247e4f3fb49SAkash Gajjar		pinctrl-names = "default";
248e4f3fb49SAkash Gajjar		pinctrl-0 = <&pmic_int_l>;
249e4f3fb49SAkash Gajjar		rockchip,system-power-controller;
250e4f3fb49SAkash Gajjar		wakeup-source;
251e4f3fb49SAkash Gajjar
25278dd84ecSAkash Gajjar		vcc1-supply = <&vcc5v0_sys>;
25378dd84ecSAkash Gajjar		vcc2-supply = <&vcc5v0_sys>;
25478dd84ecSAkash Gajjar		vcc3-supply = <&vcc5v0_sys>;
25578dd84ecSAkash Gajjar		vcc4-supply = <&vcc5v0_sys>;
25678dd84ecSAkash Gajjar		vcc6-supply = <&vcc5v0_sys>;
25778dd84ecSAkash Gajjar		vcc7-supply = <&vcc5v0_sys>;
258e4f3fb49SAkash Gajjar		vcc8-supply = <&vcc3v3_sys>;
25978dd84ecSAkash Gajjar		vcc9-supply = <&vcc5v0_sys>;
26078dd84ecSAkash Gajjar		vcc10-supply = <&vcc5v0_sys>;
26178dd84ecSAkash Gajjar		vcc11-supply = <&vcc5v0_sys>;
262e4f3fb49SAkash Gajjar		vcc12-supply = <&vcc3v3_sys>;
26378dd84ecSAkash Gajjar		vddio-supply = <&vcca_1v8>;
264e4f3fb49SAkash Gajjar
265e4f3fb49SAkash Gajjar		regulators {
266e4f3fb49SAkash Gajjar			vdd_center: DCDC_REG1 {
267e4f3fb49SAkash Gajjar				regulator-name = "vdd_center";
268e4f3fb49SAkash Gajjar				regulator-always-on;
269e4f3fb49SAkash Gajjar				regulator-boot-on;
270e4f3fb49SAkash Gajjar				regulator-min-microvolt = <750000>;
271e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1350000>;
272e4f3fb49SAkash Gajjar				regulator-ramp-delay = <6001>;
273e4f3fb49SAkash Gajjar				regulator-state-mem {
274e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
275e4f3fb49SAkash Gajjar				};
276e4f3fb49SAkash Gajjar			};
277e4f3fb49SAkash Gajjar
278e4f3fb49SAkash Gajjar			vdd_cpu_l: DCDC_REG2 {
279e4f3fb49SAkash Gajjar				regulator-name = "vdd_cpu_l";
280e4f3fb49SAkash Gajjar				regulator-always-on;
281e4f3fb49SAkash Gajjar				regulator-boot-on;
282e4f3fb49SAkash Gajjar				regulator-min-microvolt = <750000>;
283e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1350000>;
284e4f3fb49SAkash Gajjar				regulator-ramp-delay = <6001>;
285e4f3fb49SAkash Gajjar				regulator-state-mem {
286e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
287e4f3fb49SAkash Gajjar				};
288e4f3fb49SAkash Gajjar			};
289e4f3fb49SAkash Gajjar
290e4f3fb49SAkash Gajjar			vcc_ddr: DCDC_REG3 {
291e4f3fb49SAkash Gajjar				regulator-name = "vcc_ddr";
292e4f3fb49SAkash Gajjar				regulator-always-on;
293e4f3fb49SAkash Gajjar				regulator-boot-on;
294e4f3fb49SAkash Gajjar				regulator-state-mem {
295e4f3fb49SAkash Gajjar					regulator-on-in-suspend;
296e4f3fb49SAkash Gajjar				};
297e4f3fb49SAkash Gajjar			};
298e4f3fb49SAkash Gajjar
299e4f3fb49SAkash Gajjar			vcc_1v8: DCDC_REG4 {
300e4f3fb49SAkash Gajjar				regulator-name = "vcc_1v8";
301e4f3fb49SAkash Gajjar				regulator-always-on;
302e4f3fb49SAkash Gajjar				regulator-boot-on;
303e4f3fb49SAkash Gajjar				regulator-min-microvolt = <1800000>;
304e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1800000>;
305e4f3fb49SAkash Gajjar				regulator-state-mem {
306e4f3fb49SAkash Gajjar					regulator-on-in-suspend;
307e4f3fb49SAkash Gajjar					regulator-suspend-microvolt = <1800000>;
308e4f3fb49SAkash Gajjar				};
309e4f3fb49SAkash Gajjar			};
310e4f3fb49SAkash Gajjar
311e4f3fb49SAkash Gajjar			vcc1v8_dvp: LDO_REG1 {
312e4f3fb49SAkash Gajjar				regulator-name = "vcc1v8_dvp";
313e4f3fb49SAkash Gajjar				regulator-always-on;
314e4f3fb49SAkash Gajjar				regulator-boot-on;
315e4f3fb49SAkash Gajjar				regulator-min-microvolt = <1800000>;
316e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1800000>;
317e4f3fb49SAkash Gajjar				regulator-state-mem {
318e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
319e4f3fb49SAkash Gajjar				};
320e4f3fb49SAkash Gajjar			};
321e4f3fb49SAkash Gajjar
322690e16baSOskari Lemmela			vcc3v0_touch: LDO_REG2 {
323690e16baSOskari Lemmela				regulator-name = "vcc3v0_touch";
324e4f3fb49SAkash Gajjar				regulator-always-on;
325e4f3fb49SAkash Gajjar				regulator-boot-on;
326690e16baSOskari Lemmela				regulator-min-microvolt = <3000000>;
327690e16baSOskari Lemmela				regulator-max-microvolt = <3000000>;
328e4f3fb49SAkash Gajjar				regulator-state-mem {
329e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
330e4f3fb49SAkash Gajjar				};
331e4f3fb49SAkash Gajjar			};
332e4f3fb49SAkash Gajjar
33378dd84ecSAkash Gajjar			vcca_1v8: LDO_REG3 {
33478dd84ecSAkash Gajjar				regulator-name = "vcca_1v8";
335e4f3fb49SAkash Gajjar				regulator-always-on;
336e4f3fb49SAkash Gajjar				regulator-boot-on;
337e4f3fb49SAkash Gajjar				regulator-min-microvolt = <1800000>;
338e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1800000>;
339e4f3fb49SAkash Gajjar				regulator-state-mem {
340e4f3fb49SAkash Gajjar					regulator-on-in-suspend;
341e4f3fb49SAkash Gajjar					regulator-suspend-microvolt = <1800000>;
342e4f3fb49SAkash Gajjar				};
343e4f3fb49SAkash Gajjar			};
344e4f3fb49SAkash Gajjar
345e4f3fb49SAkash Gajjar			vcc_sdio: LDO_REG4 {
346e4f3fb49SAkash Gajjar				regulator-name = "vcc_sdio";
347e4f3fb49SAkash Gajjar				regulator-always-on;
348e4f3fb49SAkash Gajjar				regulator-boot-on;
349e4f3fb49SAkash Gajjar				regulator-min-microvolt = <1800000>;
350e4f3fb49SAkash Gajjar				regulator-max-microvolt = <3000000>;
351e4f3fb49SAkash Gajjar				regulator-state-mem {
352e4f3fb49SAkash Gajjar					regulator-on-in-suspend;
353e4f3fb49SAkash Gajjar					regulator-suspend-microvolt = <3000000>;
354e4f3fb49SAkash Gajjar				};
355e4f3fb49SAkash Gajjar			};
356e4f3fb49SAkash Gajjar
357e4f3fb49SAkash Gajjar			vcca3v0_codec: LDO_REG5 {
358e4f3fb49SAkash Gajjar				regulator-name = "vcca3v0_codec";
359e4f3fb49SAkash Gajjar				regulator-always-on;
360e4f3fb49SAkash Gajjar				regulator-boot-on;
361e4f3fb49SAkash Gajjar				regulator-min-microvolt = <3000000>;
362e4f3fb49SAkash Gajjar				regulator-max-microvolt = <3000000>;
363e4f3fb49SAkash Gajjar				regulator-state-mem {
364e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
365e4f3fb49SAkash Gajjar				};
366e4f3fb49SAkash Gajjar			};
367e4f3fb49SAkash Gajjar
368e4f3fb49SAkash Gajjar			vcc_1v5: LDO_REG6 {
369e4f3fb49SAkash Gajjar				regulator-name = "vcc_1v5";
370e4f3fb49SAkash Gajjar				regulator-always-on;
371e4f3fb49SAkash Gajjar				regulator-boot-on;
372e4f3fb49SAkash Gajjar				regulator-min-microvolt = <1500000>;
373e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1500000>;
374e4f3fb49SAkash Gajjar				regulator-state-mem {
375e4f3fb49SAkash Gajjar					regulator-on-in-suspend;
376e4f3fb49SAkash Gajjar					regulator-suspend-microvolt = <1500000>;
377e4f3fb49SAkash Gajjar				};
378e4f3fb49SAkash Gajjar			};
379e4f3fb49SAkash Gajjar
380e4f3fb49SAkash Gajjar			vcca1v8_codec: LDO_REG7 {
381e4f3fb49SAkash Gajjar				regulator-name = "vcca1v8_codec";
382e4f3fb49SAkash Gajjar				regulator-always-on;
383e4f3fb49SAkash Gajjar				regulator-boot-on;
384e4f3fb49SAkash Gajjar				regulator-min-microvolt = <1800000>;
385e4f3fb49SAkash Gajjar				regulator-max-microvolt = <1800000>;
386e4f3fb49SAkash Gajjar				regulator-state-mem {
387e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
388e4f3fb49SAkash Gajjar				};
389e4f3fb49SAkash Gajjar			};
390e4f3fb49SAkash Gajjar
391e4f3fb49SAkash Gajjar			vcc_3v0: LDO_REG8 {
392e4f3fb49SAkash Gajjar				regulator-name = "vcc_3v0";
393e4f3fb49SAkash Gajjar				regulator-always-on;
394e4f3fb49SAkash Gajjar				regulator-boot-on;
395e4f3fb49SAkash Gajjar				regulator-min-microvolt = <3000000>;
396e4f3fb49SAkash Gajjar				regulator-max-microvolt = <3000000>;
397e4f3fb49SAkash Gajjar				regulator-state-mem {
398e4f3fb49SAkash Gajjar					regulator-on-in-suspend;
399e4f3fb49SAkash Gajjar					regulator-suspend-microvolt = <3000000>;
400e4f3fb49SAkash Gajjar				};
401e4f3fb49SAkash Gajjar			};
402e4f3fb49SAkash Gajjar
403e4f3fb49SAkash Gajjar			vcc3v3_s3: vcc_lan: SWITCH_REG1 {
404e4f3fb49SAkash Gajjar				regulator-name = "vcc3v3_s3";
405e4f3fb49SAkash Gajjar				regulator-always-on;
406e4f3fb49SAkash Gajjar				regulator-boot-on;
407e4f3fb49SAkash Gajjar				regulator-state-mem {
408e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
409e4f3fb49SAkash Gajjar				};
410e4f3fb49SAkash Gajjar			};
411e4f3fb49SAkash Gajjar
412e4f3fb49SAkash Gajjar			vcc3v3_s0: SWITCH_REG2 {
413e4f3fb49SAkash Gajjar				regulator-name = "vcc3v3_s0";
414e4f3fb49SAkash Gajjar				regulator-always-on;
415e4f3fb49SAkash Gajjar				regulator-boot-on;
416e4f3fb49SAkash Gajjar				regulator-state-mem {
417e4f3fb49SAkash Gajjar					regulator-off-in-suspend;
418e4f3fb49SAkash Gajjar				};
419e4f3fb49SAkash Gajjar			};
420e4f3fb49SAkash Gajjar		};
421e4f3fb49SAkash Gajjar	};
422e4f3fb49SAkash Gajjar
423e4f3fb49SAkash Gajjar	vdd_cpu_b: regulator@40 {
424e4f3fb49SAkash Gajjar		compatible = "silergy,syr827";
425e4f3fb49SAkash Gajjar		reg = <0x40>;
426690e16baSOskari Lemmela		fcs,suspend-voltage-selector = <1>;
427690e16baSOskari Lemmela		pinctrl-names = "default";
428690e16baSOskari Lemmela		pinctrl-0 = <&vsel1_gpio>;
429e4f3fb49SAkash Gajjar		regulator-name = "vdd_cpu_b";
430e4f3fb49SAkash Gajjar		regulator-min-microvolt = <712500>;
431e4f3fb49SAkash Gajjar		regulator-max-microvolt = <1500000>;
432e4f3fb49SAkash Gajjar		regulator-ramp-delay = <1000>;
433e4f3fb49SAkash Gajjar		regulator-always-on;
434e4f3fb49SAkash Gajjar		regulator-boot-on;
43578dd84ecSAkash Gajjar		vin-supply = <&vcc5v0_sys>;
436e4f3fb49SAkash Gajjar
437e4f3fb49SAkash Gajjar		regulator-state-mem {
438e4f3fb49SAkash Gajjar			regulator-off-in-suspend;
439e4f3fb49SAkash Gajjar		};
440e4f3fb49SAkash Gajjar	};
441e4f3fb49SAkash Gajjar
442e4f3fb49SAkash Gajjar	vdd_gpu: regulator@41 {
443e4f3fb49SAkash Gajjar		compatible = "silergy,syr828";
444e4f3fb49SAkash Gajjar		reg = <0x41>;
445e4f3fb49SAkash Gajjar		fcs,suspend-voltage-selector = <1>;
446690e16baSOskari Lemmela		pinctrl-names = "default";
447690e16baSOskari Lemmela		pinctrl-0 = <&vsel2_gpio>;
448e4f3fb49SAkash Gajjar		regulator-name = "vdd_gpu";
449e4f3fb49SAkash Gajjar		regulator-min-microvolt = <712500>;
450e4f3fb49SAkash Gajjar		regulator-max-microvolt = <1500000>;
451e4f3fb49SAkash Gajjar		regulator-ramp-delay = <1000>;
452e4f3fb49SAkash Gajjar		regulator-always-on;
453e4f3fb49SAkash Gajjar		regulator-boot-on;
45478dd84ecSAkash Gajjar		vin-supply = <&vcc5v0_sys>;
455e4f3fb49SAkash Gajjar
456e4f3fb49SAkash Gajjar		regulator-state-mem {
457e4f3fb49SAkash Gajjar			regulator-off-in-suspend;
458e4f3fb49SAkash Gajjar		};
459e4f3fb49SAkash Gajjar	};
460e4f3fb49SAkash Gajjar};
461e4f3fb49SAkash Gajjar
462e4f3fb49SAkash Gajjar&i2c1 {
463e4f3fb49SAkash Gajjar	i2c-scl-rising-time-ns = <300>;
464e4f3fb49SAkash Gajjar	i2c-scl-falling-time-ns = <15>;
465e4f3fb49SAkash Gajjar	status = "okay";
466e4f3fb49SAkash Gajjar};
467e4f3fb49SAkash Gajjar
468e4f3fb49SAkash Gajjar&i2c3 {
469e4f3fb49SAkash Gajjar	i2c-scl-rising-time-ns = <450>;
470e4f3fb49SAkash Gajjar	i2c-scl-falling-time-ns = <15>;
471e4f3fb49SAkash Gajjar	status = "okay";
472e4f3fb49SAkash Gajjar};
473e4f3fb49SAkash Gajjar
474e4f3fb49SAkash Gajjar&i2c4 {
475e4f3fb49SAkash Gajjar	i2c-scl-rising-time-ns = <600>;
476e4f3fb49SAkash Gajjar	i2c-scl-falling-time-ns = <20>;
477e4f3fb49SAkash Gajjar	status = "okay";
478e4f3fb49SAkash Gajjar
479e4f3fb49SAkash Gajjar	fusb0: typec-portc@22 {
480e4f3fb49SAkash Gajjar		compatible = "fcs,fusb302";
481e4f3fb49SAkash Gajjar		reg = <0x22>;
482e4f3fb49SAkash Gajjar		interrupt-parent = <&gpio1>;
483e4f3fb49SAkash Gajjar		interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
484e4f3fb49SAkash Gajjar		pinctrl-names = "default";
485e4f3fb49SAkash Gajjar		pinctrl-0 = <&fusb0_int>;
486e4f3fb49SAkash Gajjar		vbus-supply = <&vcc5v0_typec>;
487e4f3fb49SAkash Gajjar		status = "okay";
488e4f3fb49SAkash Gajjar	};
489e4f3fb49SAkash Gajjar};
490e4f3fb49SAkash Gajjar
491e4f3fb49SAkash Gajjar&i2s0 {
492e4f3fb49SAkash Gajjar	rockchip,playback-channels = <8>;
493e4f3fb49SAkash Gajjar	rockchip,capture-channels = <8>;
494e4f3fb49SAkash Gajjar	status = "okay";
495e4f3fb49SAkash Gajjar};
496e4f3fb49SAkash Gajjar
497e4f3fb49SAkash Gajjar&i2s1 {
498e4f3fb49SAkash Gajjar	rockchip,playback-channels = <2>;
499e4f3fb49SAkash Gajjar	rockchip,capture-channels = <2>;
500e4f3fb49SAkash Gajjar	status = "okay";
501e4f3fb49SAkash Gajjar};
502e4f3fb49SAkash Gajjar
503e4f3fb49SAkash Gajjar&i2s2 {
504e4f3fb49SAkash Gajjar	status = "okay";
505e4f3fb49SAkash Gajjar};
506e4f3fb49SAkash Gajjar
507e4f3fb49SAkash Gajjar&io_domains {
508e4f3fb49SAkash Gajjar	status = "okay";
509e4f3fb49SAkash Gajjar
510e4f3fb49SAkash Gajjar	bt656-supply = <&vcc1v8_dvp>;
511e4f3fb49SAkash Gajjar	audio-supply = <&vcca1v8_codec>;
512e4f3fb49SAkash Gajjar	sdmmc-supply = <&vcc_sdio>;
513e4f3fb49SAkash Gajjar	gpio1830-supply = <&vcc_3v0>;
514e4f3fb49SAkash Gajjar};
515e4f3fb49SAkash Gajjar
516e4f3fb49SAkash Gajjar&pmu_io_domains {
517e4f3fb49SAkash Gajjar	pmu1830-supply = <&vcc_3v0>;
518e4f3fb49SAkash Gajjar	status = "okay";
519e4f3fb49SAkash Gajjar};
520e4f3fb49SAkash Gajjar
521e4f3fb49SAkash Gajjar&pinctrl {
522e4f3fb49SAkash Gajjar	buttons {
523e4f3fb49SAkash Gajjar		pwrbtn: pwrbtn {
524e4f3fb49SAkash Gajjar			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
525e4f3fb49SAkash Gajjar		};
526e4f3fb49SAkash Gajjar	};
527e4f3fb49SAkash Gajjar
528e4f3fb49SAkash Gajjar	fusb302x {
529e4f3fb49SAkash Gajjar		fusb0_int: fusb0-int {
530e4f3fb49SAkash Gajjar			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
531e4f3fb49SAkash Gajjar		};
532e4f3fb49SAkash Gajjar	};
533e4f3fb49SAkash Gajjar
534e4f3fb49SAkash Gajjar	leds {
535e4f3fb49SAkash Gajjar		work_led_gpio: work_led-gpio {
536e4f3fb49SAkash Gajjar			rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
537e4f3fb49SAkash Gajjar		};
538e4f3fb49SAkash Gajjar
539e4f3fb49SAkash Gajjar		diy_led_gpio: diy_led-gpio {
540e4f3fb49SAkash Gajjar			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
541e4f3fb49SAkash Gajjar		};
542e4f3fb49SAkash Gajjar	};
543e4f3fb49SAkash Gajjar
544e4f3fb49SAkash Gajjar	pcie {
545e4f3fb49SAkash Gajjar		pcie_pwr_en: pcie-pwr-en {
546690e16baSOskari Lemmela			rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
547e4f3fb49SAkash Gajjar		};
548e4f3fb49SAkash Gajjar	};
549e4f3fb49SAkash Gajjar
550e4f3fb49SAkash Gajjar	pmic {
551e4f3fb49SAkash Gajjar		pmic_int_l: pmic-int-l {
552e4f3fb49SAkash Gajjar			rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
553e4f3fb49SAkash Gajjar		};
554e4f3fb49SAkash Gajjar
555e4f3fb49SAkash Gajjar		vsel1_gpio: vsel1-gpio {
556690e16baSOskari Lemmela			rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
557e4f3fb49SAkash Gajjar		};
558e4f3fb49SAkash Gajjar
559e4f3fb49SAkash Gajjar		vsel2_gpio: vsel2-gpio {
560e4f3fb49SAkash Gajjar			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
561e4f3fb49SAkash Gajjar		};
562e4f3fb49SAkash Gajjar	};
563e4f3fb49SAkash Gajjar
564e4f3fb49SAkash Gajjar	sdio-pwrseq {
565e4f3fb49SAkash Gajjar		wifi_enable_h: wifi-enable-h {
566e4f3fb49SAkash Gajjar			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
567e4f3fb49SAkash Gajjar		};
568e4f3fb49SAkash Gajjar	};
569e4f3fb49SAkash Gajjar
570e4f3fb49SAkash Gajjar	usb-typec {
571e4f3fb49SAkash Gajjar		vcc5v0_typec_en: vcc5v0_typec_en {
572e4f3fb49SAkash Gajjar			rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
573e4f3fb49SAkash Gajjar		};
574e4f3fb49SAkash Gajjar	};
575e4f3fb49SAkash Gajjar
576e4f3fb49SAkash Gajjar	usb2 {
577e4f3fb49SAkash Gajjar		vcc5v0_host_en: vcc5v0-host-en {
578e4f3fb49SAkash Gajjar			rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
579e4f3fb49SAkash Gajjar		};
580e4f3fb49SAkash Gajjar	};
581e4f3fb49SAkash Gajjar};
582e4f3fb49SAkash Gajjar
583e4f3fb49SAkash Gajjar&pwm0 {
584e4f3fb49SAkash Gajjar	status = "okay";
585e4f3fb49SAkash Gajjar};
586e4f3fb49SAkash Gajjar
587e4f3fb49SAkash Gajjar&pwm2 {
588e4f3fb49SAkash Gajjar	status = "okay";
589e4f3fb49SAkash Gajjar};
590e4f3fb49SAkash Gajjar
591e4f3fb49SAkash Gajjar&saradc {
592e4f3fb49SAkash Gajjar	vref-supply = <&vcca1v8_s3>;
593e4f3fb49SAkash Gajjar	status = "okay";
594e4f3fb49SAkash Gajjar};
595e4f3fb49SAkash Gajjar
596e4f3fb49SAkash Gajjar&sdmmc {
597e4f3fb49SAkash Gajjar	bus-width = <4>;
598e4f3fb49SAkash Gajjar	cap-mmc-highspeed;
599e4f3fb49SAkash Gajjar	cap-sd-highspeed;
600e4f3fb49SAkash Gajjar	cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
601e4f3fb49SAkash Gajjar	disable-wp;
602e4f3fb49SAkash Gajjar	max-frequency = <150000000>;
603e4f3fb49SAkash Gajjar	pinctrl-names = "default";
604e4f3fb49SAkash Gajjar	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
605e4f3fb49SAkash Gajjar	status = "okay";
606e4f3fb49SAkash Gajjar};
607e4f3fb49SAkash Gajjar
608e4f3fb49SAkash Gajjar&sdhci {
609e4f3fb49SAkash Gajjar	bus-width = <8>;
610e4f3fb49SAkash Gajjar	mmc-hs400-1_8v;
611e4f3fb49SAkash Gajjar	mmc-hs400-enhanced-strobe;
612e4f3fb49SAkash Gajjar	non-removable;
613e4f3fb49SAkash Gajjar	status = "okay";
614e4f3fb49SAkash Gajjar};
615e4f3fb49SAkash Gajjar
616e4f3fb49SAkash Gajjar&tcphy0 {
617e4f3fb49SAkash Gajjar	status = "okay";
618e4f3fb49SAkash Gajjar};
619e4f3fb49SAkash Gajjar
620e4f3fb49SAkash Gajjar&tcphy1 {
621e4f3fb49SAkash Gajjar	status = "okay";
622e4f3fb49SAkash Gajjar};
623e4f3fb49SAkash Gajjar
624e4f3fb49SAkash Gajjar&tsadc {
625e4f3fb49SAkash Gajjar	/* tshut mode 0:CRU 1:GPIO */
626e4f3fb49SAkash Gajjar	rockchip,hw-tshut-mode = <1>;
627e4f3fb49SAkash Gajjar	/* tshut polarity 0:LOW 1:HIGH */
628e4f3fb49SAkash Gajjar	rockchip,hw-tshut-polarity = <1>;
629e4f3fb49SAkash Gajjar	status = "okay";
630e4f3fb49SAkash Gajjar};
631e4f3fb49SAkash Gajjar
632e4f3fb49SAkash Gajjar&u2phy0 {
633e4f3fb49SAkash Gajjar	status = "okay";
634e4f3fb49SAkash Gajjar
635e4f3fb49SAkash Gajjar	u2phy0_otg: otg-port {
636e4f3fb49SAkash Gajjar		status = "okay";
637e4f3fb49SAkash Gajjar	};
638e4f3fb49SAkash Gajjar
639e4f3fb49SAkash Gajjar	u2phy0_host: host-port {
640e4f3fb49SAkash Gajjar		phy-supply = <&vcc5v0_host>;
641e4f3fb49SAkash Gajjar		status = "okay";
642e4f3fb49SAkash Gajjar	};
643e4f3fb49SAkash Gajjar};
644e4f3fb49SAkash Gajjar
645e4f3fb49SAkash Gajjar&u2phy1 {
646e4f3fb49SAkash Gajjar	status = "okay";
647e4f3fb49SAkash Gajjar
648e4f3fb49SAkash Gajjar	u2phy1_otg: otg-port {
649e4f3fb49SAkash Gajjar		status = "okay";
650e4f3fb49SAkash Gajjar	};
651e4f3fb49SAkash Gajjar
652e4f3fb49SAkash Gajjar	u2phy1_host: host-port {
653e4f3fb49SAkash Gajjar		phy-supply = <&vcc5v0_host>;
654e4f3fb49SAkash Gajjar		status = "okay";
655e4f3fb49SAkash Gajjar	};
656e4f3fb49SAkash Gajjar};
657e4f3fb49SAkash Gajjar
658e4f3fb49SAkash Gajjar&uart0 {
659e4f3fb49SAkash Gajjar	pinctrl-names = "default";
660e4f3fb49SAkash Gajjar	pinctrl-0 = <&uart0_xfer &uart0_cts>;
661e4f3fb49SAkash Gajjar	status = "okay";
662e4f3fb49SAkash Gajjar};
663e4f3fb49SAkash Gajjar
664e4f3fb49SAkash Gajjar&uart2 {
665e4f3fb49SAkash Gajjar	status = "okay";
666e4f3fb49SAkash Gajjar};
667e4f3fb49SAkash Gajjar
668e4f3fb49SAkash Gajjar&usb_host0_ehci {
669e4f3fb49SAkash Gajjar	status = "okay";
670e4f3fb49SAkash Gajjar};
671e4f3fb49SAkash Gajjar
672e4f3fb49SAkash Gajjar&usb_host0_ohci {
673e4f3fb49SAkash Gajjar	status = "okay";
674e4f3fb49SAkash Gajjar};
675e4f3fb49SAkash Gajjar
676e4f3fb49SAkash Gajjar&usb_host1_ehci {
677e4f3fb49SAkash Gajjar	status = "okay";
678e4f3fb49SAkash Gajjar};
679e4f3fb49SAkash Gajjar
680e4f3fb49SAkash Gajjar&usb_host1_ohci {
681e4f3fb49SAkash Gajjar	status = "okay";
682e4f3fb49SAkash Gajjar};
683e4f3fb49SAkash Gajjar
684e4f3fb49SAkash Gajjar&usbdrd3_0 {
685e4f3fb49SAkash Gajjar	status = "okay";
686e4f3fb49SAkash Gajjar};
687e4f3fb49SAkash Gajjar
688e4f3fb49SAkash Gajjar&usbdrd_dwc3_0 {
689e4f3fb49SAkash Gajjar	status = "okay";
690e4f3fb49SAkash Gajjar	dr_mode = "otg";
691e4f3fb49SAkash Gajjar};
692e4f3fb49SAkash Gajjar
693e4f3fb49SAkash Gajjar&usbdrd3_1 {
694e4f3fb49SAkash Gajjar	status = "okay";
695e4f3fb49SAkash Gajjar};
696e4f3fb49SAkash Gajjar
697e4f3fb49SAkash Gajjar&usbdrd_dwc3_1 {
698e4f3fb49SAkash Gajjar	status = "okay";
699e4f3fb49SAkash Gajjar	dr_mode = "host";
700e4f3fb49SAkash Gajjar};
701e4f3fb49SAkash Gajjar
702e4f3fb49SAkash Gajjar&vopb {
703e4f3fb49SAkash Gajjar	status = "okay";
704e4f3fb49SAkash Gajjar};
705e4f3fb49SAkash Gajjar
706e4f3fb49SAkash Gajjar&vopb_mmu {
707e4f3fb49SAkash Gajjar	status = "okay";
708e4f3fb49SAkash Gajjar};
709e4f3fb49SAkash Gajjar
710e4f3fb49SAkash Gajjar&vopl {
711e4f3fb49SAkash Gajjar	status = "okay";
712e4f3fb49SAkash Gajjar};
713e4f3fb49SAkash Gajjar
714e4f3fb49SAkash Gajjar&vopl_mmu {
715e4f3fb49SAkash Gajjar	status = "okay";
716e4f3fb49SAkash Gajjar};
717