1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2016 Heiko Stuebner <heiko@sntech.de>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/dts-v1/;
7*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
8*f126890aSEmmanuel Vadot#include "rk3288.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "mqmaker MiQi";
12*f126890aSEmmanuel Vadot	compatible = "mqmaker,miqi", "rockchip,rk3288";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		stdout-path = "serial2:115200n8";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	memory@0 {
19*f126890aSEmmanuel Vadot		device_type = "memory";
20*f126890aSEmmanuel Vadot		reg = <0x0 0x0 0x0 0x80000000>;
21*f126890aSEmmanuel Vadot	};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	ext_gmac: external-gmac-clock {
24*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
25*f126890aSEmmanuel Vadot		#clock-cells = <0>;
26*f126890aSEmmanuel Vadot		clock-frequency = <125000000>;
27*f126890aSEmmanuel Vadot		clock-output-names = "ext_gmac";
28*f126890aSEmmanuel Vadot	};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot	leds {
31*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot		work_led: led-0 {
34*f126890aSEmmanuel Vadot			gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
35*f126890aSEmmanuel Vadot			label = "miqi:green:user";
36*f126890aSEmmanuel Vadot			linux,default-trigger = "timer";
37*f126890aSEmmanuel Vadot		};
38*f126890aSEmmanuel Vadot	};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot	vcc_flash: flash-regulator {
41*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
42*f126890aSEmmanuel Vadot		regulator-name = "vcc_flash";
43*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
44*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
45*f126890aSEmmanuel Vadot		vin-supply = <&vcc_io>;
46*f126890aSEmmanuel Vadot	};
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot	vcc_host: usb-host-regulator {
49*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
50*f126890aSEmmanuel Vadot		enable-active-high;
51*f126890aSEmmanuel Vadot		gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
52*f126890aSEmmanuel Vadot		pinctrl-names = "default";
53*f126890aSEmmanuel Vadot		pinctrl-0 = <&host_vbus_drv>;
54*f126890aSEmmanuel Vadot		regulator-name = "vcc_host";
55*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
56*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
57*f126890aSEmmanuel Vadot		regulator-always-on;
58*f126890aSEmmanuel Vadot		vin-supply = <&vcc_sys>;
59*f126890aSEmmanuel Vadot	};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot	vcc_sd: sdmmc-regulator {
62*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
63*f126890aSEmmanuel Vadot		gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
64*f126890aSEmmanuel Vadot		pinctrl-names = "default";
65*f126890aSEmmanuel Vadot		pinctrl-0 = <&sdmmc_pwr>;
66*f126890aSEmmanuel Vadot		regulator-name = "vcc_sd";
67*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
68*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
69*f126890aSEmmanuel Vadot		startup-delay-us = <100000>;
70*f126890aSEmmanuel Vadot		vin-supply = <&vcc_io>;
71*f126890aSEmmanuel Vadot	};
72*f126890aSEmmanuel Vadot
73*f126890aSEmmanuel Vadot	vcc_sys: vsys-regulator {
74*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
75*f126890aSEmmanuel Vadot		regulator-name = "vcc_sys";
76*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
77*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
78*f126890aSEmmanuel Vadot		regulator-always-on;
79*f126890aSEmmanuel Vadot		regulator-boot-on;
80*f126890aSEmmanuel Vadot	};
81*f126890aSEmmanuel Vadot};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot&cpu0 {
84*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_cpu>;
85*f126890aSEmmanuel Vadot};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot&cpu1 {
88*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_cpu>;
89*f126890aSEmmanuel Vadot};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot&cpu2 {
92*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_cpu>;
93*f126890aSEmmanuel Vadot};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot&cpu3 {
96*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_cpu>;
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&emmc {
100*f126890aSEmmanuel Vadot	bus-width = <8>;
101*f126890aSEmmanuel Vadot	cap-mmc-highspeed;
102*f126890aSEmmanuel Vadot	non-removable;
103*f126890aSEmmanuel Vadot	pinctrl-names = "default";
104*f126890aSEmmanuel Vadot	pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
105*f126890aSEmmanuel Vadot	vmmc-supply = <&vcc_io>;
106*f126890aSEmmanuel Vadot	vqmmc-supply = <&vcc_flash>;
107*f126890aSEmmanuel Vadot	status = "okay";
108*f126890aSEmmanuel Vadot};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot&gmac {
111*f126890aSEmmanuel Vadot	assigned-clocks = <&cru SCLK_MAC>;
112*f126890aSEmmanuel Vadot	assigned-clock-parents = <&ext_gmac>;
113*f126890aSEmmanuel Vadot	clock_in_out = "input";
114*f126890aSEmmanuel Vadot	pinctrl-names = "default";
115*f126890aSEmmanuel Vadot	pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
116*f126890aSEmmanuel Vadot	phy-supply = <&vcc_lan>;
117*f126890aSEmmanuel Vadot	phy-mode = "rgmii";
118*f126890aSEmmanuel Vadot	snps,reset-active-low;
119*f126890aSEmmanuel Vadot	snps,reset-delays-us = <0 10000 1000000>;
120*f126890aSEmmanuel Vadot	snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
121*f126890aSEmmanuel Vadot	tx_delay = <0x30>;
122*f126890aSEmmanuel Vadot	rx_delay = <0x10>;
123*f126890aSEmmanuel Vadot	status = "okay";
124*f126890aSEmmanuel Vadot};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot&gpu {
127*f126890aSEmmanuel Vadot	mali-supply = <&vdd_gpu>;
128*f126890aSEmmanuel Vadot	status = "okay";
129*f126890aSEmmanuel Vadot};
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot&hdmi {
132*f126890aSEmmanuel Vadot	ddc-i2c-bus = <&i2c5>;
133*f126890aSEmmanuel Vadot	status = "okay";
134*f126890aSEmmanuel Vadot};
135*f126890aSEmmanuel Vadot
136*f126890aSEmmanuel Vadot&i2c0 {
137*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
138*f126890aSEmmanuel Vadot	status = "okay";
139*f126890aSEmmanuel Vadot
140*f126890aSEmmanuel Vadot	vdd_cpu: syr827@40 {
141*f126890aSEmmanuel Vadot		compatible = "silergy,syr827";
142*f126890aSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
143*f126890aSEmmanuel Vadot		reg = <0x40>;
144*f126890aSEmmanuel Vadot		regulator-name = "vdd_cpu";
145*f126890aSEmmanuel Vadot		regulator-min-microvolt = <850000>;
146*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1350000>;
147*f126890aSEmmanuel Vadot		regulator-always-on;
148*f126890aSEmmanuel Vadot		regulator-boot-on;
149*f126890aSEmmanuel Vadot		regulator-enable-ramp-delay = <300>;
150*f126890aSEmmanuel Vadot		regulator-ramp-delay = <8000>;
151*f126890aSEmmanuel Vadot		vin-supply = <&vcc_sys>;
152*f126890aSEmmanuel Vadot	};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot	vdd_gpu: syr828@41 {
155*f126890aSEmmanuel Vadot		compatible = "silergy,syr828";
156*f126890aSEmmanuel Vadot		fcs,suspend-voltage-selector = <1>;
157*f126890aSEmmanuel Vadot		reg = <0x41>;
158*f126890aSEmmanuel Vadot		regulator-name = "vdd_gpu";
159*f126890aSEmmanuel Vadot		regulator-min-microvolt = <850000>;
160*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1350000>;
161*f126890aSEmmanuel Vadot		regulator-always-on;
162*f126890aSEmmanuel Vadot		vin-supply = <&vcc_sys>;
163*f126890aSEmmanuel Vadot	};
164*f126890aSEmmanuel Vadot
165*f126890aSEmmanuel Vadot	hym8563: rtc@51 {
166*f126890aSEmmanuel Vadot		compatible = "haoyu,hym8563";
167*f126890aSEmmanuel Vadot		reg = <0x51>;
168*f126890aSEmmanuel Vadot		#clock-cells = <0>;
169*f126890aSEmmanuel Vadot		clock-output-names = "xin32k";
170*f126890aSEmmanuel Vadot	};
171*f126890aSEmmanuel Vadot
172*f126890aSEmmanuel Vadot	act8846: act8846@5a {
173*f126890aSEmmanuel Vadot		compatible = "active-semi,act8846";
174*f126890aSEmmanuel Vadot		reg = <0x5a>;
175*f126890aSEmmanuel Vadot		pinctrl-names = "default";
176*f126890aSEmmanuel Vadot		pinctrl-0 = <&pmic_vsel>;
177*f126890aSEmmanuel Vadot		system-power-controller;
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot		vp1-supply = <&vcc_sys>;
180*f126890aSEmmanuel Vadot		vp2-supply = <&vcc_sys>;
181*f126890aSEmmanuel Vadot		vp3-supply = <&vcc_sys>;
182*f126890aSEmmanuel Vadot		vp4-supply = <&vcc_sys>;
183*f126890aSEmmanuel Vadot		inl1-supply = <&vcc_sys>;
184*f126890aSEmmanuel Vadot		inl2-supply = <&vcc_sys>;
185*f126890aSEmmanuel Vadot		inl3-supply = <&vcc_20>;
186*f126890aSEmmanuel Vadot
187*f126890aSEmmanuel Vadot		regulators {
188*f126890aSEmmanuel Vadot			vcc_ddr: REG1 {
189*f126890aSEmmanuel Vadot				regulator-name = "vcc_ddr";
190*f126890aSEmmanuel Vadot				regulator-always-on;
191*f126890aSEmmanuel Vadot			};
192*f126890aSEmmanuel Vadot
193*f126890aSEmmanuel Vadot			vcc_io: REG2 {
194*f126890aSEmmanuel Vadot				regulator-name = "vcc_io";
195*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
196*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
197*f126890aSEmmanuel Vadot				regulator-always-on;
198*f126890aSEmmanuel Vadot			};
199*f126890aSEmmanuel Vadot
200*f126890aSEmmanuel Vadot			vdd_log: REG3 {
201*f126890aSEmmanuel Vadot				regulator-name = "vdd_log";
202*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1100000>;
203*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1100000>;
204*f126890aSEmmanuel Vadot				regulator-always-on;
205*f126890aSEmmanuel Vadot			};
206*f126890aSEmmanuel Vadot
207*f126890aSEmmanuel Vadot			vcc_20: REG4 {
208*f126890aSEmmanuel Vadot				regulator-name = "vcc_20";
209*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2000000>;
210*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2000000>;
211*f126890aSEmmanuel Vadot				regulator-always-on;
212*f126890aSEmmanuel Vadot			};
213*f126890aSEmmanuel Vadot
214*f126890aSEmmanuel Vadot			vccio_sd: REG5 {
215*f126890aSEmmanuel Vadot				regulator-name = "vccio_sd";
216*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
217*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
218*f126890aSEmmanuel Vadot				regulator-always-on;
219*f126890aSEmmanuel Vadot			};
220*f126890aSEmmanuel Vadot
221*f126890aSEmmanuel Vadot			vdd10_lcd: REG6 {
222*f126890aSEmmanuel Vadot				regulator-name = "vdd10_lcd";
223*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
224*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
225*f126890aSEmmanuel Vadot				regulator-always-on;
226*f126890aSEmmanuel Vadot			};
227*f126890aSEmmanuel Vadot
228*f126890aSEmmanuel Vadot			vcca_18: REG7 {
229*f126890aSEmmanuel Vadot				regulator-name = "vcca_18";
230*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
231*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
232*f126890aSEmmanuel Vadot			};
233*f126890aSEmmanuel Vadot
234*f126890aSEmmanuel Vadot			vcca_33: REG8 {
235*f126890aSEmmanuel Vadot				regulator-name = "vcca_33";
236*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
237*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
238*f126890aSEmmanuel Vadot			};
239*f126890aSEmmanuel Vadot
240*f126890aSEmmanuel Vadot			vcc_lan: REG9 {
241*f126890aSEmmanuel Vadot				regulator-name = "vcc_lan";
242*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
243*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
244*f126890aSEmmanuel Vadot			};
245*f126890aSEmmanuel Vadot
246*f126890aSEmmanuel Vadot			vdd_10: REG10 {
247*f126890aSEmmanuel Vadot				regulator-name = "vdd_10";
248*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
249*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
250*f126890aSEmmanuel Vadot				regulator-always-on;
251*f126890aSEmmanuel Vadot			};
252*f126890aSEmmanuel Vadot
253*f126890aSEmmanuel Vadot			vcc_18: REG11 {
254*f126890aSEmmanuel Vadot				regulator-name = "vcc_18";
255*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
256*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
257*f126890aSEmmanuel Vadot				regulator-always-on;
258*f126890aSEmmanuel Vadot			};
259*f126890aSEmmanuel Vadot
260*f126890aSEmmanuel Vadot			vcc18_lcd: REG12 {
261*f126890aSEmmanuel Vadot				regulator-name = "vcc18_lcd";
262*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
263*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
264*f126890aSEmmanuel Vadot				regulator-always-on;
265*f126890aSEmmanuel Vadot			};
266*f126890aSEmmanuel Vadot		};
267*f126890aSEmmanuel Vadot	};
268*f126890aSEmmanuel Vadot};
269*f126890aSEmmanuel Vadot
270*f126890aSEmmanuel Vadot&i2c1 {
271*f126890aSEmmanuel Vadot	status = "okay";
272*f126890aSEmmanuel Vadot};
273*f126890aSEmmanuel Vadot
274*f126890aSEmmanuel Vadot&i2c2 {
275*f126890aSEmmanuel Vadot	status = "okay";
276*f126890aSEmmanuel Vadot};
277*f126890aSEmmanuel Vadot
278*f126890aSEmmanuel Vadot&i2c4 {
279*f126890aSEmmanuel Vadot	status = "okay";
280*f126890aSEmmanuel Vadot};
281*f126890aSEmmanuel Vadot
282*f126890aSEmmanuel Vadot&i2c5 {
283*f126890aSEmmanuel Vadot	status = "okay";
284*f126890aSEmmanuel Vadot};
285*f126890aSEmmanuel Vadot
286*f126890aSEmmanuel Vadot&io_domains {
287*f126890aSEmmanuel Vadot	status = "okay";
288*f126890aSEmmanuel Vadot
289*f126890aSEmmanuel Vadot	audio-supply = <&vcca_33>;
290*f126890aSEmmanuel Vadot	flash0-supply = <&vcc_flash>;
291*f126890aSEmmanuel Vadot	flash1-supply = <&vcc_lan>;
292*f126890aSEmmanuel Vadot	gpio30-supply = <&vcc_io>;
293*f126890aSEmmanuel Vadot	gpio1830-supply = <&vcc_io>;
294*f126890aSEmmanuel Vadot	lcdc-supply = <&vcc_io>;
295*f126890aSEmmanuel Vadot	sdcard-supply = <&vccio_sd>;
296*f126890aSEmmanuel Vadot	wifi-supply = <&vcc_18>;
297*f126890aSEmmanuel Vadot};
298*f126890aSEmmanuel Vadot
299*f126890aSEmmanuel Vadot&pinctrl {
300*f126890aSEmmanuel Vadot	pcfg_output_high: pcfg-output-high {
301*f126890aSEmmanuel Vadot		output-high;
302*f126890aSEmmanuel Vadot	};
303*f126890aSEmmanuel Vadot
304*f126890aSEmmanuel Vadot	pcfg_output_low: pcfg-output-low {
305*f126890aSEmmanuel Vadot		output-low;
306*f126890aSEmmanuel Vadot	};
307*f126890aSEmmanuel Vadot
308*f126890aSEmmanuel Vadot	pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
309*f126890aSEmmanuel Vadot		bias-pull-up;
310*f126890aSEmmanuel Vadot		drive-strength = <12>;
311*f126890aSEmmanuel Vadot	};
312*f126890aSEmmanuel Vadot
313*f126890aSEmmanuel Vadot	act8846 {
314*f126890aSEmmanuel Vadot		pmic_int: pmic-int {
315*f126890aSEmmanuel Vadot			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
316*f126890aSEmmanuel Vadot		};
317*f126890aSEmmanuel Vadot
318*f126890aSEmmanuel Vadot		pmic_sleep: pmic-sleep {
319*f126890aSEmmanuel Vadot			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_output_low>;
320*f126890aSEmmanuel Vadot		};
321*f126890aSEmmanuel Vadot
322*f126890aSEmmanuel Vadot		pmic_vsel: pmic-vsel {
323*f126890aSEmmanuel Vadot			rockchip,pins = <7 RK_PA1 RK_FUNC_GPIO &pcfg_output_low>;
324*f126890aSEmmanuel Vadot		};
325*f126890aSEmmanuel Vadot	};
326*f126890aSEmmanuel Vadot
327*f126890aSEmmanuel Vadot	gmac {
328*f126890aSEmmanuel Vadot		phy_int: phy-int {
329*f126890aSEmmanuel Vadot			rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
330*f126890aSEmmanuel Vadot		};
331*f126890aSEmmanuel Vadot
332*f126890aSEmmanuel Vadot		phy_pmeb: phy-pmeb {
333*f126890aSEmmanuel Vadot			rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
334*f126890aSEmmanuel Vadot		};
335*f126890aSEmmanuel Vadot
336*f126890aSEmmanuel Vadot		phy_rst: phy-rst {
337*f126890aSEmmanuel Vadot			rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
338*f126890aSEmmanuel Vadot		};
339*f126890aSEmmanuel Vadot	};
340*f126890aSEmmanuel Vadot
341*f126890aSEmmanuel Vadot	sdmmc {
342*f126890aSEmmanuel Vadot		/*
343*f126890aSEmmanuel Vadot		 * Default drive strength isn't enough to achieve even
344*f126890aSEmmanuel Vadot		 * high-speed mode on firefly board so bump up to 12ma.
345*f126890aSEmmanuel Vadot		 */
346*f126890aSEmmanuel Vadot		sdmmc_bus4: sdmmc-bus4 {
347*f126890aSEmmanuel Vadot			rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_12ma>,
348*f126890aSEmmanuel Vadot					<6 RK_PC1 1 &pcfg_pull_up_drv_12ma>,
349*f126890aSEmmanuel Vadot					<6 RK_PC2 1 &pcfg_pull_up_drv_12ma>,
350*f126890aSEmmanuel Vadot					<6 RK_PC3 1 &pcfg_pull_up_drv_12ma>;
351*f126890aSEmmanuel Vadot		};
352*f126890aSEmmanuel Vadot
353*f126890aSEmmanuel Vadot		sdmmc_clk: sdmmc-clk {
354*f126890aSEmmanuel Vadot			rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_12ma>;
355*f126890aSEmmanuel Vadot		};
356*f126890aSEmmanuel Vadot
357*f126890aSEmmanuel Vadot		sdmmc_cmd: sdmmc-cmd {
358*f126890aSEmmanuel Vadot			rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_12ma>;
359*f126890aSEmmanuel Vadot		};
360*f126890aSEmmanuel Vadot
361*f126890aSEmmanuel Vadot		sdmmc_pwr: sdmmc-pwr {
362*f126890aSEmmanuel Vadot			rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
363*f126890aSEmmanuel Vadot		};
364*f126890aSEmmanuel Vadot	};
365*f126890aSEmmanuel Vadot
366*f126890aSEmmanuel Vadot	usb_host {
367*f126890aSEmmanuel Vadot		host_vbus_drv: host-vbus-drv {
368*f126890aSEmmanuel Vadot			rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
369*f126890aSEmmanuel Vadot		};
370*f126890aSEmmanuel Vadot	};
371*f126890aSEmmanuel Vadot};
372*f126890aSEmmanuel Vadot
373*f126890aSEmmanuel Vadot&saradc {
374*f126890aSEmmanuel Vadot	vref-supply = <&vcc_18>;
375*f126890aSEmmanuel Vadot	status = "okay";
376*f126890aSEmmanuel Vadot};
377*f126890aSEmmanuel Vadot
378*f126890aSEmmanuel Vadot&sdmmc {
379*f126890aSEmmanuel Vadot	bus-width = <4>;
380*f126890aSEmmanuel Vadot	cap-mmc-highspeed;
381*f126890aSEmmanuel Vadot	cap-sd-highspeed;
382*f126890aSEmmanuel Vadot	card-detect-delay = <200>;
383*f126890aSEmmanuel Vadot	disable-wp;
384*f126890aSEmmanuel Vadot	pinctrl-names = "default";
385*f126890aSEmmanuel Vadot	pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
386*f126890aSEmmanuel Vadot	vmmc-supply = <&vcc_sd>;
387*f126890aSEmmanuel Vadot	vqmmc-supply = <&vccio_sd>;
388*f126890aSEmmanuel Vadot	status = "okay";
389*f126890aSEmmanuel Vadot};
390*f126890aSEmmanuel Vadot
391*f126890aSEmmanuel Vadot&tsadc {
392*f126890aSEmmanuel Vadot	rockchip,hw-tshut-mode = <0>;
393*f126890aSEmmanuel Vadot	rockchip,hw-tshut-polarity = <0>;
394*f126890aSEmmanuel Vadot	status = "okay";
395*f126890aSEmmanuel Vadot};
396*f126890aSEmmanuel Vadot
397*f126890aSEmmanuel Vadot&uart2 {
398*f126890aSEmmanuel Vadot	status = "okay";
399*f126890aSEmmanuel Vadot};
400*f126890aSEmmanuel Vadot
401*f126890aSEmmanuel Vadot&uart3 {
402*f126890aSEmmanuel Vadot	status = "okay";
403*f126890aSEmmanuel Vadot};
404*f126890aSEmmanuel Vadot
405*f126890aSEmmanuel Vadot&usbphy {
406*f126890aSEmmanuel Vadot	status = "okay";
407*f126890aSEmmanuel Vadot};
408*f126890aSEmmanuel Vadot
409*f126890aSEmmanuel Vadot&usb_host1 {
410*f126890aSEmmanuel Vadot	status = "okay";
411*f126890aSEmmanuel Vadot};
412*f126890aSEmmanuel Vadot
413*f126890aSEmmanuel Vadot&usb_otg {
414*f126890aSEmmanuel Vadot	/*
415*f126890aSEmmanuel Vadot	 * The otg controller is the only system power source,
416*f126890aSEmmanuel Vadot	 * so needs to always stay in device mode.
417*f126890aSEmmanuel Vadot	 */
418*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
419*f126890aSEmmanuel Vadot	status = "okay";
420*f126890aSEmmanuel Vadot};
421*f126890aSEmmanuel Vadot
422*f126890aSEmmanuel Vadot&vopb {
423*f126890aSEmmanuel Vadot	status = "okay";
424*f126890aSEmmanuel Vadot};
425*f126890aSEmmanuel Vadot
426*f126890aSEmmanuel Vadot&vopb_mmu {
427*f126890aSEmmanuel Vadot	status = "okay";
428*f126890aSEmmanuel Vadot};
429*f126890aSEmmanuel Vadot
430*f126890aSEmmanuel Vadot&vopl {
431*f126890aSEmmanuel Vadot	status = "okay";
432*f126890aSEmmanuel Vadot};
433*f126890aSEmmanuel Vadot
434*f126890aSEmmanuel Vadot&vopl_mmu {
435*f126890aSEmmanuel Vadot	status = "okay";
436*f126890aSEmmanuel Vadot};
437*f126890aSEmmanuel Vadot
438*f126890aSEmmanuel Vadot&wdt {
439*f126890aSEmmanuel Vadot	status = "okay";
440*f126890aSEmmanuel Vadot};
441