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