xref: /linux/arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts (revision 08df80a3c51674ab73ae770885a383ca553fbbbf)
1// SPDX-License-Identifier: BSD-3-Clause
2
3/dts-v1/;
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/sound/qcom,q6asm.h>
7#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
8
9#include "sc7180.dtsi"
10
11#include "pm6150.dtsi"
12#include "pm6150l.dtsi"
13
14/delete-node/ &tz_mem;
15/delete-node/ &ipa_fw_mem;
16
17/ {
18	model = "Acer Aspire 1";
19	compatible = "acer,aspire1", "qcom,sc7180";
20	chassis-type = "laptop";
21
22	aliases {
23		bluetooth0 = &bluetooth;
24		hsuart0 = &uart3;
25		serial0 = &uart8;
26		wifi0 = &wifi;
27	};
28
29	chosen {
30		stdout-path = "serial0:115200n8";
31	};
32
33	reserved-memory {
34		zap_mem: zap-shader@80840000 {
35			reg = <0x0 0x80840000 0 0x2000>;
36			no-map;
37		};
38
39		venus_mem: venus@85b00000 {
40			reg = <0x0 0x85b00000 0 0x500000>;
41			no-map;
42		};
43
44		mpss_mem: mpss@86000000 {
45			reg = <0x0 0x86000000 0x0 0x2000000>;
46			no-map;
47		};
48
49		adsp_mem: adsp@8e400000 {
50			reg = <0x0 0x8e400000 0x0 0x2800000>;
51			no-map;
52		};
53
54		wlan_mem: wlan@93900000 {
55			reg = <0x0 0x93900000 0x0 0x200000>;
56			no-map;
57		};
58	};
59
60	max98357a: audio-codec {
61		compatible = "maxim,max98357a";
62		sdmode-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
63
64		pinctrl-0 = <&amp_sd_mode_default>;
65		pinctrl-names = "default";
66
67		#sound-dai-cells = <0>;
68	};
69
70	backlight: backlight {
71		compatible = "pwm-backlight";
72		pwms = <&sn65dsi86_bridge 1000000>;
73		enable-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
74
75		pinctrl-0 = <&soc_bkoff_default>;
76		pinctrl-names = "default";
77	};
78
79	reg_brij_1p2: bridge-1p2-regulator {
80		compatible = "regulator-fixed";
81		regulator-name = "brij_1p2";
82		regulator-min-microvolt = <1200000>;
83		regulator-max-microvolt = <1200000>;
84
85		gpio = <&tlmm 19 GPIO_ACTIVE_HIGH>;
86		enable-active-high;
87
88		pinctrl-0 = <&reg_edp_1p2_en_default>;
89		pinctrl-names = "default";
90	};
91
92	reg_brij_1p8: bridge-regulator {
93		compatible = "regulator-fixed";
94		regulator-name = "brij_1p8";
95		regulator-min-microvolt = <1800000>;
96		regulator-max-microvolt = <1800000>;
97
98		vin-supply = <&vreg_l8c_1p8>;
99
100		gpio = <&tlmm 20 GPIO_ACTIVE_HIGH>;
101		enable-active-high;
102
103		pinctrl-0 = <&reg_edp_1p8_en_default>;
104		pinctrl-names = "default";
105	};
106
107	reg_codec_3p3: codec-regulator {
108		compatible = "regulator-fixed";
109		regulator-name = "codec_3p3";
110		regulator-min-microvolt = <3300000>;
111		regulator-max-microvolt = <3300000>;
112
113		gpio = <&tlmm 83 GPIO_ACTIVE_HIGH>;
114		enable-active-high;
115
116		pinctrl-0 = <&reg_audio_en_default>;
117		pinctrl-names = "default";
118	};
119
120	reg_lcm_3p3: panel-regulator {
121		compatible = "regulator-fixed";
122		regulator-name = "lcm_3p3";
123		regulator-min-microvolt = <3300000>;
124		regulator-max-microvolt = <3300000>;
125
126		gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
127		enable-active-high;
128
129		pinctrl-0 = <&reg_lcm_en_default>;
130		pinctrl-names = "default";
131	};
132
133	sound: sound {
134		compatible = "qcom,sc7180-qdsp6-sndcard";
135		pinctrl-0 = <&pri_mi2s_active>, <&pri_mi2s_mclk_active>, <&ter_mi2s_active>;
136		pinctrl-names = "default";
137		model = "Acer-Aspire-1";
138
139		audio-routing =
140			"Headphone Jack", "HPOL",
141			"Headphone Jack", "HPOR";
142
143		multimedia1-dai-link {
144			link-name = "MultiMedia1";
145
146			cpu {
147				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
148			};
149		};
150
151		multimedia2-dai-link {
152			link-name = "MultiMedia2";
153
154			cpu {
155				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
156			};
157		};
158
159		multimedia3-dai-link {
160			link-name = "MultiMedia3";
161
162			cpu {
163				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
164			};
165		};
166
167		multimedia4-dai-link {
168			link-name = "MultiMedia4";
169
170			cpu {
171				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
172			};
173		};
174
175		primary-rx-dai-link {
176			link-name = "Primary MI2S Playback";
177
178			cpu {
179				sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
180			};
181
182			platform {
183				sound-dai = <&q6routing>;
184			};
185
186			codec {
187				sound-dai = <&alc5682 0>;
188			};
189		};
190
191		primary-tx-dai-link {
192			link-name = "Primary MI2S Capture";
193
194			cpu {
195				sound-dai = <&q6afedai PRIMARY_MI2S_TX>;
196			};
197
198			platform {
199				sound-dai = <&q6routing>;
200			};
201
202			codec {
203				sound-dai = <&alc5682 0>;
204			};
205		};
206
207		tertiary-rx-dai-link {
208			link-name = "Tertiary MI2S Playback";
209
210			cpu {
211				sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
212			};
213
214			platform {
215				sound-dai = <&q6routing>;
216			};
217
218			codec {
219				sound-dai = <&max98357a>;
220			};
221		};
222
223		displayport-rx-dai-link {
224			link-name = "DisplayPort Playback";
225
226			cpu {
227				sound-dai = <&q6afedai DISPLAY_PORT_RX>;
228			};
229
230			platform {
231				sound-dai = <&q6routing>;
232			};
233
234			codec {
235				sound-dai = <&mdss_dp>;
236			};
237		};
238	};
239
240	reg_tp_3p3: touchpad-regulator {
241		compatible = "regulator-fixed";
242		regulator-name = "tp_3p3";
243		regulator-min-microvolt = <3300000>;
244		regulator-max-microvolt = <3300000>;
245
246		gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
247		enable-active-high;
248
249		pinctrl-0 = <&reg_tp_en_default>;
250		pinctrl-names = "default";
251	};
252};
253
254&i2c2 {
255	clock-frequency = <400000>;
256	status = "okay";
257
258	/* embedded-controller@76 */
259};
260
261&i2c4 {
262	clock-frequency = <400000>;
263	status = "okay";
264
265	/*
266	 * NOTE: DSDT defines two possible touchpads, other one is
267	 *
268	 * reg = <0x15>;
269	 * hid-descr-addr = <0x1>;
270	 */
271
272	touchpad@2c {
273		compatible = "hid-over-i2c";
274		reg = <0x2c>;
275		hid-descr-addr = <0x20>;
276
277		vdd-supply = <&reg_tp_3p3>;
278
279		interrupts-extended = <&tlmm 94 IRQ_TYPE_LEVEL_LOW>;
280
281		pinctrl-0 = <&hid_touchpad_default>;
282		pinctrl-names = "default";
283
284		wakeup-source;
285	};
286
287	keyboard@3a {
288		compatible = "hid-over-i2c";
289		reg = <0x3a>;
290		hid-descr-addr = <0x1>;
291
292		interrupts-extended = <&tlmm 33 IRQ_TYPE_LEVEL_LOW>;
293
294		pinctrl-0 = <&hid_keyboard_default>;
295		pinctrl-names = "default";
296
297		wakeup-source;
298	};
299};
300
301&i2c9 {
302	clock-frequency = <400000>;
303	status = "okay";
304
305	alc5682: codec@1a {
306		compatible = "realtek,rt5682i";
307		reg = <0x1a>;
308
309		#sound-dai-cells = <1>;
310
311		interrupt-parent = <&tlmm>;
312		interrupts = <28 IRQ_TYPE_EDGE_BOTH>;
313
314		pinctrl-0 = <&codec_irq_default>;
315		pinctrl-names = "default";
316
317		AVDD-supply = <&vreg_l15a_1p8>;
318		MICVDD-supply = <&reg_codec_3p3>;
319		VBAT-supply = <&reg_codec_3p3>;
320		DBVDD-supply = <&vreg_l15a_1p8>;
321		LDO1-IN-supply = <&vreg_l15a_1p8>;
322
323		/*
324		 * NOTE: The board has a path from this codec to the
325		 * DMIC microphones in the lid, however some of the option
326		 * resistors are absent and the microphones are connected
327		 * to the SoC instead.
328		 *
329		 * If the resistors were to be changed by the user to
330		 * connect the codec, the following could be used:
331		 *
332		 * realtek,dmic1-data-pin = <1>;
333		 * realtek,dmic1-clk-pin = <1>;
334		 */
335
336		realtek,jd-src = <1>;
337	};
338};
339
340&i2c10 {
341	clock-frequency = <400000>;
342	status = "okay";
343
344	sn65dsi86_bridge: bridge@2c {
345		compatible = "ti,sn65dsi86";
346		reg = <0x2c>;
347		gpio-controller;
348		#gpio-cells = <2>;
349		#pwm-cells = <1>;
350
351		interrupt-parent = <&tlmm>;
352		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
353
354		enable-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
355		suspend-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
356
357		pinctrl-0 = <&bridge_en_default>,
358			    <&edp_bridge_irq_default>,
359			    <&bridge_suspend_default>;
360		pinctrl-names = "default";
361
362		vpll-supply = <&reg_brij_1p8>;
363		vccio-supply = <&reg_brij_1p8>;
364		vcca-supply = <&reg_brij_1p2>;
365		vcc-supply = <&reg_brij_1p2>;
366
367		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
368		clock-names = "refclk";
369
370		ports {
371			#address-cells = <1>;
372			#size-cells = <0>;
373
374			port@0 {
375				reg = <0>;
376
377				sn65dsi86_in: endpoint {
378					remote-endpoint = <&mdss_dsi0_out>;
379				};
380			};
381
382			port@1 {
383				reg = <1>;
384
385				sn65dsi86_out: endpoint {
386					data-lanes = <0 1>;
387					remote-endpoint = <&panel_in_edp>;
388				};
389			};
390		};
391
392		aux-bus {
393			panel: panel {
394				compatible = "edp-panel";
395				power-supply = <&reg_lcm_3p3>;
396				backlight = <&backlight>;
397				hpd-absent-delay-ms = <200>;
398
399				port {
400					panel_in_edp: endpoint {
401						remote-endpoint = <&sn65dsi86_out>;
402					};
403				};
404			};
405		};
406	};
407};
408
409&gpu {
410	status = "okay";
411
412	zap-shader {
413		memory-region = <&zap_mem>;
414		firmware-name = "qcom/sc7180/acer/aspire1/qcdxkmsuc7180.mbn";
415	};
416};
417
418&mdss {
419	status = "okay";
420};
421
422&mdss_dsi0 {
423	vdda-supply = <&vreg_l3c_1p2>;
424	status = "okay";
425};
426
427&mdss_dsi0_out {
428	remote-endpoint = <&sn65dsi86_in>;
429	data-lanes = <0 1 2 3>;
430};
431
432&mdss_dsi0_phy {
433	vdds-supply = <&vreg_l4a_0p8>;
434	status = "okay";
435};
436
437&pm6150_adc {
438	channel@4e {
439		reg = <ADC5_AMUX_THM2_100K_PU>;
440		qcom,ratiometric;
441		qcom,hw-settle-time = <200>;
442		label = "thermistor";
443	};
444
445	channel@4f {
446		reg = <ADC5_AMUX_THM3_100K_PU>;
447		qcom,ratiometric;
448		qcom,hw-settle-time = <200>;
449		label = "charger_thermistor";
450	};
451};
452
453&pm6150_adc_tm {
454	status = "okay";
455
456	charger-thermistor@0 {
457		reg = <0>;
458		io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
459		qcom,ratiometric;
460		qcom,hw-settle-time-us = <200>;
461	};
462
463	thermistor@1 {
464		reg = <1>;
465		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
466		qcom,ratiometric;
467		qcom,hw-settle-time-us = <200>;
468	};
469};
470
471&pm6150_pon {
472	status = "disabled";
473};
474
475&pm6150_rtc {
476	status = "okay";
477};
478
479&q6afedai {
480	dai@16 {
481		reg = <PRIMARY_MI2S_RX>;
482		qcom,sd-lines = <1>;
483	};
484
485	dai@17 {
486		reg = <PRIMARY_MI2S_TX>;
487		qcom,sd-lines = <0>;
488	};
489
490	dai@20 {
491		reg = <TERTIARY_MI2S_RX>;
492		qcom,sd-lines = <0>;
493	};
494
495	dai@104 {
496		reg = <DISPLAY_PORT_RX>;
497	};
498};
499
500&q6asmdai {
501	dai@0 {
502		reg = <0>;
503	};
504
505	dai@1 {
506		reg = <1>;
507	};
508
509	dai@2 {
510		reg = <2>;
511	};
512
513	dai@3 {
514		reg = <3>;
515	};
516};
517
518&qupv3_id_0 {
519	status = "okay";
520};
521
522&qupv3_id_1 {
523	status = "okay";
524};
525
526&remoteproc_adsp {
527	memory-region = <&adsp_mem>;
528	firmware-name = "qcom/sc7180/acer/aspire1/qcadsp7180.mbn";
529	status = "okay";
530};
531
532&remoteproc_mpss {
533	firmware-name = "qcom/sc7180/acer/aspire1/qcmpss7180_nm.mbn";
534	status = "okay";
535};
536
537&sdhc_1 {
538	pinctrl-0 = <&sdc1_default>;
539	pinctrl-1 = <&sdc1_sleep>;
540	pinctrl-names = "default", "sleep";
541	vmmc-supply = <&vreg_l19a_2p9>;
542	vqmmc-supply = <&vreg_l12a_1p8>;
543
544	status = "okay";
545};
546
547&uart3 {
548	/delete-property/interrupts;
549	interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>,
550			      <&tlmm 41 IRQ_TYPE_EDGE_FALLING>;
551
552	pinctrl-1 = <&qup_uart3_sleep>;
553	pinctrl-names = "default", "sleep";
554
555	status = "okay";
556
557	bluetooth: bluetooth {
558		compatible = "qcom,wcn3991-bt";
559		vddio-supply = <&vreg_l10a_1p8>;
560		vddxo-supply = <&vreg_l1c_1p8>;
561		vddrf-supply = <&vreg_l2c_1p3>;
562		vddch0-supply = <&vreg_l10c_3p3>;
563		max-speed = <3200000>;
564	};
565};
566
567&uart8 {
568	status = "okay";
569};
570
571&usb_1 {
572	status = "okay";
573};
574
575&usb_1_dwc3 {
576	dr_mode = "host";
577	#address-cells = <1>;
578	#size-cells = <0>;
579
580	usb_hub_2_x: hub@1 {
581		compatible = "usbbda,5411";
582		reg = <1>;
583		peer-hub = <&usb_hub_3_x>;
584	};
585
586	usb_hub_3_x: hub@2 {
587		compatible = "usbbda,411";
588		reg = <2>;
589		peer-hub = <&usb_hub_2_x>;
590	};
591};
592
593&usb_1_hsphy {
594	vdd-supply = <&vreg_l4a_0p8>;
595	vdda-pll-supply = <&vreg_l11a_1p8>;
596	vdda-phy-dpdm-supply = <&vreg_l17a_3p0>;
597	qcom,imp-res-offset-value = <8>;
598	qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>;
599	qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
600	qcom,bias-ctrl-value = <0x22>;
601	qcom,charge-ctrl-value = <3>;
602	qcom,hsdisc-trim-value = <0>;
603
604	status = "okay";
605};
606
607&usb_1_qmpphy {
608	vdda-phy-supply = <&vreg_l3c_1p2>;
609	vdda-pll-supply = <&vreg_l4a_0p8>;
610
611	status = "okay";
612};
613
614&venus {
615	firmware-name = "qcom/sc7180/acer/aspire1/qcvss7180.mbn";
616};
617
618&wifi {
619	vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>;
620	vdd-1.8-xo-supply = <&vreg_l1c_1p8>;
621	vdd-1.3-rfa-supply = <&vreg_l2c_1p3>;
622	vdd-3.3-ch0-supply = <&vreg_l10c_3p3>;
623	vdd-3.3-ch1-supply = <&vreg_l11c_3p3>;
624
625	status = "okay";
626};
627
628&apps_rsc {
629	regulators-0 {
630		compatible = "qcom,pm6150-rpmh-regulators";
631		qcom,pmic-id = "a";
632
633		vreg_s1a_1p1: smps1 {
634			regulator-min-microvolt = <1128000>;
635			regulator-max-microvolt = <1128000>;
636		};
637
638		vreg_l4a_0p8: ldo4 {
639			regulator-min-microvolt = <824000>;
640			regulator-max-microvolt = <928000>;
641			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
642		};
643
644		vreg_l9a_0p6: ldo9 {
645			regulator-min-microvolt = <488000>;
646			regulator-max-microvolt = <800000>;
647			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
648		};
649
650		vreg_l10a_1p8: ldo10 {
651			regulator-min-microvolt = <1800000>;
652			regulator-max-microvolt = <1800000>;
653			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
654			regulator-always-on;
655			regulator-boot-on;
656		};
657
658		vreg_l11a_1p8: ldo11 {
659			regulator-min-microvolt = <1800000>;
660			regulator-max-microvolt = <1800000>;
661			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
662		};
663
664		vreg_l12a_1p8: ldo12 {
665			regulator-min-microvolt = <1800000>;
666			regulator-max-microvolt = <1800000>;
667			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
668		};
669
670		vreg_l13a_1p8: ldo13 {
671			regulator-min-microvolt = <1800000>;
672			regulator-max-microvolt = <1800000>;
673			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
674		};
675
676		vreg_l14a_1p8: ldo14 {
677			regulator-min-microvolt = <1800000>;
678			regulator-max-microvolt = <1800000>;
679			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
680		};
681
682		vreg_l15a_1p8: ldo15 {
683			regulator-min-microvolt = <1800000>;
684			regulator-max-microvolt = <1800000>;
685			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
686		};
687
688		vreg_l16a_2p7: ldo16 {
689			regulator-min-microvolt = <2496000>;
690			regulator-max-microvolt = <3304000>;
691			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
692		};
693
694		vreg_l17a_3p0: ldo17 {
695			regulator-min-microvolt = <2920000>;
696			regulator-max-microvolt = <3232000>;
697			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
698		};
699
700		vreg_l18a_2p8: ldo18 {
701			regulator-min-microvolt = <2496000>;
702			regulator-max-microvolt = <3304000>;
703			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
704		};
705
706		vreg_l19a_2p9: ldo19 {
707			regulator-min-microvolt = <2960000>;
708			regulator-max-microvolt = <2960000>;
709			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
710		};
711	};
712
713	regulators-1 {
714		compatible = "qcom,pm6150l-rpmh-regulators";
715		qcom,pmic-id = "c";
716
717		vreg_s8c_1p3: smps8 {
718			regulator-min-microvolt = <1120000>;
719			regulator-max-microvolt = <1408000>;
720		};
721
722		vreg_l1c_1p8: ldo1 {
723			regulator-min-microvolt = <1616000>;
724			regulator-max-microvolt = <1984000>;
725			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
726		};
727
728		vreg_l2c_1p3: ldo2 {
729			regulator-min-microvolt = <1168000>;
730			regulator-max-microvolt = <1304000>;
731			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
732		};
733
734		vreg_l3c_1p2: ldo3 {
735			regulator-min-microvolt = <1144000>;
736			regulator-max-microvolt = <1304000>;
737			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
738		};
739
740		vreg_l4c_1p8: ldo4 {
741			regulator-min-microvolt = <1648000>;
742			regulator-max-microvolt = <3304000>;
743			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
744		};
745
746		vreg_l5c_1p8: ldo5 {
747			regulator-min-microvolt = <1648000>;
748			regulator-max-microvolt = <3304000>;
749			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
750		};
751
752		vreg_l6c_2p9: ldo6 {
753			regulator-min-microvolt = <1800000>;
754			regulator-max-microvolt = <2950000>;
755			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
756		};
757
758		vreg_l7c_3p0: ldo7 {
759			regulator-min-microvolt = <3000000>;
760			regulator-max-microvolt = <3312000>;
761			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
762		};
763
764		vreg_l8c_1p8: ldo8 {
765			regulator-min-microvolt = <1800000>;
766			regulator-max-microvolt = <1800000>;
767			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
768		};
769
770		vreg_l9c_2p9: ldo9 {
771			regulator-min-microvolt = <2952000>;
772			regulator-max-microvolt = <2952000>;
773			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
774		};
775
776		vreg_l10c_3p3: ldo10 {
777			regulator-min-microvolt = <3000000>;
778			regulator-max-microvolt = <3400000>;
779			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
780		};
781
782		vreg_l11c_3p3: ldo11 {
783			regulator-min-microvolt = <3000000>;
784			regulator-max-microvolt = <3400000>;
785			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
786		};
787
788		vreg_bob: bob {
789			regulator-min-microvolt = <3008000>;
790			regulator-max-microvolt = <3960000>;
791			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
792		};
793	};
794};
795
796&qup_i2c2_default {
797	drive-strength = <2>;
798
799	/* Has external pullup */
800	bias-disable;
801};
802
803&qup_i2c4_default {
804	drive-strength = <2>;
805
806	/* Has external pullup */
807	bias-disable;
808};
809
810&qup_i2c9_default {
811	drive-strength = <2>;
812
813	/* Has external pullup */
814	bias-disable;
815};
816
817&qup_i2c10_default {
818	drive-strength = <2>;
819
820	/* Has external pullup */
821	bias-disable;
822};
823
824&tlmm {
825	/*
826	 * The TZ seem to protect those because some boards can have
827	 * fingerprint sensor connected to this range. Not connected
828	 * on this board
829	 */
830	gpio-reserved-ranges = <58 5>;
831
832	amp_sd_mode_default: amp-sd-mode-deault-state {
833		pins = "gpio23";
834		function = "gpio";
835		drive-strength = <16>;
836		bias-disable;
837	};
838
839	bridge_en_default: bridge-en-default-state {
840		pins = "gpio51";
841		function = "gpio";
842		drive-strength = <16>;
843		bias-disable;
844	};
845
846	bridge_suspend_default: bridge-suspend-default-state {
847		pins = "gpio22";
848		function = "gpio";
849		drive-strength = <16>;
850		bias-pull-up;
851	};
852
853	codec_irq_default: codec-irq-deault-state {
854		pins = "gpio28";
855		function = "gpio";
856		drive-strength = <2>;
857		bias-disable;
858	};
859
860	edp_bridge_irq_default: edp-bridge-irq-default-state {
861		pins = "gpio11";
862		function = "gpio";
863		drive-strength = <2>;
864		bias-pull-down;
865	};
866
867	hid_keyboard_default: hid-keyboard-default-state {
868		pins = "gpio33";
869		function = "gpio";
870		drive-strength = <2>;
871		bias-disable;
872	};
873
874	hid_touchpad_default: hid-touchpad-default-state {
875		pins = "gpio94";
876		function = "gpio";
877		drive-strength = <2>;
878		bias-disable;
879	};
880
881	qup_uart3_sleep: qup-uart3-sleep-state {
882		cts-pins {
883			/*
884			 * Configure a pull-down on CTS to match the pull of
885			 * the Bluetooth module.
886			 */
887			pins = "gpio38";
888			function = "gpio";
889			bias-pull-down;
890		};
891
892		rts-pins {
893			/*
894			 * Configure pull-down on RTS. As RTS is active low
895			 * signal, pull it low to indicate the BT SoC that it
896			 * can wakeup the system anytime from suspend state by
897			 * pulling RX low (by sending wakeup bytes).
898			 */
899			pins = "gpio39";
900			function = "gpio";
901			bias-pull-down;
902		};
903
904		tx-pins {
905			/*
906			 * Configure pull-up on TX when it isn't actively driven
907			 * to prevent BT SoC from receiving garbage during sleep.
908			 */
909			pins = "gpio40";
910			function = "gpio";
911			bias-pull-up;
912		};
913
914		rx-pins {
915			/*
916			 * Configure a pull-up on RX. This is needed to avoid
917			 * garbage data when the TX pin of the Bluetooth module
918			 * is floating which may cause spurious wakeups.
919			 */
920			pins = "gpio41";
921			function = "gpio";
922			bias-pull-up;
923		};
924	};
925
926	reg_edp_1p2_en_default: reg-edp-1p2-en-deault-state {
927		pins = "gpio19";
928		function = "gpio";
929		drive-strength = <16>;
930		bias-disable;
931	};
932
933	reg_edp_1p8_en_default: reg-edp-1p8-en-deault-state {
934		pins = "gpio20";
935		function = "gpio";
936		drive-strength = <16>;
937		bias-disable;
938	};
939
940	reg_lcm_en_default: reg-lcm-en-deault-state {
941		pins = "gpio26";
942		function = "gpio";
943		drive-strength = <16>;
944		bias-disable;
945	};
946
947	reg_audio_en_default: reg-audio-en-deault-state {
948		pins = "gpio83";
949		function = "gpio";
950		drive-strength = <2>;
951		bias-disable;
952	};
953
954	reg_tp_en_default: reg-tp-en-deault-state {
955		pins = "gpio25";
956		function = "gpio";
957		drive-strength = <2>;
958		bias-disable;
959	};
960
961	soc_bkoff_default: soc-bkoff-deault-state {
962		pins = "gpio10";
963		function = "gpio";
964		drive-strength = <16>;
965		bias-disable;
966	};
967
968	sdc1_default: sdc1-default-state {
969		clk-pins {
970			pins = "sdc1_clk";
971			drive-strength = <16>;
972			bias-disable;
973		};
974
975		cmd-pins {
976			pins = "sdc1_cmd";
977			drive-strength = <16>;
978			bias-pull-up;
979		};
980
981		data-pins {
982			pins = "sdc1_data";
983			drive-strength = <16>;
984			bias-pull-up;
985		};
986
987		rclk-pins {
988			pins = "sdc1_rclk";
989			bias-pull-down;
990		};
991	};
992
993	sdc1_sleep: sdc1-sleep-state {
994		clk-pins {
995			pins = "sdc1_clk";
996			drive-strength = <2>;
997			bias-disable;
998		};
999
1000		cmd-pins {
1001			pins = "sdc1_cmd";
1002			drive-strength = <2>;
1003			bias-pull-up;
1004		};
1005
1006		data-pins {
1007			pins = "sdc1_data";
1008			drive-strength = <2>;
1009			bias-pull-up;
1010		};
1011
1012		rclk-pins {
1013			pins = "sdc1_rclk";
1014			bias-pull-down;
1015		};
1016	};
1017};
1018