1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/pinctrl/rockchip.h>
7#include <dt-bindings/usb/pd.h>
8#include "rk3588s.dtsi"
9
10/ {
11	model = "Indiedroid Nova";
12	compatible = "indiedroid,nova", "rockchip,rk3588s";
13
14	aliases {
15		mmc0 = &sdhci;
16		mmc1 = &sdmmc;
17		mmc2 = &sdio;
18		serial2 = &uart2;
19	};
20
21	chosen {
22		stdout-path = "serial2:1500000n8";
23	};
24
25	sdio_pwrseq: sdio-pwrseq {
26		compatible = "mmc-pwrseq-simple";
27		clock-names = "ext_clock";
28		clocks = <&rtc_hym8563>;
29		pinctrl-0 = <&wifi_enable_h>;
30		pinctrl-names = "default";
31		post-power-on-delay-ms = <200>;
32		reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
33	};
34
35	sound {
36		compatible = "audio-graph-card";
37		label = "rockchip,es8388-codec";
38		widgets = "Microphone", "Mic Jack",
39			  "Headphone", "Headphones";
40		routing = "LINPUT2", "Mic Jack",
41			  "Headphones", "LOUT1",
42			  "Headphones", "ROUT1";
43		dais = <&i2s0_8ch_p0>;
44	};
45
46	vbus5v0_typec: vbus5v0-typec-regulator {
47		compatible = "regulator-fixed";
48		enable-active-high;
49		gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
50		pinctrl-0 = <&typec5v_pwren>;
51		pinctrl-names = "default";
52		regulator-name = "vbus5v0_typec";
53		regulator-min-microvolt = <5000000>;
54		regulator-max-microvolt = <5000000>;
55		vin-supply = <&vcc5v0_usb>;
56	};
57
58	vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator {
59		compatible = "regulator-fixed";
60		regulator-always-on;
61		regulator-boot-on;
62		regulator-max-microvolt = <1100000>;
63		regulator-min-microvolt = <1100000>;
64		regulator-name = "vcc_1v1_nldo_s3";
65		vin-supply = <&vcc5v0_sys>;
66	};
67
68	/* Regulator is enabled whenever vcc_1v8_s0 is above 1.6v */
69	vcc_3v3_s0: vcc-3v3-s0-regulator {
70		compatible = "regulator-fixed";
71		regulator-always-on;
72		regulator-boot-on;
73		regulator-max-microvolt = <3300000>;
74		regulator-min-microvolt = <3300000>;
75		regulator-name = "vcc_3v3_s0";
76		vin-supply = <&vcc_3v3_s3>;
77
78		regulator-state-mem {
79			regulator-off-in-suspend;
80		};
81	};
82
83	vcc5v0_sys: vcc5v0-sys-regulator {
84		compatible = "regulator-fixed";
85		regulator-always-on;
86		regulator-boot-on;
87		regulator-max-microvolt = <5000000>;
88		regulator-min-microvolt = <5000000>;
89		regulator-name = "vcc5v0_sys";
90	};
91
92	vcc5v0_usb: vcc5v0-usb-regulator {
93		compatible = "regulator-fixed";
94		regulator-always-on;
95		regulator-boot-on;
96		regulator-max-microvolt = <5000000>;
97		regulator-min-microvolt = <5000000>;
98		regulator-name = "vcc5v0_usb";
99		vin-supply = <&vcc5v0_usbdcin>;
100	};
101
102	vcc5v0_usbdcin: vcc5v0-usbdcin-regulator {
103		compatible = "regulator-fixed";
104		regulator-always-on;
105		regulator-boot-on;
106		regulator-max-microvolt = <5000000>;
107		regulator-min-microvolt = <5000000>;
108		regulator-name = "vcc5v0_usbdcin";
109	};
110};
111
112&cpu_l0 {
113	cpu-supply = <&vdd_cpu_lit_s0>;
114};
115
116&cpu_l1 {
117	cpu-supply = <&vdd_cpu_lit_s0>;
118};
119
120&cpu_l2 {
121	cpu-supply = <&vdd_cpu_lit_s0>;
122};
123
124&cpu_l3 {
125	cpu-supply = <&vdd_cpu_lit_s0>;
126};
127
128&cpu_b0 {
129	cpu-supply = <&vdd_cpu_big0_s0>;
130};
131
132&cpu_b1 {
133	cpu-supply = <&vdd_cpu_big0_s0>;
134};
135
136&cpu_b2 {
137	cpu-supply = <&vdd_cpu_big1_s0>;
138};
139
140&cpu_b3 {
141	cpu-supply = <&vdd_cpu_big1_s0>;
142};
143
144/*
145 * Add labels for each GPIO pin exposed on the 40 pin header. Note that
146 * voltage of each GPIO pin could be either 3.3v or 1.8v (as noted by
147 * label).
148 */
149&gpio0 {
150	gpio-line-names = /* GPIO0 A0-A7 */
151			  "", "", "", "",
152			  "", "", "", "",
153			  /* GPIO0 B0-B7 */
154			  "", "", "", "",
155			  "", "", "", "",
156			  /* GPIO0 C0-C7 */
157			  "", "", "", "",
158			  "", "", "", "",
159			  /* GPIO0 D0-D7 */
160			  "HEADER_12_1v8", "", "", "HEADER_24_1v8",
161			  "", "", "", "";
162};
163
164&gpio1 {
165	gpio-line-names = /* GPIO1 A0-A7 */
166			  "HEADER_27_3v3", "", "", "",
167			  "HEADER_29_1v8", "", "HEADER_7_1v8", "",
168			  /* GPIO1 B0-B7 */
169			  "", "HEADER_31_1v8", "HEADER_33_1v8", "",
170			  "HEADER_11_1v8", "HEADER_13_1v8", "", "",
171			  /* GPIO1 C0-C7 */
172			  "", "HEADER_28_3v3", "", "",
173			  "", "", "", "",
174			  /* GPIO1 D0-D7 */
175			  "", "", "", "",
176			  "", "", "HEADER_5_3v3", "HEADER_3_3v3";
177};
178
179&gpio3 {
180	gpio-line-names = /* GPIO3 A0-A7 */
181			  "", "", "", "",
182			  "", "", "", "",
183			  /* GPIO3 B0-B7 */
184			  "HEADER_16_1v8", "HEADER_18_1v8", "", "",
185			  "", "", "", "HEADER_19_1v8",
186			  /* GPIO3 C0-C7 */
187			  "HEADER_21_1v8", "HEADER_23_1v8", "", "HEADER_26_1v8",
188			  "HEADER_15_1v8", "HEADER_22_1v8", "", "",
189			  /* GPIO3 D0-D7 */
190			  "", "", "", "",
191			  "", "", "", "";
192};
193
194&gpio4 {
195	gpio-line-names = /* GPIO4 A0-A7 */
196			  "", "", "HEADER_37_3v3", "HEADER_8_3v3",
197			  "HEADER_10_3v3", "", "HEADER_32_3v3", "HEADER_35_3v3",
198			  /* GPIO4 B0-B7 */
199			  "", "", "", "HEADER_40_3v3",
200			  "HEADER_38_3v3", "HEADER_36_3v3", "", "",
201			  /* GPIO4 C0-C7 */
202			  "", "", "", "",
203			  "", "", "", "",
204			  /* GPIO4 D0-D7 */
205			  "", "", "", "",
206			  "", "", "", "";
207};
208
209&i2c0 {
210	pinctrl-0 = <&i2c0m2_xfer>;
211	pinctrl-names = "default";
212	status = "okay";
213
214	vdd_cpu_big0_s0: regulator@42 {
215		compatible = "rockchip,rk8602";
216		reg = <0x42>;
217		regulator-always-on;
218		regulator-boot-on;
219		regulator-max-microvolt = <1050000>;
220		regulator-min-microvolt = <550000>;
221		regulator-name = "vdd_cpu_big0_s0";
222		regulator-ramp-delay = <2300>;
223		fcs,suspend-voltage-selector = <1>;
224		vin-supply = <&vcc5v0_sys>;
225
226		regulator-state-mem {
227			regulator-off-in-suspend;
228		};
229	};
230
231	vdd_cpu_big1_s0: regulator@43 {
232		compatible = "rockchip,rk8603", "rockchip,rk8602";
233		reg = <0x43>;
234		regulator-always-on;
235		regulator-boot-on;
236		regulator-max-microvolt = <1050000>;
237		regulator-min-microvolt = <550000>;
238		regulator-name = "vdd_cpu_big1_s0";
239		regulator-ramp-delay = <2300>;
240		fcs,suspend-voltage-selector = <1>;
241		vin-supply = <&vcc5v0_sys>;
242
243		regulator-state-mem {
244			regulator-off-in-suspend;
245		};
246	};
247};
248
249&i2c2 {
250	status = "okay";
251
252	vdd_npu_s0: regulator@42 {
253		compatible = "rockchip,rk8602";
254		reg = <0x42>;
255		regulator-always-on;
256		regulator-boot-on;
257		regulator-max-microvolt = <950000>;
258		regulator-min-microvolt = <550000>;
259		regulator-name = "vdd_npu_s0";
260		regulator-ramp-delay = <2300>;
261		fcs,suspend-voltage-selector = <1>;
262		vin-supply = <&vcc5v0_sys>;
263
264		regulator-state-mem {
265			regulator-off-in-suspend;
266		};
267	};
268};
269
270&i2c6 {
271	pinctrl-0 = <&i2c6m3_xfer>;
272	status = "okay";
273
274	fusb302: typec-portc@22 {
275		compatible = "fcs,fusb302";
276		reg = <0x22>;
277		interrupt-parent = <&gpio0>;
278		interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>;
279		pinctrl-0 = <&usbc0_int>;
280		pinctrl-names = "default";
281		vbus-supply = <&vbus5v0_typec>;
282
283		connector {
284			compatible = "usb-c-connector";
285			data-role = "dual";
286			label = "USB-C";
287			power-role = "dual";
288			try-power-role = "sink";
289			source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
290			sink-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
291			op-sink-microwatt = <1000000>;
292		};
293	};
294
295	rtc_hym8563: rtc@51 {
296		compatible = "haoyu,hym8563";
297		reg = <0x51>;
298		#clock-cells = <0>;
299		clock-output-names = "hym8563";
300		interrupt-parent = <&gpio0>;
301		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
302		pinctrl-0 = <&hym8563_int>;
303		pinctrl-names = "default";
304		wakeup-source;
305	};
306};
307
308&i2c7 {
309	pinctrl-0 = <&i2c7m0_xfer>;
310	status = "okay";
311
312	es8388: audio-codec@11 {
313		compatible = "everest,es8388";
314		reg = <0x11>;
315		assigned-clock-rates = <12288000>;
316		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
317		AVDD-supply = <&vcc_3v3_s3>;
318		clock-names = "mclk";
319		clocks = <&cru I2S0_8CH_MCLKOUT>;
320		DVDD-supply = <&vcc_1v8_s3>;
321		HPVDD-supply = <&vcc_3v3_s3>;
322		PVDD-supply = <&vcc_1v8_s3>;
323		#sound-dai-cells = <0>;
324
325		port {
326			es8388_p0_0: endpoint {
327				remote-endpoint = <&i2s0_8ch_p0_0>;
328			};
329		};
330	};
331};
332
333&i2s0_8ch {
334	pinctrl-names = "default";
335	pinctrl-0 = <&i2s0_lrck
336		     &i2s0_mclk
337		     &i2s0_sclk
338		     &i2s0_sdi0
339		     &i2s0_sdo0>;
340	status = "okay";
341
342	i2s0_8ch_p0: port {
343		i2s0_8ch_p0_0: endpoint {
344			dai-format = "i2s";
345			mclk-fs = <256>;
346			remote-endpoint = <&es8388_p0_0>;
347		};
348	};
349};
350
351&pinctrl {
352	bluetooth-pins {
353		bt_reset: bt-reset {
354			rockchip,pins =
355				<0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
356		};
357
358		bt_wake_dev: bt-wake-dev {
359			rockchip,pins =
360				<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
361		};
362
363		bt_wake_host: bt-wake-host {
364			rockchip,pins =
365				<0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>;
366		};
367	};
368
369	hym8563 {
370
371		hym8563_int: hym8563-int {
372			rockchip,pins =
373				<0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
374		};
375	};
376
377	sdio-pwrseq {
378		wifi_enable_h: wifi-enable-h {
379			rockchip,pins =
380				<0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
381		};
382	};
383
384	usb-typec {
385		usbc0_int: usbc0-int {
386			rockchip,pins =
387				<0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
388		};
389
390		typec5v_pwren: typec5v-pwren {
391			rockchip,pins =
392				<4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
393		};
394	};
395};
396
397/* HS400 modes seemed to cause io errors. */
398&sdhci {
399	bus-width = <8>;
400	no-mmc-hs400;
401	no-sd;
402	no-sdio;
403	non-removable;
404	vmmc-supply = <&vcc_3v3_s0>;
405	vqmmc-supply = <&vcc_1v8_s3>;
406	status = "okay";
407};
408
409&sdio {
410	bus-width = <4>;
411	cap-sd-highspeed;
412	cap-sdio-irq;
413	disable-wp;
414	keep-power-in-suspend;
415	max-frequency = <100000000>;
416	mmc-pwrseq = <&sdio_pwrseq>;
417	no-mmc;
418	no-sd;
419	non-removable;
420	sd-uhs-sdr104;
421	vmmc-supply = <&vcc_3v3_s3>;
422	vqmmc-supply = <&vcc_1v8_s3>;
423	status = "okay";
424};
425
426&sdmmc {
427	bus-width = <4>;
428	cap-mmc-highspeed;
429	cap-sd-highspeed;
430	disable-wp;
431	no-sdio;
432	no-mmc;
433	sd-uhs-sdr104;
434	vmmc-supply = <&vcc_3v3_s3>;
435	vqmmc-supply = <&vccio_sd_s0>;
436	status = "okay";
437};
438
439&spi2 {
440	#address-cells = <1>;
441	assigned-clocks = <&cru CLK_SPI2>;
442	assigned-clock-rates = <200000000>;
443	num-cs = <1>;
444	pinctrl-0 = <&spi2m2_pins>, <&spi2m2_cs0>;
445	pinctrl-names = "default";
446	#size-cells = <0>;
447	status = "okay";
448
449	pmic@0 {
450		compatible = "rockchip,rk806";
451		reg = <0x0>;
452		#gpio-cells = <2>;
453		gpio-controller;
454		interrupt-parent = <&gpio0>;
455		interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
456		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
457			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
458		pinctrl-names = "default";
459		spi-max-frequency = <1000000>;
460
461		vcc1-supply = <&vcc5v0_sys>;
462		vcc2-supply = <&vcc5v0_sys>;
463		vcc3-supply = <&vcc5v0_sys>;
464		vcc4-supply = <&vcc5v0_sys>;
465		vcc5-supply = <&vcc5v0_sys>;
466		vcc6-supply = <&vcc5v0_sys>;
467		vcc7-supply = <&vcc5v0_sys>;
468		vcc8-supply = <&vcc5v0_sys>;
469		vcc9-supply = <&vcc5v0_sys>;
470		vcc10-supply = <&vcc5v0_sys>;
471		vcc11-supply = <&vcc_2v0_pldo_s3>;
472		vcc12-supply = <&vcc5v0_sys>;
473		vcc13-supply = <&vcc_1v1_nldo_s3>;
474		vcc14-supply = <&vcc_1v1_nldo_s3>;
475		vcca-supply = <&vcc5v0_sys>;
476
477		rk806_dvs1_null: dvs1-null-pins {
478			pins = "gpio_pwrctrl2";
479			function = "pin_fun0";
480		};
481
482		rk806_dvs2_null: dvs2-null-pins {
483			pins = "gpio_pwrctrl2";
484			function = "pin_fun0";
485		};
486
487		rk806_dvs3_null: dvs3-null-pins {
488			pins = "gpio_pwrctrl3";
489			function = "pin_fun0";
490		};
491
492		regulators {
493			vdd_gpu_s0: dcdc-reg1 {
494				regulator-boot-on;
495				regulator-enable-ramp-delay = <400>;
496				regulator-max-microvolt = <950000>;
497				regulator-min-microvolt = <550000>;
498				regulator-name = "vdd_gpu_s0";
499				regulator-ramp-delay = <12500>;
500				regulator-state-mem {
501					regulator-off-in-suspend;
502				};
503			};
504
505			vdd_cpu_lit_s0: dcdc-reg2 {
506				regulator-always-on;
507				regulator-boot-on;
508				regulator-max-microvolt = <950000>;
509				regulator-min-microvolt = <550000>;
510				regulator-ramp-delay = <12500>;
511				regulator-name = "vdd_cpu_lit_s0";
512				regulator-state-mem {
513					regulator-off-in-suspend;
514				};
515			};
516
517			vdd_logic_s0: dcdc-reg3 {
518				regulator-always-on;
519				regulator-boot-on;
520				regulator-max-microvolt = <750000>;
521				regulator-min-microvolt = <675000>;
522				regulator-name = "vdd_logic_s0";
523				regulator-ramp-delay = <12500>;
524				regulator-state-mem {
525					regulator-on-in-suspend;
526					regulator-suspend-microvolt = <750000>;
527				};
528			};
529
530			vdd_vdenc_s0: dcdc-reg4 {
531				regulator-always-on;
532				regulator-boot-on;
533				regulator-max-microvolt = <950000>;
534				regulator-min-microvolt = <550000>;
535				regulator-name = "vdd_vdenc_s0";
536				regulator-ramp-delay = <12500>;
537				regulator-state-mem {
538					regulator-off-in-suspend;
539				};
540			};
541
542			vdd_ddr_s0: dcdc-reg5 {
543				regulator-always-on;
544				regulator-boot-on;
545				regulator-min-microvolt = <750000>;
546				regulator-max-microvolt = <850000>;
547				regulator-ramp-delay = <12500>;
548				regulator-name = "vdd_ddr_s0";
549				regulator-state-mem {
550					regulator-off-in-suspend;
551					regulator-suspend-microvolt = <850000>;
552				};
553			};
554
555			vdd2_ddr_s3: dcdc-reg6 {
556				regulator-always-on;
557				regulator-boot-on;
558				regulator-max-microvolt = <1100000>;
559				regulator-min-microvolt = <1100000>;
560				regulator-name = "vdd2_ddr_s3";
561				regulator-state-mem {
562					regulator-on-in-suspend;
563				};
564			};
565
566			vcc_2v0_pldo_s3: dcdc-reg7 {
567				regulator-always-on;
568				regulator-boot-on;
569				regulator-max-microvolt = <2000000>;
570				regulator-min-microvolt = <2000000>;
571				regulator-name = "vdd_2v0_pldo_s3";
572				regulator-state-mem {
573					regulator-on-in-suspend;
574					regulator-suspend-microvolt = <2000000>;
575				};
576			};
577
578			vcc_3v3_s3: dcdc-reg8 {
579				regulator-always-on;
580				regulator-boot-on;
581				regulator-max-microvolt = <3300000>;
582				regulator-min-microvolt = <3300000>;
583				regulator-name = "vcc_3v3_s3";
584				regulator-state-mem {
585					regulator-on-in-suspend;
586					regulator-suspend-microvolt = <3300000>;
587				};
588			};
589
590			vddq_ddr_s0: dcdc-reg9 {
591				regulator-always-on;
592				regulator-boot-on;
593				regulator-max-microvolt = <600000>;
594				regulator-min-microvolt = <600000>;
595				regulator-name = "vddq_ddr_s0";
596				regulator-state-mem {
597					regulator-off-in-suspend;
598				};
599			};
600
601			vcc_1v8_s3: dcdc-reg10 {
602				regulator-always-on;
603				regulator-boot-on;
604				regulator-max-microvolt = <1800000>;
605				regulator-min-microvolt = <1800000>;
606				regulator-name = "vcc_1v8_s3";
607				regulator-state-mem {
608					regulator-on-in-suspend;
609					regulator-suspend-microvolt = <1800000>;
610				};
611			};
612
613			vcc_1v8_s0: pldo-reg1 {
614				regulator-always-on;
615				regulator-boot-on;
616				regulator-max-microvolt = <1800000>;
617				regulator-min-microvolt = <1800000>;
618				regulator-name = "vcc_1v8_s0";
619				regulator-state-mem {
620					regulator-off-in-suspend;
621				};
622			};
623
624			vcca_1v8_s0: pldo-reg2 {
625				regulator-always-on;
626				regulator-boot-on;
627				regulator-max-microvolt = <1800000>;
628				regulator-min-microvolt = <1800000>;
629				regulator-name = "vcca_1v8_s0";
630				regulator-state-mem {
631					regulator-off-in-suspend;
632					regulator-suspend-microvolt = <1800000>;
633				};
634			};
635
636			vdda_1v2_s0: pldo-reg3 {
637				regulator-always-on;
638				regulator-boot-on;
639				regulator-max-microvolt = <1200000>;
640				regulator-min-microvolt = <1200000>;
641				regulator-name = "vdda_1v2_s0";
642				regulator-state-mem {
643					regulator-off-in-suspend;
644				};
645			};
646
647			vcca_3v3_s0: pldo-reg4 {
648				regulator-always-on;
649				regulator-boot-on;
650				regulator-max-microvolt = <3300000>;
651				regulator-min-microvolt = <3300000>;
652				regulator-name = "vcca_3v3_s0";
653				regulator-state-mem {
654					regulator-off-in-suspend;
655				};
656			};
657
658			vccio_sd_s0: pldo-reg5 {
659				regulator-always-on;
660				regulator-boot-on;
661				regulator-max-microvolt = <3300000>;
662				regulator-min-microvolt = <1800000>;
663				regulator-name = "vccio_sd_s0";
664				regulator-state-mem {
665					regulator-off-in-suspend;
666				};
667			};
668
669			vcc_1v8_s3_pldo6: pldo-reg6 {
670				regulator-always-on;
671				regulator-boot-on;
672				regulator-max-microvolt = <1800000>;
673				regulator-min-microvolt = <1800000>;
674				regulator-name = "vcc_1v8_s3_pldo6";
675				regulator-state-mem {
676					regulator-on-in-suspend;
677					regulator-suspend-microvolt = <1800000>;
678				};
679			};
680
681			vdd_0v75_s3: nldo-reg1 {
682				regulator-always-on;
683				regulator-boot-on;
684				regulator-max-microvolt = <750000>;
685				regulator-min-microvolt = <750000>;
686				regulator-name = "vdd_0v75_s3";
687				regulator-state-mem {
688					regulator-on-in-suspend;
689					regulator-suspend-microvolt = <750000>;
690				};
691			};
692
693			vdda_ddr_pll_s0: nldo-reg2 {
694				regulator-always-on;
695				regulator-boot-on;
696				regulator-max-microvolt = <850000>;
697				regulator-min-microvolt = <850000>;
698				regulator-name = "vdda_ddr_pll_s0";
699				regulator-state-mem {
700					regulator-off-in-suspend;
701					regulator-suspend-microvolt = <850000>;
702				};
703			};
704
705			avdd_0v75_s0: nldo-reg3 {
706				regulator-always-on;
707				regulator-boot-on;
708				regulator-max-microvolt = <750000>;
709				regulator-min-microvolt = <750000>;
710				regulator-name = "avdd_0v75_s0";
711				regulator-state-mem {
712					regulator-off-in-suspend;
713				};
714			};
715
716			vdda_0v85_s0: nldo-reg4 {
717				regulator-always-on;
718				regulator-boot-on;
719				regulator-min-microvolt = <850000>;
720				regulator-max-microvolt = <850000>;
721				regulator-name = "vdda_0v85_s0";
722				regulator-state-mem {
723					regulator-off-in-suspend;
724				};
725			};
726
727			/* Schematics show not in use */
728			nldo-reg5 {
729			};
730		};
731	};
732};
733
734&tsadc {
735	status = "okay";
736};
737
738&uart2 {
739	pinctrl-0 = <&uart2m0_xfer>;
740	status = "okay";
741};
742
743/* DMA seems to interfere with bluetooth device normal operation. */
744&uart9 {
745	pinctrl-0 = <&uart9m2_xfer>, <&uart9m2_ctsn>, <&uart9m2_rtsn>;
746	pinctrl-names = "default";
747	/delete-property/ dma-names;
748	/delete-property/ dmas;
749	uart-has-rtscts;
750	status = "okay";
751
752	bluetooth {
753		compatible = "realtek,rtl8821cs-bt",
754			     "realtek,rtl8723bs-bt";
755		device-wake-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
756		enable-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
757		host-wake-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
758		pinctrl-0 = <&bt_reset>, <&bt_wake_dev>, <&bt_wake_host>;
759		pinctrl-names = "default";
760	};
761};
762