xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4 */
5
6#include "dt-bindings/pwm/pwm.h"
7#include "rk3399.dtsi"
8#include "rk3399-opp.dtsi"
9#include <dt-bindings/sensor-dev.h>
10#include "rk3399-vop-clk-set.dtsi"
11#include <dt-bindings/input/input.h>
12#include "dt-bindings/usb/pd.h"
13
14/ {
15	compatible = "rockchip,rk3399-evb-ind", "rockchip,rk3399";
16
17	adc_keys {
18		compatible = "adc-keys";
19		io-channels = <&saradc 1>;
20		io-channel-names = "buttons";
21		keyup-threshold-microvolt = <1800000>;
22		poll-interval = <100>;
23
24		vol-up-key {
25			label = "volume up";
26			linux,code = <KEY_VOLUMEUP>;
27			press-threshold-microvolt = <1000>;
28		};
29
30		vol-down-key {
31			label = "volume down";
32			linux,code = <KEY_VOLUMEDOWN>;
33			press-threshold-microvolt = <170000>;
34		};
35	};
36
37	backlight: backlight {
38		status = "okay";
39		compatible = "pwm-backlight";
40		pwms = <&pwm2 0 25000 0>;
41		brightness-levels = <
42			  0   1   2   3   4   5   6   7
43			  8   9  10  11  12  13  14  15
44			 16  17  18  19  20  21  22  23
45			 24  25  26  27  28  29  30  31
46			 32  33  34  35  36  37  38  39
47			 40  41  42  43  44  45  46  47
48			 48  49  50  51  52  53  54  55
49			 56  57  58  59  60  61  62  63
50			 64  65  66  67  68  69  70  71
51			 72  73  74  75  76  77  78  79
52			 80  81  82  83  84  85  86  87
53			 88  89  90  91  92  93  94  95
54			 96  97  98  99 100 101 102 103
55			104 105 106 107 108 109 110 111
56			112 113 114 115 116 117 118 119
57			120 121 122 123 124 125 126 127
58			128 129 130 131 132 133 134 135
59			136 137 138 139 140 141 142 143
60			144 145 146 147 148 149 150 151
61			152 153 154 155 156 157 158 159
62			160 161 162 163 164 165 166 167
63			168 169 170 171 172 173 174 175
64			176 177 178 179 180 181 182 183
65			184 185 186 187 188 189 190 191
66			192 193 194 195 196 197 198 199
67			200 201 202 203 204 205 206 207
68			208 209 210 211 212 213 214 215
69			216 217 218 219 220 221 222 223
70			224 225 226 227 228 229 230 231
71			232 233 234 235 236 237 238 239
72			240 241 242 243 244 245 246 247
73			248 249 250 251 252 253 254 255>;
74		default-brightness-level = <200>;
75	};
76
77	clkin_gmac: external-gmac-clock {
78		compatible = "fixed-clock";
79		clock-frequency = <125000000>;
80		clock-output-names = "clkin_gmac";
81		#clock-cells = <0>;
82	};
83
84	dw_hdmi_audio: dw-hdmi-audio {
85		status = "disabled";
86		compatible = "rockchip,dw-hdmi-audio";
87		#sound-dai-cells = <0>;
88	};
89
90	rk809_sound: rk809-sound {
91		compatible = "rockchip,multicodecs-card";
92		rockchip,card-name = "rockchip-rk809";
93		hp-det-gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
94		io-channels = <&saradc 2>;
95		io-channel-names = "adc-detect";
96		keyup-threshold-microvolt = <1800000>;
97		poll-interval = <100>;
98		rockchip,format = "i2s";
99		rockchip,mclk-fs = <256>;
100		rockchip,cpu = <&i2s1>;
101		rockchip,codec = <&rk809_codec>;
102		pinctrl-names = "default";
103		pinctrl-0 = <&hp_det>;
104		play-pause-key {
105			label = "playpause";
106			linux,code = <KEY_PLAYPAUSE>;
107			press-threshold-microvolt = <2000>;
108		};
109	};
110
111	dp_sound: dp-sound {
112		status = "disabled";
113		compatible = "rockchip,cdndp-sound";
114		rockchip,cpu = <&spdif>;
115		rockchip,codec = <&cdn_dp 1>;
116	};
117
118	hdmi_sound: hdmi-sound {
119		status = "disabled";
120		compatible = "rockchip,hdmi";
121		rockchip,mclk-fs = <256>;
122		rockchip,card-name = "rockchip-hdmi0";
123		rockchip,cpu = <&i2s2>;
124		rockchip,codec = <&hdmi>;
125		rockchip,jack-det;
126	};
127
128	rk_headset: rk-headset {
129		status = "disabled";
130		compatible = "rockchip_headset";
131		headset_gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
132		pinctrl-names = "default";
133		pinctrl-0 = <&hp_det>;
134		io-channels = <&saradc 2>;
135	};
136
137	spdif_sound: spdif-sound {
138		status = "okay";
139		compatible = "simple-audio-card";
140		simple-audio-card,name = "ROCKCHIP,SPDIF";
141		simple-audio-card,mclk-fs = <128>;
142		simple-audio-card,cpu {
143			sound-dai = <&spdif>;
144		};
145		simple-audio-card,codec {
146			sound-dai = <&spdif_out>;
147		};
148	};
149
150	spdif_out: spdif-out {
151		status = "okay";
152		compatible = "linux,spdif-dit";
153		#sound-dai-cells = <0>;
154	};
155
156	sdio_pwrseq: sdio-pwrseq {
157		compatible = "mmc-pwrseq-simple";
158		clocks = <&rk809 1>;
159		clock-names = "ext_clock";
160		pinctrl-names = "default";
161		pinctrl-0 = <&wifi_enable_h>;
162
163		/*
164		 * On the module itself this is one of these (depending
165		 * on the actual card populated):
166		 * - SDIO_RESET_L_WL_REG_ON
167		 * - PDN (power down when low)
168		 */
169		reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
170	};
171
172	wireless-wlan {
173		compatible = "wlan-platdata";
174		rockchip,grf = <&grf>;
175		wifi_chip_type = "ap6354";
176		sdio_vref = <1800>;
177		WIFI,host_wake_irq = <&gpio0 3 GPIO_ACTIVE_HIGH>; /* GPIO0_a3 */
178		WIFI,poweren_gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
179		status = "okay";
180	};
181
182	wireless-bluetooth {
183		compatible = "bluetooth-platdata";
184		clocks = <&rk809 1>;
185		clock-names = "ext_clock";
186		//wifi-bt-power-toggle;
187		uart_rts_gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; /* GPIO2_C3 */
188		pinctrl-names = "default", "rts_gpio";
189		pinctrl-0 = <&uart0_rts>, <&bt_reset_gpio>, <&bt_wake_gpio>, <&bt_irq_gpio>;
190		pinctrl-1 = <&uart0_gpios>;
191		//BT,power_gpio  = <&gpio3 19 GPIO_ACTIVE_HIGH>; /* GPIOx_xx */
192		BT,reset_gpio    = <&gpio0 9 GPIO_ACTIVE_HIGH>; /* GPIO0_B1 */
193		BT,wake_gpio     = <&gpio0 4 GPIO_ACTIVE_HIGH>; /* GPIO0_A4 */
194		BT,wake_host_irq = <&gpio2 27 GPIO_ACTIVE_HIGH>; /* GPIO2_D3 */
195		status = "okay";
196	};
197
198	rk_modem: rk-modem {
199		compatible="4g-modem-platdata";
200		pinctrl-names = "default";
201		pinctrl-0 = <&lte_vbat &lte_power_en &lte_reset>;
202		4G,vbat-gpio = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>;
203		4G,power-gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>;
204		4G,reset-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
205		status = "okay";
206	};
207
208	tc358749x_sound:tc358749x-sound {
209		status = "okay";
210		compatible = "simple-audio-card";
211		simple-audio-card,format = "i2s";
212		simple-audio-card,name = "rk,hdmiin-tc358749x-codec";
213		simple-audio-card,bitclock-master = <&sound0_master>;
214		simple-audio-card,frame-master = <&sound0_master>;
215		simple-audio-card,cpu {
216				sound-dai = <&i2s0>;
217		};
218		sound0_master: simple-audio-card,codec {
219				sound-dai = <&tc358749x>;
220		};
221	};
222
223	vcc5v0_host: vcc5v0-host-regulator {
224		compatible = "regulator-fixed";
225		enable-active-high;
226		gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>;
227		pinctrl-names = "default";
228		pinctrl-0 = <&host_vbus_drv>;
229		regulator-name = "vcc5v0_host";
230		regulator-always-on;
231	};
232
233	vcc5v0_usbnet: vcc5v0-usbnet {
234		compatible = "regulator-fixed";
235		enable-active-high;
236		/*disabled r8152 usb net default*/
237		//regulator-always-on;
238		//regulator-boot-on;
239		gpio = <&gpio4 18 GPIO_ACTIVE_HIGH>;
240		pinctrl-names = "default";
241		pinctrl-0 = <&usbnet_pwr_drv>;
242		regulator-name = "vcc5v0_usbnet";
243		startup-delay-us = <20000>;
244		regulator-min-microvolt = <5000000>;
245		regulator-max-microvolt = <5000000>;
246		status = "okay";
247	};
248
249	vcc5v0_sys: vcc5v0-sys {
250		compatible = "regulator-fixed";
251		enable-active-high;
252		gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
253		regulator-name = "vcc5v0_sys";
254		regulator-always-on;
255		regulator-boot-on;
256		regulator-min-microvolt = <5000000>;
257		regulator-max-microvolt = <5000000>;
258	};
259
260	vbus_typec: vbus-typec-regulator {
261		compatible = "regulator-fixed";
262		enable-active-high;
263		gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
264		pinctrl-names = "default";
265		pinctrl-0 = <&vcc5v0_typec0_en>;
266		regulator-name = "vbus_typec";
267		vin-supply = <&vcc5v0_sys>;
268	};
269
270	vcc_phy: vcc-phy-regulator {
271		compatible = "regulator-fixed";
272		regulator-name = "vcc_phy";
273		regulator-always-on;
274		regulator-boot-on;
275	};
276
277	vdd_log: vdd-log {
278		compatible = "regulator-fixed";
279		regulator-name = "vdd_log";
280		regulator-min-microvolt = <950000>;
281		regulator-max-microvolt = <950000>;
282		regulator-always-on;
283		regulator-boot-on;
284	};
285};
286
287&cpu_l0 {
288	cpu-supply = <&vdd_cpu_l>;
289};
290
291&cpu_l1 {
292	cpu-supply = <&vdd_cpu_l>;
293};
294
295&cpu_l2 {
296	cpu-supply = <&vdd_cpu_l>;
297};
298
299&cpu_l3 {
300	cpu-supply = <&vdd_cpu_l>;
301};
302
303&cpu_b0 {
304	cpu-supply = <&vdd_cpu_b>;
305};
306
307&cpu_b1 {
308	cpu-supply = <&vdd_cpu_b>;
309};
310
311&cdn_dp {
312	status = "okay";
313	phys = <&tcphy0_dp>;
314};
315
316&dp_in_vopb {
317	status = "disabled";
318};
319
320&dfi {
321	status = "okay";
322};
323
324&dmc {
325	status = "okay";
326	center-supply = <&vdd_center>;
327	upthreshold = <40>;
328	downdifferential = <20>;
329	system-status-freq = <
330		/*system status         freq(KHz)*/
331		SYS_STATUS_NORMAL       856000
332		SYS_STATUS_REBOOT       856000
333		SYS_STATUS_SUSPEND      328000
334		SYS_STATUS_VIDEO_1080P  666000
335		SYS_STATUS_VIDEO_4K     856000
336		SYS_STATUS_VIDEO_4K_10B 856000
337		SYS_STATUS_PERFORMANCE  856000
338		SYS_STATUS_BOOST        856000
339		SYS_STATUS_DUALVIEW     856000
340		SYS_STATUS_ISP          856000
341	>;
342	vop-bw-dmc-freq = <
343	/* min_bw(MB/s) max_bw(MB/s) freq(KHz) */
344		0       762      416000
345		763     3012     666000
346		3013    99999    856000
347	>;
348
349	vop-pn-msch-readlatency = <
350		0	0x20
351		4	0x20
352	>;
353
354	auto-min-freq = <328000>;
355	auto-freq-en = <0>;
356};
357
358&dmc_opp_table {
359		compatible = "operating-points-v2";
360
361		opp-200000000 {
362			opp-hz = /bits/ 64 <200000000>;
363			opp-microvolt = <900000>;
364			status = "disabled";
365		};
366		opp-300000000 {
367			opp-hz = /bits/ 64 <300000000>;
368			opp-microvolt = <900000>;
369			status = "disabled";
370		};
371		opp-328000000 {
372			opp-hz = /bits/ 64 <328000000>;
373			opp-microvolt = <900000>;
374		};
375		opp-400000000 {
376			opp-hz = /bits/ 64 <400000000>;
377			opp-microvolt = <900000>;
378			status = "disabled";
379		};
380		opp-416000000 {
381			opp-hz = /bits/ 64 <416000000>;
382			opp-microvolt = <900000>;
383		};
384		opp-528000000 {
385			opp-hz = /bits/ 64 <528000000>;
386			opp-microvolt = <900000>;
387			status = "disabled";
388		};
389		opp-600000000 {
390			opp-hz = /bits/ 64 <600000000>;
391			opp-microvolt = <900000>;
392			status = "disabled";
393		};
394		opp-666000000 {
395			opp-hz = /bits/ 64 <666000000>;
396			opp-microvolt = <900000>;
397		};
398		opp-800000000 {
399			opp-hz = /bits/ 64 <800000000>;
400			opp-microvolt = <900000>;
401			status = "disabled";
402		};
403		opp-856000000 {
404			opp-hz = /bits/ 64 <856000000>;
405			opp-microvolt = <900000>;
406		};
407		opp-928000000 {
408			opp-hz = /bits/ 64 <928000000>;
409			opp-microvolt = <900000>;
410			status = "disabled";
411		};
412};
413
414&emmc_phy {
415	status = "okay";
416};
417
418&gmac {
419	phy-supply = <&vcc_phy>;
420	phy-mode = "rgmii";
421	clock_in_out = "input";
422	snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
423	snps,reset-active-low;
424	snps,reset-delays-us = <0 10000 150000>;
425	assigned-clocks = <&cru SCLK_RMII_SRC>;
426	assigned-clock-parents = <&clkin_gmac>;
427	pinctrl-names = "default";
428	pinctrl-0 = <&rgmii_pins>;
429	tx_delay = <0x22>;
430	rx_delay = <0x23>;
431	status = "okay";
432};
433
434&gpu {
435	status = "okay";
436	mali-supply = <&vdd_gpu>;
437};
438
439&hdmi {
440	status = "okay";
441};
442
443&i2c0 {
444	status = "okay";
445	i2c-scl-rising-time-ns = <168>;
446	i2c-scl-falling-time-ns = <4>;
447	clock-frequency = <400000>;
448
449	vdd_cpu_b: tcs4525@1c {
450		compatible = "tcs,tcs4525";
451		reg = <0x1c>;
452		vin-supply = <&vcc5v0_sys>;
453		regulator-compatible = "fan53555-reg";
454		pinctrl-0 = <&vsel1_gpio>;
455		vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
456		regulator-name = "vdd_cpu_b";
457		regulator-min-microvolt = <712500>;
458		regulator-max-microvolt = <1500000>;
459		regulator-ramp-delay = <1000>;
460		fcs,suspend-voltage-selector = <1>;
461		regulator-always-on;
462		regulator-boot-on;
463		regulator-initial-state = <3>;
464		regulator-state-mem {
465			regulator-off-in-suspend;
466		};
467	};
468
469	vdd_gpu: tcs4526@10 {
470		compatible = "tcs,tcs4526";
471		reg = <0x10>;
472		vin-supply = <&vcc5v0_sys>;
473		regulator-compatible = "fan53555-reg";
474		pinctrl-0 = <&vsel2_gpio>;
475		vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
476		regulator-name = "vdd_gpu";
477		regulator-min-microvolt = <712500>;
478		regulator-max-microvolt = <1500000>;
479		regulator-ramp-delay = <1000>;
480		fcs,suspend-voltage-selector = <1>;
481		regulator-always-on;
482		regulator-boot-on;
483		regulator-initial-state = <3>;
484			regulator-state-mem {
485			regulator-off-in-suspend;
486		};
487	};
488
489	rk809: pmic@20 {
490		compatible = "rockchip,rk809";
491		reg = <0x20>;
492		interrupt-parent = <&gpio1>;
493		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
494		pinctrl-names = "default", "pmic-sleep",
495						"pmic-power-off", "pmic-reset";
496		pinctrl-0 = <&pmic_int_l>;
497		pinctrl-1 = <&soc_slppin_slp>, <&rk809_slppin_slp>;
498		pinctrl-2 = <&soc_slppin_gpio>, <&rk809_slppin_pwrdn>;
499		pinctrl-3 = <&soc_slppin_gpio>,<&rk809_slppin_null>;
500		rockchip,system-power-controller;
501		#clock-cells = <1>;
502		pmic-reset-func = <0>;
503		wakeup-source;
504		clock-output-names = "xin32k", "rk808-clkout2";
505
506		vcc1-supply = <&vcc5v0_sys>;
507		vcc2-supply = <&vcc5v0_sys>;
508		vcc3-supply = <&vcc5v0_sys>;
509		vcc4-supply = <&vcc5v0_sys>;
510		vcc5-supply = <&vcc_buck5>;
511		vcc6-supply = <&vcc_buck5>;
512		vcc7-supply = <&vcc5v0_sys>;
513		vcc8-supply = <&vcc3v3_sys>;
514		vcc9-supply = <&vcc5v0_sys>;
515
516		pwrkey {
517				status = "okay";
518		};
519
520		rtc {
521				status = "okay";
522		};
523
524		pinctrl_rk8xx: pinctrl_rk8xx {
525				gpio-controller;
526				#gpio-cells = <2>;
527
528				rk809_slppin_null: rk809_slppin_null {
529								pins = "gpio_slp";
530								function = "pin_fun0";
531				};
532
533				rk809_slppin_slp: rk809_slppin_slp {
534								pins = "gpio_slp";
535								function = "pin_fun1";
536				};
537
538				rk809_slppin_pwrdn: rk809_slppin_pwrdn {
539								pins = "gpio_slp";
540								function = "pin_fun2";
541				};
542
543				rk809_slppin_rst: rk809_slppin_rst {
544								pins = "gpio_slp";
545								function = "pin_fun3";
546				};
547		};
548
549		regulators {
550			vdd_center: DCDC_REG1 {
551				regulator-always-on;
552				regulator-boot-on;
553				regulator-min-microvolt = <750000>;
554				regulator-max-microvolt = <1350000>;
555				regulator-ramp-delay = <6001>;
556				regulator-initial-mode = <0x2>;
557				regulator-name = "vdd_center";
558				regulator-state-mem {
559					regulator-off-in-suspend;
560				};
561			};
562
563			vdd_cpu_l: DCDC_REG2 {
564				regulator-always-on;
565				regulator-boot-on;
566				regulator-min-microvolt = <750000>;
567				regulator-max-microvolt = <1350000>;
568				regulator-ramp-delay = <6001>;
569				regulator-initial-mode = <0x2>;
570				regulator-name = "vdd_cpu_l";
571				regulator-state-mem {
572					regulator-off-in-suspend;
573				};
574			};
575
576			vcc_ddr: DCDC_REG3 {
577				regulator-always-on;
578				regulator-boot-on;
579				regulator-name = "vcc_ddr";
580				regulator-initial-mode = <0x2>;
581				regulator-state-mem {
582					regulator-on-in-suspend;
583				};
584			};
585
586			vcc3v3_sys: DCDC_REG4 {
587				regulator-always-on;
588				regulator-boot-on;
589				regulator-min-microvolt = <3300000>;
590				regulator-max-microvolt = <3300000>;
591				regulator-initial-mode = <0x2>;
592				regulator-name = "vcc3v3_sys";
593				regulator-state-mem {
594					regulator-on-in-suspend;
595					regulator-suspend-microvolt = <3300000>;
596				};
597			};
598
599			vcc_buck5: DCDC_REG5 {
600				regulator-always-on;
601				regulator-boot-on;
602				regulator-min-microvolt = <2200000>;
603				regulator-max-microvolt = <2200000>;
604				regulator-name = "vcc_buck5";
605				regulator-state-mem {
606					regulator-on-in-suspend;
607					regulator-suspend-microvolt = <2200000>;
608				};
609			};
610
611			vcca_0v9: LDO_REG1 {
612				regulator-always-on;
613				regulator-boot-on;
614				regulator-min-microvolt = <900000>;
615				regulator-max-microvolt = <900000>;
616				regulator-name = "vcca_0v9";
617				regulator-state-mem {
618					regulator-off-in-suspend;
619				};
620			};
621
622			vcc_1v8: LDO_REG2 {
623				regulator-always-on;
624				regulator-boot-on;
625				regulator-min-microvolt = <1800000>;
626				regulator-max-microvolt = <1800000>;
627
628				regulator-name = "vcc_1v8";
629				regulator-state-mem {
630					regulator-on-in-suspend;
631					regulator-suspend-microvolt = <1800000>;
632				};
633			};
634
635			vcc0v9_soc: LDO_REG3 {
636				regulator-always-on;
637				regulator-boot-on;
638				regulator-min-microvolt = <900000>;
639				regulator-max-microvolt = <900000>;
640
641				regulator-name = "vcc0v9_soc";
642				regulator-state-mem {
643					regulator-on-in-suspend;
644					regulator-suspend-microvolt = <900000>;
645				};
646			};
647
648			vcca_1v8: LDO_REG4 {
649				regulator-always-on;
650				regulator-boot-on;
651				regulator-min-microvolt = <1800000>;
652				regulator-max-microvolt = <1800000>;
653
654				regulator-name = "vcca_1v8";
655				regulator-state-mem {
656					regulator-off-in-suspend;
657				};
658			};
659
660			vdd1v5_dvp: LDO_REG5 {
661				regulator-always-on;
662				regulator-boot-on;
663				regulator-min-microvolt = <1500000>;
664				regulator-max-microvolt = <1500000>;
665
666				regulator-name = "vdd1v5_dvp";
667				regulator-state-mem {
668					regulator-off-in-suspend;
669				};
670			};
671
672			vcc_1v5: LDO_REG6 {
673				regulator-always-on;
674				regulator-boot-on;
675				regulator-min-microvolt = <1500000>;
676				regulator-max-microvolt = <1500000>;
677
678				regulator-name = "vcc_1v5";
679				regulator-state-mem {
680					regulator-off-in-suspend;
681				};
682			};
683
684			vcc_3v0: LDO_REG7 {
685				regulator-always-on;
686				regulator-boot-on;
687				regulator-min-microvolt = <3000000>;
688				regulator-max-microvolt = <3000000>;
689
690				regulator-name = "vcc_3v0";
691				regulator-state-mem {
692					regulator-off-in-suspend;
693				};
694			};
695
696			vccio_sd: LDO_REG8 {
697				regulator-always-on;
698				regulator-boot-on;
699				regulator-min-microvolt = <1800000>;
700				regulator-max-microvolt = <3300000>;
701
702				regulator-name = "vccio_sd";
703				regulator-state-mem {
704					regulator-off-in-suspend;
705				};
706			};
707
708			vcc_sd: LDO_REG9 {
709				regulator-always-on;
710				regulator-boot-on;
711				regulator-min-microvolt = <3300000>;
712				regulator-max-microvolt = <3300000>;
713
714				regulator-name = "vcc_sd";
715				regulator-state-mem {
716					regulator-off-in-suspend;
717				};
718			};
719
720			vcc5v0_usb: SWITCH_REG1 {
721				regulator-always-on;
722				regulator-boot-on;
723				regulator-name = "vcc5v0_usb";
724				regulator-state-mem {
725					regulator-on-in-suspend;
726				};
727			};
728
729			vccio_3v3: SWITCH_REG2 {
730				regulator-always-on;
731				regulator-boot-on;
732				regulator-name = "vccio_3v3";
733				regulator-state-mem {
734					regulator-off-in-suspend;
735				};
736			};
737		};
738		/*
739		battery {
740			compatible = "rk817,battery";
741			ocv_table = <7000 7250 7370 7384 7436 7470 7496
742						7520 7548 7576 7604 7632 7668 7706
743						7754 7816 7892 7950 8036 8142 8212>;
744			design_capacity = <2500>;
745			design_qmax = <2750>;
746			bat_res = <100>;
747			sleep_enter_current = <300>;
748			sleep_exit_current = <300>;
749			sleep_filter_current = <100>;
750			power_off_thresd = <7000>;
751			zero_algorithm_vol = <7700>;
752			max_soc_offset = <60>;
753			monitor_sec = <5>;
754			sample_res = <10>;
755			virtual_power = <0>;
756			bat_res_up = <140>;
757			bat_res_down = <20>;
758		};
759		*/
760		rk809_codec: codec {
761			#sound-dai-cells = <0>;
762			compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
763			clocks = <&cru SCLK_I2S_8CH_OUT>;
764			clock-names = "mclk";
765			pinctrl-names = "default";
766			pinctrl-0 = <&i2s_8ch_mclk>;
767			assigned-clocks = <&cru SCLK_I2SOUT_SRC>;
768			assigned-clock-parents = <&cru SCLK_I2S1_8CH>;
769			hp-volume = <20>;
770			spk-volume = <3>;
771			status = "okay";
772		};
773	};
774};
775
776&i2c1 {
777	status = "okay";
778	i2c-scl-rising-time-ns = <300>;
779	i2c-scl-falling-time-ns = <15>;
780	clock-frequency = <400000>;
781
782	gsl3673: gsl3673@40 {
783		compatible = "GSL,GSL3673";
784		reg = <0x40>;
785		screen_max_x = <1536>;
786		screen_max_y = <2048>;
787		irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
788		rst_gpio_number = <&gpio1 1 GPIO_ACTIVE_HIGH>;
789	};
790
791	tc358749x: tc358749x@0f {
792		#sound-dai-cells = <0>;
793		compatible = "toshiba,tc358749x";
794		reg = <0x0f>;
795		power-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
796		stanby-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>;
797		reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
798		int-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
799		pinctrl-names = "default";
800		pinctrl-0 = <&hdmiin_gpios>;
801		status = "okay";
802	};
803};
804
805&i2c4 {
806	status = "okay";
807	i2c-scl-rising-time-ns = <475>;
808	i2c-scl-falling-time-ns = <26>;
809
810	mpu6500@68 {
811		status = "disabled";
812		compatible = "invensense,mpu6500";
813		reg = <0x68>;
814		irq-gpio = <&gpio1 22 IRQ_TYPE_EDGE_RISING>;
815		pinctrl-names = "default";
816		pinctrl-0 = <&mpu6500_irq_gpio>;
817		mpu-int_config = <0x10>;
818		mpu-level_shifter = <0>;
819		mpu-orientation = <0 1 0 1 0 0 0 0 1>;
820		orientation-x= <0>;
821		orientation-y= <0>;
822		orientation-z= <0>;
823		mpu-debug = <1>;
824	};
825
826	mpu6500_acc: mpu_acc@68 {
827		compatible = "mpu6500_acc";
828		reg = <0x68>;
829		irq-gpio = <&gpio1 22 IRQ_TYPE_EDGE_RISING>;
830		irq_enable = <0>;
831		poll_delay_ms = <30>;
832		type = <SENSOR_TYPE_ACCEL>;
833		layout = <8>;
834	};
835
836	mpu6500_gyro: mpu_gyro@68 {
837		compatible = "mpu6500_gyro";
838		reg = <0x68>;
839		irq_enable = <0>;
840		poll_delay_ms = <30>;
841		type = <SENSOR_TYPE_GYROSCOPE>;
842		layout = <8>;
843	};
844
845	usbc0: fusb302@22 {
846		compatible = "fcs,fusb302";
847		reg = <0x22>;
848		interrupt-parent = <&gpio1>;
849		interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
850		pinctrl-names = "default";
851		pinctrl-0 = <&usbc0_int>;
852		vbus-supply = <&vbus_typec>;
853		status = "okay";
854
855		ports {
856			#address-cells = <1>;
857			#size-cells = <0>;
858
859			port@0 {
860				reg = <0>;
861				usbc0_role_sw: endpoint@0 {
862					remote-endpoint = <&dwc3_0_role_switch>;
863				};
864			};
865		};
866
867		usb_con: connector {
868			compatible = "usb-c-connector";
869			label = "USB-C";
870			data-role = "dual";
871			power-role = "dual";
872			try-power-role = "sink";
873			op-sink-microwatt = <1000000>;
874			sink-pdos =
875				<PDO_FIXED(5000, 2500, PDO_FIXED_USB_COMM)>;
876			source-pdos =
877				<PDO_FIXED(5000, 1500, PDO_FIXED_USB_COMM)>;
878
879			displayport = <&cdn_dp>;
880
881			altmodes {
882				#address-cells = <1>;
883				#size-cells = <0>;
884
885				altmode@0 {
886					reg = <0>;
887					svid = <0xff01>;
888					vdo = <0xffffffff>;
889				};
890			};
891
892			ports {
893				#address-cells = <1>;
894				#size-cells = <0>;
895
896				port@0 {
897					reg = <0>;
898					usbc0_orien_sw: endpoint {
899						remote-endpoint = <&tcphy0_orientation_switch>;
900					};
901				};
902				port@1 {
903					reg = <1>;
904					dp_mode_sw: endpoint {
905						remote-endpoint = <&tcphy_dp_altmode_switch>;
906					};
907				};
908			};
909		};
910	};
911
912	sensor@0d {
913		status = "okay";
914		compatible = "ak8963";
915		pinctrl-names = "default";
916		pinctrl-0 = <&ak8963_irq_gpio>;
917		reg = <0x0d>;
918		type = <SENSOR_TYPE_COMPASS>;
919		irq-gpio = <&gpio1 0 IRQ_TYPE_EDGE_RISING>;
920		irq_enable = <0>;
921		poll_delay_ms = <30>;
922		layout = <6>;
923	};
924
925	bq25700: bq25700@6b {//6a
926		compatible = "ti,bq25703";
927		reg = <0x6b>;
928
929		interrupt-parent = <&gpio0>;
930		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
931		pinctrl-names = "default";
932		pinctrl-0 = <&charger_ok>;
933		ti,charge-current = <2500000>;
934		ti,max-input-voltage = <20000000>;
935		ti,max-input-current = <6000000>;
936		ti,max-charge-voltage = <8750000>;
937		ti,input-current = <500000>;
938		ti,input-current-sdp = <500000>;
939		ti,input-current-dcp = <2000000>;
940		ti,input-current-cdp = <2000000>;
941		ti,minimum-sys-voltage = <7400000>;
942		ti,otg-voltage = <5000000>;
943		ti,otg-current = <500000>;
944		pd-charge-only = <0>;
945		status = "disabled";
946	};
947};
948
949&i2c6 {
950	cw2015@62 {
951		status = "disabled";
952		compatible = "cw201x";
953		reg = <0x62>;
954		bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48
955				   0x48 0x44 0x44 0x46 0x49 0x48 0x32 0x24
956				   0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45
957				   0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E
958				   0x4D 0x52 0x52 0x57 0x3D 0x1B 0x6A 0x2D
959				   0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52
960				   0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB 0xCB
961				   0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
962		monitor_sec = <5>;
963		virtual_power = <0>;
964	};
965};
966
967&i2s0 {
968	status = "disabled";
969	rockchip,i2s-broken-burst-len;
970	rockchip,playback-channels = <8>;
971	rockchip,capture-channels = <8>;
972	#sound-dai-cells = <0>;
973};
974
975&i2s1 {
976	#sound-dai-cells = <0>;
977	status = "disabled";
978};
979
980&i2s2 {
981	#sound-dai-cells = <0>;
982	dmas = <&dmac_bus 4>;
983	dma-names = "tx";
984	status = "disabled";
985};
986
987&io_domains {
988	status = "okay";
989
990	bt656-supply = <&vcc_3v0>;		/* bt656_gpio2ab_ms */
991	audio-supply = <&vcca_1v8>;	/* audio_gpio3d4a_ms */
992	sdmmc-supply = <&vccio_sd>;		/* sdmmc_gpio4b_ms */
993	gpio1830-supply = <&vcc_3v0>;		/* gpio1833_gpio4cd_ms */
994};
995
996&isp0_mmu {
997	status = "okay";
998};
999
1000&isp1_mmu {
1001	status = "okay";
1002};
1003
1004&pmu_io_domains {
1005	status = "okay";
1006	pmu1830-supply = <&vcc_1v8>;
1007};
1008
1009&pcie_phy {
1010	status = "okay";
1011};
1012
1013&pcie0 {
1014	ep-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
1015	num-lanes = <4>;
1016	pinctrl-names = "default";
1017	pinctrl-0 = <&pcie_clkreqn_cpm>;
1018	status = "okay";
1019};
1020
1021&pwm0 {
1022	status = "disabled";
1023};
1024
1025&pwm2 {
1026	status = "okay";
1027	pinctrl-names = "active";
1028	pinctrl-0 = <&pwm2_pin_pull_down>;
1029};
1030
1031&pwm3 {
1032	status = "okay";
1033
1034	interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>;
1035	compatible = "rockchip,remotectl-pwm";
1036	remote_pwm_id = <3>;
1037	handle_cpu_id = <1>;
1038	remote_support_psci = <4>;
1039	pinctrl-names = "default";
1040
1041	ir_key1 {
1042		rockchip,usercode = <0x4040>;
1043		rockchip,key_table =
1044			<0xf2	KEY_REPLY>,
1045			<0xba	KEY_BACK>,
1046			<0xf4	KEY_UP>,
1047			<0xf1	KEY_DOWN>,
1048			<0xef	KEY_LEFT>,
1049			<0xee	KEY_RIGHT>,
1050			<0xbd	KEY_HOME>,
1051			<0xea	KEY_VOLUMEUP>,
1052			<0xe3	KEY_VOLUMEDOWN>,
1053			<0xe2	KEY_SEARCH>,
1054			<0xb2	KEY_POWER>,
1055			<0xbc	KEY_MUTE>,
1056			<0xec	KEY_MENU>,
1057			<0xbf	0x190>,
1058			<0xe0	0x191>,
1059			<0xe1	0x192>,
1060			<0xe9	183>,
1061			<0xe6	248>,
1062			<0xe8	185>,
1063			<0xe7	186>,
1064			<0xf0	388>,
1065			<0xbe	0x175>;
1066	};
1067
1068	ir_key2 {
1069		rockchip,usercode = <0xff00>;
1070		rockchip,key_table =
1071			<0xf9	KEY_HOME>,
1072			<0xbf	KEY_BACK>,
1073			<0xfb	KEY_MENU>,
1074			<0xaa	KEY_REPLY>,
1075			<0xb9	KEY_UP>,
1076			<0xe9	KEY_DOWN>,
1077			<0xb8	KEY_LEFT>,
1078			<0xea	KEY_RIGHT>,
1079			<0xeb	KEY_VOLUMEDOWN>,
1080			<0xef	KEY_VOLUMEUP>,
1081			<0xf7	KEY_MUTE>,
1082			<0xe7	KEY_POWER>,
1083			<0xfc	KEY_POWER>,
1084			<0xa9	KEY_VOLUMEDOWN>,
1085			<0xa8	KEY_VOLUMEDOWN>,
1086			<0xe0	KEY_VOLUMEDOWN>,
1087			<0xa5	KEY_VOLUMEDOWN>,
1088			<0xab	183>,
1089			<0xb7	388>,
1090			<0xe8	388>,
1091			<0xf8	184>,
1092			<0xaf	185>,
1093			<0xed	KEY_VOLUMEDOWN>,
1094			<0xee	186>,
1095			<0xb3	KEY_VOLUMEDOWN>,
1096			<0xf1	KEY_VOLUMEDOWN>,
1097			<0xf2	KEY_VOLUMEDOWN>,
1098			<0xf3	KEY_SEARCH>,
1099			<0xb4	KEY_VOLUMEDOWN>,
1100			<0xbe	KEY_SEARCH>;
1101	};
1102
1103	ir_key3 {
1104		rockchip,usercode = <0x1dcc>;
1105		rockchip,key_table =
1106			<0xee	KEY_REPLY>,
1107			<0xf0	KEY_BACK>,
1108			<0xf8	KEY_UP>,
1109			<0xbb	KEY_DOWN>,
1110			<0xef	KEY_LEFT>,
1111			<0xed	KEY_RIGHT>,
1112			<0xfc	KEY_HOME>,
1113			<0xf1	KEY_VOLUMEUP>,
1114			<0xfd	KEY_VOLUMEDOWN>,
1115			<0xb7	KEY_SEARCH>,
1116			<0xff	KEY_POWER>,
1117			<0xf3	KEY_MUTE>,
1118			<0xbf	KEY_MENU>,
1119			<0xf9	0x191>,
1120			<0xf5	0x192>,
1121			<0xb3	388>,
1122			<0xbe	KEY_1>,
1123			<0xba	KEY_2>,
1124			<0xb2	KEY_3>,
1125			<0xbd	KEY_4>,
1126			<0xf9	KEY_5>,
1127			<0xb1	KEY_6>,
1128			<0xfc	KEY_7>,
1129			<0xf8	KEY_8>,
1130			<0xb0	KEY_9>,
1131			<0xb6	KEY_0>,
1132			<0xb5	KEY_BACKSPACE>;
1133	};
1134};
1135
1136&rockchip_suspend {
1137	status = "okay";
1138	rockchip,sleep-debug-en = <1>;
1139	rockchip,sleep-mode-config = <
1140		(0
1141		| RKPM_SLP_ARMPD
1142		| RKPM_SLP_PERILPPD
1143		| RKPM_SLP_DDR_RET
1144		| RKPM_SLP_PLLPD
1145		| RKPM_SLP_CENTER_PD
1146		| RKPM_SLP_AP_PWROFF
1147		)
1148		>;
1149	rockchip,wakeup-config = <
1150		(0
1151		| RKPM_GPIO_WKUP_EN
1152		| RKPM_PWM_WKUP_EN
1153		)
1154		>;
1155		rockchip,pwm-regulator-config = <
1156		(0
1157		| PWM2_REGULATOR_EN
1158		)
1159		>;
1160		rockchip,power-ctrl =
1161		<&gpio1 17 GPIO_ACTIVE_HIGH>,
1162		<&gpio1 14 GPIO_ACTIVE_HIGH>;
1163};
1164
1165&saradc {
1166	status = "okay";
1167};
1168
1169&spdif {
1170	status = "okay";
1171	pinctrl-0 = <&spdif_bus>;
1172	i2c-scl-rising-time-ns = <450>;
1173	i2c-scl-falling-time-ns = <15>;
1174	#sound-dai-cells = <0>;
1175};
1176
1177&sdio0 {
1178	clock-frequency = <150000000>;
1179	clock-freq-min-max = <200000 150000000>;
1180	no-sd;
1181	no-mmc;
1182	bus-width = <4>;
1183	disable-wp;
1184	cap-sd-highspeed;
1185	cap-sdio-irq;
1186	keep-power-in-suspend;
1187	mmc-pwrseq = <&sdio_pwrseq>;
1188	non-removable;
1189	num-slots = <1>;
1190	pinctrl-names = "default";
1191	pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
1192	sd-uhs-sdr104;
1193	status = "okay";
1194};
1195
1196&sdmmc {
1197	clock-frequency = <150000000>;
1198	clock-freq-min-max = <100000 150000000>;
1199	no-sdio;
1200	no-mmc;
1201	bus-width = <4>;
1202	cap-mmc-highspeed;
1203	cap-sd-highspeed;
1204	disable-wp;
1205	num-slots = <1>;
1206	sd-uhs-sdr104;
1207	vmmc-supply = <&vcc_sd>;
1208	vqmmc-supply = <&vccio_sd>;
1209	pinctrl-names = "default";
1210	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
1211	status = "okay";
1212};
1213
1214&sdhci {
1215	bus-width = <8>;
1216	mmc-hs400-1_8v;
1217	no-sdio;
1218	no-sd;
1219	non-removable;
1220	keep-power-in-suspend;
1221	mmc-hs400-enhanced-strobe;
1222	status = "okay";
1223};
1224
1225&saradc {
1226	status = "okay";
1227	vref-supply = <&vcc_1v8>;
1228};
1229
1230&tcphy0 {
1231	status = "okay";
1232
1233	svid = <0xff01>;
1234	orientation-switch;
1235	port {
1236		#address-cells = <1>;
1237		#size-cells = <0>;
1238		tcphy0_orientation_switch: endpoint@0 {
1239			reg = <0>;
1240			remote-endpoint = <&usbc0_orien_sw>;
1241		};
1242		tcphy_dp_altmode_switch: endpoint@1 {
1243			reg = <1>;
1244			remote-endpoint = <&dp_mode_sw>;
1245		};
1246	};
1247};
1248
1249&tcphy1 {
1250	status = "okay";
1251};
1252
1253&tsadc {
1254	/* tshut mode 0:CRU 1:GPIO */
1255	rockchip,hw-tshut-mode = <1>;
1256	/* tshut polarity 0:LOW 1:HIGH */
1257	rockchip,hw-tshut-polarity = <1>;
1258	status = "okay";
1259};
1260
1261&uart0 {
1262	pinctrl-names = "default";
1263	pinctrl-0 = <&uart0_xfer &uart0_cts>;
1264	status = "okay";
1265};
1266
1267&uart2 {
1268	status = "disabled";
1269};
1270
1271&u2phy0 {
1272	status = "okay";
1273
1274	u2phy0_otg: otg-port {
1275		status = "okay";
1276	};
1277
1278	u2phy0_host: host-port {
1279		phy-supply = <&vcc5v0_usb>;
1280		status = "okay";
1281	};
1282};
1283
1284&u2phy1 {
1285	status = "okay";
1286
1287	u2phy1_otg: otg-port {
1288		status = "okay";
1289	};
1290
1291	u2phy1_host: host-port {
1292		status = "okay";
1293	};
1294};
1295
1296&usbdrd3_0 {
1297	status = "okay";
1298};
1299
1300&usbdrd3_1 {
1301	status = "okay";
1302};
1303
1304&usbdrd_dwc3_0 {
1305	status = "okay";
1306	usb-role-switch;
1307	port {
1308		#address-cells = <1>;
1309		#size-cells = <0>;
1310		dwc3_0_role_switch: endpoint@0 {
1311			reg = <0>;
1312			remote-endpoint = <&usbc0_role_sw>;
1313		};
1314	};
1315};
1316
1317&usbdrd_dwc3_1 {
1318	status = "okay";
1319	dr_mode = "host";
1320};
1321
1322&usb_host0_ehci {
1323	status = "okay";
1324};
1325
1326&usb_host0_ohci {
1327	status = "okay";
1328};
1329
1330&usb_host1_ehci {
1331	status = "okay";
1332};
1333
1334&usb_host1_ohci {
1335	status = "okay";
1336};
1337
1338&vopb {
1339	assigned-clocks = <&cru DCLK_VOP0_DIV>;
1340	assigned-clock-parents = <&cru PLL_CPLL>;
1341};
1342
1343&vopl {
1344	assigned-clocks = <&cru DCLK_VOP1_DIV>;
1345	assigned-clock-parents = <&cru PLL_VPLL>;
1346};
1347
1348&pinctrl {
1349
1350	ak8963 {
1351		ak8963_irq_gpio: ak8963-irq-gpio {
1352			rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
1353		};
1354	};
1355
1356	charger {
1357		charger_ok: charge-ok {
1358			rockchip,pins =
1359				<0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
1360		};
1361	};
1362
1363	i2s0 {
1364		i2s0_8ch_bus: i2s0-8ch-bus {
1365			rockchip,pins =
1366				<3 RK_PD0 1 &pcfg_pull_none>,
1367				<3 RK_PD2 1 &pcfg_pull_none>,
1368				<3 RK_PD3 1 &pcfg_pull_none>,
1369				<3 RK_PD4 1 &pcfg_pull_none>,
1370				<3 RK_PD5 1 &pcfg_pull_none>,
1371				<3 RK_PD6 1 &pcfg_pull_none>,
1372				<3 RK_PD7 1 &pcfg_pull_none>;
1373			};
1374
1375		i2s_8ch_mclk: i2s-8ch-mclk {
1376				rockchip,pins = <4 RK_PA0 1 &pcfg_pull_none>;
1377		};
1378	};
1379
1380	i2s1 {
1381		i2s1_2ch_bus: i2s1-2ch-bus {
1382			rockchip,pins =
1383				<4 RK_PA3 1 &pcfg_pull_none>,
1384				<4 RK_PA5 1 &pcfg_pull_none>,
1385				<4 RK_PA6 1 &pcfg_pull_none>,
1386				<4 RK_PA7 1 &pcfg_pull_none>;
1387		};
1388	};
1389
1390	headphone {
1391		hp_det: hp-det {
1392			rockchip,pins =
1393				<0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
1394		};
1395	};
1396
1397	hdmiin {
1398		hdmiin_gpios: hdmiin_gpios {
1399		rockchip,pins =
1400				<0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
1401				<3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
1402				<0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>,
1403				<4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
1404		};
1405	};
1406
1407	mpu6500 {
1408		mpu6500_irq_gpio: mpu6500-irq-gpio {
1409			rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
1410		};
1411	};
1412
1413	pmic {
1414		pmic_int_l: pmic-int-l {
1415			rockchip,pins =
1416				<1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
1417		};
1418
1419		vsel1_gpio: vsel1-gpio {
1420			rockchip,pins =
1421				<1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
1422		};
1423
1424		vsel2_gpio: vsel2-gpio {
1425			rockchip,pins =
1426				<1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
1427		};
1428
1429		soc_slppin_gpio: soc-slppin-gpio {
1430			rockchip,pins =
1431				<1 RK_PA5 RK_FUNC_GPIO &pcfg_output_low>;
1432		};
1433
1434		soc_slppin_slp: soc-slppin-slp {
1435			rockchip,pins =
1436				<1 RK_PA5 1 &pcfg_pull_none>;
1437		};
1438	};
1439
1440	sdio-pwrseq {
1441		wifi_enable_h: wifi-enable-h {
1442			rockchip,pins =
1443				<0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1444		};
1445	};
1446
1447	wireless-bluetooth {
1448		uart0_gpios: uart0-gpios {
1449			rockchip,pins =
1450				<2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
1451		};
1452
1453		bt_reset_gpio: bt-reset-gpio {
1454			rockchip,pins =
1455				<0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1456		};
1457
1458		bt_wake_gpio: bt-wake-gpio {
1459			rockchip,pins =
1460				<0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
1461		};
1462
1463		bt_irq_gpio: bt-irq-gpio {
1464			rockchip,pins =
1465				<2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
1466		};
1467	};
1468
1469	rk-modem {
1470		lte_vbat: lte-vbat {
1471			rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
1472		};
1473
1474		lte_power_en: lte-power-en {
1475			rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
1476		};
1477
1478		lte_reset: lte-reset {
1479			rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
1480		};
1481	};
1482
1483	usb2 {
1484		host_vbus_drv: host-vbus-drv {
1485			rockchip,pins =
1486				<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
1487		};
1488	};
1489
1490	usb-typec {
1491		usbc0_int: usbc0-int {
1492			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
1493		};
1494
1495		vcc5v0_typec0_en: vcc5v0-typec0-en {
1496			rockchip,pins =
1497				<1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
1498		};
1499	};
1500
1501	vcc_sd {
1502		vcc_sd_h: vcc-sd-h {
1503			rockchip,pins =
1504				<0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
1505		};
1506	};
1507
1508	usbnet {
1509		usbnet_pwr_drv: usbnet-pwr-drv {
1510			rockchip,pins =
1511				<4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
1512		};
1513	};
1514};
1515