xref: /OK3568_Linux_fs/kernel/arch/arm/boot/dts/rk3229-gva-sdk.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms
5*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual
6*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a
7*4882a593Smuzhiyun * whole.
8*4882a593Smuzhiyun *
9*4882a593Smuzhiyun *  a) This file is free software; you can redistribute it and/or
10*4882a593Smuzhiyun *     modify it under the terms of the GNU General Public License as
11*4882a593Smuzhiyun *     published by the Free Software Foundation; either version 2 of the
12*4882a593Smuzhiyun *     License, or (at your option) any later version.
13*4882a593Smuzhiyun *
14*4882a593Smuzhiyun *     This file is distributed in the hope that it will be useful,
15*4882a593Smuzhiyun *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*4882a593Smuzhiyun *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*4882a593Smuzhiyun *     GNU General Public License for more details.
18*4882a593Smuzhiyun *
19*4882a593Smuzhiyun *  Or, alternatively,
20*4882a593Smuzhiyun *
21*4882a593Smuzhiyun *  b) Permission is hereby granted, free of charge, to any person
22*4882a593Smuzhiyun *     obtaining a copy of this software and associated documentation
23*4882a593Smuzhiyun *     files (the "Software"), to deal in the Software without
24*4882a593Smuzhiyun *     restriction, including without limitation the rights to use,
25*4882a593Smuzhiyun *     copy, modify, merge, publish, distribute, sublicense, and/or
26*4882a593Smuzhiyun *     sell copies of the Software, and to permit persons to whom the
27*4882a593Smuzhiyun *     Software is furnished to do so, subject to the following
28*4882a593Smuzhiyun *     conditions:
29*4882a593Smuzhiyun *
30*4882a593Smuzhiyun *     The above copyright notice and this permission notice shall be
31*4882a593Smuzhiyun *     included in all copies or substantial portions of the Software.
32*4882a593Smuzhiyun *
33*4882a593Smuzhiyun *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*4882a593Smuzhiyun *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*4882a593Smuzhiyun *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*4882a593Smuzhiyun *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*4882a593Smuzhiyun *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*4882a593Smuzhiyun *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*4882a593Smuzhiyun *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*4882a593Smuzhiyun *     OTHER DEALINGS IN THE SOFTWARE.
41*4882a593Smuzhiyun */
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun/dts-v1/;
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun#include "rk322x.dtsi"
46*4882a593Smuzhiyun#include "rk3229-cpu-opp.dtsi"
47*4882a593Smuzhiyun#include "rk322x-android.dtsi"
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun/ {
50*4882a593Smuzhiyun	model = "RK3229 GOOGLE VOICE ASSISTANT SDK Board";
51*4882a593Smuzhiyun	compatible = "rockchip,rk3229-gva-sdk", "rockchip,rk3229";
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun	sdio_pwrseq: sdio-pwrseq {
54*4882a593Smuzhiyun		compatible = "mmc-pwrseq-simple";
55*4882a593Smuzhiyun		clocks = <&rk805 1>;
56*4882a593Smuzhiyun		clock-names = "ext_clock";
57*4882a593Smuzhiyun		pinctrl-names = "default";
58*4882a593Smuzhiyun		pinctrl-0 = <&wifi_enable_h>;
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun		/*
61*4882a593Smuzhiyun		 * On the module itself this is one of these (depending
62*4882a593Smuzhiyun		 * on the actual card populated):
63*4882a593Smuzhiyun		 * - SDIO_RESET_L_WL_REG_ON
64*4882a593Smuzhiyun		 * - PDN (power down when low)
65*4882a593Smuzhiyun		 */
66*4882a593Smuzhiyun		reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* GPIO3_B7 */
67*4882a593Smuzhiyun	};
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun	wireless-bluetooth {
70*4882a593Smuzhiyun		compatible = "bluetooth-platdata";
71*4882a593Smuzhiyun		clocks = <&rk805 1>;
72*4882a593Smuzhiyun		clock-names = "ext_clock";
73*4882a593Smuzhiyun		uart_rts_gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
74*4882a593Smuzhiyun		pinctrl-names = "default", "rts_gpio";
75*4882a593Smuzhiyun		pinctrl-0 = <&uart11_rts>;
76*4882a593Smuzhiyun		pinctrl-1 = <&uart11_rts_gpio>;
77*4882a593Smuzhiyun		BT,reset_gpio    = <&gpio2 29 GPIO_ACTIVE_HIGH>;
78*4882a593Smuzhiyun		BT,wake_gpio     = <&gpio3 27 GPIO_ACTIVE_HIGH>;
79*4882a593Smuzhiyun		BT,wake_host_irq = <&gpio3 26 GPIO_ACTIVE_HIGH>;
80*4882a593Smuzhiyun		status = "okay";
81*4882a593Smuzhiyun	};
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun	wireless-wlan {
84*4882a593Smuzhiyun		compatible = "wlan-platdata";
85*4882a593Smuzhiyun		rockchip,grf = <&grf>;
86*4882a593Smuzhiyun		wifi_chip_type = "ap6255";
87*4882a593Smuzhiyun		WIFI,host_wake_irq = <&gpio0 28 GPIO_ACTIVE_HIGH>;
88*4882a593Smuzhiyun		status = "okay";
89*4882a593Smuzhiyun	};
90*4882a593Smuzhiyun
91*4882a593Smuzhiyun	gpio_keys {
92*4882a593Smuzhiyun		compatible = "gpio-keys";
93*4882a593Smuzhiyun		#address-cells = <1>;
94*4882a593Smuzhiyun		#size-cells = <0>;
95*4882a593Smuzhiyun		autorepeat;
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun		pinctrl-names = "default";
98*4882a593Smuzhiyun		pinctrl-0 = <&pwr_key &bt_key &mute_key>;
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun		power_key {
101*4882a593Smuzhiyun			label = "GPIO Key Power";
102*4882a593Smuzhiyun			gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
103*4882a593Smuzhiyun			linux,code = <116>;
104*4882a593Smuzhiyun			debounce-interval = <100>;
105*4882a593Smuzhiyun			wakeup-source;
106*4882a593Smuzhiyun		};
107*4882a593Smuzhiyun
108*4882a593Smuzhiyun		bt_key {
109*4882a593Smuzhiyun			label = "Blutooth Key";
110*4882a593Smuzhiyun			gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>;
111*4882a593Smuzhiyun			linux,code = <237>;
112*4882a593Smuzhiyun			debounce-interval = <100>;
113*4882a593Smuzhiyun		};
114*4882a593Smuzhiyun
115*4882a593Smuzhiyun		mute_key {
116*4882a593Smuzhiyun			label = "Mute Key";
117*4882a593Smuzhiyun			gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
118*4882a593Smuzhiyun			linux,code = <113>;
119*4882a593Smuzhiyun			debounce-interval = <100>;
120*4882a593Smuzhiyun		};
121*4882a593Smuzhiyun	};
122*4882a593Smuzhiyun
123*4882a593Smuzhiyun	gva_codec: gva-codec {
124*4882a593Smuzhiyun		compatible = "rockchip,gva-codec";
125*4882a593Smuzhiyun		#sound-dai-cells = <0>;
126*4882a593Smuzhiyun		status = "okay";
127*4882a593Smuzhiyun	};
128*4882a593Smuzhiyun
129*4882a593Smuzhiyun	gva-sound {
130*4882a593Smuzhiyun		compatible = "simple-audio-card";
131*4882a593Smuzhiyun		simple-audio-card,format = "i2s";
132*4882a593Smuzhiyun		simple-audio-card,name = "rockchip,rk3229-dummy";
133*4882a593Smuzhiyun		simple-audio-card,mclk-fs = <256>;
134*4882a593Smuzhiyun		simple-audio-card,cpu {
135*4882a593Smuzhiyun			sound-dai = <&i2s1>;
136*4882a593Smuzhiyun		};
137*4882a593Smuzhiyun		simple-audio-card,codec {
138*4882a593Smuzhiyun			sound-dai = <&gva_codec>;
139*4882a593Smuzhiyun		};
140*4882a593Smuzhiyun	};
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun	vcc_otg_vbus: otg-vbus-regulator {
143*4882a593Smuzhiyun		compatible = "regulator-fixed";
144*4882a593Smuzhiyun		gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
145*4882a593Smuzhiyun		pinctrl-names = "default";
146*4882a593Smuzhiyun		pinctrl-0 = <&otg_vbus_drv>;
147*4882a593Smuzhiyun		regulator-name = "vcc_otg_vbus";
148*4882a593Smuzhiyun		regulator-min-microvolt = <5000000>;
149*4882a593Smuzhiyun		regulator-max-microvolt = <5000000>;
150*4882a593Smuzhiyun		enable-active-high;
151*4882a593Smuzhiyun	};
152*4882a593Smuzhiyun
153*4882a593Smuzhiyun	xin32k: xin32k {
154*4882a593Smuzhiyun		compatible = "fixed-clock";
155*4882a593Smuzhiyun		clock-frequency = <32768>;
156*4882a593Smuzhiyun		clock-output-names = "xin32k";
157*4882a593Smuzhiyun		#clock-cells = <0>;
158*4882a593Smuzhiyun	};
159*4882a593Smuzhiyun};
160*4882a593Smuzhiyun
161*4882a593Smuzhiyun&firmware_android {
162*4882a593Smuzhiyun	compatible = "android,firmware";
163*4882a593Smuzhiyun	fstab {
164*4882a593Smuzhiyun		compatible = "android,fstab";
165*4882a593Smuzhiyun		system {
166*4882a593Smuzhiyun			compatible = "android,system";
167*4882a593Smuzhiyun			dev = "/dev/block/by-name/system";
168*4882a593Smuzhiyun			type = "ext4";
169*4882a593Smuzhiyun			mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
170*4882a593Smuzhiyun			fsmgr_flags = "wait,verify";
171*4882a593Smuzhiyun		};
172*4882a593Smuzhiyun		vendor {
173*4882a593Smuzhiyun			compatible = "android,vendor";
174*4882a593Smuzhiyun			dev = "/dev/block/by-name/vendor";
175*4882a593Smuzhiyun			type = "ext4";
176*4882a593Smuzhiyun			mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
177*4882a593Smuzhiyun			fsmgr_flags = "wait,verify";
178*4882a593Smuzhiyun		};
179*4882a593Smuzhiyun	};
180*4882a593Smuzhiyun};
181*4882a593Smuzhiyun
182*4882a593Smuzhiyun&gpu {
183*4882a593Smuzhiyun	status = "okay";
184*4882a593Smuzhiyun	mali-supply = <&vdd_logic>;
185*4882a593Smuzhiyun};
186*4882a593Smuzhiyun
187*4882a593Smuzhiyun&nandc {
188*4882a593Smuzhiyun	status = "disabled";
189*4882a593Smuzhiyun};
190*4882a593Smuzhiyun
191*4882a593Smuzhiyun&emmc {
192*4882a593Smuzhiyun	max-frequency = <125000000>;
193*4882a593Smuzhiyun	cap-mmc-highspeed;
194*4882a593Smuzhiyun	mmc-ddr-1_8v;
195*4882a593Smuzhiyun	non-removable;
196*4882a593Smuzhiyun	no-sdio;
197*4882a593Smuzhiyun	no-sd;
198*4882a593Smuzhiyun	status = "okay";
199*4882a593Smuzhiyun};
200*4882a593Smuzhiyun
201*4882a593Smuzhiyun&i2c0 {
202*4882a593Smuzhiyun	status = "okay";
203*4882a593Smuzhiyun
204*4882a593Smuzhiyun	rk805: rk805@18 {
205*4882a593Smuzhiyun		compatible = "rockchip,rk805";
206*4882a593Smuzhiyun		status = "okay";
207*4882a593Smuzhiyun		reg = <0x18>;
208*4882a593Smuzhiyun		interrupt-parent = <&gpio1>;
209*4882a593Smuzhiyun		interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
210*4882a593Smuzhiyun		spinctrl-names = "default";
211*4882a593Smuzhiyun		pinctrl-0 = <&pmic_int_l>;
212*4882a593Smuzhiyun		rockchip,system-power-controller;
213*4882a593Smuzhiyun		wakeup-source;
214*4882a593Smuzhiyun		gpio-controller;
215*4882a593Smuzhiyun		#gpio-cells = <2>;
216*4882a593Smuzhiyun		#clock-cells = <1>;
217*4882a593Smuzhiyun		clock-output-names = "rk805-clkout1", "rk805-clkout2";
218*4882a593Smuzhiyun
219*4882a593Smuzhiyun		rtc {
220*4882a593Smuzhiyun			status = "okay";
221*4882a593Smuzhiyun		};
222*4882a593Smuzhiyun
223*4882a593Smuzhiyun		pwrkey {
224*4882a593Smuzhiyun			status = "okay";
225*4882a593Smuzhiyun		};
226*4882a593Smuzhiyun
227*4882a593Smuzhiyun		gpio {
228*4882a593Smuzhiyun			status = "okay";
229*4882a593Smuzhiyun		};
230*4882a593Smuzhiyun
231*4882a593Smuzhiyun		regulators {
232*4882a593Smuzhiyun			vdd_arm: DCDC_REG1 {
233*4882a593Smuzhiyun				regulator-name = "vdd_arm";
234*4882a593Smuzhiyun				regulator-min-microvolt = <712500>;
235*4882a593Smuzhiyun				regulator-max-microvolt = <1450000>;
236*4882a593Smuzhiyun				regulator-initial-mode = <0x1>;
237*4882a593Smuzhiyun				regulator-ramp-delay = <12500>;
238*4882a593Smuzhiyun				regulator-boot-on;
239*4882a593Smuzhiyun				regulator-always-on;
240*4882a593Smuzhiyun				regulator-state-mem {
241*4882a593Smuzhiyun					regulator-mode = <0x2>;
242*4882a593Smuzhiyun					regulator-on-in-suspend;
243*4882a593Smuzhiyun					regulator-suspend-microvolt = <950000>;
244*4882a593Smuzhiyun				};
245*4882a593Smuzhiyun			};
246*4882a593Smuzhiyun
247*4882a593Smuzhiyun			vdd_logic: DCDC_REG2 {
248*4882a593Smuzhiyun				regulator-name = "vdd_logic";
249*4882a593Smuzhiyun				regulator-min-microvolt = <712500>;
250*4882a593Smuzhiyun				regulator-max-microvolt = <1450000>;
251*4882a593Smuzhiyun				regulator-initial-mode = <0x1>;
252*4882a593Smuzhiyun				regulator-ramp-delay = <12500>;
253*4882a593Smuzhiyun				regulator-boot-on;
254*4882a593Smuzhiyun				regulator-always-on;
255*4882a593Smuzhiyun				regulator-state-mem {
256*4882a593Smuzhiyun					regulator-mode = <0x2>;
257*4882a593Smuzhiyun					regulator-on-in-suspend;
258*4882a593Smuzhiyun					regulator-suspend-microvolt = <1000000>;
259*4882a593Smuzhiyun				};
260*4882a593Smuzhiyun			};
261*4882a593Smuzhiyun
262*4882a593Smuzhiyun			vcc_ddr: DCDC_REG3 {
263*4882a593Smuzhiyun				regulator-name = "vcc_ddr";
264*4882a593Smuzhiyun				regulator-boot-on;
265*4882a593Smuzhiyun				regulator-always-on;
266*4882a593Smuzhiyun				regulator-state-mem {
267*4882a593Smuzhiyun					regulator-mode = <0x2>;
268*4882a593Smuzhiyun					regulator-on-in-suspend;
269*4882a593Smuzhiyun				};
270*4882a593Smuzhiyun			};
271*4882a593Smuzhiyun
272*4882a593Smuzhiyun			vcc_io: DCDC_REG4 {
273*4882a593Smuzhiyun				regulator-name = "vcc_io";
274*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
275*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
276*4882a593Smuzhiyun				regulator-initial-mode = <0x1>;
277*4882a593Smuzhiyun				regulator-boot-on;
278*4882a593Smuzhiyun				regulator-always-on;
279*4882a593Smuzhiyun				regulator-state-mem {
280*4882a593Smuzhiyun					regulator-mode = <0x2>;
281*4882a593Smuzhiyun					regulator-on-in-suspend;
282*4882a593Smuzhiyun					regulator-suspend-microvolt = <3300000>;
283*4882a593Smuzhiyun				};
284*4882a593Smuzhiyun			};
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun			vcc_18: LDO_REG1 {
287*4882a593Smuzhiyun				regulator-name = "vcc_18";
288*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
289*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
290*4882a593Smuzhiyun				regulator-boot-on;
291*4882a593Smuzhiyun				regulator-always-on;
292*4882a593Smuzhiyun				regulator-state-mem {
293*4882a593Smuzhiyun					regulator-on-in-suspend;
294*4882a593Smuzhiyun					regulator-suspend-microvolt = <1800000>;
295*4882a593Smuzhiyun				};
296*4882a593Smuzhiyun			};
297*4882a593Smuzhiyun
298*4882a593Smuzhiyun			vcc_18emmc: LDO_REG2 {
299*4882a593Smuzhiyun				regulator-name = "vcc_18emmc";
300*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
301*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
302*4882a593Smuzhiyun				regulator-boot-on;
303*4882a593Smuzhiyun				regulator-always-on;
304*4882a593Smuzhiyun				regulator-state-mem {
305*4882a593Smuzhiyun					regulator-on-in-suspend;
306*4882a593Smuzhiyun					regulator-suspend-microvolt = <1800000>;
307*4882a593Smuzhiyun				};
308*4882a593Smuzhiyun			};
309*4882a593Smuzhiyun
310*4882a593Smuzhiyun			vdd_10: LDO_REG3 {
311*4882a593Smuzhiyun				regulator-name = "vdd_10";
312*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
313*4882a593Smuzhiyun				regulator-max-microvolt = <1000000>;
314*4882a593Smuzhiyun				regulator-boot-on;
315*4882a593Smuzhiyun				regulator-always-on;
316*4882a593Smuzhiyun				regulator-state-mem {
317*4882a593Smuzhiyun					regulator-on-in-suspend;
318*4882a593Smuzhiyun					regulator-suspend-microvolt = <1000000>;
319*4882a593Smuzhiyun				};
320*4882a593Smuzhiyun			};
321*4882a593Smuzhiyun		};
322*4882a593Smuzhiyun	};
323*4882a593Smuzhiyun};
324*4882a593Smuzhiyun
325*4882a593Smuzhiyun&i2c1 {
326*4882a593Smuzhiyun	status = "okay";
327*4882a593Smuzhiyun	ts@8 {
328*4882a593Smuzhiyun		compatible = "cypress,cy8c4024";
329*4882a593Smuzhiyun		reg = <0x8>;
330*4882a593Smuzhiyun		interrupt-parent = <&gpio1>;
331*4882a593Smuzhiyun		interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>;
332*4882a593Smuzhiyun		status = "okay";
333*4882a593Smuzhiyun	};
334*4882a593Smuzhiyun};
335*4882a593Smuzhiyun
336*4882a593Smuzhiyun&i2c2 {
337*4882a593Smuzhiyun	status = "okay";
338*4882a593Smuzhiyun
339*4882a593Smuzhiyun	cw2015@62 {
340*4882a593Smuzhiyun		status = "okay";
341*4882a593Smuzhiyun		compatible = "cw201x";
342*4882a593Smuzhiyun		reg = <0x62>;
343*4882a593Smuzhiyun		bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32
344*4882a593Smuzhiyun		0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52
345*4882a593Smuzhiyun		0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB
346*4882a593Smuzhiyun		0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
347*4882a593Smuzhiyun		monitor_sec = <5>;
348*4882a593Smuzhiyun		virtual_power = <0>;
349*4882a593Smuzhiyun		divider_res1 = <200>;
350*4882a593Smuzhiyun		divider_res2 = <200>;
351*4882a593Smuzhiyun	};
352*4882a593Smuzhiyun};
353*4882a593Smuzhiyun
354*4882a593Smuzhiyun&i2s1 {
355*4882a593Smuzhiyun	status = "okay";
356*4882a593Smuzhiyun	rockchip,i2s-broken-burst-len;
357*4882a593Smuzhiyun	rockchip,playback-channels = <8>;
358*4882a593Smuzhiyun	rockchip,capture-channels = <8>;
359*4882a593Smuzhiyun	rockchip,bclk-fs = <64>;
360*4882a593Smuzhiyun	#sound-dai-cells = <0>;
361*4882a593Smuzhiyun};
362*4882a593Smuzhiyun
363*4882a593Smuzhiyun&cpu0 {
364*4882a593Smuzhiyun	cpu-supply = <&vdd_arm>;
365*4882a593Smuzhiyun};
366*4882a593Smuzhiyun
367*4882a593Smuzhiyun&io_domains {
368*4882a593Smuzhiyun	status = "okay";
369*4882a593Smuzhiyun
370*4882a593Smuzhiyun	vccio1-supply = <&vcc_io>;
371*4882a593Smuzhiyun	vccio2-supply = <&vcc_18>;
372*4882a593Smuzhiyun	vccio4-supply = <&vcc_io>;
373*4882a593Smuzhiyun};
374*4882a593Smuzhiyun
375*4882a593Smuzhiyun&pinctrl {
376*4882a593Smuzhiyun	keys {
377*4882a593Smuzhiyun		pwr_key: pwr-key {
378*4882a593Smuzhiyun			rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
379*4882a593Smuzhiyun		};
380*4882a593Smuzhiyun
381*4882a593Smuzhiyun		bt_key: bt-key {
382*4882a593Smuzhiyun			rockchip,pins = <3 RK_PD7 RK_FUNC_GPIO &pcfg_pull_down>;
383*4882a593Smuzhiyun		};
384*4882a593Smuzhiyun
385*4882a593Smuzhiyun		mute_key: mute-key {
386*4882a593Smuzhiyun			rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>;
387*4882a593Smuzhiyun		};
388*4882a593Smuzhiyun	};
389*4882a593Smuzhiyun
390*4882a593Smuzhiyun	pmic {
391*4882a593Smuzhiyun		pmic_int_l: pmic-int-l {
392*4882a593Smuzhiyun			rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio1_b4 */
393*4882a593Smuzhiyun		};
394*4882a593Smuzhiyun	};
395*4882a593Smuzhiyun
396*4882a593Smuzhiyun	sdio-pwrseq {
397*4882a593Smuzhiyun		wifi_enable_h: wifi-enable-h {
398*4882a593Smuzhiyun			rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
399*4882a593Smuzhiyun		};
400*4882a593Smuzhiyun	};
401*4882a593Smuzhiyun
402*4882a593Smuzhiyun	usb {
403*4882a593Smuzhiyun		otg_vbus_drv: otg-vbus-drv {
404*4882a593Smuzhiyun			rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
405*4882a593Smuzhiyun		};
406*4882a593Smuzhiyun	};
407*4882a593Smuzhiyun};
408*4882a593Smuzhiyun
409*4882a593Smuzhiyun&sdio {
410*4882a593Smuzhiyun	max-frequency = <150000000>;
411*4882a593Smuzhiyun	mmc-pwrseq = <&sdio_pwrseq>;
412*4882a593Smuzhiyun	num-slots = <1>;
413*4882a593Smuzhiyun	sd-uhs-sdr104;
414*4882a593Smuzhiyun	status = "okay";
415*4882a593Smuzhiyun};
416*4882a593Smuzhiyun
417*4882a593Smuzhiyun&rockchip_suspend {
418*4882a593Smuzhiyun	rockchip,sleep-mode-config = <
419*4882a593Smuzhiyun		(0
420*4882a593Smuzhiyun		|RKPM_CTR_GTCLKS
421*4882a593Smuzhiyun		|RKPM_CTR_IDLESRAM_MD
422*4882a593Smuzhiyun		|RKPM_CTR_PMIC
423*4882a593Smuzhiyun		)
424*4882a593Smuzhiyun	>;
425*4882a593Smuzhiyun};
426*4882a593Smuzhiyun
427*4882a593Smuzhiyun&u2phy0_otg {
428*4882a593Smuzhiyun	vbus-supply = <&vcc_otg_vbus>;
429*4882a593Smuzhiyun};
430