xref: /linux/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-arcata.dts (revision 55a42f78ffd386e01a5404419f8c5ded7db70a21)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2024, Jérôme de Bretagne <jerome.debretagne@gmail.com>
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10
11#include "sc8280xp.dtsi"
12#include "sc8280xp-pmics.dtsi"
13
14/ {
15	model = "Microsoft Surface Pro 9 5G";
16	compatible = "microsoft,arcata", "qcom,sc8280xp";
17
18	aliases {
19		serial0 = &uart18;
20		serial1 = &uart2;
21	};
22
23	wcd938x: audio-codec {
24		compatible = "qcom,wcd9380-codec";
25
26		pinctrl-0 = <&wcd_default>;
27		pinctrl-names = "default";
28
29		reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
30
31		vdd-buck-supply = <&vreg_s10b>;
32		vdd-rxtx-supply = <&vreg_s10b>;
33		vdd-io-supply = <&vreg_s10b>;
34		vdd-mic-bias-supply = <&vreg_bob>;
35
36		qcom,micbias1-microvolt = <1800000>;
37		qcom,micbias2-microvolt = <1800000>;
38		qcom,micbias3-microvolt = <1800000>;
39		qcom,micbias4-microvolt = <1800000>;
40		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
41		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
42		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
43		qcom,rx-device = <&wcd_rx>;
44		qcom,tx-device = <&wcd_tx>;
45
46		#sound-dai-cells = <1>;
47	};
48
49	pmic-glink {
50		compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";
51
52		#address-cells = <1>;
53		#size-cells = <0>;
54
55		/* Left-side top port */
56		connector@0 {
57			compatible = "usb-c-connector";
58			reg = <0>;
59			power-role = "dual";
60			data-role = "dual";
61
62			ports {
63				#address-cells = <1>;
64				#size-cells = <0>;
65
66				port@0 {
67					reg = <0>;
68
69					pmic_glink_con0_hs: endpoint {
70						remote-endpoint = <&usb_0_dwc3_hs>;
71					};
72				};
73
74				port@1 {
75					reg = <1>;
76
77					pmic_glink_con0_ss: endpoint {
78						remote-endpoint = <&usb_0_qmpphy_out>;
79					};
80				};
81
82				port@2 {
83					reg = <2>;
84
85					pmic_glink_con0_sbu: endpoint {
86						remote-endpoint = <&usb0_sbu_mux>;
87					};
88				};
89			};
90		};
91
92		/* Left-side bottom port */
93		connector@1 {
94			compatible = "usb-c-connector";
95			reg = <1>;
96			power-role = "dual";
97			data-role = "dual";
98
99			ports {
100				#address-cells = <1>;
101				#size-cells = <0>;
102
103				port@0 {
104					reg = <0>;
105
106					pmic_glink_con1_hs: endpoint {
107						remote-endpoint = <&usb_1_dwc3_hs>;
108					};
109				};
110
111				port@1 {
112					reg = <1>;
113
114					pmic_glink_con1_ss: endpoint {
115						remote-endpoint = <&usb_1_qmpphy_out>;
116					};
117				};
118
119				port@2 {
120					reg = <2>;
121
122					pmic_glink_con1_sbu: endpoint {
123						remote-endpoint = <&usb1_sbu_mux>;
124					};
125				};
126			};
127		};
128	};
129
130	vreg_nvme: regulator-nvme {
131		compatible = "regulator-fixed";
132
133		regulator-name = "VCC3_SSD";
134		regulator-min-microvolt = <3300000>;
135		regulator-max-microvolt = <3300000>;
136
137		gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>;
138		enable-active-high;
139
140		pinctrl-0 = <&nvme_reg_en>;
141		pinctrl-names = "default";
142
143		regulator-boot-on;
144	};
145
146	vreg_vph_pwr: regulator-vph-pwr {
147		compatible = "regulator-fixed";
148
149		regulator-name = "VPH_VCC3R9";
150		regulator-min-microvolt = <3900000>;
151		regulator-max-microvolt = <3900000>;
152
153		regulator-always-on;
154	};
155
156	vreg_wlan: regulator-wlan {
157		compatible = "regulator-fixed";
158
159		regulator-name = "VCC_WLAN_3R9";
160		regulator-min-microvolt = <3900000>;
161		regulator-max-microvolt = <3900000>;
162
163		gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>;
164		enable-active-high;
165
166		pinctrl-0 = <&hastings_reg_en>;
167		pinctrl-names = "default";
168
169		regulator-boot-on;
170	};
171
172	vreg_wwan: regulator-wwan {
173		compatible = "regulator-fixed";
174
175		regulator-name = "VCC3B_WAN";
176		regulator-min-microvolt = <3300000>;
177		regulator-max-microvolt = <3300000>;
178
179		gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>;
180		enable-active-high;
181
182		pinctrl-0 = <&wwan_sw_en>;
183		pinctrl-names = "default";
184
185		regulator-boot-on;
186	};
187
188	reserved-memory {
189		gpu_mem: gpu-mem@8bf00000 {
190			reg = <0 0x8bf00000 0 0x2000>;
191			no-map;
192		};
193
194		linux,cma {
195			compatible = "shared-dma-pool";
196			size = <0x0 0x8000000>;
197			reusable;
198			linux,cma-default;
199		};
200	};
201
202	thermal-zones {
203		skin-temp-thermal {
204			polling-delay-passive = <250>;
205
206			thermal-sensors = <&pmk8280_adc_tm 5>;
207
208			trips {
209				skin_temp_alert0: trip-point0 {
210					temperature = <55000>;
211					hysteresis = <1000>;
212					type = "passive";
213				};
214
215				skin_temp_alert1: trip-point1 {
216					temperature = <58000>;
217					hysteresis = <1000>;
218					type = "passive";
219				};
220
221				skin-temp-crit {
222					temperature = <73000>;
223					hysteresis = <1000>;
224					type = "critical";
225				};
226			};
227
228			cooling-maps {
229				map0 {
230					trip = <&skin_temp_alert0>;
231					cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
232							 <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
233							 <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
234							 <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
235				};
236
237				map1 {
238					trip = <&skin_temp_alert1>;
239					cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
240							 <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
241							 <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
242							 <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
243				};
244			};
245		};
246	};
247
248	usb0-sbu-mux {
249		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
250
251		enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
252		select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>;
253
254		pinctrl-0 = <&usb0_sbu_default>;
255		pinctrl-names = "default";
256
257		mode-switch;
258		orientation-switch;
259
260		port {
261			usb0_sbu_mux: endpoint {
262				remote-endpoint = <&pmic_glink_con0_sbu>;
263			};
264		};
265	};
266
267	usb1-sbu-mux {
268		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
269
270		enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
271		select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
272
273		pinctrl-0 = <&usb1_sbu_default>;
274		pinctrl-names = "default";
275
276		mode-switch;
277		orientation-switch;
278
279		port {
280			usb1_sbu_mux: endpoint {
281				remote-endpoint = <&pmic_glink_con1_sbu>;
282			};
283		};
284	};
285};
286
287&apps_rsc {
288	regulators-0 {
289		compatible = "qcom,pm8350-rpmh-regulators";
290		qcom,pmic-id = "b";
291
292		vdd-l1-l4-supply = <&vreg_s12b>;
293		vdd-l2-l7-supply = <&vreg_bob>;
294		vdd-l3-l5-supply = <&vreg_s11b>;
295		vdd-l6-l9-l10-supply = <&vreg_s12b>;
296		vdd-l8-supply = <&vreg_s12b>;
297
298		vreg_s10b: smps10 {
299			regulator-name = "vreg_s10b";
300			regulator-min-microvolt = <1800000>;
301			regulator-max-microvolt = <1800000>;
302			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
303			regulator-always-on;
304		};
305
306		vreg_s11b: smps11 {
307			regulator-name = "vreg_s11b";
308			regulator-min-microvolt = <1272000>;
309			regulator-max-microvolt = <1272000>;
310			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
311			regulator-always-on;
312		};
313
314		vreg_s12b: smps12 {
315			regulator-name = "vreg_s12b";
316			regulator-min-microvolt = <984000>;
317			regulator-max-microvolt = <984000>;
318			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
319			regulator-always-on;
320		};
321
322		vreg_l3b: ldo3 {
323			regulator-name = "vreg_l3b";
324			regulator-min-microvolt = <1200000>;
325			regulator-max-microvolt = <1200000>;
326			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
327			regulator-boot-on;
328		};
329
330		vreg_l4b: ldo4 {
331			regulator-name = "vreg_l4b";
332			regulator-min-microvolt = <912000>;
333			regulator-max-microvolt = <912000>;
334			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
335		};
336
337		vreg_l6b: ldo6 {
338			regulator-name = "vreg_l6b";
339			regulator-min-microvolt = <880000>;
340			regulator-max-microvolt = <880000>;
341			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
342			regulator-boot-on;
343			regulator-always-on;	// FIXME: VDD_A_EDP_0_0P9
344		};
345	};
346
347	regulators-1 {
348		compatible = "qcom,pm8350c-rpmh-regulators";
349		qcom,pmic-id = "c";
350
351		vdd-bob-supply = <&vreg_vph_pwr>;
352		vdd-l1-l12-supply = <&vreg_s1c>;
353		vdd-l2-l8-supply = <&vreg_s1c>;
354		vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>;
355		vdd-l6-l9-l11-supply = <&vreg_bob>;
356		vdd-l10-supply = <&vreg_s11b>;
357
358		vreg_s1c: smps1 {
359			regulator-name = "vreg_s1c";
360			regulator-min-microvolt = <1880000>;
361			regulator-max-microvolt = <1900000>;
362			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
363			regulator-always-on;
364		};
365
366		vreg_l1c: ldo1 {
367			regulator-name = "vreg_l1c";
368			regulator-min-microvolt = <1800000>;
369			regulator-max-microvolt = <1800000>;
370			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
371		};
372
373		vreg_l12c: ldo12 {
374			regulator-name = "vreg_l12c";
375			regulator-min-microvolt = <1800000>;
376			regulator-max-microvolt = <1800000>;
377			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
378		};
379
380		vreg_l13c: ldo13 {
381			regulator-name = "vreg_l13c";
382			regulator-min-microvolt = <3072000>;
383			regulator-max-microvolt = <3072000>;
384			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
385		};
386
387		vreg_bob: bob {
388			regulator-name = "vreg_bob";
389			regulator-min-microvolt = <3008000>;
390			regulator-max-microvolt = <3960000>;
391			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
392			regulator-always-on;
393		};
394	};
395
396	regulators-2 {
397		compatible = "qcom,pm8350-rpmh-regulators";
398		qcom,pmic-id = "d";
399
400		vdd-l1-l4-supply = <&vreg_s11b>;
401		vdd-l2-l7-supply = <&vreg_bob>;
402		vdd-l3-l5-supply = <&vreg_s11b>;
403		vdd-l6-l9-l10-supply = <&vreg_s12b>;
404		vdd-l8-supply = <&vreg_s12b>;
405
406		vreg_l3d: ldo3 {
407			regulator-name = "vreg_l3d";
408			regulator-min-microvolt = <1200000>;
409			regulator-max-microvolt = <1200000>;
410			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
411		};
412
413		vreg_l4d: ldo4 {
414			regulator-name = "vreg_l4d";
415			regulator-min-microvolt = <1200000>;
416			regulator-max-microvolt = <1200000>;
417			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
418		};
419
420		vreg_l6d: ldo6 {
421			regulator-name = "vreg_l6d";
422			regulator-min-microvolt = <880000>;
423			regulator-max-microvolt = <880000>;
424			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
425		};
426
427		vreg_l7d: ldo7 {
428			regulator-name = "vreg_l7d";
429			regulator-min-microvolt = <3072000>;
430			regulator-max-microvolt = <3072000>;
431			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
432		};
433
434		vreg_l9d: ldo9 {
435			regulator-name = "vreg_l9d";
436			regulator-min-microvolt = <912000>;
437			regulator-max-microvolt = <912000>;
438			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
439		};
440	};
441};
442
443&dispcc0 {
444	status = "okay";
445};
446
447&dispcc1 {
448	status = "okay";
449};
450
451&gpi_dma0 {
452	status = "okay";
453};
454
455&gpi_dma1 {
456	status = "okay";
457};
458
459&gpi_dma2 {
460	status = "okay";
461};
462
463&gpu {
464	status = "okay";
465
466	zap-shader {
467		memory-region = <&gpu_mem>;
468		firmware-name = "qcom/sc8280xp/MICROSOFT/SurfacePro9/qcdxkmsuc8280.mbn";
469	};
470};
471
472&mdss0 {
473	status = "okay";
474};
475
476&mdss0_dp0 {
477	status = "okay";
478};
479
480&mdss0_dp0_out {
481	data-lanes = <0 1>;
482	remote-endpoint = <&usb_0_qmpphy_dp_in>;
483};
484
485&mdss0_dp1 {
486	status = "okay";
487};
488
489&mdss0_dp1_out {
490	data-lanes = <0 1>;
491	remote-endpoint = <&usb_1_qmpphy_dp_in>;
492};
493
494&pcie2a {
495	perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>;
496	wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
497
498	vddpe-3v3-supply = <&vreg_nvme>;
499
500	pinctrl-0 = <&pcie2a_default>;
501	pinctrl-names = "default";
502
503	status = "okay";
504};
505
506&pcie2a_phy {
507	vdda-phy-supply = <&vreg_l6d>;
508	vdda-pll-supply = <&vreg_l4d>;
509
510	status = "okay";
511};
512
513&pcie3a {
514	perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
515	wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
516
517	vddpe-3v3-supply = <&vreg_wwan>;
518
519	pinctrl-0 = <&pcie3a_default>;
520	pinctrl-names = "default";
521
522	status = "okay";
523};
524
525&pcie3a_phy {
526	vdda-phy-supply = <&vreg_l6d>;
527	vdda-pll-supply = <&vreg_l4d>;
528
529	status = "okay";
530};
531
532&pcie4 {
533	max-link-speed = <2>;
534
535	perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>;
536	wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>;
537
538	vddpe-3v3-supply = <&vreg_wlan>;
539
540	pinctrl-0 = <&pcie4_default>;
541	pinctrl-names = "default";
542
543	status = "okay";
544};
545
546&pcie4_port0 {
547	wifi@0 {
548		compatible = "pci17cb,1103";
549		reg = <0x10000 0x0 0x0 0x0 0x0>;
550
551		qcom,calibration-variant = "MS_SP9_5G";
552	};
553};
554
555&pcie4_phy {
556	vdda-phy-supply = <&vreg_l6d>;
557	vdda-pll-supply = <&vreg_l4d>;
558
559	status = "okay";
560};
561
562&pmk8280_pon_pwrkey {
563	status = "okay";
564};
565
566&pmk8280_pon_resin {
567	status = "okay";
568};
569
570&pmk8280_rtc {
571	nvmem-cells = <&rtc_offset>;
572	nvmem-cell-names = "offset";
573
574	status = "okay";
575};
576
577&pmk8280_sdam_6 {
578	status = "okay";
579
580	rtc_offset: rtc-offset@bc {
581		reg = <0xbc 0x4>;
582	};
583};
584
585&qup0 {
586	status = "okay";
587};
588
589&qup1 {
590	status = "okay";
591};
592
593&qup2 {
594	status = "okay";
595};
596
597&remoteproc_adsp {
598	firmware-name = "qcom/sc8280xp/MICROSOFT/SurfacePro9/qcadsp8280.mbn";
599
600	status = "okay";
601};
602
603&remoteproc_nsp0 {
604	firmware-name = "qcom/sc8280xp/MICROSOFT/SurfacePro9/qccdsp8280.mbn";
605
606	status = "okay";
607};
608
609&rxmacro {
610	status = "okay";
611};
612
613&sound {
614	compatible = "qcom,sc8280xp-sndcard";
615	model = "SC8280XP-MICROSOFT-SURFACE-PRO-9-5G";
616	audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
617			"SpkrRight IN", "WSA_SPK2 OUT",
618			"IN1_HPHL", "HPHL_OUT",
619			"IN2_HPHR", "HPHR_OUT",
620			"AMIC2", "MIC BIAS2",
621			"VA DMIC0", "MIC BIAS1",
622			"VA DMIC1", "MIC BIAS1",
623			"VA DMIC2", "MIC BIAS3",
624			"VA DMIC0", "VA MIC BIAS1",
625			"VA DMIC1", "VA MIC BIAS1",
626			"VA DMIC2", "VA MIC BIAS3",
627			"TX SWR_ADC1", "ADC2_OUTPUT";
628
629	wcd-playback-dai-link {
630		link-name = "WCD Playback";
631
632		cpu {
633			sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
634		};
635
636		codec {
637			sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>;
638		};
639
640		platform {
641			sound-dai = <&q6apm>;
642		};
643	};
644
645	wcd-capture-dai-link {
646		link-name = "WCD Capture";
647
648		cpu {
649			sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
650		};
651
652		codec {
653			sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>;
654		};
655
656		platform {
657			sound-dai = <&q6apm>;
658		};
659	};
660
661	wsa-dai-link {
662		link-name = "WSA Playback";
663
664		cpu {
665			sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
666		};
667
668		codec {
669			sound-dai = <&swr0 0>, <&wsamacro 0>;
670		};
671
672		platform {
673			sound-dai = <&q6apm>;
674		};
675	};
676
677	va-dai-link {
678		link-name = "VA Capture";
679
680		cpu {
681			sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
682		};
683
684		platform {
685			sound-dai = <&q6apm>;
686		};
687
688		codec {
689			sound-dai = <&vamacro 0>;
690		};
691	};
692};
693
694&swr0 {
695	status = "okay";
696};
697
698&swr1 {
699	status = "okay";
700
701	wcd_rx: codec@0,4 {
702		compatible = "sdw20217010d00";
703		reg = <0 4>;
704		qcom,rx-port-mapping = <1 2 3 4 5>;
705	};
706};
707
708&swr2 {
709	status = "okay";
710
711	wcd_tx: codec@0,3 {
712		compatible = "sdw20217010d00";
713		reg = <0 3>;
714		qcom,tx-port-mapping = <1 1 2 3>;
715	};
716};
717
718&txmacro {
719	status = "okay";
720};
721
722&uart2 {
723	pinctrl-0 = <&uart2_default>;
724	pinctrl-names = "default";
725
726	status = "okay";
727
728	bluetooth {
729		compatible = "qcom,wcn6855-bt";
730
731		vddio-supply = <&vreg_s10b>;
732		vddbtcxmx-supply = <&vreg_s12b>;
733		vddrfacmn-supply = <&vreg_s12b>;
734		vddrfa0p8-supply = <&vreg_s12b>;
735		vddrfa1p2-supply = <&vreg_s11b>;
736		vddrfa1p7-supply = <&vreg_s1c>;
737
738		max-speed = <3200000>;
739
740		enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
741		swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>;
742
743		pinctrl-0 = <&bt_default>;
744		pinctrl-names = "default";
745	};
746};
747
748&uart18 {
749	status = "okay";
750
751	embedded-controller {
752		compatible = "microsoft,surface-sam";
753
754		interrupts-extended = <&tlmm 85 IRQ_TYPE_EDGE_RISING>;
755
756		current-speed = <4000000>;
757
758		pinctrl-0 = <&ssam_state>;
759		pinctrl-names = "default";
760	};
761};
762
763&usb_0 {
764	status = "okay";
765};
766
767&usb_0_dwc3 {
768	dr_mode = "host";
769};
770
771&usb_0_dwc3_hs {
772	remote-endpoint = <&pmic_glink_con0_hs>;
773};
774
775&usb_0_hsphy {
776	vdda-pll-supply = <&vreg_l9d>;
777	vdda18-supply = <&vreg_l1c>;
778	vdda33-supply = <&vreg_l7d>;
779
780	status = "okay";
781};
782
783&usb_0_qmpphy {
784	vdda-phy-supply = <&vreg_l9d>;
785	vdda-pll-supply = <&vreg_l4d>;
786
787	orientation-switch;
788
789	status = "okay";
790};
791
792&usb_0_qmpphy_dp_in {
793	remote-endpoint = <&mdss0_dp0_out>;
794};
795
796&usb_0_qmpphy_out {
797	remote-endpoint = <&pmic_glink_con0_ss>;
798};
799
800&usb_1 {
801	status = "okay";
802};
803
804&usb_1_dwc3 {
805	dr_mode = "host";
806};
807
808&usb_1_dwc3_hs {
809	remote-endpoint = <&pmic_glink_con1_hs>;
810};
811
812&usb_1_hsphy {
813	vdda-pll-supply = <&vreg_l4b>;
814	vdda18-supply = <&vreg_l1c>;
815	vdda33-supply = <&vreg_l13c>;
816
817	status = "okay";
818};
819
820&usb_1_qmpphy {
821	vdda-phy-supply = <&vreg_l4b>;
822	vdda-pll-supply = <&vreg_l3b>;
823
824	orientation-switch;
825
826	status = "okay";
827};
828
829&usb_1_qmpphy_dp_in {
830	remote-endpoint = <&mdss0_dp1_out>;
831};
832
833&usb_1_qmpphy_out {
834	remote-endpoint = <&pmic_glink_con1_ss>;
835};
836
837&vamacro {
838	pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
839	pinctrl-names = "default";
840
841	vdd-micb-supply = <&vreg_s10b>;
842
843	qcom,dmic-sample-rate = <4800000>;
844
845	status = "okay";
846};
847
848&wsamacro {
849	status = "okay";
850};
851
852&xo_board_clk {
853	clock-frequency = <38400000>;
854};
855
856/* PINCTRL */
857
858&lpass_tlmm {
859	status = "okay";
860};
861
862&pmc8280_2_gpios {
863	wwan_sw_en: wwan-sw-en-state {
864		pins = "gpio1";
865		function = "normal";
866	};
867};
868
869&pmr735a_gpios {
870	hastings_reg_en: hastings-reg-en-state {
871		pins = "gpio1";
872		function = "normal";
873	};
874};
875
876&tlmm {
877	bt_default: bt-default-state {
878		hstp-bt-en-pins {
879			pins = "gpio133";
880			function = "gpio";
881			drive-strength = <16>;
882			bias-disable;
883		};
884
885		hstp-sw-ctrl-pins {
886			pins = "gpio132";
887			function = "gpio";
888			bias-pull-down;
889		};
890	};
891
892	nvme_reg_en: nvme-reg-en-state {
893		pins = "gpio135";
894		function = "gpio";
895		drive-strength = <2>;
896		bias-disable;
897	};
898
899	pcie2a_default: pcie2a-default-state {
900		clkreq-n-pins {
901			pins = "gpio142";
902			function = "pcie2a_clkreq";
903			drive-strength = <2>;
904			bias-pull-up;
905		};
906
907		perst-n-pins {
908			pins = "gpio143";
909			function = "gpio";
910			drive-strength = <2>;
911			bias-disable;
912		};
913
914		wake-n-pins {
915			pins = "gpio145";
916			function = "gpio";
917			drive-strength = <2>;
918			bias-pull-up;
919	       };
920	};
921
922	pcie3a_default: pcie3a-default-state {
923		clkreq-n-pins {
924			pins = "gpio150";
925			function = "pcie3a_clkreq";
926			drive-strength = <2>;
927			bias-pull-up;
928		};
929
930		perst-n-pins {
931			pins = "gpio151";
932			function = "gpio";
933			drive-strength = <2>;
934			bias-disable;
935		};
936
937		wake-n-pins {
938			pins = "gpio148";
939			function = "gpio";
940			drive-strength = <2>;
941			bias-pull-up;
942		};
943	};
944
945	pcie4_default: pcie4-default-state {
946		clkreq-n-pins {
947			pins = "gpio140";
948			function = "pcie4_clkreq";
949			drive-strength = <2>;
950			bias-pull-up;
951		};
952
953		perst-n-pins {
954			pins = "gpio141";
955			function = "gpio";
956			drive-strength = <2>;
957			bias-disable;
958		};
959
960		wake-n-pins {
961			pins = "gpio139";
962			function = "gpio";
963			drive-strength = <2>;
964			bias-pull-up;
965		};
966	};
967
968
969	ssam_state: ssam-state-state {
970		pins = "gpio85";
971		function = "gpio";
972		bias-disable;
973	};
974
975	uart2_default: uart2-default-state {
976		cts-pins {
977			pins = "gpio121";
978			function = "qup2";
979			bias-bus-hold;
980		};
981
982		rts-pins {
983			pins = "gpio122";
984			function = "qup2";
985			drive-strength = <2>;
986			bias-disable;
987		};
988
989		rx-pins {
990			pins = "gpio124";
991			function = "qup2";
992			bias-pull-up;
993		};
994
995		tx-pins {
996			pins = "gpio123";
997			function = "qup2";
998			drive-strength = <2>;
999			bias-disable;
1000		};
1001	};
1002
1003	usb0_sbu_default: usb0-sbu-state {
1004		oe-n-pins {
1005			pins = "gpio101";
1006			function = "gpio";
1007			bias-disable;
1008			drive-strength = <16>;
1009			output-high;
1010		};
1011
1012		sel-pins {
1013			pins = "gpio164";
1014			function = "gpio";
1015			bias-disable;
1016			drive-strength = <16>;
1017		};
1018	};
1019
1020	usb1_sbu_default: usb1-sbu-state {
1021		oe-n-pins {
1022			pins = "gpio48";
1023			function = "gpio";
1024			bias-disable;
1025			drive-strength = <16>;
1026			output-high;
1027		};
1028
1029		sel-pins {
1030			pins = "gpio47";
1031			function = "gpio";
1032			bias-disable;
1033			drive-strength = <16>;
1034		};
1035	};
1036
1037	wcd_default: wcd-default-state {
1038		reset-pins {
1039			pins = "gpio106";
1040			function = "gpio";
1041			bias-disable;
1042		};
1043	};
1044};
1045