xref: /linux/arch/arm64/boot/dts/qcom/x1-crd.dtsi (revision ec71f661a572a770d7c861cd52a50cbbb0e1a8d1)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4 */
5
6#include <dt-bindings/gpio/gpio.h>
7#include <dt-bindings/input/gpio-keys.h>
8#include <dt-bindings/input/input.h>
9#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11
12#include "x1e80100-pmics.dtsi"
13
14/ {
15	model = "Qualcomm Technologies, Inc. X1E80100 CRD";
16	compatible = "qcom,x1e80100-crd", "qcom,x1e80100";
17
18	aliases {
19		serial0 = &uart21;
20	};
21
22	wcd938x: audio-codec {
23		compatible = "qcom,wcd9385-codec";
24
25		pinctrl-names = "default";
26		pinctrl-0 = <&wcd_default>;
27
28		qcom,micbias1-microvolt = <1800000>;
29		qcom,micbias2-microvolt = <1800000>;
30		qcom,micbias3-microvolt = <1800000>;
31		qcom,micbias4-microvolt = <1800000>;
32		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
33		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
34		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
35		qcom,rx-device = <&wcd_rx>;
36		qcom,tx-device = <&wcd_tx>;
37
38		reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>;
39
40		vdd-buck-supply = <&vreg_l15b_1p8>;
41		vdd-rxtx-supply = <&vreg_l15b_1p8>;
42		vdd-io-supply = <&vreg_l15b_1p8>;
43		vdd-mic-bias-supply = <&vreg_bob1>;
44
45		#sound-dai-cells = <1>;
46	};
47
48	chosen {
49		stdout-path = "serial0:115200n8";
50	};
51
52	gpio-keys {
53		compatible = "gpio-keys";
54
55		pinctrl-0 = <&hall_int_n_default>, <&kypd_vol_up_n>;
56		pinctrl-names = "default";
57
58		key-vol-up {
59			label = "volume_up";
60			gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
61			linux,code = <KEY_VOLUMEUP>;
62			wakeup-source;
63		};
64
65		switch-lid {
66			label = "lid";
67			gpios = <&tlmm 92 GPIO_ACTIVE_LOW>;
68			linux,input-type = <EV_SW>;
69			linux,code = <SW_LID>;
70			wakeup-source;
71			wakeup-event-action = <EV_ACT_DEASSERTED>;
72		};
73	};
74
75	pmic-glink {
76		compatible = "qcom,x1e80100-pmic-glink",
77			     "qcom,sm8550-pmic-glink",
78			     "qcom,pmic-glink";
79		#address-cells = <1>;
80		#size-cells = <0>;
81		orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>,
82				    <&tlmm 123 GPIO_ACTIVE_HIGH>,
83				    <&tlmm 125 GPIO_ACTIVE_HIGH>;
84
85		/* Left-side rear port */
86		connector@0 {
87			compatible = "usb-c-connector";
88			reg = <0>;
89			power-role = "dual";
90			data-role = "dual";
91
92			ports {
93				#address-cells = <1>;
94				#size-cells = <0>;
95
96				port@0 {
97					reg = <0>;
98
99					pmic_glink_ss0_hs_in: endpoint {
100						remote-endpoint = <&usb_1_ss0_dwc3_hs>;
101					};
102				};
103
104				port@1 {
105					reg = <1>;
106
107					pmic_glink_ss0_ss_in: endpoint {
108						remote-endpoint = <&retimer_ss0_ss_out>;
109					};
110				};
111
112				port@2 {
113					reg = <2>;
114
115					pmic_glink_ss0_con_sbu_in: endpoint {
116						remote-endpoint = <&retimer_ss0_con_sbu_out>;
117					};
118				};
119			};
120		};
121
122		/* Left-side front port */
123		connector@1 {
124			compatible = "usb-c-connector";
125			reg = <1>;
126			power-role = "dual";
127			data-role = "dual";
128
129			ports {
130				#address-cells = <1>;
131				#size-cells = <0>;
132
133				port@0 {
134					reg = <0>;
135
136					pmic_glink_ss1_hs_in: endpoint {
137						remote-endpoint = <&usb_1_ss1_dwc3_hs>;
138					};
139				};
140
141				port@1 {
142					reg = <1>;
143
144					pmic_glink_ss1_ss_in: endpoint {
145						remote-endpoint = <&retimer_ss1_ss_out>;
146					};
147				};
148
149				port@2 {
150					reg = <2>;
151
152					pmic_glink_ss1_con_sbu_in: endpoint {
153						remote-endpoint = <&retimer_ss1_con_sbu_out>;
154					};
155				};
156			};
157		};
158
159		/* Right-side port */
160		connector@2 {
161			compatible = "usb-c-connector";
162			reg = <2>;
163			power-role = "dual";
164			data-role = "dual";
165
166			ports {
167				#address-cells = <1>;
168				#size-cells = <0>;
169
170				port@0 {
171					reg = <0>;
172
173					pmic_glink_ss2_hs_in: endpoint {
174						remote-endpoint = <&usb_1_ss2_dwc3_hs>;
175					};
176				};
177
178				port@1 {
179					reg = <1>;
180
181					pmic_glink_ss2_ss_in: endpoint {
182						remote-endpoint = <&retimer_ss2_ss_out>;
183					};
184				};
185
186				port@2 {
187					reg = <2>;
188
189					pmic_glink_ss2_con_sbu_in: endpoint {
190						remote-endpoint = <&retimer_ss2_con_sbu_out>;
191					};
192				};
193			};
194		};
195	};
196
197	reserved-memory {
198		linux,cma {
199			compatible = "shared-dma-pool";
200			size = <0x0 0x8000000>;
201			reusable;
202			linux,cma-default;
203		};
204	};
205
206	sound {
207		compatible = "qcom,x1e80100-sndcard";
208		model = "X1E80100-CRD";
209		audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT",
210				"TweeterLeft IN", "WSA WSA_SPK2 OUT",
211				"WooferRight IN", "WSA2 WSA_SPK2 OUT",
212				"TweeterRight IN", "WSA2 WSA_SPK2 OUT",
213				"IN1_HPHL", "HPHL_OUT",
214				"IN2_HPHR", "HPHR_OUT",
215				"AMIC2", "MIC BIAS2",
216				"VA DMIC0", "MIC BIAS3",
217				"VA DMIC1", "MIC BIAS3",
218				"VA DMIC2", "MIC BIAS1",
219				"VA DMIC3", "MIC BIAS1",
220				"TX SWR_INPUT1", "ADC2_OUTPUT";
221
222		wcd-playback-dai-link {
223			link-name = "WCD Playback";
224
225			cpu {
226				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
227			};
228
229			codec {
230				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
231			};
232
233			platform {
234				sound-dai = <&q6apm>;
235			};
236		};
237
238		wcd-capture-dai-link {
239			link-name = "WCD Capture";
240
241			cpu {
242				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
243			};
244
245			codec {
246				sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>;
247			};
248
249			platform {
250				sound-dai = <&q6apm>;
251			};
252		};
253
254		wsa-dai-link {
255			link-name = "WSA Playback";
256
257			cpu {
258				sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
259			};
260
261			codec {
262				sound-dai = <&left_woofer>, <&left_tweeter>,
263					    <&swr0 0>, <&lpass_wsamacro 0>,
264					    <&right_woofer>, <&right_tweeter>,
265					    <&swr3 0>, <&lpass_wsa2macro 0>;
266			};
267
268			platform {
269				sound-dai = <&q6apm>;
270			};
271		};
272
273		va-dai-link {
274			link-name = "VA Capture";
275
276			cpu {
277				sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
278			};
279
280			codec {
281				sound-dai = <&lpass_vamacro 0>;
282			};
283
284			platform {
285				sound-dai = <&q6apm>;
286			};
287		};
288	};
289
290	vreg_edp_3p3: regulator-edp-3p3 {
291		compatible = "regulator-fixed";
292
293		regulator-name = "VREG_EDP_3P3";
294		regulator-min-microvolt = <3300000>;
295		regulator-max-microvolt = <3300000>;
296
297		gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>;
298		enable-active-high;
299
300		pinctrl-0 = <&edp_reg_en>;
301		pinctrl-names = "default";
302
303		regulator-boot-on;
304	};
305
306	vreg_misc_3p3: regulator-misc-3p3 {
307		compatible = "regulator-fixed";
308
309		regulator-name = "VREG_MISC_3P3";
310		regulator-min-microvolt = <3300000>;
311		regulator-max-microvolt = <3300000>;
312
313		gpio = <&pm8550ve_8_gpios 6 GPIO_ACTIVE_HIGH>;
314		enable-active-high;
315
316		pinctrl-names = "default";
317		pinctrl-0 = <&misc_3p3_reg_en>;
318
319		regulator-boot-on;
320		regulator-always-on;
321	};
322
323	vreg_nvme: regulator-nvme {
324		compatible = "regulator-fixed";
325
326		regulator-name = "VREG_NVME_3P3";
327		regulator-min-microvolt = <3300000>;
328		regulator-max-microvolt = <3300000>;
329
330		gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>;
331		enable-active-high;
332
333		pinctrl-names = "default";
334		pinctrl-0 = <&nvme_reg_en>;
335
336		regulator-boot-on;
337	};
338
339	vreg_rtmr0_1p15: regulator-rtmr0-1p15 {
340		compatible = "regulator-fixed";
341
342		regulator-name = "VREG_RTMR0_1P15";
343		regulator-min-microvolt = <1150000>;
344		regulator-max-microvolt = <1150000>;
345
346		gpio = <&pmc8380_5_gpios 8 GPIO_ACTIVE_HIGH>;
347		enable-active-high;
348
349		pinctrl-0 = <&usb0_pwr_1p15_reg_en>;
350		pinctrl-names = "default";
351
352		regulator-boot-on;
353	};
354
355	vreg_rtmr0_1p8: regulator-rtmr0-1p8 {
356		compatible = "regulator-fixed";
357
358		regulator-name = "VREG_RTMR0_1P8";
359		regulator-min-microvolt = <1800000>;
360		regulator-max-microvolt = <1800000>;
361
362		gpio = <&pm8550ve_9_gpios 8 GPIO_ACTIVE_HIGH>;
363		enable-active-high;
364
365		pinctrl-0 = <&usb0_1p8_reg_en>;
366		pinctrl-names = "default";
367
368		regulator-boot-on;
369	};
370
371	vreg_rtmr0_3p3: regulator-rtmr0-3p3 {
372		compatible = "regulator-fixed";
373
374		regulator-name = "VREG_RTMR0_3P3";
375		regulator-min-microvolt = <3300000>;
376		regulator-max-microvolt = <3300000>;
377
378		gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>;
379		enable-active-high;
380
381		pinctrl-0 = <&usb0_3p3_reg_en>;
382		pinctrl-names = "default";
383
384		regulator-boot-on;
385	};
386
387	vreg_rtmr1_1p15: regulator-rtmr1-1p15 {
388		compatible = "regulator-fixed";
389
390		regulator-name = "VREG_RTMR1_1P15";
391		regulator-min-microvolt = <1150000>;
392		regulator-max-microvolt = <1150000>;
393
394		gpio = <&tlmm 188 GPIO_ACTIVE_HIGH>;
395		enable-active-high;
396
397		pinctrl-0 = <&usb1_pwr_1p15_reg_en>;
398		pinctrl-names = "default";
399
400		regulator-boot-on;
401	};
402
403	vreg_rtmr1_1p8: regulator-rtmr1-1p8 {
404		compatible = "regulator-fixed";
405
406		regulator-name = "VREG_RTMR1_1P8";
407		regulator-min-microvolt = <1800000>;
408		regulator-max-microvolt = <1800000>;
409
410		gpio = <&tlmm 175 GPIO_ACTIVE_HIGH>;
411		enable-active-high;
412
413		pinctrl-0 = <&usb1_pwr_1p8_reg_en>;
414		pinctrl-names = "default";
415
416		regulator-boot-on;
417	};
418
419	vreg_rtmr1_3p3: regulator-rtmr1-3p3 {
420		compatible = "regulator-fixed";
421
422		regulator-name = "VREG_RTMR1_3P3";
423		regulator-min-microvolt = <3300000>;
424		regulator-max-microvolt = <3300000>;
425
426		gpio = <&tlmm 186 GPIO_ACTIVE_HIGH>;
427		enable-active-high;
428
429		pinctrl-0 = <&usb1_pwr_3p3_reg_en>;
430		pinctrl-names = "default";
431
432		regulator-boot-on;
433	};
434
435	vreg_rtmr2_1p15: regulator-rtmr2-1p15 {
436		compatible = "regulator-fixed";
437
438		regulator-name = "VREG_RTMR2_1P15";
439		regulator-min-microvolt = <1150000>;
440		regulator-max-microvolt = <1150000>;
441
442		gpio = <&tlmm 189 GPIO_ACTIVE_HIGH>;
443		enable-active-high;
444
445		pinctrl-0 = <&usb2_pwr_1p15_reg_en>;
446		pinctrl-names = "default";
447
448		regulator-boot-on;
449	};
450
451	vreg_rtmr2_1p8: regulator-rtmr2-1p8 {
452		compatible = "regulator-fixed";
453
454		regulator-name = "VREG_RTMR2_1P8";
455		regulator-min-microvolt = <1800000>;
456		regulator-max-microvolt = <1800000>;
457
458		gpio = <&tlmm 126 GPIO_ACTIVE_HIGH>;
459		enable-active-high;
460
461		pinctrl-0 = <&usb2_pwr_1p8_reg_en>;
462		pinctrl-names = "default";
463
464		regulator-boot-on;
465	};
466
467	vreg_rtmr2_3p3: regulator-rtmr2-3p3 {
468		compatible = "regulator-fixed";
469
470		regulator-name = "VREG_RTMR2_3P3";
471		regulator-min-microvolt = <3300000>;
472		regulator-max-microvolt = <3300000>;
473
474		gpio = <&tlmm 187 GPIO_ACTIVE_HIGH>;
475		enable-active-high;
476
477		pinctrl-0 = <&usb2_pwr_3p3_reg_en>;
478		pinctrl-names = "default";
479
480		regulator-boot-on;
481	};
482
483	vph_pwr: regulator-vph-pwr {
484		compatible = "regulator-fixed";
485
486		regulator-name = "vph_pwr";
487		regulator-min-microvolt = <3700000>;
488		regulator-max-microvolt = <3700000>;
489
490		regulator-always-on;
491		regulator-boot-on;
492	};
493
494	vreg_wwan: regulator-wwan {
495		compatible = "regulator-fixed";
496
497		regulator-name = "SDX_VPH_PWR";
498		regulator-min-microvolt = <3300000>;
499		regulator-max-microvolt = <3300000>;
500
501		gpio = <&tlmm 221 GPIO_ACTIVE_HIGH>;
502		enable-active-high;
503
504		pinctrl-0 = <&wwan_sw_en>;
505		pinctrl-names = "default";
506
507		regulator-boot-on;
508	};
509};
510
511&apps_rsc {
512	regulators-0 {
513		compatible = "qcom,pm8550-rpmh-regulators";
514		qcom,pmic-id = "b";
515
516		vdd-bob1-supply = <&vph_pwr>;
517		vdd-bob2-supply = <&vph_pwr>;
518		vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>;
519		vdd-l2-l13-l14-supply = <&vreg_bob1>;
520		vdd-l5-l16-supply = <&vreg_bob1>;
521		vdd-l6-l7-supply = <&vreg_bob2>;
522		vdd-l8-l9-supply = <&vreg_bob1>;
523		vdd-l12-supply = <&vreg_s5j_1p2>;
524		vdd-l15-supply = <&vreg_s4c_1p8>;
525		vdd-l17-supply = <&vreg_bob2>;
526
527		vreg_bob1: bob1 {
528			regulator-name = "vreg_bob1";
529			regulator-min-microvolt = <3008000>;
530			regulator-max-microvolt = <3960000>;
531			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
532		};
533
534		vreg_bob2: bob2 {
535			regulator-name = "vreg_bob2";
536			regulator-min-microvolt = <2504000>;
537			regulator-max-microvolt = <3008000>;
538			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
539		};
540
541		vreg_l1b_1p8: ldo1 {
542			regulator-name = "vreg_l1b_1p8";
543			regulator-min-microvolt = <1800000>;
544			regulator-max-microvolt = <1800000>;
545			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
546		};
547
548		vreg_l2b_3p0: ldo2 {
549			regulator-name = "vreg_l2b_3p0";
550			regulator-min-microvolt = <3072000>;
551			regulator-max-microvolt = <3100000>;
552			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
553		};
554
555		vreg_l4b_1p8: ldo4 {
556			regulator-name = "vreg_l4b_1p8";
557			regulator-min-microvolt = <1800000>;
558			regulator-max-microvolt = <1800000>;
559			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
560		};
561
562		vreg_l5b_3p0: ldo5 {
563			regulator-name = "vreg_l5b_3p0";
564			regulator-min-microvolt = <3000000>;
565			regulator-max-microvolt = <3000000>;
566			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
567		};
568
569		vreg_l6b_1p8: ldo6 {
570			regulator-name = "vreg_l6b_1p8";
571			regulator-min-microvolt = <1800000>;
572			regulator-max-microvolt = <2960000>;
573			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
574		};
575
576		vreg_l7b_2p8: ldo7 {
577			regulator-name = "vreg_l7b_2p8";
578			regulator-min-microvolt = <2800000>;
579			regulator-max-microvolt = <2800000>;
580			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
581		};
582
583		vreg_l8b_3p0: ldo8 {
584			regulator-name = "vreg_l8b_3p0";
585			regulator-min-microvolt = <3072000>;
586			regulator-max-microvolt = <3072000>;
587			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
588		};
589
590		vreg_l9b_2p9: ldo9 {
591			regulator-name = "vreg_l9b_2p9";
592			regulator-min-microvolt = <2960000>;
593			regulator-max-microvolt = <2960000>;
594			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
595		};
596
597		vreg_l10b_1p8: ldo10 {
598			regulator-name = "vreg_l10b_1p8";
599			regulator-min-microvolt = <1800000>;
600			regulator-max-microvolt = <1800000>;
601			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
602		};
603
604		vreg_l12b_1p2: ldo12 {
605			regulator-name = "vreg_l12b_1p2";
606			regulator-min-microvolt = <1200000>;
607			regulator-max-microvolt = <1200000>;
608			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
609			regulator-always-on;
610		};
611
612		vreg_l13b_3p0: ldo13 {
613			regulator-name = "vreg_l13b_3p0";
614			regulator-min-microvolt = <3072000>;
615			regulator-max-microvolt = <3100000>;
616			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
617		};
618
619		vreg_l14b_3p0: ldo14 {
620			regulator-name = "vreg_l14b_3p0";
621			regulator-min-microvolt = <3072000>;
622			regulator-max-microvolt = <3072000>;
623			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
624		};
625
626		vreg_l15b_1p8: ldo15 {
627			regulator-name = "vreg_l15b_1p8";
628			regulator-min-microvolt = <1800000>;
629			regulator-max-microvolt = <1800000>;
630			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
631			regulator-always-on;
632		};
633
634		vreg_l16b_2p9: ldo16 {
635			regulator-name = "vreg_l16b_2p9";
636			regulator-min-microvolt = <2912000>;
637			regulator-max-microvolt = <2912000>;
638			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
639		};
640
641		vreg_l17b_2p5: ldo17 {
642			regulator-name = "vreg_l17b_2p5";
643			regulator-min-microvolt = <2504000>;
644			regulator-max-microvolt = <2504000>;
645			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
646		};
647	};
648
649	regulators-1 {
650		compatible = "qcom,pm8550ve-rpmh-regulators";
651		qcom,pmic-id = "c";
652
653		vdd-l1-supply = <&vreg_s5j_1p2>;
654		vdd-l2-supply = <&vreg_s1f_0p7>;
655		vdd-l3-supply = <&vreg_s1f_0p7>;
656		vdd-s4-supply = <&vph_pwr>;
657
658		vreg_s4c_1p8: smps4 {
659			regulator-name = "vreg_s4c_1p8";
660			regulator-min-microvolt = <1856000>;
661			regulator-max-microvolt = <2000000>;
662			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
663		};
664
665		vreg_l1c_1p2: ldo1 {
666			regulator-name = "vreg_l1c_1p2";
667			regulator-min-microvolt = <1200000>;
668			regulator-max-microvolt = <1200000>;
669			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
670		};
671
672		vreg_l2c_0p8: ldo2 {
673			regulator-name = "vreg_l2c_0p8";
674			regulator-min-microvolt = <880000>;
675			regulator-max-microvolt = <920000>;
676			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
677		};
678
679		vreg_l3c_0p8: ldo3 {
680			regulator-name = "vreg_l3c_0p8";
681			regulator-min-microvolt = <880000>;
682			regulator-max-microvolt = <920000>;
683			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
684		};
685	};
686
687	regulators-2 {
688		compatible = "qcom,pmc8380-rpmh-regulators";
689		qcom,pmic-id = "d";
690
691		vdd-l1-supply = <&vreg_s1f_0p7>;
692		vdd-l2-supply = <&vreg_s1f_0p7>;
693		vdd-l3-supply = <&vreg_s4c_1p8>;
694		vdd-s1-supply = <&vph_pwr>;
695
696		vreg_l1d_0p8: ldo1 {
697			regulator-name = "vreg_l1d_0p8";
698			regulator-min-microvolt = <880000>;
699			regulator-max-microvolt = <920000>;
700			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
701		};
702
703		vreg_l2d_0p9: ldo2 {
704			regulator-name = "vreg_l2d_0p9";
705			regulator-min-microvolt = <912000>;
706			regulator-max-microvolt = <920000>;
707			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
708		};
709
710		vreg_l3d_1p8: ldo3 {
711			regulator-name = "vreg_l3d_1p8";
712			regulator-min-microvolt = <1800000>;
713			regulator-max-microvolt = <1800000>;
714			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
715		};
716	};
717
718	regulators-3 {
719		compatible = "qcom,pmc8380-rpmh-regulators";
720		qcom,pmic-id = "e";
721
722		vdd-l2-supply = <&vreg_s1f_0p7>;
723		vdd-l3-supply = <&vreg_s5j_1p2>;
724
725		vreg_l2e_0p8: ldo2 {
726			regulator-name = "vreg_l2e_0p8";
727			regulator-min-microvolt = <880000>;
728			regulator-max-microvolt = <920000>;
729			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
730		};
731
732		vreg_l3e_1p2: ldo3 {
733			regulator-name = "vreg_l3e_1p2";
734			regulator-min-microvolt = <1200000>;
735			regulator-max-microvolt = <1200000>;
736			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
737		};
738	};
739
740	regulators-4 {
741		compatible = "qcom,pmc8380-rpmh-regulators";
742		qcom,pmic-id = "f";
743
744		vdd-l1-supply = <&vreg_s5j_1p2>;
745		vdd-l2-supply = <&vreg_s5j_1p2>;
746		vdd-l3-supply = <&vreg_s5j_1p2>;
747		vdd-s1-supply = <&vph_pwr>;
748
749		vreg_s1f_0p7: smps1 {
750			regulator-name = "vreg_s1f_0p7";
751			regulator-min-microvolt = <700000>;
752			regulator-max-microvolt = <1100000>;
753			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
754		};
755
756		vreg_l1f_1p0: ldo1 {
757			regulator-name = "vreg_l1f_1p0";
758			regulator-min-microvolt = <1024000>;
759			regulator-max-microvolt = <1024000>;
760			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
761		};
762
763		vreg_l2f_1p0: ldo2 {
764			regulator-name = "vreg_l2f_1p0";
765			regulator-min-microvolt = <1024000>;
766			regulator-max-microvolt = <1024000>;
767			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
768		};
769
770		vreg_l3f_1p0: ldo3 {
771			regulator-name = "vreg_l3f_1p0";
772			regulator-min-microvolt = <1024000>;
773			regulator-max-microvolt = <1024000>;
774			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
775		};
776	};
777
778	regulators-6 {
779		compatible = "qcom,pm8550ve-rpmh-regulators";
780		qcom,pmic-id = "i";
781
782		vdd-l1-supply = <&vreg_s4c_1p8>;
783		vdd-l2-supply = <&vreg_s5j_1p2>;
784		vdd-l3-supply = <&vreg_s1f_0p7>;
785		vdd-s1-supply = <&vph_pwr>;
786		vdd-s2-supply = <&vph_pwr>;
787
788		vreg_s1i_0p9: smps1 {
789			regulator-name = "vreg_s1i_0p9";
790			regulator-min-microvolt = <900000>;
791			regulator-max-microvolt = <920000>;
792			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
793		};
794
795		vreg_s2i_1p0: smps2 {
796			regulator-name = "vreg_s2i_1p0";
797			regulator-min-microvolt = <1000000>;
798			regulator-max-microvolt = <1100000>;
799			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
800		};
801
802		vreg_l1i_1p8: ldo1 {
803			regulator-name = "vreg_l1i_1p8";
804			regulator-min-microvolt = <1800000>;
805			regulator-max-microvolt = <1800000>;
806			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
807		};
808
809		vreg_l2i_1p2: ldo2 {
810			regulator-name = "vreg_l2i_1p2";
811			regulator-min-microvolt = <1200000>;
812			regulator-max-microvolt = <1200000>;
813			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
814		};
815
816		vreg_l3i_0p8: ldo3 {
817			regulator-name = "vreg_l3i_0p8";
818			regulator-min-microvolt = <880000>;
819			regulator-max-microvolt = <920000>;
820			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
821		};
822	};
823
824	regulators-7 {
825		compatible = "qcom,pm8550ve-rpmh-regulators";
826		qcom,pmic-id = "j";
827
828		vdd-l1-supply = <&vreg_s1f_0p7>;
829		vdd-l2-supply = <&vreg_s5j_1p2>;
830		vdd-l3-supply = <&vreg_s1f_0p7>;
831		vdd-s5-supply = <&vph_pwr>;
832
833		vreg_s5j_1p2: smps5 {
834			regulator-name = "vreg_s5j_1p2";
835			regulator-min-microvolt = <1256000>;
836			regulator-max-microvolt = <1304000>;
837			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
838		};
839
840		vreg_l1j_0p8: ldo1 {
841			regulator-name = "vreg_l1j_0p8";
842			regulator-min-microvolt = <880000>;
843			regulator-max-microvolt = <920000>;
844			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
845		};
846
847		vreg_l2j_1p2: ldo2 {
848			regulator-name = "vreg_l2j_1p2";
849			regulator-min-microvolt = <1256000>;
850			regulator-max-microvolt = <1256000>;
851			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
852		};
853
854		vreg_l3j_0p8: ldo3 {
855			regulator-name = "vreg_l3j_0p8";
856			regulator-min-microvolt = <880000>;
857			regulator-max-microvolt = <920000>;
858			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
859		};
860	};
861};
862
863&gpu {
864	status = "okay";
865};
866
867&i2c0 {
868	clock-frequency = <400000>;
869
870	status = "okay";
871
872	touchpad@15 {
873		compatible = "hid-over-i2c";
874		reg = <0x15>;
875
876		hid-descr-addr = <0x1>;
877		interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;
878
879		vdd-supply = <&vreg_misc_3p3>;
880		vddl-supply = <&vreg_l12b_1p2>;
881
882		pinctrl-0 = <&tpad_default>;
883		pinctrl-names = "default";
884
885		wakeup-source;
886	};
887
888	keyboard@3a {
889		compatible = "hid-over-i2c";
890		reg = <0x3a>;
891
892		hid-descr-addr = <0x1>;
893		interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>;
894
895		vdd-supply = <&vreg_misc_3p3>;
896		vddl-supply = <&vreg_l12b_1p2>;
897
898		pinctrl-0 = <&kybd_default>;
899		pinctrl-names = "default";
900
901		wakeup-source;
902	};
903};
904
905&i2c1 {
906	clock-frequency = <400000>;
907
908	status = "okay";
909
910	typec-mux@8 {
911		compatible = "parade,ps8830";
912		reg = <0x08>;
913
914		clocks = <&rpmhcc RPMH_RF_CLK5>;
915
916		vdd-supply = <&vreg_rtmr2_1p15>;
917		vdd33-supply = <&vreg_rtmr2_3p3>;
918		vdd33-cap-supply = <&vreg_rtmr2_3p3>;
919		vddar-supply = <&vreg_rtmr2_1p15>;
920		vddat-supply = <&vreg_rtmr2_1p15>;
921		vddio-supply = <&vreg_rtmr2_1p8>;
922
923		reset-gpios = <&tlmm 185 GPIO_ACTIVE_LOW>;
924
925		pinctrl-0 = <&rtmr2_default>;
926		pinctrl-names = "default";
927
928		orientation-switch;
929		retimer-switch;
930
931		ports {
932			#address-cells = <1>;
933			#size-cells = <0>;
934
935			port@0 {
936				reg = <0>;
937
938				retimer_ss2_ss_out: endpoint {
939					remote-endpoint = <&pmic_glink_ss2_ss_in>;
940				};
941			};
942
943			port@1 {
944				reg = <1>;
945
946				retimer_ss2_ss_in: endpoint {
947					remote-endpoint = <&usb_1_ss2_qmpphy_out>;
948				};
949			};
950
951			port@2 {
952				reg = <2>;
953
954				retimer_ss2_con_sbu_out: endpoint {
955					remote-endpoint = <&pmic_glink_ss2_con_sbu_in>;
956				};
957			};
958		};
959	};
960};
961
962&i2c3 {
963	clock-frequency = <400000>;
964
965	status = "okay";
966
967	typec-mux@8 {
968		compatible = "parade,ps8830";
969		reg = <0x08>;
970
971		clocks = <&rpmhcc RPMH_RF_CLK3>;
972
973		vdd-supply = <&vreg_rtmr0_1p15>;
974		vdd33-supply = <&vreg_rtmr0_3p3>;
975		vdd33-cap-supply = <&vreg_rtmr0_3p3>;
976		vddar-supply = <&vreg_rtmr0_1p15>;
977		vddat-supply = <&vreg_rtmr0_1p15>;
978		vddio-supply = <&vreg_rtmr0_1p8>;
979
980		reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>;
981
982		pinctrl-0 = <&rtmr0_default>;
983		pinctrl-names = "default";
984
985		retimer-switch;
986		orientation-switch;
987
988		ports {
989			#address-cells = <1>;
990			#size-cells = <0>;
991
992			port@0 {
993				reg = <0>;
994
995				retimer_ss0_ss_out: endpoint {
996					remote-endpoint = <&pmic_glink_ss0_ss_in>;
997				};
998			};
999
1000			port@1 {
1001				reg = <1>;
1002
1003				retimer_ss0_ss_in: endpoint {
1004					remote-endpoint = <&usb_1_ss0_qmpphy_out>;
1005				};
1006			};
1007
1008			port@2 {
1009				reg = <2>;
1010
1011				retimer_ss0_con_sbu_out: endpoint {
1012					remote-endpoint = <&pmic_glink_ss0_con_sbu_in>;
1013				};
1014			};
1015		};
1016	};
1017};
1018
1019&i2c7 {
1020	clock-frequency = <400000>;
1021
1022	status = "okay";
1023
1024	typec-mux@8 {
1025		compatible = "parade,ps8830";
1026		reg = <0x8>;
1027
1028		clocks = <&rpmhcc RPMH_RF_CLK4>;
1029
1030		vdd-supply = <&vreg_rtmr1_1p15>;
1031		vdd33-supply = <&vreg_rtmr1_3p3>;
1032		vdd33-cap-supply = <&vreg_rtmr1_3p3>;
1033		vddar-supply = <&vreg_rtmr1_1p15>;
1034		vddat-supply = <&vreg_rtmr1_1p15>;
1035		vddio-supply = <&vreg_rtmr1_1p8>;
1036
1037		reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>;
1038
1039		pinctrl-0 = <&rtmr1_default>;
1040		pinctrl-names = "default";
1041
1042		retimer-switch;
1043		orientation-switch;
1044
1045		ports {
1046			#address-cells = <1>;
1047			#size-cells = <0>;
1048
1049			port@0 {
1050				reg = <0>;
1051
1052				retimer_ss1_ss_out: endpoint {
1053					remote-endpoint = <&pmic_glink_ss1_ss_in>;
1054				};
1055			};
1056
1057			port@1 {
1058				reg = <1>;
1059
1060				retimer_ss1_ss_in: endpoint {
1061					remote-endpoint = <&usb_1_ss1_qmpphy_out>;
1062				};
1063			};
1064
1065			port@2 {
1066				reg = <2>;
1067
1068				retimer_ss1_con_sbu_out: endpoint {
1069					remote-endpoint = <&pmic_glink_ss1_con_sbu_in>;
1070				};
1071			};
1072		};
1073	};
1074};
1075
1076&i2c8 {
1077	clock-frequency = <400000>;
1078
1079	status = "okay";
1080
1081	touchscreen@10 {
1082		compatible = "hid-over-i2c";
1083		reg = <0x10>;
1084
1085		hid-descr-addr = <0x1>;
1086		interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>;
1087
1088		vdd-supply = <&vreg_misc_3p3>;
1089		vddl-supply = <&vreg_l15b_1p8>;
1090
1091		pinctrl-0 = <&ts0_default>;
1092		pinctrl-names = "default";
1093	};
1094};
1095
1096&lpass_tlmm {
1097	spkr_01_sd_n_active: spkr-01-sd-n-active-state {
1098		pins = "gpio12";
1099		function = "gpio";
1100		drive-strength = <16>;
1101		bias-disable;
1102		output-low;
1103	};
1104
1105	spkr_23_sd_n_active: spkr-23-sd-n-active-state {
1106		pins = "gpio13";
1107		function = "gpio";
1108		drive-strength = <16>;
1109		bias-disable;
1110		output-low;
1111	};
1112};
1113
1114&lpass_vamacro {
1115	pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
1116	pinctrl-names = "default";
1117
1118	vdd-micb-supply = <&vreg_l1b_1p8>;
1119	qcom,dmic-sample-rate = <4800000>;
1120};
1121
1122&mdss {
1123	status = "okay";
1124};
1125
1126&mdss_dp0 {
1127	status = "okay";
1128};
1129
1130&mdss_dp0_out {
1131	data-lanes = <0 1>;
1132};
1133
1134&mdss_dp1 {
1135	status = "okay";
1136};
1137
1138&mdss_dp1_out {
1139	data-lanes = <0 1>;
1140};
1141
1142&mdss_dp2 {
1143	status = "okay";
1144};
1145
1146&mdss_dp2_out {
1147	data-lanes = <0 1>;
1148};
1149
1150&mdss_dp3 {
1151	/delete-property/ #sound-dai-cells;
1152
1153	status = "okay";
1154
1155	aux-bus {
1156		panel {
1157			compatible = "samsung,atna45af01", "samsung,atna33xc20";
1158			enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>;
1159			power-supply = <&vreg_edp_3p3>;
1160
1161			pinctrl-0 = <&edp_bl_en>;
1162			pinctrl-names = "default";
1163
1164			port {
1165				edp_panel_in: endpoint {
1166					remote-endpoint = <&mdss_dp3_out>;
1167				};
1168			};
1169		};
1170	};
1171
1172	ports {
1173		port@1 {
1174			reg = <1>;
1175			mdss_dp3_out: endpoint {
1176				data-lanes = <0 1 2 3>;
1177				link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
1178
1179				remote-endpoint = <&edp_panel_in>;
1180			};
1181		};
1182	};
1183};
1184
1185&mdss_dp3_phy {
1186	vdda-phy-supply = <&vreg_l3j_0p8>;
1187	vdda-pll-supply = <&vreg_l2j_1p2>;
1188
1189	status = "okay";
1190};
1191
1192&pcie4 {
1193	perst-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>;
1194	wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
1195
1196	pinctrl-0 = <&pcie4_default>;
1197	pinctrl-names = "default";
1198
1199	status = "okay";
1200};
1201
1202&pcie4_phy {
1203	vdda-phy-supply = <&vreg_l3i_0p8>;
1204	vdda-pll-supply = <&vreg_l3e_1p2>;
1205
1206	status = "okay";
1207};
1208
1209&pcie5 {
1210	perst-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>;
1211	wake-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
1212
1213	vddpe-3v3-supply = <&vreg_wwan>;
1214
1215	pinctrl-0 = <&pcie5_default>;
1216	pinctrl-names = "default";
1217
1218	status = "okay";
1219};
1220
1221&pcie5_phy {
1222	vdda-phy-supply = <&vreg_l3i_0p8>;
1223	vdda-pll-supply = <&vreg_l3e_1p2>;
1224
1225	status = "okay";
1226};
1227
1228&pcie6a {
1229	perst-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
1230	wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>;
1231
1232	vddpe-3v3-supply = <&vreg_nvme>;
1233
1234	pinctrl-names = "default";
1235	pinctrl-0 = <&pcie6a_default>;
1236
1237	status = "okay";
1238};
1239
1240&pcie6a_phy {
1241	vdda-phy-supply = <&vreg_l1d_0p8>;
1242	vdda-pll-supply = <&vreg_l2j_1p2>;
1243
1244	status = "okay";
1245};
1246
1247&pm8550_gpios {
1248	kypd_vol_up_n: kypd-vol-up-n-state {
1249		pins = "gpio6";
1250		function = "normal";
1251		power-source = <1>; /* 1.8 V */
1252		bias-pull-up;
1253		input-enable;
1254	};
1255
1256	rtmr0_default: rtmr0-reset-n-active-state {
1257		pins = "gpio10";
1258		function = "normal";
1259		power-source = <1>; /* 1.8V */
1260		bias-disable;
1261		input-disable;
1262		output-enable;
1263	};
1264
1265	usb0_3p3_reg_en: usb0-3p3-reg-en-state {
1266		pins = "gpio11";
1267		function = "normal";
1268		power-source = <1>; /* 1.8V */
1269		bias-disable;
1270		input-disable;
1271		output-enable;
1272	};
1273};
1274
1275&pm8550ve_8_gpios {
1276	misc_3p3_reg_en: misc-3p3-reg-en-state {
1277		pins = "gpio6";
1278		function = "normal";
1279		bias-disable;
1280		input-disable;
1281		output-enable;
1282		drive-push-pull;
1283		power-source = <1>; /* 1.8 V */
1284		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
1285	};
1286};
1287
1288&pm8550ve_9_gpios {
1289	usb0_1p8_reg_en: usb0-1p8-reg-en-state {
1290		pins = "gpio8";
1291		function = "normal";
1292		power-source = <1>; /* 1.8V */
1293		bias-disable;
1294		input-disable;
1295		output-enable;
1296	};
1297};
1298
1299&pmc8380_3_gpios {
1300	edp_bl_en: edp-bl-en-state {
1301		pins = "gpio4";
1302		function = "normal";
1303		power-source = <1>; /* 1.8V */
1304		input-disable;
1305		output-enable;
1306	};
1307};
1308
1309&pmc8380_5_gpios {
1310	usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state {
1311		pins = "gpio8";
1312		function = "normal";
1313		power-source = <1>; /* 1.8V */
1314		bias-disable;
1315		input-disable;
1316		output-enable;
1317	};
1318};
1319
1320&qupv3_0 {
1321	status = "okay";
1322};
1323
1324&qupv3_1 {
1325	status = "okay";
1326};
1327
1328&qupv3_2 {
1329	status = "okay";
1330};
1331
1332&remoteproc_adsp {
1333	firmware-name = "qcom/x1e80100/adsp.mbn",
1334			"qcom/x1e80100/adsp_dtb.mbn";
1335
1336	status = "okay";
1337};
1338
1339&remoteproc_cdsp {
1340	firmware-name = "qcom/x1e80100/cdsp.mbn",
1341			"qcom/x1e80100/cdsp_dtb.mbn";
1342
1343	status = "okay";
1344};
1345
1346&smb2360_0 {
1347	status = "okay";
1348};
1349
1350&smb2360_0_eusb2_repeater {
1351	vdd18-supply = <&vreg_l3d_1p8>;
1352	vdd3-supply = <&vreg_l2b_3p0>;
1353};
1354
1355&smb2360_1 {
1356	status = "okay";
1357};
1358
1359&smb2360_1_eusb2_repeater {
1360	vdd18-supply = <&vreg_l3d_1p8>;
1361	vdd3-supply = <&vreg_l14b_3p0>;
1362};
1363
1364&smb2360_2 {
1365	status = "okay";
1366};
1367
1368&smb2360_2_eusb2_repeater {
1369	vdd18-supply = <&vreg_l3d_1p8>;
1370	vdd3-supply = <&vreg_l8b_3p0>;
1371};
1372
1373&swr0 {
1374	status = "okay";
1375
1376	pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>;
1377	pinctrl-names = "default";
1378
1379	/* WSA8845, Left Woofer */
1380	left_woofer: speaker@0,0 {
1381		compatible = "sdw20217020400";
1382		reg = <0 0>;
1383		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
1384		#sound-dai-cells = <0>;
1385		sound-name-prefix = "WooferLeft";
1386		vdd-1p8-supply = <&vreg_l15b_1p8>;
1387		vdd-io-supply = <&vreg_l12b_1p2>;
1388		qcom,port-mapping = <1 2 3 7 10 13>;
1389	};
1390
1391	/* WSA8845, Left Tweeter */
1392	left_tweeter: speaker@0,1 {
1393		compatible = "sdw20217020400";
1394		reg = <0 1>;
1395		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
1396		#sound-dai-cells = <0>;
1397		sound-name-prefix = "TweeterLeft";
1398		vdd-1p8-supply = <&vreg_l15b_1p8>;
1399		vdd-io-supply = <&vreg_l12b_1p2>;
1400		qcom,port-mapping = <4 5 6 7 11 13>;
1401	};
1402};
1403
1404&swr1 {
1405	status = "okay";
1406
1407	/* WCD9385 RX */
1408	wcd_rx: codec@0,4 {
1409		compatible = "sdw20217010d00";
1410		reg = <0 4>;
1411		qcom,rx-port-mapping = <1 2 3 4 5>;
1412	};
1413};
1414
1415&swr2 {
1416	status = "okay";
1417
1418	/* WCD9385 TX */
1419	wcd_tx: codec@0,3 {
1420		compatible = "sdw20217010d00";
1421		reg = <0 3>;
1422		qcom,tx-port-mapping = <2 2 3 4>;
1423	};
1424};
1425
1426&swr3 {
1427	status = "okay";
1428
1429	pinctrl-0 = <&wsa2_swr_active>, <&spkr_23_sd_n_active>;
1430	pinctrl-names = "default";
1431
1432	/* WSA8845, Right Woofer */
1433	right_woofer: speaker@0,0 {
1434		compatible = "sdw20217020400";
1435		reg = <0 0>;
1436		reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
1437		#sound-dai-cells = <0>;
1438		sound-name-prefix = "WooferRight";
1439		vdd-1p8-supply = <&vreg_l15b_1p8>;
1440		vdd-io-supply = <&vreg_l12b_1p2>;
1441		qcom,port-mapping = <1 2 3 7 10 13>;
1442	};
1443
1444	/* WSA8845, Right Tweeter */
1445	right_tweeter: speaker@0,1 {
1446		compatible = "sdw20217020400";
1447		reg = <0 1>;
1448		reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
1449		#sound-dai-cells = <0>;
1450		sound-name-prefix = "TweeterRight";
1451		vdd-1p8-supply = <&vreg_l15b_1p8>;
1452		vdd-io-supply = <&vreg_l12b_1p2>;
1453		qcom,port-mapping = <4 5 6 7 11 13>;
1454	};
1455};
1456
1457&tlmm {
1458	gpio-reserved-ranges = <34 2>, /* Unused */
1459			       <44 4>, /* SPI (TPM) */
1460			       <238 1>; /* UFS Reset */
1461
1462	edp_reg_en: edp-reg-en-state {
1463		pins = "gpio70";
1464		function = "gpio";
1465		drive-strength = <16>;
1466		bias-disable;
1467	};
1468
1469	hall_int_n_default: hall-int-n-state {
1470		pins = "gpio92";
1471		function = "gpio";
1472		bias-disable;
1473	};
1474
1475	kybd_default: kybd-default-state {
1476		pins = "gpio67";
1477		function = "gpio";
1478		bias-disable;
1479	};
1480
1481	nvme_reg_en: nvme-reg-en-state {
1482		pins = "gpio18";
1483		function = "gpio";
1484		drive-strength = <2>;
1485		bias-disable;
1486	};
1487
1488	pcie4_default: pcie4-default-state {
1489		clkreq-n-pins {
1490			pins = "gpio147";
1491			function = "pcie4_clk";
1492			drive-strength = <2>;
1493			bias-pull-up;
1494		};
1495
1496		perst-n-pins {
1497			pins = "gpio146";
1498			function = "gpio";
1499			drive-strength = <2>;
1500			bias-disable;
1501		};
1502
1503		wake-n-pins {
1504			pins = "gpio148";
1505			function = "gpio";
1506			drive-strength = <2>;
1507			bias-pull-up;
1508		};
1509	};
1510
1511	pcie5_default: pcie5-default-state {
1512		clkreq-n-pins {
1513			pins = "gpio150";
1514			function = "pcie5_clk";
1515			drive-strength = <2>;
1516			bias-pull-up;
1517		};
1518
1519		perst-n-pins {
1520			pins = "gpio149";
1521			function = "gpio";
1522			drive-strength = <2>;
1523			bias-disable;
1524		};
1525
1526		wake-n-pins {
1527			pins = "gpio151";
1528			function = "gpio";
1529			drive-strength = <2>;
1530			bias-pull-up;
1531		};
1532	};
1533
1534	pcie6a_default: pcie6a-default-state {
1535		clkreq-n-pins {
1536			pins = "gpio153";
1537			function = "pcie6a_clk";
1538			drive-strength = <2>;
1539			bias-pull-up;
1540		};
1541
1542		perst-n-pins {
1543			pins = "gpio152";
1544			function = "gpio";
1545			drive-strength = <2>;
1546			bias-disable;
1547		};
1548
1549		wake-n-pins {
1550			pins = "gpio154";
1551			function = "gpio";
1552			drive-strength = <2>;
1553			bias-pull-up;
1554		};
1555	};
1556
1557	rtmr1_default: rtmr1-reset-n-active-state {
1558		pins = "gpio176";
1559		function = "gpio";
1560		drive-strength = <2>;
1561		bias-disable;
1562	};
1563
1564	rtmr2_default: rtmr2-reset-n-active-state {
1565		pins = "gpio185";
1566		function = "gpio";
1567		drive-strength = <2>;
1568		bias-disable;
1569	};
1570
1571	tpad_default: tpad-default-state {
1572		pins = "gpio3";
1573		function = "gpio";
1574		bias-disable;
1575	};
1576
1577	ts0_default: ts0-default-state {
1578		int-n-pins {
1579			pins = "gpio51";
1580			function = "gpio";
1581			bias-disable;
1582		};
1583
1584		reset-n-pins {
1585			pins = "gpio48";
1586			function = "gpio";
1587			output-high;
1588			drive-strength = <16>;
1589		};
1590	};
1591
1592	usb1_pwr_1p15_reg_en: usb1-pwr-1p15-reg-en-state {
1593		pins = "gpio188";
1594		function = "gpio";
1595		drive-strength = <2>;
1596		bias-disable;
1597	};
1598
1599	usb1_pwr_1p8_reg_en: usb1-pwr-1p8-reg-en-state {
1600		pins = "gpio175";
1601		function = "gpio";
1602		drive-strength = <2>;
1603		bias-disable;
1604	};
1605
1606	usb1_pwr_3p3_reg_en: usb1-pwr-3p3-reg-en-state {
1607		pins = "gpio186";
1608		function = "gpio";
1609		drive-strength = <2>;
1610		bias-disable;
1611	};
1612
1613	usb2_pwr_1p15_reg_en: usb2-pwr-1p15-reg-en-state {
1614		pins = "gpio189";
1615		function = "gpio";
1616		drive-strength = <2>;
1617		bias-disable;
1618	};
1619
1620	usb2_pwr_1p8_reg_en: usb2-pwr-1p8-reg-en-state {
1621		pins = "gpio126";
1622		function = "gpio";
1623		drive-strength = <2>;
1624		bias-disable;
1625	};
1626
1627	usb2_pwr_3p3_reg_en: usb2-pwr-3p3-reg-en-state {
1628		pins = "gpio187";
1629		function = "gpio";
1630		drive-strength = <2>;
1631		bias-disable;
1632	};
1633
1634	wcd_default: wcd-reset-n-active-state {
1635		pins = "gpio191";
1636		function = "gpio";
1637		drive-strength = <16>;
1638		bias-disable;
1639		output-low;
1640	};
1641
1642	wwan_sw_en: wwan-sw-en-state {
1643		pins = "gpio221";
1644		function = "gpio";
1645		drive-strength = <4>;
1646		bias-disable;
1647	};
1648};
1649
1650&uart21 {
1651	compatible = "qcom,geni-debug-uart";
1652	status = "okay";
1653};
1654
1655&usb_1_ss0_hsphy {
1656	vdd-supply = <&vreg_l3j_0p8>;
1657	vdda12-supply = <&vreg_l2j_1p2>;
1658
1659	phys = <&smb2360_0_eusb2_repeater>;
1660
1661	status = "okay";
1662};
1663
1664&usb_1_ss0_qmpphy {
1665	vdda-phy-supply = <&vreg_l2j_1p2>;
1666	vdda-pll-supply = <&vreg_l1j_0p8>;
1667
1668	status = "okay";
1669};
1670
1671&usb_1_ss0 {
1672	status = "okay";
1673};
1674
1675&usb_1_ss0_dwc3 {
1676	dr_mode = "host";
1677};
1678
1679&usb_1_ss0_dwc3_hs {
1680	remote-endpoint = <&pmic_glink_ss0_hs_in>;
1681};
1682
1683&usb_1_ss0_qmpphy_out {
1684	remote-endpoint = <&retimer_ss0_ss_in>;
1685};
1686
1687&usb_1_ss1_hsphy {
1688	vdd-supply = <&vreg_l3j_0p8>;
1689	vdda12-supply = <&vreg_l2j_1p2>;
1690
1691	phys = <&smb2360_1_eusb2_repeater>;
1692
1693	status = "okay";
1694};
1695
1696&usb_1_ss1_qmpphy {
1697	vdda-phy-supply = <&vreg_l2j_1p2>;
1698	vdda-pll-supply = <&vreg_l2d_0p9>;
1699
1700	status = "okay";
1701};
1702
1703&usb_1_ss1 {
1704	status = "okay";
1705};
1706
1707&usb_1_ss1_dwc3 {
1708	dr_mode = "host";
1709};
1710
1711&usb_1_ss1_dwc3_hs {
1712	remote-endpoint = <&pmic_glink_ss1_hs_in>;
1713};
1714
1715&usb_1_ss1_qmpphy_out {
1716	remote-endpoint = <&retimer_ss1_ss_in>;
1717};
1718
1719&usb_1_ss2_hsphy {
1720	vdd-supply = <&vreg_l3j_0p8>;
1721	vdda12-supply = <&vreg_l2j_1p2>;
1722
1723	phys = <&smb2360_2_eusb2_repeater>;
1724
1725	status = "okay";
1726};
1727
1728&usb_1_ss2_qmpphy {
1729	vdda-phy-supply = <&vreg_l2j_1p2>;
1730	vdda-pll-supply = <&vreg_l2d_0p9>;
1731
1732	status = "okay";
1733};
1734
1735&usb_1_ss2 {
1736	status = "okay";
1737};
1738
1739&usb_1_ss2_dwc3 {
1740	dr_mode = "host";
1741};
1742
1743&usb_1_ss2_dwc3_hs {
1744	remote-endpoint = <&pmic_glink_ss2_hs_in>;
1745};
1746
1747&usb_1_ss2_qmpphy_out {
1748	remote-endpoint = <&retimer_ss2_ss_in>;
1749};
1750