xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/sc8280xp-crd.dts (revision ec71f661a572a770d7c861cd52a50cbbb0e1a8d1)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022, Linaro Limited
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11
12#include "sc8280xp.dtsi"
13#include "sc8280xp-pmics.dtsi"
14
15/ {
16	model = "Qualcomm SC8280XP CRD";
17	compatible = "qcom,sc8280xp-crd", "qcom,sc8280xp";
18
19	aliases {
20		i2c4 = &i2c4;
21		i2c21 = &i2c21;
22		serial0 = &uart17;
23		serial1 = &uart2;
24	};
25
26	backlight: backlight {
27		compatible = "pwm-backlight";
28		pwms = <&pmc8280c_lpg 3 1000000>;
29		enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>;
30		power-supply = <&vreg_edp_bl>;
31
32		pinctrl-names = "default";
33		pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>;
34	};
35
36	chosen {
37		stdout-path = "serial0:115200n8";
38	};
39
40	gpio-keys {
41		compatible = "gpio-keys";
42
43		pinctrl-0 = <&kypd_vol_up_n>;
44		pinctrl-names = "default";
45
46		key-vol-up {
47			label = "volume_up";
48			gpios = <&pmc8280_1_gpios 6 GPIO_ACTIVE_LOW>;
49			linux,code = <KEY_VOLUMEUP>;
50			wakeup-source;
51		};
52	};
53
54	pmic-glink {
55		compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";
56
57		#address-cells = <1>;
58		#size-cells = <0>;
59
60		connector@0 {
61			compatible = "usb-c-connector";
62			reg = <0>;
63			power-role = "dual";
64			data-role = "dual";
65
66			ports {
67				#address-cells = <1>;
68				#size-cells = <0>;
69
70				port@0 {
71					reg = <0>;
72
73					pmic_glink_con0_hs: endpoint {
74						remote-endpoint = <&usb_0_dwc3_hs>;
75					};
76				};
77
78				port@1 {
79					reg = <1>;
80
81					pmic_glink_con0_ss: endpoint {
82						remote-endpoint = <&usb_0_qmpphy_out>;
83					};
84				};
85
86				port@2 {
87					reg = <2>;
88
89					pmic_glink_con0_sbu: endpoint {
90						remote-endpoint = <&usb0_sbu_mux>;
91					};
92				};
93			};
94		};
95
96		connector@1 {
97			compatible = "usb-c-connector";
98			reg = <1>;
99			power-role = "dual";
100			data-role = "dual";
101
102			ports {
103				#address-cells = <1>;
104				#size-cells = <0>;
105				port@0 {
106					reg = <0>;
107
108					pmic_glink_con1_hs: endpoint {
109						remote-endpoint = <&usb_1_dwc3_hs>;
110					};
111				};
112
113				port@1 {
114					reg = <1>;
115
116					pmic_glink_con1_ss: endpoint {
117						remote-endpoint = <&usb_1_qmpphy_out>;
118					};
119				};
120
121				port@2 {
122					reg = <2>;
123
124					pmic_glink_con1_sbu: endpoint {
125						remote-endpoint = <&usb1_sbu_mux>;
126					};
127				};
128			};
129		};
130	};
131
132	vreg_edp_3p3: regulator-edp-3p3 {
133		compatible = "regulator-fixed";
134
135		regulator-name = "VREG_EDP_3P3";
136		regulator-min-microvolt = <3300000>;
137		regulator-max-microvolt = <3300000>;
138
139		gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
140		enable-active-high;
141
142		pinctrl-names = "default";
143		pinctrl-0 = <&edp_reg_en>;
144
145		regulator-boot-on;
146	};
147
148	vreg_edp_bl: regulator-edp-bl {
149		compatible = "regulator-fixed";
150
151		regulator-name = "VREG_EDP_BL";
152		regulator-min-microvolt = <3600000>;
153		regulator-max-microvolt = <3600000>;
154
155		gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>;
156		enable-active-high;
157
158		pinctrl-names = "default";
159		pinctrl-0 = <&edp_bl_reg_en>;
160
161		regulator-boot-on;
162	};
163
164	vreg_nvme: regulator-nvme {
165		compatible = "regulator-fixed";
166
167		regulator-name = "VREG_NVME_3P3";
168		regulator-min-microvolt = <3300000>;
169		regulator-max-microvolt = <3300000>;
170
171		gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>;
172		enable-active-high;
173
174		pinctrl-names = "default";
175		pinctrl-0 = <&nvme_reg_en>;
176	};
177
178	vreg_misc_3p3: regulator-misc-3p3 {
179		compatible = "regulator-fixed";
180
181		regulator-name = "VREG_MISC_3P3";
182		regulator-min-microvolt = <3300000>;
183		regulator-max-microvolt = <3300000>;
184
185		gpio = <&pmc8280_1_gpios 2 GPIO_ACTIVE_HIGH>;
186		enable-active-high;
187
188		pinctrl-names = "default";
189		pinctrl-0 = <&misc_3p3_reg_en>;
190
191		regulator-boot-on;
192		regulator-always-on;
193	};
194
195	vreg_wlan: regulator-wlan {
196		compatible = "regulator-fixed";
197
198		regulator-name = "VPH_PWR_WLAN";
199		regulator-min-microvolt = <3900000>;
200		regulator-max-microvolt = <3900000>;
201
202		gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>;
203		enable-active-high;
204
205		pinctrl-names = "default";
206		pinctrl-0 = <&hastings_reg_en>;
207
208		regulator-boot-on;
209	};
210
211	vreg_wwan: regulator-wwan {
212		compatible = "regulator-fixed";
213
214		regulator-name = "SDX_VPH_PWR";
215		regulator-min-microvolt = <3300000>;
216		regulator-max-microvolt = <3300000>;
217
218		gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>;
219		enable-active-high;
220
221		pinctrl-names = "default";
222		pinctrl-0 = <&wwan_sw_en>;
223
224		regulator-boot-on;
225	};
226
227	reserved-memory {
228		gpu_mem: gpu-mem@8bf00000 {
229			reg = <0 0x8bf00000 0 0x2000>;
230			no-map;
231		};
232
233		linux,cma {
234			compatible = "shared-dma-pool";
235			size = <0x0 0x8000000>;
236			reusable;
237			linux,cma-default;
238		};
239	};
240
241	usb0-sbu-mux {
242		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
243
244		enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
245		select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>;
246
247		pinctrl-names = "default";
248		pinctrl-0 = <&usb0_sbu_default>;
249
250		mode-switch;
251		orientation-switch;
252
253		port {
254			usb0_sbu_mux: endpoint {
255				remote-endpoint = <&pmic_glink_con0_sbu>;
256			};
257		};
258	};
259
260	usb1-sbu-mux {
261		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
262
263		enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
264		select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
265
266		pinctrl-names = "default";
267		pinctrl-0 = <&usb1_sbu_default>;
268
269		mode-switch;
270		orientation-switch;
271
272		port {
273			usb1_sbu_mux: endpoint {
274				remote-endpoint = <&pmic_glink_con1_sbu>;
275			};
276		};
277	};
278
279	wcn6855-pmu {
280		compatible = "qcom,wcn6855-pmu";
281
282		pinctrl-0 = <&bt_en>, <&wlan_en>;
283		pinctrl-names = "default";
284
285		wlan-enable-gpios = <&tlmm 134 GPIO_ACTIVE_HIGH>;
286		bt-enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
287		swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>;
288
289		vddio-supply = <&vreg_s10b>;
290		vddaon-supply = <&vreg_s12b>;
291		vddpmu-supply = <&vreg_s12b>;
292		vddpmumx-supply = <&vreg_s12b>;
293		vddpmucx-supply = <&vreg_s12b>;
294		vddrfa0p95-supply = <&vreg_s12b>;
295		vddrfa1p3-supply = <&vreg_s11b>;
296		vddrfa1p9-supply = <&vreg_s1c>;
297		vddpcie1p3-supply = <&vreg_s11b>;
298		vddpcie1p9-supply = <&vreg_s1c>;
299
300		regulators {
301			vreg_pmu_rfa_cmn_0p8: ldo0 {
302				regulator-name = "vreg_pmu_rfa_cmn_0p8";
303			};
304
305			vreg_pmu_aon_0p8: ldo1 {
306				regulator-name = "vreg_pmu_aon_0p8";
307			};
308
309			vreg_pmu_wlcx_0p8: ldo2 {
310				regulator-name = "vreg_pmu_wlcx_0p8";
311			};
312
313			vreg_pmu_wlmx_0p8: ldo3 {
314				regulator-name = "vreg_pmu_wlmx_0p8";
315			};
316
317			vreg_pmu_btcmx_0p8: ldo4 {
318				regulator-name = "vreg_pmu_btcmx_0p8";
319			};
320
321			vreg_pmu_pcie_1p8: ldo5 {
322				regulator-name = "vreg_pmu_pcie_1p8";
323			};
324
325			vreg_pmu_pcie_0p9: ldo6 {
326				regulator-name = "vreg_pmu_pcie_0p9";
327			};
328
329			vreg_pmu_rfa_0p8: ldo7 {
330				regulator-name = "vreg_pmu_rfa_0p8";
331			};
332
333			vreg_pmu_rfa_1p2: ldo8 {
334				regulator-name = "vreg_pmu_rfa_1p2";
335			};
336
337			vreg_pmu_rfa_1p7: ldo9 {
338				regulator-name = "vreg_pmu_rfa_1p7";
339			};
340		};
341	};
342};
343
344&apps_rsc {
345	regulators-0 {
346		compatible = "qcom,pm8350-rpmh-regulators";
347		qcom,pmic-id = "b";
348
349		vdd-l3-l5-supply = <&vreg_s11b>;
350
351		vreg_s10b: smps10 {
352			regulator-name = "vreg_s10b";
353			regulator-min-microvolt = <1800000>;
354			regulator-max-microvolt = <1800000>;
355			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
356			regulator-always-on;
357			regulator-boot-on;
358		};
359
360		vreg_s11b: smps11 {
361			regulator-name = "vreg_s11b";
362			regulator-min-microvolt = <1272000>;
363			regulator-max-microvolt = <1272000>;
364			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
365		};
366
367		vreg_s12b: smps12 {
368			regulator-name = "vreg_s12b";
369			regulator-min-microvolt = <984000>;
370			regulator-max-microvolt = <984000>;
371			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
372		};
373
374		vreg_l3b: ldo3 {
375			regulator-name = "vreg_l3b";
376			regulator-min-microvolt = <1200000>;
377			regulator-max-microvolt = <1200000>;
378			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
379			regulator-boot-on;
380		};
381
382		vreg_l4b: ldo4 {
383			regulator-name = "vreg_l4b";
384			regulator-min-microvolt = <912000>;
385			regulator-max-microvolt = <912000>;
386			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
387		};
388
389		vreg_l6b: ldo6 {
390			regulator-name = "vreg_l6b";
391			regulator-min-microvolt = <880000>;
392			regulator-max-microvolt = <880000>;
393			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
394			regulator-boot-on;
395		};
396	};
397
398	regulators-1 {
399		compatible = "qcom,pm8350c-rpmh-regulators";
400		qcom,pmic-id = "c";
401
402		vreg_s1c: smps1 {
403			regulator-name = "vreg_s1c";
404			regulator-min-microvolt = <1888000>;
405			regulator-max-microvolt = <1888000>;
406			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
407		};
408
409		vreg_l1c: ldo1 {
410			regulator-name = "vreg_l1c";
411			regulator-min-microvolt = <1800000>;
412			regulator-max-microvolt = <1800000>;
413			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
414		};
415
416		vreg_l6c: ldo6 {
417			regulator-name = "vreg_l6c";
418			regulator-min-microvolt = <1800000>;
419			regulator-max-microvolt = <2960000>;
420			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
421		};
422
423		vreg_l7c: ldo7 {
424			regulator-name = "vreg_l7c";
425			regulator-min-microvolt = <2504000>;
426			regulator-max-microvolt = <2504000>;
427			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
428			regulator-allow-set-load;
429			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
430						   RPMH_REGULATOR_MODE_HPM>;
431		};
432
433		vreg_l9c: ldo9 {
434			regulator-name = "vreg_l9c";
435			regulator-min-microvolt = <2960000>;
436			regulator-max-microvolt = <2960000>;
437			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
438		};
439
440		vreg_l13c: ldo13 {
441			regulator-name = "vreg_l13c";
442			regulator-min-microvolt = <3072000>;
443			regulator-max-microvolt = <3072000>;
444			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
445		};
446	};
447
448	regulators-2 {
449		compatible = "qcom,pm8350-rpmh-regulators";
450		qcom,pmic-id = "d";
451
452		vdd-l1-l4-supply = <&vreg_s11b>;
453
454		vreg_l3d: ldo3 {
455			regulator-name = "vreg_l3d";
456			regulator-min-microvolt = <1200000>;
457			regulator-max-microvolt = <1200000>;
458			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
459			regulator-allow-set-load;
460			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
461						   RPMH_REGULATOR_MODE_HPM>;
462		};
463
464		vreg_l4d: ldo4 {
465			regulator-name = "vreg_l4d";
466			regulator-min-microvolt = <1200000>;
467			regulator-max-microvolt = <1200000>;
468			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
469		};
470
471		vreg_l6d: ldo6 {
472			regulator-name = "vreg_l6d";
473			regulator-min-microvolt = <880000>;
474			regulator-max-microvolt = <880000>;
475			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
476		};
477
478		vreg_l7d: ldo7 {
479			regulator-name = "vreg_l7d";
480			regulator-min-microvolt = <3072000>;
481			regulator-max-microvolt = <3072000>;
482			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
483		};
484
485		vreg_l9d: ldo9 {
486			regulator-name = "vreg_l9d";
487			regulator-min-microvolt = <912000>;
488			regulator-max-microvolt = <912000>;
489			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
490		};
491	};
492};
493
494&dispcc0 {
495	status = "okay";
496};
497
498&gpu {
499	status = "okay";
500
501	zap-shader {
502		memory-region = <&gpu_mem>;
503		firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn";
504	};
505};
506
507&mdss0 {
508	status = "okay";
509};
510
511&mdss0_dp0 {
512	status = "okay";
513};
514
515&mdss0_dp0_out {
516	data-lanes = <0 1>;
517	remote-endpoint = <&usb_0_qmpphy_dp_in>;
518};
519
520&mdss0_dp1 {
521	status = "okay";
522};
523
524&mdss0_dp1_out {
525	data-lanes = <0 1>;
526	remote-endpoint = <&usb_1_qmpphy_dp_in>;
527};
528
529&mdss0_dp3 {
530	compatible = "qcom,sc8280xp-edp";
531	/delete-property/ #sound-dai-cells;
532
533	data-lanes = <0 1 2 3>;
534
535	status = "okay";
536
537	aux-bus {
538		panel {
539			compatible = "edp-panel";
540			power-supply = <&vreg_edp_3p3>;
541
542			backlight = <&backlight>;
543
544			port {
545				edp_panel_in: endpoint {
546					remote-endpoint = <&mdss0_dp3_out>;
547				};
548			};
549		};
550	};
551
552	ports {
553		port@1 {
554			reg = <1>;
555			mdss0_dp3_out: endpoint {
556				remote-endpoint = <&edp_panel_in>;
557			};
558		};
559	};
560};
561
562&mdss0_dp3_phy {
563	compatible = "qcom,sc8280xp-edp-phy";
564
565	vdda-phy-supply = <&vreg_l6b>;
566	vdda-pll-supply = <&vreg_l3b>;
567
568	status = "okay";
569};
570
571&i2c4 {
572	clock-frequency = <400000>;
573
574	pinctrl-names = "default";
575	pinctrl-0 = <&i2c4_default>;
576
577	status = "okay";
578
579	touchscreen@10 {
580		compatible = "hid-over-i2c";
581		reg = <0x10>;
582
583		hid-descr-addr = <0x1>;
584		interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>;
585		vdd-supply = <&vreg_misc_3p3>;
586
587		pinctrl-names = "default";
588		pinctrl-0 = <&ts0_default>;
589	};
590};
591
592&i2c21 {
593	clock-frequency = <400000>;
594
595	pinctrl-names = "default";
596	pinctrl-0 = <&i2c21_default>;
597
598	status = "okay";
599
600	touchpad@15 {
601		compatible = "hid-over-i2c";
602		reg = <0x15>;
603
604		hid-descr-addr = <0x1>;
605		interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>;
606		vdd-supply = <&vreg_misc_3p3>;
607
608		pinctrl-names = "default";
609		pinctrl-0 = <&tpad_default>;
610
611		wakeup-source;
612	};
613
614	keyboard@68 {
615		compatible = "hid-over-i2c";
616		reg = <0x68>;
617
618		hid-descr-addr = <0x1>;
619		interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
620		vdd-supply = <&vreg_misc_3p3>;
621
622		pinctrl-names = "default";
623		pinctrl-0 = <&kybd_default>;
624
625		wakeup-source;
626	};
627};
628
629&pcie2a {
630	perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>;
631	wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
632
633	vddpe-3v3-supply = <&vreg_nvme>;
634
635	pinctrl-names = "default";
636	pinctrl-0 = <&pcie2a_default>;
637
638	status = "okay";
639};
640
641&pcie2a_phy {
642	vdda-phy-supply = <&vreg_l6d>;
643	vdda-pll-supply = <&vreg_l4d>;
644
645	status = "okay";
646};
647
648&pcie3a {
649	perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
650	wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
651
652	vddpe-3v3-supply = <&vreg_wwan>;
653
654	pinctrl-names = "default";
655	pinctrl-0 = <&pcie3a_default>;
656
657	status = "okay";
658};
659
660&pcie3a_phy {
661	vdda-phy-supply = <&vreg_l6d>;
662	vdda-pll-supply = <&vreg_l4d>;
663
664	status = "okay";
665};
666
667&pcie4 {
668	max-link-speed = <2>;
669
670	perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>;
671	wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>;
672
673	vddpe-3v3-supply = <&vreg_wlan>;
674
675	pinctrl-names = "default";
676	pinctrl-0 = <&pcie4_default>;
677
678	status = "okay";
679};
680
681&pcie4_phy {
682	vdda-phy-supply = <&vreg_l6d>;
683	vdda-pll-supply = <&vreg_l4d>;
684
685	status = "okay";
686};
687
688&pcie4_port0 {
689	wifi@0 {
690		compatible = "pci17cb,1103";
691		reg = <0x10000 0x0 0x0 0x0 0x0>;
692
693		vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
694		vddaon-supply = <&vreg_pmu_aon_0p8>;
695		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
696		vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
697		vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
698		vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
699		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
700		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
701		vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
702
703		qcom,calibration-variant = "QC_8280XP_CRD";
704	};
705};
706
707&pmc8280c_lpg {
708	status = "okay";
709};
710
711&pmk8280_pon_pwrkey {
712	status = "okay";
713};
714
715&pmk8280_rtc {
716	nvmem-cells = <&rtc_offset>;
717	nvmem-cell-names = "offset";
718
719	status = "okay";
720};
721
722&pmk8280_sdam_6 {
723	status = "okay";
724
725	rtc_offset: rtc-offset@bc {
726		reg = <0xbc 0x4>;
727	};
728};
729
730&qup0 {
731	status = "okay";
732};
733
734&qup1 {
735	status = "okay";
736};
737
738&qup2 {
739	status = "okay";
740};
741
742&remoteproc_adsp {
743	firmware-name = "qcom/sc8280xp/qcadsp8280.mbn";
744
745	status = "okay";
746};
747
748&remoteproc_nsp0 {
749	firmware-name = "qcom/sc8280xp/qccdsp8280.mbn";
750
751	status = "okay";
752};
753
754&remoteproc_slpi {
755	firmware-name = "qcom/sc8280xp/qcslpi8280.mbn";
756
757	status = "okay";
758};
759
760&sdc2 {
761	pinctrl-0 = <&sdc2_default_state>;
762	pinctrl-1 = <&sdc2_sleep_state>;
763	pinctrl-names = "default", "sleep";
764
765	vmmc-supply = <&vreg_l9c>;
766	vqmmc-supply = <&vreg_l6c>;
767
768	cd-gpios = <&tlmm 131 GPIO_ACTIVE_LOW>;
769
770	status = "okay";
771};
772
773&uart2 {
774	pinctrl-0 = <&uart2_default>;
775	pinctrl-names = "default";
776
777	status = "okay";
778
779	bluetooth {
780		compatible = "qcom,wcn6855-bt";
781
782		vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
783		vddaon-supply = <&vreg_pmu_aon_0p8>;
784		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
785		vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
786		vddbtcmx-supply = <&vreg_pmu_btcmx_0p8>;
787		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
788		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
789		vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
790	};
791};
792
793&uart17 {
794	compatible = "qcom,geni-debug-uart";
795
796	status = "okay";
797};
798
799&ufs_mem_hc {
800	reset-gpios = <&tlmm 228 GPIO_ACTIVE_LOW>;
801
802	vcc-supply = <&vreg_l7c>;
803	vcc-max-microamp = <800000>;
804	vccq-supply = <&vreg_l3d>;
805	vccq-max-microamp = <900000>;
806
807	status = "okay";
808};
809
810&ufs_mem_phy {
811	vdda-phy-supply = <&vreg_l6b>;
812	vdda-pll-supply = <&vreg_l3b>;
813
814	status = "okay";
815};
816
817&usb_0 {
818	status = "okay";
819};
820
821&usb_0_dwc3 {
822	dr_mode = "host";
823};
824
825&usb_0_dwc3_hs {
826	remote-endpoint = <&pmic_glink_con0_hs>;
827};
828
829&usb_0_hsphy {
830	vdda-pll-supply = <&vreg_l9d>;
831	vdda18-supply = <&vreg_l1c>;
832	vdda33-supply = <&vreg_l7d>;
833
834	status = "okay";
835};
836
837&usb_0_qmpphy {
838	vdda-phy-supply = <&vreg_l9d>;
839	vdda-pll-supply = <&vreg_l4d>;
840
841	orientation-switch;
842
843	status = "okay";
844};
845
846&usb_0_qmpphy_dp_in {
847	remote-endpoint = <&mdss0_dp0_out>;
848};
849
850&usb_0_qmpphy_out {
851	remote-endpoint = <&pmic_glink_con0_ss>;
852};
853
854&usb_1 {
855	status = "okay";
856};
857
858&usb_1_dwc3 {
859	dr_mode = "host";
860};
861
862&usb_1_dwc3_hs {
863	remote-endpoint = <&pmic_glink_con1_hs>;
864};
865
866&usb_1_hsphy {
867	vdda-pll-supply = <&vreg_l4b>;
868	vdda18-supply = <&vreg_l1c>;
869	vdda33-supply = <&vreg_l13c>;
870
871	status = "okay";
872};
873
874&usb_1_qmpphy {
875	vdda-phy-supply = <&vreg_l4b>;
876	vdda-pll-supply = <&vreg_l3b>;
877
878	orientation-switch;
879
880	status = "okay";
881};
882
883&usb_1_qmpphy_dp_in {
884	remote-endpoint = <&mdss0_dp1_out>;
885};
886
887&usb_1_qmpphy_out {
888	remote-endpoint = <&pmic_glink_con1_ss>;
889};
890
891&xo_board_clk {
892	clock-frequency = <38400000>;
893};
894
895/* PINCTRL - additions to nodes defined in sc8280xp.dtsi */
896
897&pmc8280_1_gpios {
898	edp_bl_en: edp-bl-en-state {
899		pins = "gpio8";
900		function = "normal";
901	};
902
903	edp_bl_reg_en: edp-bl-reg-en-state {
904		pins = "gpio9";
905		function = "normal";
906	};
907
908	kypd_vol_up_n: kypd-vol-up-n-state {
909		pins = "gpio6";
910		function = "normal";
911		power-source = <0>; /* 3.3 V */
912		bias-pull-up;
913		input-enable;
914	};
915
916	misc_3p3_reg_en: misc-3p3-reg-en-state {
917		pins = "gpio2";
918		function = "normal";
919	};
920};
921
922&pmc8280_2_gpios {
923	wwan_sw_en: wwan-sw-en-state {
924		pins = "gpio1";
925		function = "normal";
926	};
927};
928
929&pmc8280c_gpios {
930	edp_bl_pwm: edp-bl-pwm-state {
931		pins = "gpio8";
932		function = "func1";
933	};
934};
935
936&pmr735a_gpios {
937	hastings_reg_en: hastings-reg-en-state {
938		pins = "gpio1";
939		function = "normal";
940	};
941};
942
943&tlmm {
944	gpio-reserved-ranges = <74 6>, <83 4>, <125 2>, <128 2>, <154 7>;
945
946	bt_en: bt-en-state {
947		pins = "gpio133";
948		function = "gpio";
949		drive-strength = <16>;
950		bias-disable;
951	};
952
953	edp_reg_en: edp-reg-en-state {
954		pins = "gpio25";
955		function = "gpio";
956		drive-strength = <16>;
957		bias-disable;
958	};
959
960	i2c4_default: i2c4-default-state {
961		pins = "gpio171", "gpio172";
962		function = "qup4";
963		drive-strength = <16>;
964		bias-disable;
965	};
966
967	i2c21_default: i2c21-default-state {
968		pins = "gpio81", "gpio82";
969		function = "qup21";
970		drive-strength = <16>;
971		bias-disable;
972	};
973
974	kybd_default: kybd-default-state {
975		disable-pins {
976			pins = "gpio102";
977			function = "gpio";
978			output-low;
979		};
980
981		int-n-pins {
982			pins = "gpio104";
983			function = "gpio";
984			bias-disable;
985		};
986
987		reset-pins {
988			pins = "gpio105";
989			function = "gpio";
990			bias-disable;
991		};
992	};
993
994	nvme_reg_en: nvme-reg-en-state {
995		pins = "gpio135";
996		function = "gpio";
997		drive-strength = <2>;
998		bias-disable;
999	};
1000
1001	pcie2a_default: pcie2a-default-state {
1002		clkreq-n-pins {
1003			pins = "gpio142";
1004			function = "pcie2a_clkreq";
1005			drive-strength = <2>;
1006			bias-pull-up;
1007		};
1008
1009		perst-n-pins {
1010			pins = "gpio143";
1011			function = "gpio";
1012			drive-strength = <2>;
1013			bias-disable;
1014		};
1015
1016		wake-n-pins {
1017			pins = "gpio145";
1018			function = "gpio";
1019			drive-strength = <2>;
1020			bias-pull-up;
1021		};
1022	};
1023
1024	pcie3a_default: pcie3a-default-state {
1025		clkreq-n-pins {
1026			pins = "gpio150";
1027			function = "pcie3a_clkreq";
1028			drive-strength = <2>;
1029			bias-pull-up;
1030		};
1031
1032		perst-n-pins {
1033			pins = "gpio151";
1034			function = "gpio";
1035			drive-strength = <2>;
1036			bias-disable;
1037		};
1038
1039		wake-n-pins {
1040			pins = "gpio148";
1041			function = "gpio";
1042			drive-strength = <2>;
1043			bias-pull-up;
1044		};
1045	};
1046
1047	pcie4_default: pcie4-default-state {
1048		clkreq-n-pins {
1049			pins = "gpio140";
1050			function = "pcie4_clkreq";
1051			drive-strength = <2>;
1052			bias-pull-up;
1053		};
1054
1055		perst-n-pins {
1056			pins = "gpio141";
1057			function = "gpio";
1058			drive-strength = <2>;
1059			bias-disable;
1060		};
1061
1062		wake-n-pins {
1063			pins = "gpio139";
1064			function = "gpio";
1065			drive-strength = <2>;
1066			bias-pull-up;
1067		};
1068	};
1069
1070	sdc2_default_state: sdc2-default-state {
1071		clk-pins {
1072			pins = "sdc2_clk";
1073			drive-strength = <16>;
1074			bias-disable;
1075		};
1076
1077		cmd-pins {
1078			pins = "sdc2_cmd";
1079			drive-strength = <16>;
1080			bias-pull-up;
1081		};
1082
1083		data-pins {
1084			pins = "sdc2_data";
1085			drive-strength = <16>;
1086			bias-pull-up;
1087		};
1088
1089		card-detect-pins {
1090			pins = "gpio131";
1091			function = "gpio";
1092			drive-strength = <2>;
1093			bias-disable;
1094		};
1095	};
1096
1097	sdc2_sleep_state: sdc2-sleep-state {
1098		clk-pins {
1099			pins = "sdc2_clk";
1100			drive-strength = <2>;
1101			bias-disable;
1102		};
1103
1104		cmd-pins {
1105			pins = "sdc2_cmd";
1106			drive-strength = <2>;
1107			bias-pull-up;
1108		};
1109
1110		data-pins {
1111			pins = "sdc2_data";
1112			drive-strength = <2>;
1113			bias-pull-up;
1114		};
1115
1116		card-detect-pins {
1117			pins = "gpio131";
1118			function = "gpio";
1119			drive-strength = <2>;
1120			bias-disable;
1121		};
1122	};
1123
1124	tpad_default: tpad-default-state {
1125		int-n-pins {
1126			pins = "gpio182";
1127			function = "gpio";
1128			bias-disable;
1129		};
1130	};
1131
1132	ts0_default: ts0-default-state {
1133		int-n-pins {
1134			pins = "gpio175";
1135			function = "gpio";
1136			bias-disable;
1137		};
1138
1139		reset-n-pins {
1140			pins = "gpio99";
1141			function = "gpio";
1142			bias-disable;
1143		};
1144	};
1145
1146	uart2_default: uart2-default-state {
1147		cts-pins {
1148			pins = "gpio121";
1149			function = "qup2";
1150			bias-bus-hold;
1151		};
1152
1153		rts-pins {
1154			pins = "gpio122";
1155			function = "qup2";
1156			drive-strength = <2>;
1157			bias-disable;
1158		};
1159
1160		rx-pins {
1161			pins = "gpio124";
1162			function = "qup2";
1163			bias-pull-up;
1164		};
1165
1166		tx-pins {
1167			pins = "gpio123";
1168			function = "qup2";
1169			drive-strength = <2>;
1170			bias-disable;
1171		};
1172	};
1173
1174	usb0_sbu_default: usb0-sbu-state {
1175		oe-n-pins {
1176			pins = "gpio101";
1177			function = "gpio";
1178			bias-disable;
1179			drive-strength = <16>;
1180			output-high;
1181		};
1182
1183		sel-pins {
1184			pins = "gpio164";
1185			function = "gpio";
1186			bias-disable;
1187			drive-strength = <16>;
1188		};
1189
1190		mode-pins {
1191			pins = "gpio167";
1192			function = "gpio";
1193			bias-disable;
1194			drive-strength = <16>;
1195			output-high;
1196		};
1197	};
1198
1199	usb1_sbu_default: usb1-sbu-state {
1200		oe-n-pins {
1201			pins = "gpio48";
1202			function = "gpio";
1203			bias-disable;
1204			drive-strength = <16>;
1205			output-high;
1206		};
1207
1208		sel-pins {
1209			pins = "gpio47";
1210			function = "gpio";
1211			bias-disable;
1212			drive-strength = <16>;
1213		};
1214
1215		mode-pins {
1216			pins = "gpio50";
1217			function = "gpio";
1218			bias-disable;
1219			drive-strength = <16>;
1220			output-high;
1221		};
1222	};
1223
1224	wlan_en: wlan-en-state {
1225		pins = "gpio134";
1226		function = "gpio";
1227		drive-strength = <16>;
1228		bias-disable;
1229	};
1230};
1231