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