xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3588-rock-5b-5bp-5t.dtsi (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*833e5d42SEmmanuel Vadot
3*833e5d42SEmmanuel Vadot/dts-v1/;
4*833e5d42SEmmanuel Vadot
5*833e5d42SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
6*833e5d42SEmmanuel Vadot#include <dt-bindings/leds/common.h>
7*833e5d42SEmmanuel Vadot#include <dt-bindings/soc/rockchip,vop2.h>
8*833e5d42SEmmanuel Vadot#include "rk3588.dtsi"
9*833e5d42SEmmanuel Vadot
10*833e5d42SEmmanuel Vadot/ {
11*833e5d42SEmmanuel Vadot	aliases {
12*833e5d42SEmmanuel Vadot		mmc0 = &sdhci;
13*833e5d42SEmmanuel Vadot		mmc1 = &sdmmc;
14*833e5d42SEmmanuel Vadot		mmc2 = &sdio;
15*833e5d42SEmmanuel Vadot	};
16*833e5d42SEmmanuel Vadot
17*833e5d42SEmmanuel Vadot	chosen {
18*833e5d42SEmmanuel Vadot		stdout-path = "serial2:1500000n8";
19*833e5d42SEmmanuel Vadot	};
20*833e5d42SEmmanuel Vadot
21*833e5d42SEmmanuel Vadot	hdmi0-con {
22*833e5d42SEmmanuel Vadot		compatible = "hdmi-connector";
23*833e5d42SEmmanuel Vadot		type = "a";
24*833e5d42SEmmanuel Vadot
25*833e5d42SEmmanuel Vadot		port {
26*833e5d42SEmmanuel Vadot			hdmi0_con_in: endpoint {
27*833e5d42SEmmanuel Vadot				remote-endpoint = <&hdmi0_out_con>;
28*833e5d42SEmmanuel Vadot			};
29*833e5d42SEmmanuel Vadot		};
30*833e5d42SEmmanuel Vadot	};
31*833e5d42SEmmanuel Vadot
32*833e5d42SEmmanuel Vadot	hdmi1-con {
33*833e5d42SEmmanuel Vadot		compatible = "hdmi-connector";
34*833e5d42SEmmanuel Vadot		type = "a";
35*833e5d42SEmmanuel Vadot
36*833e5d42SEmmanuel Vadot		port {
37*833e5d42SEmmanuel Vadot			hdmi1_con_in: endpoint {
38*833e5d42SEmmanuel Vadot				remote-endpoint = <&hdmi1_out_con>;
39*833e5d42SEmmanuel Vadot			};
40*833e5d42SEmmanuel Vadot		};
41*833e5d42SEmmanuel Vadot	};
42*833e5d42SEmmanuel Vadot
43*833e5d42SEmmanuel Vadot	fan: pwm-fan {
44*833e5d42SEmmanuel Vadot		compatible = "pwm-fan";
45*833e5d42SEmmanuel Vadot		cooling-levels = <0 120 150 180 210 240 255>;
46*833e5d42SEmmanuel Vadot		fan-supply = <&vcc5v0_sys>;
47*833e5d42SEmmanuel Vadot		pwms = <&pwm1 0 50000 0>;
48*833e5d42SEmmanuel Vadot		#cooling-cells = <2>;
49*833e5d42SEmmanuel Vadot	};
50*833e5d42SEmmanuel Vadot
51*833e5d42SEmmanuel Vadot	rfkill-bt {
52*833e5d42SEmmanuel Vadot		compatible = "rfkill-gpio";
53*833e5d42SEmmanuel Vadot		label = "rfkill-m2-bt";
54*833e5d42SEmmanuel Vadot		radio-type = "bluetooth";
55*833e5d42SEmmanuel Vadot		shutdown-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
56*833e5d42SEmmanuel Vadot	};
57*833e5d42SEmmanuel Vadot
58*833e5d42SEmmanuel Vadot	vcc3v3_pcie2x1l0: regulator-vcc3v3-pcie2x1l0 {
59*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
60*833e5d42SEmmanuel Vadot		enable-active-high;
61*833e5d42SEmmanuel Vadot		regulator-name = "vcc3v3_pcie2x1l0";
62*833e5d42SEmmanuel Vadot		regulator-always-on;
63*833e5d42SEmmanuel Vadot		regulator-boot-on;
64*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
65*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
66*833e5d42SEmmanuel Vadot		startup-delay-us = <50000>;
67*833e5d42SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
68*833e5d42SEmmanuel Vadot		status = "disabled";
69*833e5d42SEmmanuel Vadot	};
70*833e5d42SEmmanuel Vadot
71*833e5d42SEmmanuel Vadot	vcc3v3_pcie2x1l2: regulator-vcc3v3-pcie2x1l2 {
72*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
73*833e5d42SEmmanuel Vadot		regulator-name = "vcc3v3_pcie2x1l2";
74*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
75*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
76*833e5d42SEmmanuel Vadot		startup-delay-us = <5000>;
77*833e5d42SEmmanuel Vadot		vin-supply = <&vcc_3v3_s3>;
78*833e5d42SEmmanuel Vadot	};
79*833e5d42SEmmanuel Vadot
80*833e5d42SEmmanuel Vadot	vcc3v3_pcie30: regulator-vcc3v3-pcie30 {
81*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
82*833e5d42SEmmanuel Vadot		enable-active-high;
83*833e5d42SEmmanuel Vadot		gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
84*833e5d42SEmmanuel Vadot		pinctrl-names = "default";
85*833e5d42SEmmanuel Vadot		pinctrl-0 = <&pcie3_vcc3v3_en>;
86*833e5d42SEmmanuel Vadot		regulator-name = "vcc3v3_pcie30";
87*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
88*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
89*833e5d42SEmmanuel Vadot		startup-delay-us = <5000>;
90*833e5d42SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
91*833e5d42SEmmanuel Vadot	};
92*833e5d42SEmmanuel Vadot
93*833e5d42SEmmanuel Vadot	vcc5v0_host: regulator-vcc5v0-host {
94*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
95*833e5d42SEmmanuel Vadot		regulator-name = "vcc5v0_host";
96*833e5d42SEmmanuel Vadot		regulator-boot-on;
97*833e5d42SEmmanuel Vadot		regulator-always-on;
98*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
99*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
100*833e5d42SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
101*833e5d42SEmmanuel Vadot	};
102*833e5d42SEmmanuel Vadot
103*833e5d42SEmmanuel Vadot	vcc5v0_sys: regulator-vcc5v0-sys {
104*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
105*833e5d42SEmmanuel Vadot		regulator-name = "vcc5v0_sys";
106*833e5d42SEmmanuel Vadot		regulator-always-on;
107*833e5d42SEmmanuel Vadot		regulator-boot-on;
108*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
109*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
110*833e5d42SEmmanuel Vadot	};
111*833e5d42SEmmanuel Vadot
112*833e5d42SEmmanuel Vadot	vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
113*833e5d42SEmmanuel Vadot		compatible = "regulator-fixed";
114*833e5d42SEmmanuel Vadot		regulator-name = "vcc_1v1_nldo_s3";
115*833e5d42SEmmanuel Vadot		regulator-always-on;
116*833e5d42SEmmanuel Vadot		regulator-boot-on;
117*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <1100000>;
118*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <1100000>;
119*833e5d42SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
120*833e5d42SEmmanuel Vadot	};
121*833e5d42SEmmanuel Vadot};
122*833e5d42SEmmanuel Vadot
123*833e5d42SEmmanuel Vadot&combphy0_ps {
124*833e5d42SEmmanuel Vadot	status = "okay";
125*833e5d42SEmmanuel Vadot};
126*833e5d42SEmmanuel Vadot
127*833e5d42SEmmanuel Vadot&combphy1_ps {
128*833e5d42SEmmanuel Vadot	status = "okay";
129*833e5d42SEmmanuel Vadot};
130*833e5d42SEmmanuel Vadot
131*833e5d42SEmmanuel Vadot&combphy2_psu {
132*833e5d42SEmmanuel Vadot	status = "okay";
133*833e5d42SEmmanuel Vadot};
134*833e5d42SEmmanuel Vadot
135*833e5d42SEmmanuel Vadot&cpu_b0 {
136*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big0_s0>;
137*833e5d42SEmmanuel Vadot};
138*833e5d42SEmmanuel Vadot
139*833e5d42SEmmanuel Vadot&cpu_b1 {
140*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big0_s0>;
141*833e5d42SEmmanuel Vadot};
142*833e5d42SEmmanuel Vadot
143*833e5d42SEmmanuel Vadot&cpu_b2 {
144*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big1_s0>;
145*833e5d42SEmmanuel Vadot};
146*833e5d42SEmmanuel Vadot
147*833e5d42SEmmanuel Vadot&cpu_b3 {
148*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_big1_s0>;
149*833e5d42SEmmanuel Vadot};
150*833e5d42SEmmanuel Vadot
151*833e5d42SEmmanuel Vadot&cpu_l0 {
152*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
153*833e5d42SEmmanuel Vadot};
154*833e5d42SEmmanuel Vadot
155*833e5d42SEmmanuel Vadot&cpu_l1 {
156*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
157*833e5d42SEmmanuel Vadot};
158*833e5d42SEmmanuel Vadot
159*833e5d42SEmmanuel Vadot&cpu_l2 {
160*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
161*833e5d42SEmmanuel Vadot};
162*833e5d42SEmmanuel Vadot
163*833e5d42SEmmanuel Vadot&cpu_l3 {
164*833e5d42SEmmanuel Vadot	cpu-supply = <&vdd_cpu_lit_s0>;
165*833e5d42SEmmanuel Vadot};
166*833e5d42SEmmanuel Vadot
167*833e5d42SEmmanuel Vadot&gpu {
168*833e5d42SEmmanuel Vadot	mali-supply = <&vdd_gpu_s0>;
169*833e5d42SEmmanuel Vadot	status = "okay";
170*833e5d42SEmmanuel Vadot};
171*833e5d42SEmmanuel Vadot
172*833e5d42SEmmanuel Vadot&hdmi0 {
173*833e5d42SEmmanuel Vadot	status = "okay";
174*833e5d42SEmmanuel Vadot};
175*833e5d42SEmmanuel Vadot
176*833e5d42SEmmanuel Vadot&hdmi0_in {
177*833e5d42SEmmanuel Vadot	hdmi0_in_vp0: endpoint {
178*833e5d42SEmmanuel Vadot		remote-endpoint = <&vp0_out_hdmi0>;
179*833e5d42SEmmanuel Vadot	};
180*833e5d42SEmmanuel Vadot};
181*833e5d42SEmmanuel Vadot
182*833e5d42SEmmanuel Vadot&hdmi0_out {
183*833e5d42SEmmanuel Vadot	hdmi0_out_con: endpoint {
184*833e5d42SEmmanuel Vadot		remote-endpoint = <&hdmi0_con_in>;
185*833e5d42SEmmanuel Vadot	};
186*833e5d42SEmmanuel Vadot};
187*833e5d42SEmmanuel Vadot
188*833e5d42SEmmanuel Vadot&hdmi0_sound {
189*833e5d42SEmmanuel Vadot	status = "okay";
190*833e5d42SEmmanuel Vadot};
191*833e5d42SEmmanuel Vadot
192*833e5d42SEmmanuel Vadot&hdmi1 {
193*833e5d42SEmmanuel Vadot	pinctrl-0 = <&hdmim0_tx1_cec &hdmim0_tx1_hpd
194*833e5d42SEmmanuel Vadot		     &hdmim1_tx1_scl &hdmim1_tx1_sda>;
195*833e5d42SEmmanuel Vadot	status = "okay";
196*833e5d42SEmmanuel Vadot};
197*833e5d42SEmmanuel Vadot
198*833e5d42SEmmanuel Vadot&hdmi1_in {
199*833e5d42SEmmanuel Vadot	hdmi1_in_vp1: endpoint {
200*833e5d42SEmmanuel Vadot		remote-endpoint = <&vp1_out_hdmi1>;
201*833e5d42SEmmanuel Vadot	};
202*833e5d42SEmmanuel Vadot};
203*833e5d42SEmmanuel Vadot
204*833e5d42SEmmanuel Vadot&hdmi1_out {
205*833e5d42SEmmanuel Vadot	hdmi1_out_con: endpoint {
206*833e5d42SEmmanuel Vadot		remote-endpoint = <&hdmi1_con_in>;
207*833e5d42SEmmanuel Vadot	};
208*833e5d42SEmmanuel Vadot};
209*833e5d42SEmmanuel Vadot
210*833e5d42SEmmanuel Vadot&hdmi1_sound {
211*833e5d42SEmmanuel Vadot	status = "okay";
212*833e5d42SEmmanuel Vadot};
213*833e5d42SEmmanuel Vadot
214*833e5d42SEmmanuel Vadot&hdmi_receiver_cma {
215*833e5d42SEmmanuel Vadot	status = "okay";
216*833e5d42SEmmanuel Vadot};
217*833e5d42SEmmanuel Vadot
218*833e5d42SEmmanuel Vadot&hdmi_receiver {
219*833e5d42SEmmanuel Vadot	pinctrl-0 = <&hdmim1_rx_cec &hdmim1_rx_hpdin &hdmim1_rx_scl &hdmim1_rx_sda &hdmirx_hpd>;
220*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
221*833e5d42SEmmanuel Vadot};
222*833e5d42SEmmanuel Vadot
223*833e5d42SEmmanuel Vadot&hdptxphy0 {
224*833e5d42SEmmanuel Vadot	status = "okay";
225*833e5d42SEmmanuel Vadot};
226*833e5d42SEmmanuel Vadot
227*833e5d42SEmmanuel Vadot&hdptxphy1 {
228*833e5d42SEmmanuel Vadot	status = "okay";
229*833e5d42SEmmanuel Vadot};
230*833e5d42SEmmanuel Vadot
231*833e5d42SEmmanuel Vadot&i2c0 {
232*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
233*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2c0m2_xfer>;
234*833e5d42SEmmanuel Vadot	status = "okay";
235*833e5d42SEmmanuel Vadot
236*833e5d42SEmmanuel Vadot	vdd_cpu_big0_s0: regulator@42 {
237*833e5d42SEmmanuel Vadot		compatible = "rockchip,rk8602";
238*833e5d42SEmmanuel Vadot		reg = <0x42>;
239*833e5d42SEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
240*833e5d42SEmmanuel Vadot		regulator-name = "vdd_cpu_big0_s0";
241*833e5d42SEmmanuel Vadot		regulator-always-on;
242*833e5d42SEmmanuel Vadot		regulator-boot-on;
243*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <550000>;
244*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <1050000>;
245*833e5d42SEmmanuel Vadot		regulator-ramp-delay = <2300>;
246*833e5d42SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
247*833e5d42SEmmanuel Vadot
248*833e5d42SEmmanuel Vadot		regulator-state-mem {
249*833e5d42SEmmanuel Vadot			regulator-off-in-suspend;
250*833e5d42SEmmanuel Vadot		};
251*833e5d42SEmmanuel Vadot	};
252*833e5d42SEmmanuel Vadot
253*833e5d42SEmmanuel Vadot	vdd_cpu_big1_s0: regulator@43 {
254*833e5d42SEmmanuel Vadot		compatible = "rockchip,rk8603", "rockchip,rk8602";
255*833e5d42SEmmanuel Vadot		reg = <0x43>;
256*833e5d42SEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
257*833e5d42SEmmanuel Vadot		regulator-name = "vdd_cpu_big1_s0";
258*833e5d42SEmmanuel Vadot		regulator-always-on;
259*833e5d42SEmmanuel Vadot		regulator-boot-on;
260*833e5d42SEmmanuel Vadot		regulator-min-microvolt = <550000>;
261*833e5d42SEmmanuel Vadot		regulator-max-microvolt = <1050000>;
262*833e5d42SEmmanuel Vadot		regulator-ramp-delay = <2300>;
263*833e5d42SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
264*833e5d42SEmmanuel Vadot
265*833e5d42SEmmanuel Vadot		regulator-state-mem {
266*833e5d42SEmmanuel Vadot			regulator-off-in-suspend;
267*833e5d42SEmmanuel Vadot		};
268*833e5d42SEmmanuel Vadot	};
269*833e5d42SEmmanuel Vadot};
270*833e5d42SEmmanuel Vadot
271*833e5d42SEmmanuel Vadot&i2c6 {
272*833e5d42SEmmanuel Vadot	status = "okay";
273*833e5d42SEmmanuel Vadot
274*833e5d42SEmmanuel Vadot	hym8563: rtc@51 {
275*833e5d42SEmmanuel Vadot		compatible = "haoyu,hym8563";
276*833e5d42SEmmanuel Vadot		reg = <0x51>;
277*833e5d42SEmmanuel Vadot		#clock-cells = <0>;
278*833e5d42SEmmanuel Vadot		clock-output-names = "hym8563";
279*833e5d42SEmmanuel Vadot		pinctrl-names = "default";
280*833e5d42SEmmanuel Vadot		pinctrl-0 = <&hym8563_int>;
281*833e5d42SEmmanuel Vadot		interrupt-parent = <&gpio0>;
282*833e5d42SEmmanuel Vadot		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
283*833e5d42SEmmanuel Vadot		wakeup-source;
284*833e5d42SEmmanuel Vadot	};
285*833e5d42SEmmanuel Vadot};
286*833e5d42SEmmanuel Vadot
287*833e5d42SEmmanuel Vadot&i2c7 {
288*833e5d42SEmmanuel Vadot	status = "okay";
289*833e5d42SEmmanuel Vadot
290*833e5d42SEmmanuel Vadot	es8316: audio-codec@11 {
291*833e5d42SEmmanuel Vadot		compatible = "everest,es8316";
292*833e5d42SEmmanuel Vadot		reg = <0x11>;
293*833e5d42SEmmanuel Vadot		clocks = <&cru I2S0_8CH_MCLKOUT>;
294*833e5d42SEmmanuel Vadot		clock-names = "mclk";
295*833e5d42SEmmanuel Vadot		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
296*833e5d42SEmmanuel Vadot		assigned-clock-rates = <12288000>;
297*833e5d42SEmmanuel Vadot		#sound-dai-cells = <0>;
298*833e5d42SEmmanuel Vadot
299*833e5d42SEmmanuel Vadot		port {
300*833e5d42SEmmanuel Vadot			es8316_p0_0: endpoint {
301*833e5d42SEmmanuel Vadot				remote-endpoint = <&i2s0_8ch_p0_0>;
302*833e5d42SEmmanuel Vadot			};
303*833e5d42SEmmanuel Vadot		};
304*833e5d42SEmmanuel Vadot	};
305*833e5d42SEmmanuel Vadot};
306*833e5d42SEmmanuel Vadot
307*833e5d42SEmmanuel Vadot&i2s0_8ch {
308*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
309*833e5d42SEmmanuel Vadot	pinctrl-0 = <&i2s0_lrck
310*833e5d42SEmmanuel Vadot		     &i2s0_mclk
311*833e5d42SEmmanuel Vadot		     &i2s0_sclk
312*833e5d42SEmmanuel Vadot		     &i2s0_sdi0
313*833e5d42SEmmanuel Vadot		     &i2s0_sdo0>;
314*833e5d42SEmmanuel Vadot	status = "okay";
315*833e5d42SEmmanuel Vadot
316*833e5d42SEmmanuel Vadot	i2s0_8ch_p0: port {
317*833e5d42SEmmanuel Vadot		i2s0_8ch_p0_0: endpoint {
318*833e5d42SEmmanuel Vadot			dai-format = "i2s";
319*833e5d42SEmmanuel Vadot			mclk-fs = <256>;
320*833e5d42SEmmanuel Vadot			remote-endpoint = <&es8316_p0_0>;
321*833e5d42SEmmanuel Vadot		};
322*833e5d42SEmmanuel Vadot	};
323*833e5d42SEmmanuel Vadot};
324*833e5d42SEmmanuel Vadot
325*833e5d42SEmmanuel Vadot&i2s5_8ch {
326*833e5d42SEmmanuel Vadot	status = "okay";
327*833e5d42SEmmanuel Vadot};
328*833e5d42SEmmanuel Vadot
329*833e5d42SEmmanuel Vadot&i2s6_8ch {
330*833e5d42SEmmanuel Vadot	status = "okay";
331*833e5d42SEmmanuel Vadot};
332*833e5d42SEmmanuel Vadot
333*833e5d42SEmmanuel Vadot&package_thermal {
334*833e5d42SEmmanuel Vadot	polling-delay = <1000>;
335*833e5d42SEmmanuel Vadot
336*833e5d42SEmmanuel Vadot	trips {
337*833e5d42SEmmanuel Vadot		package_fan0: package-fan0 {
338*833e5d42SEmmanuel Vadot			temperature = <55000>;
339*833e5d42SEmmanuel Vadot			hysteresis = <2000>;
340*833e5d42SEmmanuel Vadot			type = "active";
341*833e5d42SEmmanuel Vadot		};
342*833e5d42SEmmanuel Vadot
343*833e5d42SEmmanuel Vadot		package_fan1: package-fan1 {
344*833e5d42SEmmanuel Vadot			temperature = <65000>;
345*833e5d42SEmmanuel Vadot			hysteresis = <2000>;
346*833e5d42SEmmanuel Vadot			type = "active";
347*833e5d42SEmmanuel Vadot		};
348*833e5d42SEmmanuel Vadot	};
349*833e5d42SEmmanuel Vadot
350*833e5d42SEmmanuel Vadot	cooling-maps {
351*833e5d42SEmmanuel Vadot		map0 {
352*833e5d42SEmmanuel Vadot			trip = <&package_fan0>;
353*833e5d42SEmmanuel Vadot			cooling-device = <&fan THERMAL_NO_LIMIT 1>;
354*833e5d42SEmmanuel Vadot		};
355*833e5d42SEmmanuel Vadot
356*833e5d42SEmmanuel Vadot		map1 {
357*833e5d42SEmmanuel Vadot			trip = <&package_fan1>;
358*833e5d42SEmmanuel Vadot			cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
359*833e5d42SEmmanuel Vadot		};
360*833e5d42SEmmanuel Vadot	};
361*833e5d42SEmmanuel Vadot};
362*833e5d42SEmmanuel Vadot
363*833e5d42SEmmanuel Vadot&pcie2x1l0 {
364*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
365*833e5d42SEmmanuel Vadot	pinctrl-0 = <&pcie2_0_rst>;
366*833e5d42SEmmanuel Vadot	reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
367*833e5d42SEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie2x1l0>;
368*833e5d42SEmmanuel Vadot	status = "okay";
369*833e5d42SEmmanuel Vadot};
370*833e5d42SEmmanuel Vadot
371*833e5d42SEmmanuel Vadot&pcie2x1l2 {
372*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
373*833e5d42SEmmanuel Vadot	pinctrl-0 = <&pcie2_2_rst>;
374*833e5d42SEmmanuel Vadot	reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
375*833e5d42SEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie2x1l2>;
376*833e5d42SEmmanuel Vadot	status = "okay";
377*833e5d42SEmmanuel Vadot};
378*833e5d42SEmmanuel Vadot
379*833e5d42SEmmanuel Vadot&pcie30phy {
380*833e5d42SEmmanuel Vadot	status = "okay";
381*833e5d42SEmmanuel Vadot};
382*833e5d42SEmmanuel Vadot
383*833e5d42SEmmanuel Vadot&pcie3x4 {
384*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
385*833e5d42SEmmanuel Vadot	pinctrl-0 = <&pcie3_rst>;
386*833e5d42SEmmanuel Vadot	reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
387*833e5d42SEmmanuel Vadot	vpcie3v3-supply = <&vcc3v3_pcie30>;
388*833e5d42SEmmanuel Vadot	status = "okay";
389*833e5d42SEmmanuel Vadot};
390*833e5d42SEmmanuel Vadot
391*833e5d42SEmmanuel Vadot&pd_gpu {
392*833e5d42SEmmanuel Vadot	domain-supply = <&vdd_gpu_s0>;
393*833e5d42SEmmanuel Vadot};
394*833e5d42SEmmanuel Vadot
395*833e5d42SEmmanuel Vadot&pinctrl {
396*833e5d42SEmmanuel Vadot	hym8563 {
397*833e5d42SEmmanuel Vadot		hym8563_int: hym8563-int {
398*833e5d42SEmmanuel Vadot			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
399*833e5d42SEmmanuel Vadot		};
400*833e5d42SEmmanuel Vadot	};
401*833e5d42SEmmanuel Vadot
402*833e5d42SEmmanuel Vadot	pcie2 {
403*833e5d42SEmmanuel Vadot		pcie2_0_rst: pcie2-0-rst {
404*833e5d42SEmmanuel Vadot			rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
405*833e5d42SEmmanuel Vadot		};
406*833e5d42SEmmanuel Vadot
407*833e5d42SEmmanuel Vadot		pcie2_2_rst: pcie2-2-rst {
408*833e5d42SEmmanuel Vadot			rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
409*833e5d42SEmmanuel Vadot		};
410*833e5d42SEmmanuel Vadot	};
411*833e5d42SEmmanuel Vadot
412*833e5d42SEmmanuel Vadot	pcie3 {
413*833e5d42SEmmanuel Vadot		pcie3_rst: pcie3-rst {
414*833e5d42SEmmanuel Vadot			rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
415*833e5d42SEmmanuel Vadot		};
416*833e5d42SEmmanuel Vadot
417*833e5d42SEmmanuel Vadot		pcie3_vcc3v3_en: pcie3-vcc3v3-en {
418*833e5d42SEmmanuel Vadot			rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
419*833e5d42SEmmanuel Vadot		};
420*833e5d42SEmmanuel Vadot	};
421*833e5d42SEmmanuel Vadot};
422*833e5d42SEmmanuel Vadot
423*833e5d42SEmmanuel Vadot&pwm1 {
424*833e5d42SEmmanuel Vadot	status = "okay";
425*833e5d42SEmmanuel Vadot};
426*833e5d42SEmmanuel Vadot
427*833e5d42SEmmanuel Vadot&saradc {
428*833e5d42SEmmanuel Vadot	vref-supply = <&avcc_1v8_s0>;
429*833e5d42SEmmanuel Vadot	status = "okay";
430*833e5d42SEmmanuel Vadot};
431*833e5d42SEmmanuel Vadot
432*833e5d42SEmmanuel Vadot&sdhci {
433*833e5d42SEmmanuel Vadot	bus-width = <8>;
434*833e5d42SEmmanuel Vadot	no-sdio;
435*833e5d42SEmmanuel Vadot	no-sd;
436*833e5d42SEmmanuel Vadot	non-removable;
437*833e5d42SEmmanuel Vadot	mmc-hs400-1_8v;
438*833e5d42SEmmanuel Vadot	mmc-hs400-enhanced-strobe;
439*833e5d42SEmmanuel Vadot	status = "okay";
440*833e5d42SEmmanuel Vadot};
441*833e5d42SEmmanuel Vadot
442*833e5d42SEmmanuel Vadot&sdmmc {
443*833e5d42SEmmanuel Vadot	max-frequency = <200000000>;
444*833e5d42SEmmanuel Vadot	no-sdio;
445*833e5d42SEmmanuel Vadot	no-mmc;
446*833e5d42SEmmanuel Vadot	bus-width = <4>;
447*833e5d42SEmmanuel Vadot	cap-mmc-highspeed;
448*833e5d42SEmmanuel Vadot	cap-sd-highspeed;
449*833e5d42SEmmanuel Vadot	cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
450*833e5d42SEmmanuel Vadot	disable-wp;
451*833e5d42SEmmanuel Vadot	sd-uhs-sdr104;
452*833e5d42SEmmanuel Vadot	vmmc-supply = <&vcc_3v3_s3>;
453*833e5d42SEmmanuel Vadot	vqmmc-supply = <&vccio_sd_s0>;
454*833e5d42SEmmanuel Vadot	status = "okay";
455*833e5d42SEmmanuel Vadot};
456*833e5d42SEmmanuel Vadot
457*833e5d42SEmmanuel Vadot&sfc {
458*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
459*833e5d42SEmmanuel Vadot	pinctrl-0 = <&fspim2_pins>;
460*833e5d42SEmmanuel Vadot	status = "okay";
461*833e5d42SEmmanuel Vadot
462*833e5d42SEmmanuel Vadot	flash@0 {
463*833e5d42SEmmanuel Vadot		compatible = "jedec,spi-nor";
464*833e5d42SEmmanuel Vadot		reg = <0>;
465*833e5d42SEmmanuel Vadot		spi-max-frequency = <104000000>;
466*833e5d42SEmmanuel Vadot		spi-rx-bus-width = <4>;
467*833e5d42SEmmanuel Vadot		spi-tx-bus-width = <1>;
468*833e5d42SEmmanuel Vadot		vcc-supply = <&vcc_3v3_s3>;
469*833e5d42SEmmanuel Vadot	};
470*833e5d42SEmmanuel Vadot};
471*833e5d42SEmmanuel Vadot
472*833e5d42SEmmanuel Vadot&spi2 {
473*833e5d42SEmmanuel Vadot	status = "okay";
474*833e5d42SEmmanuel Vadot	assigned-clocks = <&cru CLK_SPI2>;
475*833e5d42SEmmanuel Vadot	assigned-clock-rates = <200000000>;
476*833e5d42SEmmanuel Vadot	pinctrl-names = "default";
477*833e5d42SEmmanuel Vadot	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
478*833e5d42SEmmanuel Vadot	num-cs = <1>;
479*833e5d42SEmmanuel Vadot
480*833e5d42SEmmanuel Vadot	pmic@0 {
481*833e5d42SEmmanuel Vadot		compatible = "rockchip,rk806";
482*833e5d42SEmmanuel Vadot		spi-max-frequency = <1000000>;
483*833e5d42SEmmanuel Vadot		reg = <0x0>;
484*833e5d42SEmmanuel Vadot
485*833e5d42SEmmanuel Vadot		interrupt-parent = <&gpio0>;
486*833e5d42SEmmanuel Vadot		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
487*833e5d42SEmmanuel Vadot
488*833e5d42SEmmanuel Vadot		pinctrl-names = "default";
489*833e5d42SEmmanuel Vadot		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
490*833e5d42SEmmanuel Vadot			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
491*833e5d42SEmmanuel Vadot
492*833e5d42SEmmanuel Vadot		system-power-controller;
493*833e5d42SEmmanuel Vadot
494*833e5d42SEmmanuel Vadot		vcc1-supply = <&vcc5v0_sys>;
495*833e5d42SEmmanuel Vadot		vcc2-supply = <&vcc5v0_sys>;
496*833e5d42SEmmanuel Vadot		vcc3-supply = <&vcc5v0_sys>;
497*833e5d42SEmmanuel Vadot		vcc4-supply = <&vcc5v0_sys>;
498*833e5d42SEmmanuel Vadot		vcc5-supply = <&vcc5v0_sys>;
499*833e5d42SEmmanuel Vadot		vcc6-supply = <&vcc5v0_sys>;
500*833e5d42SEmmanuel Vadot		vcc7-supply = <&vcc5v0_sys>;
501*833e5d42SEmmanuel Vadot		vcc8-supply = <&vcc5v0_sys>;
502*833e5d42SEmmanuel Vadot		vcc9-supply = <&vcc5v0_sys>;
503*833e5d42SEmmanuel Vadot		vcc10-supply = <&vcc5v0_sys>;
504*833e5d42SEmmanuel Vadot		vcc11-supply = <&vcc_2v0_pldo_s3>;
505*833e5d42SEmmanuel Vadot		vcc12-supply = <&vcc5v0_sys>;
506*833e5d42SEmmanuel Vadot		vcc13-supply = <&vcc_1v1_nldo_s3>;
507*833e5d42SEmmanuel Vadot		vcc14-supply = <&vcc_1v1_nldo_s3>;
508*833e5d42SEmmanuel Vadot		vcca-supply = <&vcc5v0_sys>;
509*833e5d42SEmmanuel Vadot
510*833e5d42SEmmanuel Vadot		gpio-controller;
511*833e5d42SEmmanuel Vadot		#gpio-cells = <2>;
512*833e5d42SEmmanuel Vadot
513*833e5d42SEmmanuel Vadot		rk806_dvs1_null: dvs1-null-pins {
514*833e5d42SEmmanuel Vadot			pins = "gpio_pwrctrl1";
515*833e5d42SEmmanuel Vadot			function = "pin_fun0";
516*833e5d42SEmmanuel Vadot		};
517*833e5d42SEmmanuel Vadot
518*833e5d42SEmmanuel Vadot		rk806_dvs2_null: dvs2-null-pins {
519*833e5d42SEmmanuel Vadot			pins = "gpio_pwrctrl2";
520*833e5d42SEmmanuel Vadot			function = "pin_fun0";
521*833e5d42SEmmanuel Vadot		};
522*833e5d42SEmmanuel Vadot
523*833e5d42SEmmanuel Vadot		rk806_dvs3_null: dvs3-null-pins {
524*833e5d42SEmmanuel Vadot			pins = "gpio_pwrctrl3";
525*833e5d42SEmmanuel Vadot			function = "pin_fun0";
526*833e5d42SEmmanuel Vadot		};
527*833e5d42SEmmanuel Vadot
528*833e5d42SEmmanuel Vadot		regulators {
529*833e5d42SEmmanuel Vadot			vdd_gpu_s0: vdd_gpu_mem_s0: dcdc-reg1 {
530*833e5d42SEmmanuel Vadot				regulator-boot-on;
531*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <550000>;
532*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <950000>;
533*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
534*833e5d42SEmmanuel Vadot				regulator-name = "vdd_gpu_s0";
535*833e5d42SEmmanuel Vadot				regulator-enable-ramp-delay = <400>;
536*833e5d42SEmmanuel Vadot
537*833e5d42SEmmanuel Vadot				regulator-state-mem {
538*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
539*833e5d42SEmmanuel Vadot				};
540*833e5d42SEmmanuel Vadot			};
541*833e5d42SEmmanuel Vadot
542*833e5d42SEmmanuel Vadot			vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 {
543*833e5d42SEmmanuel Vadot				regulator-always-on;
544*833e5d42SEmmanuel Vadot				regulator-boot-on;
545*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <550000>;
546*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <950000>;
547*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
548*833e5d42SEmmanuel Vadot				regulator-name = "vdd_cpu_lit_s0";
549*833e5d42SEmmanuel Vadot
550*833e5d42SEmmanuel Vadot				regulator-state-mem {
551*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
552*833e5d42SEmmanuel Vadot				};
553*833e5d42SEmmanuel Vadot			};
554*833e5d42SEmmanuel Vadot
555*833e5d42SEmmanuel Vadot			vdd_log_s0: dcdc-reg3 {
556*833e5d42SEmmanuel Vadot				regulator-always-on;
557*833e5d42SEmmanuel Vadot				regulator-boot-on;
558*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <675000>;
559*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <750000>;
560*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
561*833e5d42SEmmanuel Vadot				regulator-name = "vdd_log_s0";
562*833e5d42SEmmanuel Vadot
563*833e5d42SEmmanuel Vadot				regulator-state-mem {
564*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
565*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
566*833e5d42SEmmanuel Vadot				};
567*833e5d42SEmmanuel Vadot			};
568*833e5d42SEmmanuel Vadot
569*833e5d42SEmmanuel Vadot			vdd_vdenc_s0: vdd_vdenc_mem_s0: dcdc-reg4 {
570*833e5d42SEmmanuel Vadot				regulator-always-on;
571*833e5d42SEmmanuel Vadot				regulator-boot-on;
572*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <550000>;
573*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <950000>;
574*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
575*833e5d42SEmmanuel Vadot				regulator-name = "vdd_vdenc_s0";
576*833e5d42SEmmanuel Vadot
577*833e5d42SEmmanuel Vadot				regulator-state-mem {
578*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
579*833e5d42SEmmanuel Vadot				};
580*833e5d42SEmmanuel Vadot			};
581*833e5d42SEmmanuel Vadot
582*833e5d42SEmmanuel Vadot			vdd_ddr_s0: dcdc-reg5 {
583*833e5d42SEmmanuel Vadot				regulator-always-on;
584*833e5d42SEmmanuel Vadot				regulator-boot-on;
585*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <675000>;
586*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <900000>;
587*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
588*833e5d42SEmmanuel Vadot				regulator-name = "vdd_ddr_s0";
589*833e5d42SEmmanuel Vadot
590*833e5d42SEmmanuel Vadot				regulator-state-mem {
591*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
592*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <850000>;
593*833e5d42SEmmanuel Vadot				};
594*833e5d42SEmmanuel Vadot			};
595*833e5d42SEmmanuel Vadot
596*833e5d42SEmmanuel Vadot			vdd2_ddr_s3: dcdc-reg6 {
597*833e5d42SEmmanuel Vadot				regulator-always-on;
598*833e5d42SEmmanuel Vadot				regulator-boot-on;
599*833e5d42SEmmanuel Vadot				regulator-name = "vdd2_ddr_s3";
600*833e5d42SEmmanuel Vadot
601*833e5d42SEmmanuel Vadot				regulator-state-mem {
602*833e5d42SEmmanuel Vadot					regulator-on-in-suspend;
603*833e5d42SEmmanuel Vadot				};
604*833e5d42SEmmanuel Vadot			};
605*833e5d42SEmmanuel Vadot
606*833e5d42SEmmanuel Vadot			vcc_2v0_pldo_s3: dcdc-reg7 {
607*833e5d42SEmmanuel Vadot				regulator-always-on;
608*833e5d42SEmmanuel Vadot				regulator-boot-on;
609*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <2000000>;
610*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <2000000>;
611*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
612*833e5d42SEmmanuel Vadot				regulator-name = "vdd_2v0_pldo_s3";
613*833e5d42SEmmanuel Vadot
614*833e5d42SEmmanuel Vadot				regulator-state-mem {
615*833e5d42SEmmanuel Vadot					regulator-on-in-suspend;
616*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <2000000>;
617*833e5d42SEmmanuel Vadot				};
618*833e5d42SEmmanuel Vadot			};
619*833e5d42SEmmanuel Vadot
620*833e5d42SEmmanuel Vadot			vcc_3v3_s3: dcdc-reg8 {
621*833e5d42SEmmanuel Vadot				regulator-always-on;
622*833e5d42SEmmanuel Vadot				regulator-boot-on;
623*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
624*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
625*833e5d42SEmmanuel Vadot				regulator-name = "vcc_3v3_s3";
626*833e5d42SEmmanuel Vadot
627*833e5d42SEmmanuel Vadot				regulator-state-mem {
628*833e5d42SEmmanuel Vadot					regulator-on-in-suspend;
629*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <3300000>;
630*833e5d42SEmmanuel Vadot				};
631*833e5d42SEmmanuel Vadot			};
632*833e5d42SEmmanuel Vadot
633*833e5d42SEmmanuel Vadot			vddq_ddr_s0: dcdc-reg9 {
634*833e5d42SEmmanuel Vadot				regulator-always-on;
635*833e5d42SEmmanuel Vadot				regulator-boot-on;
636*833e5d42SEmmanuel Vadot				regulator-name = "vddq_ddr_s0";
637*833e5d42SEmmanuel Vadot
638*833e5d42SEmmanuel Vadot				regulator-state-mem {
639*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
640*833e5d42SEmmanuel Vadot				};
641*833e5d42SEmmanuel Vadot			};
642*833e5d42SEmmanuel Vadot
643*833e5d42SEmmanuel Vadot			vcc_1v8_s3: dcdc-reg10 {
644*833e5d42SEmmanuel Vadot				regulator-always-on;
645*833e5d42SEmmanuel Vadot				regulator-boot-on;
646*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
647*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
648*833e5d42SEmmanuel Vadot				regulator-name = "vcc_1v8_s3";
649*833e5d42SEmmanuel Vadot
650*833e5d42SEmmanuel Vadot				regulator-state-mem {
651*833e5d42SEmmanuel Vadot					regulator-on-in-suspend;
652*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
653*833e5d42SEmmanuel Vadot				};
654*833e5d42SEmmanuel Vadot			};
655*833e5d42SEmmanuel Vadot
656*833e5d42SEmmanuel Vadot			avcc_1v8_s0: pldo-reg1 {
657*833e5d42SEmmanuel Vadot				regulator-always-on;
658*833e5d42SEmmanuel Vadot				regulator-boot-on;
659*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
660*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
661*833e5d42SEmmanuel Vadot				regulator-name = "avcc_1v8_s0";
662*833e5d42SEmmanuel Vadot
663*833e5d42SEmmanuel Vadot				regulator-state-mem {
664*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
665*833e5d42SEmmanuel Vadot				};
666*833e5d42SEmmanuel Vadot			};
667*833e5d42SEmmanuel Vadot
668*833e5d42SEmmanuel Vadot			vcc_1v8_s0: pldo-reg2 {
669*833e5d42SEmmanuel Vadot				regulator-always-on;
670*833e5d42SEmmanuel Vadot				regulator-boot-on;
671*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
672*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
673*833e5d42SEmmanuel Vadot				regulator-name = "vcc_1v8_s0";
674*833e5d42SEmmanuel Vadot
675*833e5d42SEmmanuel Vadot				regulator-state-mem {
676*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
677*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
678*833e5d42SEmmanuel Vadot				};
679*833e5d42SEmmanuel Vadot			};
680*833e5d42SEmmanuel Vadot
681*833e5d42SEmmanuel Vadot			avdd_1v2_s0: pldo-reg3 {
682*833e5d42SEmmanuel Vadot				regulator-always-on;
683*833e5d42SEmmanuel Vadot				regulator-boot-on;
684*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <1200000>;
685*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <1200000>;
686*833e5d42SEmmanuel Vadot				regulator-name = "avdd_1v2_s0";
687*833e5d42SEmmanuel Vadot
688*833e5d42SEmmanuel Vadot				regulator-state-mem {
689*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
690*833e5d42SEmmanuel Vadot				};
691*833e5d42SEmmanuel Vadot			};
692*833e5d42SEmmanuel Vadot
693*833e5d42SEmmanuel Vadot			vcc_3v3_s0: pldo-reg4 {
694*833e5d42SEmmanuel Vadot				regulator-always-on;
695*833e5d42SEmmanuel Vadot				regulator-boot-on;
696*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
697*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
698*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
699*833e5d42SEmmanuel Vadot				regulator-name = "vcc_3v3_s0";
700*833e5d42SEmmanuel Vadot
701*833e5d42SEmmanuel Vadot				regulator-state-mem {
702*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
703*833e5d42SEmmanuel Vadot				};
704*833e5d42SEmmanuel Vadot			};
705*833e5d42SEmmanuel Vadot
706*833e5d42SEmmanuel Vadot			vccio_sd_s0: pldo-reg5 {
707*833e5d42SEmmanuel Vadot				regulator-always-on;
708*833e5d42SEmmanuel Vadot				regulator-boot-on;
709*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
710*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
711*833e5d42SEmmanuel Vadot				regulator-ramp-delay = <12500>;
712*833e5d42SEmmanuel Vadot				regulator-name = "vccio_sd_s0";
713*833e5d42SEmmanuel Vadot
714*833e5d42SEmmanuel Vadot				regulator-state-mem {
715*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
716*833e5d42SEmmanuel Vadot				};
717*833e5d42SEmmanuel Vadot			};
718*833e5d42SEmmanuel Vadot
719*833e5d42SEmmanuel Vadot			pldo6_s3: pldo-reg6 {
720*833e5d42SEmmanuel Vadot				regulator-always-on;
721*833e5d42SEmmanuel Vadot				regulator-boot-on;
722*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
723*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
724*833e5d42SEmmanuel Vadot				regulator-name = "pldo6_s3";
725*833e5d42SEmmanuel Vadot
726*833e5d42SEmmanuel Vadot				regulator-state-mem {
727*833e5d42SEmmanuel Vadot					regulator-on-in-suspend;
728*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <1800000>;
729*833e5d42SEmmanuel Vadot				};
730*833e5d42SEmmanuel Vadot			};
731*833e5d42SEmmanuel Vadot
732*833e5d42SEmmanuel Vadot			vdd_0v75_s3: nldo-reg1 {
733*833e5d42SEmmanuel Vadot				regulator-always-on;
734*833e5d42SEmmanuel Vadot				regulator-boot-on;
735*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <750000>;
736*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <750000>;
737*833e5d42SEmmanuel Vadot				regulator-name = "vdd_0v75_s3";
738*833e5d42SEmmanuel Vadot
739*833e5d42SEmmanuel Vadot				regulator-state-mem {
740*833e5d42SEmmanuel Vadot					regulator-on-in-suspend;
741*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <750000>;
742*833e5d42SEmmanuel Vadot				};
743*833e5d42SEmmanuel Vadot			};
744*833e5d42SEmmanuel Vadot
745*833e5d42SEmmanuel Vadot			vdd_ddr_pll_s0: nldo-reg2 {
746*833e5d42SEmmanuel Vadot				regulator-always-on;
747*833e5d42SEmmanuel Vadot				regulator-boot-on;
748*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <850000>;
749*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <850000>;
750*833e5d42SEmmanuel Vadot				regulator-name = "vdd_ddr_pll_s0";
751*833e5d42SEmmanuel Vadot
752*833e5d42SEmmanuel Vadot				regulator-state-mem {
753*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
754*833e5d42SEmmanuel Vadot					regulator-suspend-microvolt = <850000>;
755*833e5d42SEmmanuel Vadot				};
756*833e5d42SEmmanuel Vadot			};
757*833e5d42SEmmanuel Vadot
758*833e5d42SEmmanuel Vadot			avdd_0v75_s0: nldo-reg3 {
759*833e5d42SEmmanuel Vadot				regulator-always-on;
760*833e5d42SEmmanuel Vadot				regulator-boot-on;
761*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <750000>;
762*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <750000>;
763*833e5d42SEmmanuel Vadot				regulator-name = "avdd_0v75_s0";
764*833e5d42SEmmanuel Vadot
765*833e5d42SEmmanuel Vadot				regulator-state-mem {
766*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
767*833e5d42SEmmanuel Vadot				};
768*833e5d42SEmmanuel Vadot			};
769*833e5d42SEmmanuel Vadot
770*833e5d42SEmmanuel Vadot			vdd_0v85_s0: nldo-reg4 {
771*833e5d42SEmmanuel Vadot				regulator-always-on;
772*833e5d42SEmmanuel Vadot				regulator-boot-on;
773*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <850000>;
774*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <850000>;
775*833e5d42SEmmanuel Vadot				regulator-name = "vdd_0v85_s0";
776*833e5d42SEmmanuel Vadot
777*833e5d42SEmmanuel Vadot				regulator-state-mem {
778*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
779*833e5d42SEmmanuel Vadot				};
780*833e5d42SEmmanuel Vadot			};
781*833e5d42SEmmanuel Vadot
782*833e5d42SEmmanuel Vadot			vdd_0v75_s0: nldo-reg5 {
783*833e5d42SEmmanuel Vadot				regulator-always-on;
784*833e5d42SEmmanuel Vadot				regulator-boot-on;
785*833e5d42SEmmanuel Vadot				regulator-min-microvolt = <750000>;
786*833e5d42SEmmanuel Vadot				regulator-max-microvolt = <750000>;
787*833e5d42SEmmanuel Vadot				regulator-name = "vdd_0v75_s0";
788*833e5d42SEmmanuel Vadot
789*833e5d42SEmmanuel Vadot				regulator-state-mem {
790*833e5d42SEmmanuel Vadot					regulator-off-in-suspend;
791*833e5d42SEmmanuel Vadot				};
792*833e5d42SEmmanuel Vadot			};
793*833e5d42SEmmanuel Vadot		};
794*833e5d42SEmmanuel Vadot	};
795*833e5d42SEmmanuel Vadot};
796*833e5d42SEmmanuel Vadot
797*833e5d42SEmmanuel Vadot&tsadc {
798*833e5d42SEmmanuel Vadot	status = "okay";
799*833e5d42SEmmanuel Vadot};
800*833e5d42SEmmanuel Vadot
801*833e5d42SEmmanuel Vadot&uart2 {
802*833e5d42SEmmanuel Vadot	pinctrl-0 = <&uart2m0_xfer>;
803*833e5d42SEmmanuel Vadot	status = "okay";
804*833e5d42SEmmanuel Vadot};
805*833e5d42SEmmanuel Vadot
806*833e5d42SEmmanuel Vadot&u2phy1 {
807*833e5d42SEmmanuel Vadot	status = "okay";
808*833e5d42SEmmanuel Vadot};
809*833e5d42SEmmanuel Vadot
810*833e5d42SEmmanuel Vadot&u2phy1_otg {
811*833e5d42SEmmanuel Vadot	status = "okay";
812*833e5d42SEmmanuel Vadot};
813*833e5d42SEmmanuel Vadot
814*833e5d42SEmmanuel Vadot&u2phy2 {
815*833e5d42SEmmanuel Vadot	status = "okay";
816*833e5d42SEmmanuel Vadot};
817*833e5d42SEmmanuel Vadot
818*833e5d42SEmmanuel Vadot&u2phy2_host {
819*833e5d42SEmmanuel Vadot	/* connected to USB hub, which is powered by vcc5v0_sys */
820*833e5d42SEmmanuel Vadot	phy-supply = <&vcc5v0_sys>;
821*833e5d42SEmmanuel Vadot	status = "okay";
822*833e5d42SEmmanuel Vadot};
823*833e5d42SEmmanuel Vadot
824*833e5d42SEmmanuel Vadot&u2phy3 {
825*833e5d42SEmmanuel Vadot	status = "okay";
826*833e5d42SEmmanuel Vadot};
827*833e5d42SEmmanuel Vadot
828*833e5d42SEmmanuel Vadot&u2phy3_host {
829*833e5d42SEmmanuel Vadot	phy-supply = <&vcc5v0_host>;
830*833e5d42SEmmanuel Vadot	status = "okay";
831*833e5d42SEmmanuel Vadot};
832*833e5d42SEmmanuel Vadot
833*833e5d42SEmmanuel Vadot&usbdp_phy1 {
834*833e5d42SEmmanuel Vadot	status = "okay";
835*833e5d42SEmmanuel Vadot};
836*833e5d42SEmmanuel Vadot
837*833e5d42SEmmanuel Vadot&usb_host0_ehci {
838*833e5d42SEmmanuel Vadot	status = "okay";
839*833e5d42SEmmanuel Vadot};
840*833e5d42SEmmanuel Vadot
841*833e5d42SEmmanuel Vadot&usb_host0_ohci {
842*833e5d42SEmmanuel Vadot	status = "okay";
843*833e5d42SEmmanuel Vadot};
844*833e5d42SEmmanuel Vadot
845*833e5d42SEmmanuel Vadot&usb_host1_ehci {
846*833e5d42SEmmanuel Vadot	status = "okay";
847*833e5d42SEmmanuel Vadot};
848*833e5d42SEmmanuel Vadot
849*833e5d42SEmmanuel Vadot&usb_host1_ohci {
850*833e5d42SEmmanuel Vadot	status = "okay";
851*833e5d42SEmmanuel Vadot};
852*833e5d42SEmmanuel Vadot
853*833e5d42SEmmanuel Vadot&usb_host1_xhci {
854*833e5d42SEmmanuel Vadot	dr_mode = "host";
855*833e5d42SEmmanuel Vadot	status = "okay";
856*833e5d42SEmmanuel Vadot};
857*833e5d42SEmmanuel Vadot
858*833e5d42SEmmanuel Vadot&vop {
859*833e5d42SEmmanuel Vadot	status = "okay";
860*833e5d42SEmmanuel Vadot};
861*833e5d42SEmmanuel Vadot
862*833e5d42SEmmanuel Vadot&vop_mmu {
863*833e5d42SEmmanuel Vadot	status = "okay";
864*833e5d42SEmmanuel Vadot};
865*833e5d42SEmmanuel Vadot
866*833e5d42SEmmanuel Vadot&vp0 {
867*833e5d42SEmmanuel Vadot	vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
868*833e5d42SEmmanuel Vadot		reg = <ROCKCHIP_VOP2_EP_HDMI0>;
869*833e5d42SEmmanuel Vadot		remote-endpoint = <&hdmi0_in_vp0>;
870*833e5d42SEmmanuel Vadot	};
871*833e5d42SEmmanuel Vadot};
872*833e5d42SEmmanuel Vadot
873*833e5d42SEmmanuel Vadot&vp1 {
874*833e5d42SEmmanuel Vadot	vp1_out_hdmi1: endpoint@ROCKCHIP_VOP2_EP_HDMI1 {
875*833e5d42SEmmanuel Vadot		reg = <ROCKCHIP_VOP2_EP_HDMI1>;
876*833e5d42SEmmanuel Vadot		remote-endpoint = <&hdmi1_in_vp1>;
877*833e5d42SEmmanuel Vadot	};
878*833e5d42SEmmanuel Vadot};
879