xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/arm64/rockchip/rk3308-evb-v11.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
4 */
5
6#include <dt-bindings/input/input.h>
7#include "rk3308.dtsi"
8
9/ {
10	model = "Rockchip RK3308 EVB V11";
11	compatible = "rockchip,rk3308-evb-v11", "rockchip,rk3308";
12
13	chosen {
14		bootargs = "earlycon=uart8250,mmio32,0xff0c0000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
15	};
16
17	adc-keys {
18		compatible = "adc-keys";
19		io-channels = <&saradc 1>;
20		io-channel-names = "buttons";
21		poll-interval = <100>;
22		keyup-threshold-microvolt = <1800000>;
23
24		esc-key {
25			linux,code = <KEY_MICMUTE>;
26			label = "micmute";
27			press-threshold-microvolt = <1130000>;
28		};
29
30		home-key {
31			linux,code = <KEY_MODE>;
32			label = "mode";
33			press-threshold-microvolt = <901000>;
34		};
35
36		menu-key {
37			linux,code = <KEY_PLAY>;
38			label = "play";
39			press-threshold-microvolt = <624000>;
40		};
41
42		vol-down-key {
43			linux,code = <KEY_VOLUMEDOWN>;
44			label = "volume down";
45			press-threshold-microvolt = <300000>;
46		};
47
48		vol-up-key {
49			linux,code = <KEY_VOLUMEUP>;
50			label = "volume up";
51			press-threshold-microvolt = <18000>;
52		};
53	};
54
55	dummy_codec: dummy-codec {
56		compatible = "rockchip,dummy-codec";
57		#sound-dai-cells = <0>;
58	};
59
60	gpio-keys {
61		compatible = "gpio-keys";
62		autorepeat;
63
64		pinctrl-names = "default";
65		pinctrl-0 = <&pwr_key>;
66
67		power {
68			gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
69			linux,code = <KEY_POWER>;
70			label = "GPIO Key Power";
71			wakeup-source;
72			debounce-interval = <100>;
73		};
74	};
75
76	sdio_pwrseq: sdio-pwrseq {
77		compatible = "mmc-pwrseq-simple";
78		pinctrl-names = "default";
79		pinctrl-0 = <&wifi_enable_h>;
80
81		/*
82		 * On the module itself this is one of these (depending
83		 * on the actual card populated):
84		 * - SDIO_RESET_L_WL_REG_ON
85		 * - PDN (power down when low)
86		 */
87		reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
88	};
89
90	acodec_sound: acodec-sound {
91		compatible = "rockchip,multicodecs-card";
92		rockchip,card-name = "rockchip,rk3308-acodec";
93		rockchip,codec-hp-det;
94		rockchip,mclk-fs = <256>;
95		rockchip,cpu = <&i2s_8ch_2>;
96		rockchip,codec = <&acodec>;
97	};
98
99	bluetooth_sound: bluetooth-sound {
100		status = "disabled";
101		compatible = "rockchip,multicodecs-card";
102		rockchip,card-name = "rockchip,rk3308-pcm";
103		rockchip,mclk-fs = <128>;
104		rockchip,cpu = <&i2s_2ch_0>;
105		rockchip,codec = <&dummy_codec>;
106		rockchip,format = "dsp_b";
107		rockchip,bitclock-inversion = <0>;
108		rockchip,wait-card-locked = <0>;
109	};
110
111	spdif_rx_sound: spdif-rx-sound {
112		status = "disabled";
113		compatible = "simple-audio-card";
114		simple-audio-card,name = "rockchip,spdif-rx-sound";
115		simple-audio-card,mclk-fs = <128>;
116		simple-audio-card,cpu {
117			sound-dai = <&spdif_rx>;
118		};
119		simple-audio-card,codec {
120			sound-dai = <&dummy_codec>;
121		};
122	};
123
124	spdif_tx_sound: spdif-tx-sound {
125		status = "disabled";
126		compatible = "simple-audio-card";
127		simple-audio-card,name = "rockchip,spdif-tx-sound";
128		simple-audio-card,cpu {
129			sound-dai = <&spdif_tx>;
130		};
131		simple-audio-card,codec {
132			sound-dai = <&dummy_codec>;
133		};
134	};
135
136	tas5731_sound: tas5731-sound {
137		status = "disabled";
138		compatible = "simple-audio-card";
139		simple-audio-card,format = "i2s";
140		simple-audio-card,name = "rockchip,tas5731";
141		simple-audio-card,mclk-fs = <256>;
142		simple-audio-card,cpu {
143			sound-dai = <&i2s_8ch_1>;
144		};
145		simple-audio-card,codec {
146			sound-dai = <&tas5731>;
147		};
148	};
149
150	vdd_core: vdd-core {
151		compatible = "pwm-regulator";
152		pwms = <&pwm0 0 5000 1>;
153		regulator-name = "vdd_core";
154		regulator-min-microvolt = <827000>;
155		regulator-max-microvolt = <1340000>;
156		regulator-init-microvolt = <1015000>;
157		regulator-always-on;
158		regulator-boot-on;
159		regulator-settling-time-up-us = <250>;
160		status = "okay";
161	};
162
163	vdd_log: vdd-log {
164		compatible = "regulator-fixed";
165		regulator-name = "vdd_log";
166		regulator-always-on;
167		regulator-boot-on;
168		regulator-min-microvolt = <1050000>;
169		regulator-max-microvolt = <1050000>;
170	};
171
172	vdd_1v0: vdd-1v0 {
173		compatible = "regulator-fixed";
174		regulator-name = "vdd_1v0";
175		regulator-always-on;
176		regulator-boot-on;
177		regulator-min-microvolt = <1000000>;
178		regulator-max-microvolt = <1000000>;
179	};
180
181	vccio_sdio: vcc_1v8: vcc-1v8 {
182		compatible = "regulator-fixed";
183		regulator-name = "vcc_1v8";
184		regulator-always-on;
185		regulator-boot-on;
186		regulator-min-microvolt = <1800000>;
187		regulator-max-microvolt = <1800000>;
188		vin-supply = <&vcc_io>;
189	};
190
191	vccio_sd: vccio-sd {
192		compatible = "regulator-gpio";
193		regulator-name = "vccio_sd";
194		regulator-min-microvolt = <1800000>;
195		regulator-max-microvolt = <3300000>;
196		gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
197		states = <1800000 0x0
198			  3300000 0x1>;
199	};
200
201	vcc_sd: vcc-sd {
202		compatible = "regulator-fixed";
203		gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>;
204		regulator-name = "vcc_sd";
205		regulator-min-microvolt = <3300000>;
206		regulator-max-microvolt = <3300000>;
207	};
208
209	vcc_1v8_codec: vcc-1v8-codec {
210		compatible = "regulator-fixed";
211		regulator-name = "vcc_1v8_codec";
212		regulator-always-on;
213		regulator-boot-on;
214		regulator-min-microvolt = <1800000>;
215		regulator-max-microvolt = <1800000>;
216		vin-supply = <&vcc_io>;
217	};
218
219	vcc_ddr: vcc-ddr {
220		compatible = "regulator-fixed";
221		regulator-name = "vcc_ddr";
222		regulator-always-on;
223		regulator-boot-on;
224		regulator-min-microvolt = <1500000>;
225		regulator-max-microvolt = <1500000>;
226	};
227
228	vcc_3v3_codec: vcc_io: vcc-io {
229		compatible = "regulator-fixed";
230		regulator-name = "vcc_io";
231		regulator-always-on;
232		regulator-boot-on;
233		regulator-min-microvolt = <3300000>;
234		regulator-max-microvolt = <3300000>;
235	};
236
237	vccio_flash: vccio-flash {
238		compatible = "regulator-fixed";
239		regulator-name = "vccio_flash";
240		regulator-always-on;
241		regulator-boot-on;
242		regulator-min-microvolt = <1800000>;
243		regulator-max-microvolt = <1800000>;
244	};
245
246	vcc_phy: vcc-phy-regulator {
247		compatible = "regulator-fixed";
248		regulator-name = "vcc_phy";
249		regulator-always-on;
250		regulator-boot-on;
251	};
252
253	vbus_host: vbus-host-regulator {
254		compatible = "regulator-fixed";
255		enable-active-high;
256		gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
257		pinctrl-names = "default";
258		pinctrl-0 = <&usb_drv>;
259		regulator-name = "vbus_host";
260	};
261
262	wireless-bluetooth {
263		compatible = "bluetooth-platdata";
264		uart_rts_gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
265		pinctrl-names = "default", "rts_gpio";
266		pinctrl-0 = <&uart4_rts>;
267		pinctrl-1 = <&uart4_rts_pin>;
268		BT,power_gpio    = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
269		BT,wake_host_irq = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
270		status = "okay";
271	};
272
273	wireless-wlan {
274		compatible = "wlan-platdata";
275		rockchip,grf = <&grf>;
276		pinctrl-names = "default";
277		pinctrl-0 = <&wifi_wake_host>, <&rtc_32k>;
278		wifi_chip_type = "ap6255";
279		WIFI,host_wake_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
280		status = "okay";
281	};
282};
283
284&acodec {
285	status = "okay";
286
287	rockchip,no-deep-low-power;
288	rockchip,loopback-grp = <0>;
289	hp-ctl-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
290	spk-ctl-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
291};
292
293&cpu0 {
294	cpu-supply = <&vdd_core>;
295};
296
297&cpu0_opp_table {
298	opp-1200000000 {
299		status = "okay";
300	};
301	opp-1296000000 {
302		status = "okay";
303	};
304};
305
306&rk3308bs_cpu0_opp_table {
307	opp-1008000000 {
308		status = "okay";
309	};
310	opp-1104000000 {
311		status = "okay";
312	};
313};
314
315&dmc {
316	center-supply = <&vdd_log>;
317	status = "okay";
318};
319
320&emmc {
321	bus-width = <8>;
322	cap-mmc-highspeed;
323	mmc-hs200-1_8v;
324	no-sdio;
325	no-sd;
326	disable-wp;
327	non-removable;
328	num-slots = <1>;
329	status = "disabled";
330};
331
332&fiq_debugger {
333	status = "okay";
334};
335
336&mac {
337	phy-supply = <&vcc_phy>;
338	assigned-clocks = <&cru SCLK_MAC>;
339	assigned-clock-parents = <&mac_clkin>;
340	clock_in_out = "input";
341	pinctrl-names = "default";
342	pinctrl-0 = <&rmii_pins &mac_refclk>;
343	snps,reset-gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
344	snps,reset-active-low;
345	snps,reset-delays-us = <0 50000 50000>;
346	status = "disable";
347};
348
349&io_domains {
350	status = "okay";
351
352	vccio0-supply = <&vcc_io>;
353	vccio1-supply = <&vcc_io>;
354	vccio2-supply = <&vcc_1v8>;
355	vccio3-supply = <&vccio_flash>;
356	vccio4-supply = <&vccio_sdio>;
357	vccio5-supply = <&vccio_sd>;
358};
359
360&i2c1 {
361	clock-frequency = <400000>;
362	status = "okay";
363
364	tas5731: tas5731@1a {
365		#sound-dai-cells = <0>;
366		compatible = "ti,tas5731";
367		reg = <0x1a>;
368		clocks = <&cru SCLK_I2S1_8CH_TX_OUT>;
369		clock-names = "mclk";
370		pinctrl-names = "default";
371		pinctrl-0 = <&i2s_8ch_1_m0_mclk>;
372		pdn-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
373		reset-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>;
374	};
375
376	is31fl3236: led-controller@3c {
377		compatible = "issi,is31fl3236";
378		reg = <0x3c>;
379		#address-cells = <1>;
380		#size-cells = <0>;
381		reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
382		status = "okay";
383
384		led1: led@1 {
385			label = "led1";
386			reg = <1>;
387			led-max-microamp = <10000>;
388			linux,default-trigger = "timer";
389			linux,default-trigger-delay-ms = <0>;
390			linux,blink-delay-on-ms = <100>;
391			linux,blink-delay-off-ms = <1200>;
392		};
393
394		led2: led@2 {
395			label = "led2";
396			reg = <2>;
397			led-max-microamp = <10000>;
398			linux,default-trigger = "timer";
399			linux,default-trigger-delay-ms = <0>;
400			linux,blink-delay-on-ms = <100>;
401			linux,blink-delay-off-ms = <1200>;
402		};
403
404		led3: led@3 {
405			label = "led3";
406			reg = <3>;
407			led-max-microamp = <10000>;
408			linux,default-trigger = "default-on";
409		};
410
411		led4: led@4 {
412			label = "led4";
413			reg = <4>;
414			led-max-microamp = <10000>;
415			linux,default-trigger = "timer";
416			linux,default-trigger-delay-ms = <100>;
417			linux,blink-delay-on-ms = <100>;
418			linux,blink-delay-off-ms = <1200>;
419		};
420
421		led5: led@5 {
422			label = "led5";
423			reg = <5>;
424			led-max-microamp = <10000>;
425			linux,default-trigger = "timer";
426			linux,default-trigger-delay-ms = <100>;
427			linux,blink-delay-on-ms = <100>;
428			linux,blink-delay-off-ms = <1200>;
429		};
430
431		led6: led@6 {
432			label = "led6";
433			reg = <6>;
434			led-max-microamp = <10000>;
435			linux,default-trigger = "default-on";
436		};
437
438		led7: led@7 {
439			label = "led7";
440			reg = <7>;
441			led-max-microamp = <10000>;
442			linux,default-trigger = "timer";
443			linux,default-trigger-delay-ms = <200>;
444			linux,blink-delay-on-ms = <100>;
445			linux,blink-delay-off-ms = <1200>;
446		};
447
448		led8: led@8 {
449			label = "led8";
450			reg = <8>;
451			led-max-microamp = <10000>;
452			linux,default-trigger = "timer";
453			linux,default-trigger-delay-ms = <200>;
454			linux,blink-delay-on-ms = <100>;
455			linux,blink-delay-off-ms = <1200>;
456		};
457
458		led9: led@9 {
459			label = "led9";
460			reg = <9>;
461			led-max-microamp = <10000>;
462			linux,default-trigger = "default-on";
463		};
464
465		led10: led@10 {
466			label = "led10";
467			reg = <10>;
468			led-max-microamp = <10000>;
469			linux,default-trigger = "timer";
470			linux,default-trigger-delay-ms = <300>;
471			linux,blink-delay-on-ms = <100>;
472			linux,blink-delay-off-ms = <1200>;
473		};
474
475		led11: led@11 {
476			label = "led11";
477			reg = <11>;
478			led-max-microamp = <10000>;
479			linux,default-trigger = "timer";
480			linux,default-trigger-delay-ms = <300>;
481			linux,blink-delay-on-ms = <100>;
482			linux,blink-delay-off-ms = <1200>;
483		};
484
485		led12: led@12 {
486			label = "led12";
487			reg = <12>;
488			led-max-microamp = <10000>;
489			linux,default-trigger = "default-on";
490		};
491
492		led13: led@13 {
493			label = "led13";
494			reg = <13>;
495			led-max-microamp = <10000>;
496			linux,default-trigger = "timer";
497			linux,default-trigger-delay-ms = <400>;
498			linux,blink-delay-on-ms = <100>;
499			linux,blink-delay-off-ms = <1200>;
500		};
501
502		led14: led@14 {
503			label = "led14";
504			reg = <14>;
505			led-max-microamp = <10000>;
506			linux,default-trigger = "timer";
507			linux,default-trigger-delay-ms = <400>;
508			linux,blink-delay-on-ms = <100>;
509			linux,blink-delay-off-ms = <1200>;
510		};
511
512		led15: led@15 {
513			label = "led15";
514			reg = <15>;
515			led-max-microamp = <10000>;
516			linux,default-trigger = "default-on";
517		};
518
519		led16: led@16 {
520			label = "led16";
521			reg = <16>;
522			led-max-microamp = <10000>;
523			linux,default-trigger = "timer";
524			linux,default-trigger-delay-ms = <500>;
525			linux,blink-delay-on-ms = <100>;
526			linux,blink-delay-off-ms = <1200>;
527		};
528
529		led17: led@17 {
530			label = "led17";
531			reg = <17>;
532			led-max-microamp = <10000>;
533			linux,default-trigger = "timer";
534			linux,default-trigger-delay-ms = <500>;
535			linux,blink-delay-on-ms = <100>;
536			linux,blink-delay-off-ms = <1200>;
537		};
538
539		led18: led@18 {
540			label = "led18";
541			reg = <18>;
542			led-max-microamp = <10000>;
543			linux,default-trigger = "default-on";
544		};
545
546		led19: led@19 {
547			label = "led19";
548			reg = <19>;
549			led-max-microamp = <10000>;
550			linux,default-trigger = "timer";
551			linux,default-trigger-delay-ms = <600>;
552			linux,blink-delay-on-ms = <100>;
553			linux,blink-delay-off-ms = <1200>;
554		};
555
556		led20: led@20 {
557			label = "led20";
558			reg = <20>;
559			led-max-microamp = <10000>;
560			linux,default-trigger = "timer";
561			linux,default-trigger-delay-ms = <600>;
562			linux,blink-delay-on-ms = <100>;
563			linux,blink-delay-off-ms = <1200>;
564		};
565
566		led21: led@21 {
567			label = "led21";
568			reg = <21>;
569			led-max-microamp = <10000>;
570			linux,default-trigger = "default-on";
571		};
572
573		led22: led@22 {
574			label = "led22";
575			reg = <22>;
576			led-max-microamp = <10000>;
577			linux,default-trigger = "timer";
578			linux,default-trigger-delay-ms = <700>;
579			linux,blink-delay-on-ms = <100>;
580			linux,blink-delay-off-ms = <1200>;
581		};
582
583		led23: led@23 {
584			label = "led23";
585			reg = <23>;
586			led-max-microamp = <10000>;
587			linux,default-trigger = "timer";
588			linux,default-trigger-delay-ms = <700>;
589			linux,blink-delay-on-ms = <100>;
590			linux,blink-delay-off-ms = <1200>;
591		};
592
593		led124: led@24 {
594			label = "led24";
595			reg = <24>;
596			led-max-microamp = <10000>;
597			linux,default-trigger = "default-on";
598		};
599
600		led25: led@25 {
601			label = "led25";
602			reg = <25>;
603			led-max-microamp = <10000>;
604			linux,default-trigger = "timer";
605			linux,default-trigger-delay-ms = <800>;
606			linux,blink-delay-on-ms = <100>;
607			linux,blink-delay-off-ms = <1200>;
608		};
609
610		led26: led@26 {
611			label = "led26";
612			reg = <26>;
613			led-max-microamp = <10000>;
614			linux,default-trigger = "timer";
615			linux,default-trigger-delay-ms = <800>;
616			linux,blink-delay-on-ms = <100>;
617			linux,blink-delay-off-ms = <1200>;
618		};
619
620		led27: led@27 {
621			label = "led27";
622			reg = <27>;
623			led-max-microamp = <10000>;
624			linux,default-trigger = "default-on";
625		};
626
627		led28: led@28 {
628			label = "led28";
629			reg = <28>;
630			led-max-microamp = <10000>;
631			linux,default-trigger = "timer";
632			linux,default-trigger-delay-ms = <900>;
633			linux,blink-delay-on-ms = <100>;
634			linux,blink-delay-off-ms = <1200>;
635		};
636
637		led29: led@29 {
638			label = "led29";
639			reg = <29>;
640			led-max-microamp = <10000>;
641			linux,default-trigger = "timer";
642			linux,default-trigger-delay-ms = <900>;
643			linux,blink-delay-on-ms = <100>;
644			linux,blink-delay-off-ms = <1200>;
645		};
646
647		led30: led@30 {
648			label = "led30";
649			reg = <30>;
650			led-max-microamp = <10000>;
651			linux,default-trigger = "default-on";
652		};
653
654		led31: led@31 {
655			label = "led31";
656			reg = <31>;
657			led-max-microamp = <10000>;
658			linux,default-trigger = "timer";
659			linux,default-trigger-delay-ms = <1000>;
660			linux,blink-delay-on-ms = <100>;
661			linux,blink-delay-off-ms = <1200>;
662		};
663
664		led32: led@32 {
665			label = "led32";
666			reg = <32>;
667			led-max-microamp = <10000>;
668			linux,default-trigger = "timer";
669			linux,default-trigger-delay-ms = <1000>;
670			linux,blink-delay-on-ms = <100>;
671			linux,blink-delay-off-ms = <1200>;
672		};
673
674		led33: led@33 {
675			label = "led33";
676			reg = <33>;
677			led-max-microamp = <10000>;
678			linux,default-trigger = "default-on";
679		};
680
681		led34: led@34 {
682			label = "led34";
683			reg = <34>;
684			led-max-microamp = <10000>;
685			linux,default-trigger = "timer";
686			linux,default-trigger-delay-ms = <1100>;
687			linux,blink-delay-on-ms = <100>;
688			linux,blink-delay-off-ms = <1200>;
689		};
690
691		led35: led@35 {
692			label = "led35";
693			reg = <35>;
694			led-max-microamp = <10000>;
695			linux,default-trigger = "timer";
696			linux,default-trigger-delay-ms = <1100>;
697			linux,blink-delay-on-ms = <100>;
698			linux,blink-delay-off-ms = <1200>;
699		};
700
701		led36: led@36 {
702			label = "led36";
703			reg = <36>;
704			led-max-microamp = <10000>;
705			linux,default-trigger = "default-on";
706		};
707	};
708};
709
710&i2s_8ch_1 {
711	status = "disabled";
712	#sound-dai-cells = <0>;
713	pinctrl-names = "default";
714	pinctrl-0 = <&i2s_8ch_1_m0_sclktx
715		     &i2s_8ch_1_m0_lrcktx
716		     &i2s_8ch_1_m0_sdo0
717		     &i2s_8ch_1_m0_mclk>;
718};
719
720&i2s_8ch_2 {
721	status = "okay";
722};
723
724&nandc {
725	status = "okay";
726};
727
728&rockchip_suspend {
729	rockchip,pwm-regulator-config = <
730		(0
731		| RKPM_PWM_REGULATOR
732		)
733	>;
734
735	status = "okay";
736};
737
738&rng {
739	status = "okay";
740};
741
742&saradc {
743	status = "okay";
744	vref-supply = <&vcc_1v8>;
745};
746
747&sdio {
748	bus-width = <4>;
749	cap-sd-highspeed;
750	no-sd;
751	no-mmc;
752	ignore-pm-notify;
753	keep-power-in-suspend;
754	non-removable;
755	mmc-pwrseq = <&sdio_pwrseq>;
756	sd-uhs-sdr104;
757	status = "okay";
758};
759
760&sdmmc {
761	bus-width = <4>;
762	cap-mmc-highspeed;
763	cap-sd-highspeed;
764	no-sdio;
765	no-mmc;
766	card-detect-delay = <300>;
767	sd-uhs-sdr25;
768	sd-uhs-sdr50;
769	sd-uhs-sdr104;
770	vmmc-supply = <&vcc_sd>;
771	vqmmc-supply = <&vccio_sd>;
772	status = "disabled";
773};
774
775&tsadc {
776	rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
777	rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
778	status = "okay";
779};
780
781&pinctrl {
782	buttons {
783		pwr_key: pwr-key {
784			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
785		};
786	};
787
788	usb {
789		usb_drv: usb-drv {
790			rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
791		};
792	};
793
794	sdio-pwrseq {
795		wifi_enable_h: wifi-enable-h {
796			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
797		};
798	};
799
800	wireless-wlan {
801		wifi_wake_host: wifi-wake-host {
802			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
803		};
804	};
805};
806
807&pwm0 {
808	status = "okay";
809	pinctrl-names = "active";
810	pinctrl-0 = <&pwm0_pin_pull_down>;
811};
812
813&u2phy {
814	status = "okay";
815
816	u2phy_host: host-port {
817		phy-supply = <&vbus_host>;
818		status = "okay";
819	};
820
821	u2phy_otg: otg-port {
822		status = "okay";
823	};
824};
825
826&uart4 {
827	pinctrl-names = "default";
828	pinctrl-0 = <&uart4_xfer &uart4_cts>;
829	status = "okay";
830};
831
832&usb20_otg {
833	status = "okay";
834};
835
836&usb_host0_ehci {
837	status = "okay";
838};
839
840&usb_host0_ohci{
841	status = "okay";
842};
843