xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3399-rockpro64.dtsi (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4c66ec88fSEmmanuel Vadot * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com>
5c66ec88fSEmmanuel Vadot */
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h>
8c66ec88fSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h>
9c66ec88fSEmmanuel Vadot#include "rk3399.dtsi"
10c66ec88fSEmmanuel Vadot#include "rk3399-opp.dtsi"
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadot/ {
13c66ec88fSEmmanuel Vadot	chosen {
14c66ec88fSEmmanuel Vadot		stdout-path = "serial2:1500000n8";
15c66ec88fSEmmanuel Vadot	};
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot	clkin_gmac: external-gmac-clock {
18c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
19c66ec88fSEmmanuel Vadot		clock-frequency = <125000000>;
20c66ec88fSEmmanuel Vadot		clock-output-names = "clkin_gmac";
21c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
22c66ec88fSEmmanuel Vadot	};
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot	gpio-keys {
25c66ec88fSEmmanuel Vadot		compatible = "gpio-keys";
26c66ec88fSEmmanuel Vadot		autorepeat;
27c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
28c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pwrbtn>;
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot		power {
31c66ec88fSEmmanuel Vadot			debounce-interval = <100>;
32c66ec88fSEmmanuel Vadot			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
33c66ec88fSEmmanuel Vadot			label = "GPIO Key Power";
34c66ec88fSEmmanuel Vadot			linux,code = <KEY_POWER>;
35c66ec88fSEmmanuel Vadot			wakeup-source;
36c66ec88fSEmmanuel Vadot		};
37c66ec88fSEmmanuel Vadot	};
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot	leds {
40c66ec88fSEmmanuel Vadot		compatible = "gpio-leds";
41c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
42c66ec88fSEmmanuel Vadot		pinctrl-0 = <&work_led_pin>, <&diy_led_pin>;
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot		work_led: led-0 {
45c66ec88fSEmmanuel Vadot			label = "work";
46c66ec88fSEmmanuel Vadot			default-state = "on";
47c66ec88fSEmmanuel Vadot			gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
48c66ec88fSEmmanuel Vadot		};
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot		diy_led: led-1 {
51c66ec88fSEmmanuel Vadot			label = "diy";
52c66ec88fSEmmanuel Vadot			default-state = "off";
53c66ec88fSEmmanuel Vadot			gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
54c66ec88fSEmmanuel Vadot		};
55c66ec88fSEmmanuel Vadot	};
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot	fan: pwm-fan {
58c66ec88fSEmmanuel Vadot		compatible = "pwm-fan";
59c66ec88fSEmmanuel Vadot		#cooling-cells = <2>;
60c66ec88fSEmmanuel Vadot		fan-supply = <&vcc12v_dcin>;
61c66ec88fSEmmanuel Vadot		pwms = <&pwm1 0 50000 0>;
62c66ec88fSEmmanuel Vadot	};
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadot	sdio_pwrseq: sdio-pwrseq {
65c66ec88fSEmmanuel Vadot		compatible = "mmc-pwrseq-simple";
66c66ec88fSEmmanuel Vadot		clocks = <&rk808 1>;
67c66ec88fSEmmanuel Vadot		clock-names = "ext_clock";
68c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
69c66ec88fSEmmanuel Vadot		pinctrl-0 = <&wifi_enable_h>;
70c66ec88fSEmmanuel Vadot		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
71c66ec88fSEmmanuel Vadot	};
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadot	sound {
74c66ec88fSEmmanuel Vadot		compatible = "audio-graph-card";
75*5def4c47SEmmanuel Vadot		label = "Analog";
76c66ec88fSEmmanuel Vadot		dais = <&i2s1_p0>;
77c66ec88fSEmmanuel Vadot	};
78c66ec88fSEmmanuel Vadot
79*5def4c47SEmmanuel Vadot	sound-dit {
80*5def4c47SEmmanuel Vadot		compatible = "audio-graph-card";
81*5def4c47SEmmanuel Vadot		label = "SPDIF";
82*5def4c47SEmmanuel Vadot		dais = <&spdif_p0>;
83*5def4c47SEmmanuel Vadot	};
84*5def4c47SEmmanuel Vadot
85*5def4c47SEmmanuel Vadot	spdif-dit {
86*5def4c47SEmmanuel Vadot		compatible = "linux,spdif-dit";
87*5def4c47SEmmanuel Vadot		#sound-dai-cells = <0>;
88*5def4c47SEmmanuel Vadot
89*5def4c47SEmmanuel Vadot		port {
90*5def4c47SEmmanuel Vadot			dit_p0_0: endpoint {
91*5def4c47SEmmanuel Vadot				remote-endpoint = <&spdif_p0_0>;
92*5def4c47SEmmanuel Vadot			};
93*5def4c47SEmmanuel Vadot		};
94*5def4c47SEmmanuel Vadot	};
95*5def4c47SEmmanuel Vadot
96c66ec88fSEmmanuel Vadot	vcc12v_dcin: vcc12v-dcin {
97c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
98c66ec88fSEmmanuel Vadot		regulator-name = "vcc12v_dcin";
99c66ec88fSEmmanuel Vadot		regulator-always-on;
100c66ec88fSEmmanuel Vadot		regulator-boot-on;
101c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <12000000>;
102c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <12000000>;
103c66ec88fSEmmanuel Vadot	};
104c66ec88fSEmmanuel Vadot
105c66ec88fSEmmanuel Vadot	/* switched by pmic_sleep */
106c66ec88fSEmmanuel Vadot	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
107c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
108c66ec88fSEmmanuel Vadot		regulator-name = "vcc1v8_s3";
109c66ec88fSEmmanuel Vadot		regulator-always-on;
110c66ec88fSEmmanuel Vadot		regulator-boot-on;
111c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
112c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
113c66ec88fSEmmanuel Vadot		vin-supply = <&vcc_1v8>;
114c66ec88fSEmmanuel Vadot	};
115c66ec88fSEmmanuel Vadot
116c66ec88fSEmmanuel Vadot	/* micro SD card power */
117c66ec88fSEmmanuel Vadot	vcc3v0_sd: vcc3v0-sd {
118c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
119c66ec88fSEmmanuel Vadot		enable-active-high;
120c66ec88fSEmmanuel Vadot		gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
121c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
122c66ec88fSEmmanuel Vadot		pinctrl-0 = <&sdmmc0_pwr_h>;
123c66ec88fSEmmanuel Vadot		regulator-name = "vcc3v0_sd";
124c66ec88fSEmmanuel Vadot		regulator-always-on;
125c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <3000000>;
126c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <3000000>;
127c66ec88fSEmmanuel Vadot		vin-supply = <&vcc3v3_sys>;
128c66ec88fSEmmanuel Vadot
129c66ec88fSEmmanuel Vadot		regulator-state-mem {
130c66ec88fSEmmanuel Vadot			regulator-off-in-suspend;
131c66ec88fSEmmanuel Vadot		};
132c66ec88fSEmmanuel Vadot	};
133c66ec88fSEmmanuel Vadot
134c66ec88fSEmmanuel Vadot	vcc3v3_pcie: vcc3v3-pcie-regulator {
135c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
136c66ec88fSEmmanuel Vadot		enable-active-high;
137c66ec88fSEmmanuel Vadot		gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
138c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
139c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pcie_pwr_en>;
140c66ec88fSEmmanuel Vadot		regulator-name = "vcc3v3_pcie";
141c66ec88fSEmmanuel Vadot		regulator-always-on;
142c66ec88fSEmmanuel Vadot		regulator-boot-on;
143c66ec88fSEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
144c66ec88fSEmmanuel Vadot	};
145c66ec88fSEmmanuel Vadot
146c66ec88fSEmmanuel Vadot	vcc3v3_sys: vcc3v3-sys {
147c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
148c66ec88fSEmmanuel Vadot		regulator-name = "vcc3v3_sys";
149c66ec88fSEmmanuel Vadot		regulator-always-on;
150c66ec88fSEmmanuel Vadot		regulator-boot-on;
151c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
152c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
153c66ec88fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
154c66ec88fSEmmanuel Vadot	};
155c66ec88fSEmmanuel Vadot
156c66ec88fSEmmanuel Vadot	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
157c66ec88fSEmmanuel Vadot	vcc5v0_host: vcc5v0-host-regulator {
158c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
159c66ec88fSEmmanuel Vadot		enable-active-high;
160c66ec88fSEmmanuel Vadot		gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
161c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
162c66ec88fSEmmanuel Vadot		pinctrl-0 = <&vcc5v0_host_en>;
163c66ec88fSEmmanuel Vadot		regulator-name = "vcc5v0_host";
164c66ec88fSEmmanuel Vadot		regulator-always-on;
165c66ec88fSEmmanuel Vadot		vin-supply = <&vcc5v0_usb>;
166c66ec88fSEmmanuel Vadot	};
167c66ec88fSEmmanuel Vadot
168c66ec88fSEmmanuel Vadot	vcc5v0_typec: vcc5v0-typec-regulator {
169c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
170c66ec88fSEmmanuel Vadot		enable-active-high;
171c66ec88fSEmmanuel Vadot		gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
172c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
173c66ec88fSEmmanuel Vadot		pinctrl-0 = <&vcc5v0_typec_en>;
174c66ec88fSEmmanuel Vadot		regulator-name = "vcc5v0_typec";
175c66ec88fSEmmanuel Vadot		regulator-always-on;
176c66ec88fSEmmanuel Vadot		vin-supply = <&vcc5v0_usb>;
177c66ec88fSEmmanuel Vadot	};
178c66ec88fSEmmanuel Vadot
179c66ec88fSEmmanuel Vadot	vcc5v0_sys: vcc5v0-sys {
180c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
181c66ec88fSEmmanuel Vadot		regulator-name = "vcc5v0_sys";
182c66ec88fSEmmanuel Vadot		regulator-always-on;
183c66ec88fSEmmanuel Vadot		regulator-boot-on;
184c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
185c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
186c66ec88fSEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
187c66ec88fSEmmanuel Vadot	};
188c66ec88fSEmmanuel Vadot
189c66ec88fSEmmanuel Vadot	vcc5v0_usb: vcc5v0-usb {
190c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
191c66ec88fSEmmanuel Vadot		regulator-name = "vcc5v0_usb";
192c66ec88fSEmmanuel Vadot		regulator-always-on;
193c66ec88fSEmmanuel Vadot		regulator-boot-on;
194c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
195c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
196c66ec88fSEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
197c66ec88fSEmmanuel Vadot	};
198c66ec88fSEmmanuel Vadot
199c66ec88fSEmmanuel Vadot	vdd_log: vdd-log {
200c66ec88fSEmmanuel Vadot		compatible = "pwm-regulator";
201c66ec88fSEmmanuel Vadot		pwms = <&pwm2 0 25000 1>;
202c66ec88fSEmmanuel Vadot		regulator-name = "vdd_log";
203c66ec88fSEmmanuel Vadot		regulator-always-on;
204c66ec88fSEmmanuel Vadot		regulator-boot-on;
205c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <800000>;
206c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1700000>;
207c66ec88fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
208c66ec88fSEmmanuel Vadot	};
209c66ec88fSEmmanuel Vadot};
210c66ec88fSEmmanuel Vadot
211c66ec88fSEmmanuel Vadot&cpu_l0 {
212c66ec88fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_l>;
213c66ec88fSEmmanuel Vadot};
214c66ec88fSEmmanuel Vadot
215c66ec88fSEmmanuel Vadot&cpu_l1 {
216c66ec88fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_l>;
217c66ec88fSEmmanuel Vadot};
218c66ec88fSEmmanuel Vadot
219c66ec88fSEmmanuel Vadot&cpu_l2 {
220c66ec88fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_l>;
221c66ec88fSEmmanuel Vadot};
222c66ec88fSEmmanuel Vadot
223c66ec88fSEmmanuel Vadot&cpu_l3 {
224c66ec88fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_l>;
225c66ec88fSEmmanuel Vadot};
226c66ec88fSEmmanuel Vadot
227c66ec88fSEmmanuel Vadot&cpu_b0 {
228c66ec88fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_b>;
229c66ec88fSEmmanuel Vadot};
230c66ec88fSEmmanuel Vadot
231c66ec88fSEmmanuel Vadot&cpu_b1 {
232c66ec88fSEmmanuel Vadot	cpu-supply = <&vdd_cpu_b>;
233c66ec88fSEmmanuel Vadot};
234c66ec88fSEmmanuel Vadot
235c66ec88fSEmmanuel Vadot&emmc_phy {
236c66ec88fSEmmanuel Vadot	status = "okay";
237c66ec88fSEmmanuel Vadot};
238c66ec88fSEmmanuel Vadot
239c66ec88fSEmmanuel Vadot&gmac {
240c66ec88fSEmmanuel Vadot	assigned-clocks = <&cru SCLK_RMII_SRC>;
241c66ec88fSEmmanuel Vadot	assigned-clock-parents = <&clkin_gmac>;
242c66ec88fSEmmanuel Vadot	clock_in_out = "input";
243c66ec88fSEmmanuel Vadot	phy-supply = <&vcc_lan>;
244c66ec88fSEmmanuel Vadot	phy-mode = "rgmii";
245c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
246c66ec88fSEmmanuel Vadot	pinctrl-0 = <&rgmii_pins>;
247c66ec88fSEmmanuel Vadot	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
248c66ec88fSEmmanuel Vadot	snps,reset-active-low;
249c66ec88fSEmmanuel Vadot	snps,reset-delays-us = <0 10000 50000>;
250c66ec88fSEmmanuel Vadot	tx_delay = <0x28>;
251c66ec88fSEmmanuel Vadot	rx_delay = <0x11>;
252c66ec88fSEmmanuel Vadot	status = "okay";
253c66ec88fSEmmanuel Vadot};
254c66ec88fSEmmanuel Vadot
255c66ec88fSEmmanuel Vadot&hdmi {
256c66ec88fSEmmanuel Vadot	ddc-i2c-bus = <&i2c3>;
257c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
258c66ec88fSEmmanuel Vadot	pinctrl-0 = <&hdmi_cec>;
259c66ec88fSEmmanuel Vadot	status = "okay";
260c66ec88fSEmmanuel Vadot};
261c66ec88fSEmmanuel Vadot
262c66ec88fSEmmanuel Vadot&hdmi_sound {
263c66ec88fSEmmanuel Vadot	status = "okay";
264c66ec88fSEmmanuel Vadot};
265c66ec88fSEmmanuel Vadot
266c66ec88fSEmmanuel Vadot&gpu {
267c66ec88fSEmmanuel Vadot	mali-supply = <&vdd_gpu>;
268c66ec88fSEmmanuel Vadot	status = "okay";
269c66ec88fSEmmanuel Vadot};
270c66ec88fSEmmanuel Vadot
271c66ec88fSEmmanuel Vadot&i2c0 {
272c66ec88fSEmmanuel Vadot	clock-frequency = <400000>;
273c66ec88fSEmmanuel Vadot	i2c-scl-rising-time-ns = <168>;
274c66ec88fSEmmanuel Vadot	i2c-scl-falling-time-ns = <4>;
275c66ec88fSEmmanuel Vadot	status = "okay";
276c66ec88fSEmmanuel Vadot
277c66ec88fSEmmanuel Vadot	rk808: pmic@1b {
278c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk808";
279c66ec88fSEmmanuel Vadot		reg = <0x1b>;
280c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio3>;
281c66ec88fSEmmanuel Vadot		interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
282c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
283c66ec88fSEmmanuel Vadot		clock-output-names = "xin32k", "rk808-clkout2";
284c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
285c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pmic_int_l>;
286c66ec88fSEmmanuel Vadot		rockchip,system-power-controller;
287c66ec88fSEmmanuel Vadot		wakeup-source;
288c66ec88fSEmmanuel Vadot
289c66ec88fSEmmanuel Vadot		vcc1-supply = <&vcc5v0_sys>;
290c66ec88fSEmmanuel Vadot		vcc2-supply = <&vcc5v0_sys>;
291c66ec88fSEmmanuel Vadot		vcc3-supply = <&vcc5v0_sys>;
292c66ec88fSEmmanuel Vadot		vcc4-supply = <&vcc5v0_sys>;
293c66ec88fSEmmanuel Vadot		vcc6-supply = <&vcc5v0_sys>;
294c66ec88fSEmmanuel Vadot		vcc7-supply = <&vcc5v0_sys>;
295c66ec88fSEmmanuel Vadot		vcc8-supply = <&vcc3v3_sys>;
296c66ec88fSEmmanuel Vadot		vcc9-supply = <&vcc5v0_sys>;
297c66ec88fSEmmanuel Vadot		vcc10-supply = <&vcc5v0_sys>;
298c66ec88fSEmmanuel Vadot		vcc11-supply = <&vcc5v0_sys>;
299c66ec88fSEmmanuel Vadot		vcc12-supply = <&vcc3v3_sys>;
300c66ec88fSEmmanuel Vadot		vddio-supply = <&vcca_1v8>;
301c66ec88fSEmmanuel Vadot
302c66ec88fSEmmanuel Vadot		regulators {
303c66ec88fSEmmanuel Vadot			vdd_center: DCDC_REG1 {
304c66ec88fSEmmanuel Vadot				regulator-name = "vdd_center";
305c66ec88fSEmmanuel Vadot				regulator-always-on;
306c66ec88fSEmmanuel Vadot				regulator-boot-on;
307c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <750000>;
308c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1350000>;
309c66ec88fSEmmanuel Vadot				regulator-ramp-delay = <6001>;
310c66ec88fSEmmanuel Vadot				regulator-state-mem {
311c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
312c66ec88fSEmmanuel Vadot				};
313c66ec88fSEmmanuel Vadot			};
314c66ec88fSEmmanuel Vadot
315c66ec88fSEmmanuel Vadot			vdd_cpu_l: DCDC_REG2 {
316c66ec88fSEmmanuel Vadot				regulator-name = "vdd_cpu_l";
317c66ec88fSEmmanuel Vadot				regulator-always-on;
318c66ec88fSEmmanuel Vadot				regulator-boot-on;
319c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <750000>;
320c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1350000>;
321c66ec88fSEmmanuel Vadot				regulator-ramp-delay = <6001>;
322c66ec88fSEmmanuel Vadot				regulator-state-mem {
323c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
324c66ec88fSEmmanuel Vadot				};
325c66ec88fSEmmanuel Vadot			};
326c66ec88fSEmmanuel Vadot
327c66ec88fSEmmanuel Vadot			vcc_ddr: DCDC_REG3 {
328c66ec88fSEmmanuel Vadot				regulator-name = "vcc_ddr";
329c66ec88fSEmmanuel Vadot				regulator-always-on;
330c66ec88fSEmmanuel Vadot				regulator-boot-on;
331c66ec88fSEmmanuel Vadot				regulator-state-mem {
332c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
333c66ec88fSEmmanuel Vadot				};
334c66ec88fSEmmanuel Vadot			};
335c66ec88fSEmmanuel Vadot
336c66ec88fSEmmanuel Vadot			vcc_1v8: DCDC_REG4 {
337c66ec88fSEmmanuel Vadot				regulator-name = "vcc_1v8";
338c66ec88fSEmmanuel Vadot				regulator-always-on;
339c66ec88fSEmmanuel Vadot				regulator-boot-on;
340c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
341c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
342c66ec88fSEmmanuel Vadot				regulator-state-mem {
343c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
344c66ec88fSEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
345c66ec88fSEmmanuel Vadot				};
346c66ec88fSEmmanuel Vadot			};
347c66ec88fSEmmanuel Vadot
348c66ec88fSEmmanuel Vadot			vcc1v8_dvp: LDO_REG1 {
349c66ec88fSEmmanuel Vadot				regulator-name = "vcc1v8_dvp";
350c66ec88fSEmmanuel Vadot				regulator-always-on;
351c66ec88fSEmmanuel Vadot				regulator-boot-on;
352c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
353c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
354c66ec88fSEmmanuel Vadot				regulator-state-mem {
355c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
356c66ec88fSEmmanuel Vadot				};
357c66ec88fSEmmanuel Vadot			};
358c66ec88fSEmmanuel Vadot
359c66ec88fSEmmanuel Vadot			vcc3v0_touch: LDO_REG2 {
360c66ec88fSEmmanuel Vadot				regulator-name = "vcc3v0_touch";
361c66ec88fSEmmanuel Vadot				regulator-always-on;
362c66ec88fSEmmanuel Vadot				regulator-boot-on;
363c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <3000000>;
364c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
365c66ec88fSEmmanuel Vadot				regulator-state-mem {
366c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
367c66ec88fSEmmanuel Vadot				};
368c66ec88fSEmmanuel Vadot			};
369c66ec88fSEmmanuel Vadot
370c66ec88fSEmmanuel Vadot			vcca_1v8: LDO_REG3 {
371c66ec88fSEmmanuel Vadot				regulator-name = "vcca_1v8";
372c66ec88fSEmmanuel Vadot				regulator-always-on;
373c66ec88fSEmmanuel Vadot				regulator-boot-on;
374c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
375c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
376c66ec88fSEmmanuel Vadot				regulator-state-mem {
377c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
378c66ec88fSEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
379c66ec88fSEmmanuel Vadot				};
380c66ec88fSEmmanuel Vadot			};
381c66ec88fSEmmanuel Vadot
382c66ec88fSEmmanuel Vadot			vcc_sdio: LDO_REG4 {
383c66ec88fSEmmanuel Vadot				regulator-name = "vcc_sdio";
384c66ec88fSEmmanuel Vadot				regulator-always-on;
385c66ec88fSEmmanuel Vadot				regulator-boot-on;
386c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
387c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
388c66ec88fSEmmanuel Vadot				regulator-state-mem {
389c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
390c66ec88fSEmmanuel Vadot					regulator-suspend-microvolt = <3000000>;
391c66ec88fSEmmanuel Vadot				};
392c66ec88fSEmmanuel Vadot			};
393c66ec88fSEmmanuel Vadot
394c66ec88fSEmmanuel Vadot			vcca3v0_codec: LDO_REG5 {
395c66ec88fSEmmanuel Vadot				regulator-name = "vcca3v0_codec";
396c66ec88fSEmmanuel Vadot				regulator-always-on;
397c66ec88fSEmmanuel Vadot				regulator-boot-on;
398c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <3000000>;
399c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
400c66ec88fSEmmanuel Vadot				regulator-state-mem {
401c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
402c66ec88fSEmmanuel Vadot				};
403c66ec88fSEmmanuel Vadot			};
404c66ec88fSEmmanuel Vadot
405c66ec88fSEmmanuel Vadot			vcc_1v5: LDO_REG6 {
406c66ec88fSEmmanuel Vadot				regulator-name = "vcc_1v5";
407c66ec88fSEmmanuel Vadot				regulator-always-on;
408c66ec88fSEmmanuel Vadot				regulator-boot-on;
409c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1500000>;
410c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
411c66ec88fSEmmanuel Vadot				regulator-state-mem {
412c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
413c66ec88fSEmmanuel Vadot					regulator-suspend-microvolt = <1500000>;
414c66ec88fSEmmanuel Vadot				};
415c66ec88fSEmmanuel Vadot			};
416c66ec88fSEmmanuel Vadot
417c66ec88fSEmmanuel Vadot			vcca1v8_codec: LDO_REG7 {
418c66ec88fSEmmanuel Vadot				regulator-name = "vcca1v8_codec";
419c66ec88fSEmmanuel Vadot				regulator-always-on;
420c66ec88fSEmmanuel Vadot				regulator-boot-on;
421c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
422c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
423c66ec88fSEmmanuel Vadot				regulator-state-mem {
424c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
425c66ec88fSEmmanuel Vadot				};
426c66ec88fSEmmanuel Vadot			};
427c66ec88fSEmmanuel Vadot
428c66ec88fSEmmanuel Vadot			vcc_3v0: LDO_REG8 {
429c66ec88fSEmmanuel Vadot				regulator-name = "vcc_3v0";
430c66ec88fSEmmanuel Vadot				regulator-always-on;
431c66ec88fSEmmanuel Vadot				regulator-boot-on;
432c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <3000000>;
433c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
434c66ec88fSEmmanuel Vadot				regulator-state-mem {
435c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
436c66ec88fSEmmanuel Vadot					regulator-suspend-microvolt = <3000000>;
437c66ec88fSEmmanuel Vadot				};
438c66ec88fSEmmanuel Vadot			};
439c66ec88fSEmmanuel Vadot
440c66ec88fSEmmanuel Vadot			vcc3v3_s3: vcc_lan: SWITCH_REG1 {
441c66ec88fSEmmanuel Vadot				regulator-name = "vcc3v3_s3";
442c66ec88fSEmmanuel Vadot				regulator-always-on;
443c66ec88fSEmmanuel Vadot				regulator-boot-on;
444c66ec88fSEmmanuel Vadot				regulator-state-mem {
445c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
446c66ec88fSEmmanuel Vadot				};
447c66ec88fSEmmanuel Vadot			};
448c66ec88fSEmmanuel Vadot
449c66ec88fSEmmanuel Vadot			vcc3v3_s0: SWITCH_REG2 {
450c66ec88fSEmmanuel Vadot				regulator-name = "vcc3v3_s0";
451c66ec88fSEmmanuel Vadot				regulator-always-on;
452c66ec88fSEmmanuel Vadot				regulator-boot-on;
453c66ec88fSEmmanuel Vadot				regulator-state-mem {
454c66ec88fSEmmanuel Vadot					regulator-off-in-suspend;
455c66ec88fSEmmanuel Vadot				};
456c66ec88fSEmmanuel Vadot			};
457c66ec88fSEmmanuel Vadot		};
458c66ec88fSEmmanuel Vadot	};
459c66ec88fSEmmanuel Vadot
460c66ec88fSEmmanuel Vadot	vdd_cpu_b: regulator@40 {
461c66ec88fSEmmanuel Vadot		compatible = "silergy,syr827";
462c66ec88fSEmmanuel Vadot		reg = <0x40>;
463c66ec88fSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
464c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
465c66ec88fSEmmanuel Vadot		pinctrl-0 = <&vsel1_pin>;
466c66ec88fSEmmanuel Vadot		regulator-name = "vdd_cpu_b";
467c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <712500>;
468c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1500000>;
469c66ec88fSEmmanuel Vadot		regulator-ramp-delay = <1000>;
470c66ec88fSEmmanuel Vadot		regulator-always-on;
471c66ec88fSEmmanuel Vadot		regulator-boot-on;
472c66ec88fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
473c66ec88fSEmmanuel Vadot
474c66ec88fSEmmanuel Vadot		regulator-state-mem {
475c66ec88fSEmmanuel Vadot			regulator-off-in-suspend;
476c66ec88fSEmmanuel Vadot		};
477c66ec88fSEmmanuel Vadot	};
478c66ec88fSEmmanuel Vadot
479c66ec88fSEmmanuel Vadot	vdd_gpu: regulator@41 {
480c66ec88fSEmmanuel Vadot		compatible = "silergy,syr828";
481c66ec88fSEmmanuel Vadot		reg = <0x41>;
482c66ec88fSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
483c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
484c66ec88fSEmmanuel Vadot		pinctrl-0 = <&vsel2_pin>;
485c66ec88fSEmmanuel Vadot		regulator-name = "vdd_gpu";
486c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <712500>;
487c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1500000>;
488c66ec88fSEmmanuel Vadot		regulator-ramp-delay = <1000>;
489c66ec88fSEmmanuel Vadot		regulator-always-on;
490c66ec88fSEmmanuel Vadot		regulator-boot-on;
491c66ec88fSEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
492c66ec88fSEmmanuel Vadot
493c66ec88fSEmmanuel Vadot		regulator-state-mem {
494c66ec88fSEmmanuel Vadot			regulator-off-in-suspend;
495c66ec88fSEmmanuel Vadot		};
496c66ec88fSEmmanuel Vadot	};
497c66ec88fSEmmanuel Vadot};
498c66ec88fSEmmanuel Vadot
499c66ec88fSEmmanuel Vadot&i2c1 {
500c66ec88fSEmmanuel Vadot	i2c-scl-rising-time-ns = <300>;
501c66ec88fSEmmanuel Vadot	i2c-scl-falling-time-ns = <15>;
502c66ec88fSEmmanuel Vadot	status = "okay";
503c66ec88fSEmmanuel Vadot};
504c66ec88fSEmmanuel Vadot
505c66ec88fSEmmanuel Vadot&i2c3 {
506c66ec88fSEmmanuel Vadot	i2c-scl-rising-time-ns = <450>;
507c66ec88fSEmmanuel Vadot	i2c-scl-falling-time-ns = <15>;
508c66ec88fSEmmanuel Vadot	status = "okay";
509c66ec88fSEmmanuel Vadot};
510c66ec88fSEmmanuel Vadot
511c66ec88fSEmmanuel Vadot&i2c4 {
512c66ec88fSEmmanuel Vadot	i2c-scl-rising-time-ns = <600>;
513c66ec88fSEmmanuel Vadot	i2c-scl-falling-time-ns = <20>;
514c66ec88fSEmmanuel Vadot	status = "okay";
515c66ec88fSEmmanuel Vadot
516c66ec88fSEmmanuel Vadot	fusb0: typec-portc@22 {
517c66ec88fSEmmanuel Vadot		compatible = "fcs,fusb302";
518c66ec88fSEmmanuel Vadot		reg = <0x22>;
519c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio1>;
520c66ec88fSEmmanuel Vadot		interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
521c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
522c66ec88fSEmmanuel Vadot		pinctrl-0 = <&fusb0_int>;
523c66ec88fSEmmanuel Vadot		vbus-supply = <&vcc5v0_typec>;
524c66ec88fSEmmanuel Vadot		status = "okay";
525c66ec88fSEmmanuel Vadot	};
526c66ec88fSEmmanuel Vadot};
527c66ec88fSEmmanuel Vadot
528c66ec88fSEmmanuel Vadot&i2s0 {
529c66ec88fSEmmanuel Vadot	rockchip,playback-channels = <8>;
530c66ec88fSEmmanuel Vadot	rockchip,capture-channels = <8>;
531c66ec88fSEmmanuel Vadot	status = "okay";
532c66ec88fSEmmanuel Vadot};
533c66ec88fSEmmanuel Vadot
534c66ec88fSEmmanuel Vadot&i2s1 {
535c66ec88fSEmmanuel Vadot	rockchip,playback-channels = <2>;
536c66ec88fSEmmanuel Vadot	rockchip,capture-channels = <2>;
537c66ec88fSEmmanuel Vadot	status = "okay";
538c66ec88fSEmmanuel Vadot
539c66ec88fSEmmanuel Vadot	i2s1_p0: port {
540c66ec88fSEmmanuel Vadot		i2s1_p0_0: endpoint {
541c66ec88fSEmmanuel Vadot			dai-format = "i2s";
542c66ec88fSEmmanuel Vadot			mclk-fs = <256>;
543c66ec88fSEmmanuel Vadot			remote-endpoint = <&es8316_p0_0>;
544c66ec88fSEmmanuel Vadot		};
545c66ec88fSEmmanuel Vadot	};
546c66ec88fSEmmanuel Vadot};
547c66ec88fSEmmanuel Vadot
548c66ec88fSEmmanuel Vadot&i2s2 {
549c66ec88fSEmmanuel Vadot	status = "okay";
550c66ec88fSEmmanuel Vadot};
551c66ec88fSEmmanuel Vadot
552c66ec88fSEmmanuel Vadot&io_domains {
553c66ec88fSEmmanuel Vadot	status = "okay";
554c66ec88fSEmmanuel Vadot
555c66ec88fSEmmanuel Vadot	bt656-supply = <&vcc1v8_dvp>;
556c66ec88fSEmmanuel Vadot	audio-supply = <&vcc_3v0>;
557c66ec88fSEmmanuel Vadot	sdmmc-supply = <&vcc_sdio>;
558c66ec88fSEmmanuel Vadot	gpio1830-supply = <&vcc_3v0>;
559c66ec88fSEmmanuel Vadot};
560c66ec88fSEmmanuel Vadot
561c66ec88fSEmmanuel Vadot&pcie0 {
562c66ec88fSEmmanuel Vadot	ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
563c66ec88fSEmmanuel Vadot	num-lanes = <4>;
564c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
565c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pcie_perst>;
566c66ec88fSEmmanuel Vadot	vpcie12v-supply = <&vcc12v_dcin>;
567c66ec88fSEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie>;
568c66ec88fSEmmanuel Vadot	status = "okay";
569c66ec88fSEmmanuel Vadot};
570c66ec88fSEmmanuel Vadot
571c66ec88fSEmmanuel Vadot&pcie_phy {
572c66ec88fSEmmanuel Vadot	status = "okay";
573c66ec88fSEmmanuel Vadot};
574c66ec88fSEmmanuel Vadot
575c66ec88fSEmmanuel Vadot&pmu_io_domains {
576c66ec88fSEmmanuel Vadot	pmu1830-supply = <&vcc_3v0>;
577c66ec88fSEmmanuel Vadot	status = "okay";
578c66ec88fSEmmanuel Vadot};
579c66ec88fSEmmanuel Vadot
580c66ec88fSEmmanuel Vadot&pinctrl {
581c66ec88fSEmmanuel Vadot	bt {
582c66ec88fSEmmanuel Vadot		bt_enable_h: bt-enable-h {
583c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
584c66ec88fSEmmanuel Vadot		};
585c66ec88fSEmmanuel Vadot
586c66ec88fSEmmanuel Vadot		bt_host_wake_l: bt-host-wake-l {
587c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
588c66ec88fSEmmanuel Vadot		};
589c66ec88fSEmmanuel Vadot
590c66ec88fSEmmanuel Vadot		bt_wake_l: bt-wake-l {
591c66ec88fSEmmanuel Vadot			rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
592c66ec88fSEmmanuel Vadot		};
593c66ec88fSEmmanuel Vadot	};
594c66ec88fSEmmanuel Vadot
595c66ec88fSEmmanuel Vadot	buttons {
596c66ec88fSEmmanuel Vadot		pwrbtn: pwrbtn {
597c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
598c66ec88fSEmmanuel Vadot		};
599c66ec88fSEmmanuel Vadot	};
600c66ec88fSEmmanuel Vadot
601c66ec88fSEmmanuel Vadot	fusb302x {
602c66ec88fSEmmanuel Vadot		fusb0_int: fusb0-int {
603c66ec88fSEmmanuel Vadot			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
604c66ec88fSEmmanuel Vadot		};
605c66ec88fSEmmanuel Vadot	};
606c66ec88fSEmmanuel Vadot
607c66ec88fSEmmanuel Vadot	leds {
608c66ec88fSEmmanuel Vadot		work_led_pin: work-led-pin {
609c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
610c66ec88fSEmmanuel Vadot		};
611c66ec88fSEmmanuel Vadot
612c66ec88fSEmmanuel Vadot		diy_led_pin: diy-led-pin {
613c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
614c66ec88fSEmmanuel Vadot		};
615c66ec88fSEmmanuel Vadot	};
616c66ec88fSEmmanuel Vadot
617c66ec88fSEmmanuel Vadot	pcie {
618c66ec88fSEmmanuel Vadot		pcie_perst: pcie-perst {
619c66ec88fSEmmanuel Vadot			rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
620c66ec88fSEmmanuel Vadot		};
621c66ec88fSEmmanuel Vadot
622c66ec88fSEmmanuel Vadot		pcie_pwr_en: pcie-pwr-en {
623c66ec88fSEmmanuel Vadot			rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
624c66ec88fSEmmanuel Vadot		};
625c66ec88fSEmmanuel Vadot	};
626c66ec88fSEmmanuel Vadot
627c66ec88fSEmmanuel Vadot	pmic {
628c66ec88fSEmmanuel Vadot		pmic_int_l: pmic-int-l {
629c66ec88fSEmmanuel Vadot			rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
630c66ec88fSEmmanuel Vadot		};
631c66ec88fSEmmanuel Vadot
632c66ec88fSEmmanuel Vadot		vsel1_pin: vsel1-pin {
633c66ec88fSEmmanuel Vadot			rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
634c66ec88fSEmmanuel Vadot		};
635c66ec88fSEmmanuel Vadot
636c66ec88fSEmmanuel Vadot		vsel2_pin: vsel2-pin {
637c66ec88fSEmmanuel Vadot			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
638c66ec88fSEmmanuel Vadot		};
639c66ec88fSEmmanuel Vadot	};
640c66ec88fSEmmanuel Vadot
641c66ec88fSEmmanuel Vadot	sdcard {
642c66ec88fSEmmanuel Vadot		sdmmc0_pwr_h: sdmmc0-pwr-h {
643c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
644c66ec88fSEmmanuel Vadot		};
645c66ec88fSEmmanuel Vadot
646c66ec88fSEmmanuel Vadot	};
647c66ec88fSEmmanuel Vadot
648c66ec88fSEmmanuel Vadot	sdio-pwrseq {
649c66ec88fSEmmanuel Vadot		wifi_enable_h: wifi-enable-h {
650c66ec88fSEmmanuel Vadot			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
651c66ec88fSEmmanuel Vadot		};
652c66ec88fSEmmanuel Vadot	};
653c66ec88fSEmmanuel Vadot
654c66ec88fSEmmanuel Vadot	usb-typec {
655c66ec88fSEmmanuel Vadot		vcc5v0_typec_en: vcc5v0_typec_en {
656c66ec88fSEmmanuel Vadot			rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
657c66ec88fSEmmanuel Vadot		};
658c66ec88fSEmmanuel Vadot	};
659c66ec88fSEmmanuel Vadot
660c66ec88fSEmmanuel Vadot	usb2 {
661c66ec88fSEmmanuel Vadot		vcc5v0_host_en: vcc5v0-host-en {
662c66ec88fSEmmanuel Vadot			rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
663c66ec88fSEmmanuel Vadot		};
664c66ec88fSEmmanuel Vadot	};
665c66ec88fSEmmanuel Vadot};
666c66ec88fSEmmanuel Vadot
667c66ec88fSEmmanuel Vadot&pwm0 {
668c66ec88fSEmmanuel Vadot	status = "okay";
669c66ec88fSEmmanuel Vadot};
670c66ec88fSEmmanuel Vadot
671c66ec88fSEmmanuel Vadot&pwm1 {
672c66ec88fSEmmanuel Vadot	status = "okay";
673c66ec88fSEmmanuel Vadot};
674c66ec88fSEmmanuel Vadot
675c66ec88fSEmmanuel Vadot&pwm2 {
676c66ec88fSEmmanuel Vadot	status = "okay";
677c66ec88fSEmmanuel Vadot};
678c66ec88fSEmmanuel Vadot
679c66ec88fSEmmanuel Vadot&saradc {
680c66ec88fSEmmanuel Vadot	vref-supply = <&vcca1v8_s3>;
681c66ec88fSEmmanuel Vadot	status = "okay";
682c66ec88fSEmmanuel Vadot};
683c66ec88fSEmmanuel Vadot
684c66ec88fSEmmanuel Vadot&sdio0 {
685c66ec88fSEmmanuel Vadot	bus-width = <4>;
686c66ec88fSEmmanuel Vadot	cap-sd-highspeed;
687c66ec88fSEmmanuel Vadot	cap-sdio-irq;
688c66ec88fSEmmanuel Vadot	disable-wp;
689c66ec88fSEmmanuel Vadot	keep-power-in-suspend;
690c66ec88fSEmmanuel Vadot	mmc-pwrseq = <&sdio_pwrseq>;
691c66ec88fSEmmanuel Vadot	non-removable;
692c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
693c66ec88fSEmmanuel Vadot	pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
694c66ec88fSEmmanuel Vadot	sd-uhs-sdr104;
695c66ec88fSEmmanuel Vadot	status = "okay";
696c66ec88fSEmmanuel Vadot};
697c66ec88fSEmmanuel Vadot
698c66ec88fSEmmanuel Vadot&sdmmc {
699c66ec88fSEmmanuel Vadot	bus-width = <4>;
700c66ec88fSEmmanuel Vadot	cap-sd-highspeed;
701c66ec88fSEmmanuel Vadot	cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
702c66ec88fSEmmanuel Vadot	disable-wp;
703c66ec88fSEmmanuel Vadot	max-frequency = <150000000>;
704c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
705c66ec88fSEmmanuel Vadot	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
706c66ec88fSEmmanuel Vadot	vmmc-supply = <&vcc3v0_sd>;
707c66ec88fSEmmanuel Vadot	vqmmc-supply = <&vcc_sdio>;
708c66ec88fSEmmanuel Vadot	status = "okay";
709c66ec88fSEmmanuel Vadot};
710c66ec88fSEmmanuel Vadot
711c66ec88fSEmmanuel Vadot&sdhci {
712c66ec88fSEmmanuel Vadot	bus-width = <8>;
713c66ec88fSEmmanuel Vadot	mmc-hs200-1_8v;
714c66ec88fSEmmanuel Vadot	non-removable;
715c66ec88fSEmmanuel Vadot	status = "okay";
716c66ec88fSEmmanuel Vadot};
717c66ec88fSEmmanuel Vadot
718*5def4c47SEmmanuel Vadot&spdif {
719*5def4c47SEmmanuel Vadot	pinctrl-0 = <&spdif_bus_1>;
720*5def4c47SEmmanuel Vadot
721*5def4c47SEmmanuel Vadot	spdif_p0: port {
722*5def4c47SEmmanuel Vadot		spdif_p0_0: endpoint {
723*5def4c47SEmmanuel Vadot			remote-endpoint = <&dit_p0_0>;
724*5def4c47SEmmanuel Vadot		};
725*5def4c47SEmmanuel Vadot	};
726*5def4c47SEmmanuel Vadot};
727*5def4c47SEmmanuel Vadot
728c66ec88fSEmmanuel Vadot&spi1 {
729c66ec88fSEmmanuel Vadot	status = "okay";
730c66ec88fSEmmanuel Vadot
731c66ec88fSEmmanuel Vadot	flash@0 {
732c66ec88fSEmmanuel Vadot		compatible = "jedec,spi-nor";
733c66ec88fSEmmanuel Vadot		reg = <0>;
734c66ec88fSEmmanuel Vadot		spi-max-frequency = <10000000>;
735c66ec88fSEmmanuel Vadot	};
736c66ec88fSEmmanuel Vadot};
737c66ec88fSEmmanuel Vadot
738c66ec88fSEmmanuel Vadot&tcphy0 {
739c66ec88fSEmmanuel Vadot	status = "okay";
740c66ec88fSEmmanuel Vadot};
741c66ec88fSEmmanuel Vadot
742c66ec88fSEmmanuel Vadot&tcphy1 {
743c66ec88fSEmmanuel Vadot	status = "okay";
744c66ec88fSEmmanuel Vadot};
745c66ec88fSEmmanuel Vadot
746c66ec88fSEmmanuel Vadot&tsadc {
747c66ec88fSEmmanuel Vadot	/* tshut mode 0:CRU 1:GPIO */
748c66ec88fSEmmanuel Vadot	rockchip,hw-tshut-mode = <1>;
749c66ec88fSEmmanuel Vadot	/* tshut polarity 0:LOW 1:HIGH */
750c66ec88fSEmmanuel Vadot	rockchip,hw-tshut-polarity = <1>;
751c66ec88fSEmmanuel Vadot	status = "okay";
752c66ec88fSEmmanuel Vadot};
753c66ec88fSEmmanuel Vadot
754c66ec88fSEmmanuel Vadot&u2phy0 {
755c66ec88fSEmmanuel Vadot	status = "okay";
756c66ec88fSEmmanuel Vadot
757c66ec88fSEmmanuel Vadot	u2phy0_otg: otg-port {
758c66ec88fSEmmanuel Vadot		status = "okay";
759c66ec88fSEmmanuel Vadot	};
760c66ec88fSEmmanuel Vadot
761c66ec88fSEmmanuel Vadot	u2phy0_host: host-port {
762c66ec88fSEmmanuel Vadot		phy-supply = <&vcc5v0_host>;
763c66ec88fSEmmanuel Vadot		status = "okay";
764c66ec88fSEmmanuel Vadot	};
765c66ec88fSEmmanuel Vadot};
766c66ec88fSEmmanuel Vadot
767c66ec88fSEmmanuel Vadot&u2phy1 {
768c66ec88fSEmmanuel Vadot	status = "okay";
769c66ec88fSEmmanuel Vadot
770c66ec88fSEmmanuel Vadot	u2phy1_otg: otg-port {
771c66ec88fSEmmanuel Vadot		status = "okay";
772c66ec88fSEmmanuel Vadot	};
773c66ec88fSEmmanuel Vadot
774c66ec88fSEmmanuel Vadot	u2phy1_host: host-port {
775c66ec88fSEmmanuel Vadot		phy-supply = <&vcc5v0_host>;
776c66ec88fSEmmanuel Vadot		status = "okay";
777c66ec88fSEmmanuel Vadot	};
778c66ec88fSEmmanuel Vadot};
779c66ec88fSEmmanuel Vadot
780c66ec88fSEmmanuel Vadot&uart0 {
781c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
782c66ec88fSEmmanuel Vadot	pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
783c66ec88fSEmmanuel Vadot	status = "okay";
784c66ec88fSEmmanuel Vadot
785c66ec88fSEmmanuel Vadot	bluetooth {
786c66ec88fSEmmanuel Vadot		compatible = "brcm,bcm43438-bt";
787c66ec88fSEmmanuel Vadot		clocks = <&rk808 1>;
788c66ec88fSEmmanuel Vadot		clock-names = "lpo";
789c66ec88fSEmmanuel Vadot		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
790c66ec88fSEmmanuel Vadot		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
791c66ec88fSEmmanuel Vadot		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
792c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
793c66ec88fSEmmanuel Vadot		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
794c66ec88fSEmmanuel Vadot		vbat-supply = <&vcc3v3_sys>;
795c66ec88fSEmmanuel Vadot		vddio-supply = <&vcc_1v8>;
796c66ec88fSEmmanuel Vadot	};
797c66ec88fSEmmanuel Vadot};
798c66ec88fSEmmanuel Vadot
799c66ec88fSEmmanuel Vadot&uart2 {
800c66ec88fSEmmanuel Vadot	status = "okay";
801c66ec88fSEmmanuel Vadot};
802c66ec88fSEmmanuel Vadot
803c66ec88fSEmmanuel Vadot&usb_host0_ehci {
804c66ec88fSEmmanuel Vadot	status = "okay";
805c66ec88fSEmmanuel Vadot};
806c66ec88fSEmmanuel Vadot
807c66ec88fSEmmanuel Vadot&usb_host0_ohci {
808c66ec88fSEmmanuel Vadot	status = "okay";
809c66ec88fSEmmanuel Vadot};
810c66ec88fSEmmanuel Vadot
811c66ec88fSEmmanuel Vadot&usb_host1_ehci {
812c66ec88fSEmmanuel Vadot	status = "okay";
813c66ec88fSEmmanuel Vadot};
814c66ec88fSEmmanuel Vadot
815c66ec88fSEmmanuel Vadot&usb_host1_ohci {
816c66ec88fSEmmanuel Vadot	status = "okay";
817c66ec88fSEmmanuel Vadot};
818c66ec88fSEmmanuel Vadot
819c66ec88fSEmmanuel Vadot&usbdrd3_0 {
820c66ec88fSEmmanuel Vadot	status = "okay";
821c66ec88fSEmmanuel Vadot};
822c66ec88fSEmmanuel Vadot
823c66ec88fSEmmanuel Vadot&usbdrd_dwc3_0 {
824c66ec88fSEmmanuel Vadot	status = "okay";
825c66ec88fSEmmanuel Vadot	dr_mode = "host";
826c66ec88fSEmmanuel Vadot};
827c66ec88fSEmmanuel Vadot
828c66ec88fSEmmanuel Vadot&usbdrd3_1 {
829c66ec88fSEmmanuel Vadot	status = "okay";
830c66ec88fSEmmanuel Vadot};
831c66ec88fSEmmanuel Vadot
832c66ec88fSEmmanuel Vadot&usbdrd_dwc3_1 {
833c66ec88fSEmmanuel Vadot	status = "okay";
834c66ec88fSEmmanuel Vadot	dr_mode = "host";
835c66ec88fSEmmanuel Vadot};
836c66ec88fSEmmanuel Vadot
837c66ec88fSEmmanuel Vadot&vopb {
838c66ec88fSEmmanuel Vadot	status = "okay";
839c66ec88fSEmmanuel Vadot};
840c66ec88fSEmmanuel Vadot
841c66ec88fSEmmanuel Vadot&vopb_mmu {
842c66ec88fSEmmanuel Vadot	status = "okay";
843c66ec88fSEmmanuel Vadot};
844c66ec88fSEmmanuel Vadot
845c66ec88fSEmmanuel Vadot&vopl {
846c66ec88fSEmmanuel Vadot	status = "okay";
847c66ec88fSEmmanuel Vadot};
848c66ec88fSEmmanuel Vadot
849c66ec88fSEmmanuel Vadot&vopl_mmu {
850c66ec88fSEmmanuel Vadot	status = "okay";
851c66ec88fSEmmanuel Vadot};
852