xref: /linux/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts (revision 96f30c8f0aa9923aa39b30bcaefeacf88b490231)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
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 "x1e80100.dtsi"
12#include "x1e80100-pmics.dtsi"
13
14/ {
15	model = "Qualcomm Technologies, Inc. X1E80100 QCP";
16	compatible = "qcom,x1e80100-qcp", "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	pmic-glink {
53		compatible = "qcom,x1e80100-pmic-glink",
54			     "qcom,sm8550-pmic-glink",
55			     "qcom,pmic-glink";
56		#address-cells = <1>;
57		#size-cells = <0>;
58		orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>,
59				    <&tlmm 123 GPIO_ACTIVE_HIGH>,
60				    <&tlmm 125 GPIO_ACTIVE_HIGH>;
61
62		connector@0 {
63			compatible = "usb-c-connector";
64			reg = <0>;
65			power-role = "dual";
66			data-role = "dual";
67
68			ports {
69				#address-cells = <1>;
70				#size-cells = <0>;
71
72				port@0 {
73					reg = <0>;
74
75					pmic_glink_ss0_hs_in: endpoint {
76						remote-endpoint = <&usb_1_ss0_dwc3_hs>;
77					};
78				};
79
80				port@1 {
81					reg = <1>;
82
83					pmic_glink_ss0_ss_in: endpoint {
84						remote-endpoint = <&usb_1_ss0_qmpphy_out>;
85					};
86				};
87			};
88		};
89
90		connector@1 {
91			compatible = "usb-c-connector";
92			reg = <1>;
93			power-role = "dual";
94			data-role = "dual";
95
96			ports {
97				#address-cells = <1>;
98				#size-cells = <0>;
99
100				port@0 {
101					reg = <0>;
102
103					pmic_glink_ss1_hs_in: endpoint {
104						remote-endpoint = <&usb_1_ss1_dwc3_hs>;
105					};
106				};
107
108				port@1 {
109					reg = <1>;
110
111					pmic_glink_ss1_ss_in: endpoint {
112						remote-endpoint = <&usb_1_ss1_qmpphy_out>;
113					};
114				};
115			};
116		};
117
118		connector@2 {
119			compatible = "usb-c-connector";
120			reg = <2>;
121			power-role = "dual";
122			data-role = "dual";
123
124			ports {
125				#address-cells = <1>;
126				#size-cells = <0>;
127
128				port@0 {
129					reg = <0>;
130
131					pmic_glink_ss2_hs_in: endpoint {
132						remote-endpoint = <&usb_1_ss2_dwc3_hs>;
133					};
134				};
135
136				port@1 {
137					reg = <1>;
138
139					pmic_glink_ss2_ss_in: endpoint {
140						remote-endpoint = <&usb_1_ss2_qmpphy_out>;
141					};
142				};
143			};
144		};
145	};
146
147	reserved-memory {
148		linux,cma {
149			compatible = "shared-dma-pool";
150			size = <0x0 0x8000000>;
151			reusable;
152			linux,cma-default;
153		};
154	};
155
156	sound {
157		compatible = "qcom,x1e80100-sndcard";
158		model = "X1E80100-QCP";
159		audio-routing = "SpkrLeft IN", "WSA WSA_SPK1 OUT",
160				"SpkrRight IN", "WSA WSA_SPK2 OUT",
161				"IN1_HPHL", "HPHL_OUT",
162				"IN2_HPHR", "HPHR_OUT",
163				"AMIC2", "MIC BIAS2",
164				"TX SWR_INPUT1", "ADC2_OUTPUT";
165
166		wcd-playback-dai-link {
167			link-name = "WCD Playback";
168
169			cpu {
170				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
171			};
172
173			codec {
174				sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
175			};
176
177			platform {
178				sound-dai = <&q6apm>;
179			};
180		};
181
182		wcd-capture-dai-link {
183			link-name = "WCD Capture";
184
185			cpu {
186				sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
187			};
188
189			codec {
190				sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>;
191			};
192
193			platform {
194				sound-dai = <&q6apm>;
195			};
196		};
197
198		wsa-dai-link {
199			link-name = "WSA Playback";
200
201			cpu {
202				sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
203			};
204
205			codec {
206				sound-dai = <&left_spkr>, <&right_spkr>,
207					    <&swr0 0>, <&lpass_wsamacro 0>;
208			};
209
210			platform {
211				sound-dai = <&q6apm>;
212			};
213		};
214	};
215
216	vph_pwr: vph-pwr-regulator {
217		compatible = "regulator-fixed";
218
219		regulator-name = "vph_pwr";
220		regulator-min-microvolt = <3700000>;
221		regulator-max-microvolt = <3700000>;
222
223		regulator-always-on;
224		regulator-boot-on;
225	};
226
227	vreg_edp_3p3: regulator-edp-3p3 {
228		compatible = "regulator-fixed";
229
230		regulator-name = "VREG_EDP_3P3";
231		regulator-min-microvolt = <3300000>;
232		regulator-max-microvolt = <3300000>;
233
234		gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>;
235		enable-active-high;
236
237		pinctrl-0 = <&edp_reg_en>;
238		pinctrl-names = "default";
239
240		regulator-always-on;
241		regulator-boot-on;
242	};
243
244	vreg_nvme: regulator-nvme {
245		compatible = "regulator-fixed";
246
247		regulator-name = "VREG_NVME_3P3";
248		regulator-min-microvolt = <3300000>;
249		regulator-max-microvolt = <3300000>;
250
251		gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>;
252		enable-active-high;
253
254		pinctrl-names = "default";
255		pinctrl-0 = <&nvme_reg_en>;
256	};
257};
258
259&apps_rsc {
260	regulators-0 {
261		compatible = "qcom,pm8550-rpmh-regulators";
262		qcom,pmic-id = "b";
263
264		vdd-bob1-supply = <&vph_pwr>;
265		vdd-bob2-supply = <&vph_pwr>;
266		vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>;
267		vdd-l2-l13-l14-supply = <&vreg_bob1>;
268		vdd-l5-l16-supply = <&vreg_bob1>;
269		vdd-l6-l7-supply = <&vreg_bob2>;
270		vdd-l8-l9-supply = <&vreg_bob1>;
271		vdd-l12-supply = <&vreg_s5j_1p2>;
272		vdd-l15-supply = <&vreg_s4c_1p8>;
273		vdd-l17-supply = <&vreg_bob2>;
274
275		vreg_bob1: bob1 {
276			regulator-name = "vreg_bob1";
277			regulator-min-microvolt = <3008000>;
278			regulator-max-microvolt = <3960000>;
279			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
280		};
281
282		vreg_bob2: bob2 {
283			regulator-name = "vreg_bob2";
284			regulator-min-microvolt = <2504000>;
285			regulator-max-microvolt = <3008000>;
286			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
287		};
288
289		vreg_l1b_1p8: ldo1 {
290			regulator-name = "vreg_l1b_1p8";
291			regulator-min-microvolt = <1800000>;
292			regulator-max-microvolt = <1800000>;
293			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
294		};
295
296		vreg_l2b_3p0: ldo2 {
297			regulator-name = "vreg_l2b_3p0";
298			regulator-min-microvolt = <3072000>;
299			regulator-max-microvolt = <3100000>;
300			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
301		};
302
303		vreg_l4b_1p8: ldo4 {
304			regulator-name = "vreg_l4b_1p8";
305			regulator-min-microvolt = <1800000>;
306			regulator-max-microvolt = <1800000>;
307			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
308		};
309
310		vreg_l5b_3p0: ldo5 {
311			regulator-name = "vreg_l5b_3p0";
312			regulator-min-microvolt = <3000000>;
313			regulator-max-microvolt = <3000000>;
314			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
315		};
316
317		vreg_l6b_1p8: ldo6 {
318			regulator-name = "vreg_l6b_1p8";
319			regulator-min-microvolt = <1800000>;
320			regulator-max-microvolt = <2960000>;
321			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
322		};
323
324		vreg_l7b_2p8: ldo7 {
325			regulator-name = "vreg_l7b_2p8";
326			regulator-min-microvolt = <2800000>;
327			regulator-max-microvolt = <2800000>;
328			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
329		};
330
331		vreg_l8b_3p0: ldo8 {
332			regulator-name = "vreg_l8b_3p0";
333			regulator-min-microvolt = <3072000>;
334			regulator-max-microvolt = <3072000>;
335			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
336		};
337
338		vreg_l9b_2p9: ldo9 {
339			regulator-name = "vreg_l9b_2p9";
340			regulator-min-microvolt = <2960000>;
341			regulator-max-microvolt = <2960000>;
342			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
343		};
344
345		vreg_l10b_1p8: ldo10 {
346			regulator-name = "vreg_l10b_1p8";
347			regulator-min-microvolt = <1800000>;
348			regulator-max-microvolt = <1800000>;
349			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
350		};
351
352		vreg_l12b_1p2: ldo12 {
353			regulator-name = "vreg_l12b_1p2";
354			regulator-min-microvolt = <1200000>;
355			regulator-max-microvolt = <1200000>;
356			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
357		};
358
359		vreg_l13b_3p0: ldo13 {
360			regulator-name = "vreg_l13b_3p0";
361			regulator-min-microvolt = <3072000>;
362			regulator-max-microvolt = <3100000>;
363			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
364		};
365
366		vreg_l14b_3p0: ldo14 {
367			regulator-name = "vreg_l14b_3p0";
368			regulator-min-microvolt = <3072000>;
369			regulator-max-microvolt = <3072000>;
370			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
371		};
372
373		vreg_l15b_1p8: ldo15 {
374			regulator-name = "vreg_l15b_1p8";
375			regulator-min-microvolt = <1800000>;
376			regulator-max-microvolt = <1800000>;
377			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
378		};
379
380		vreg_l16b_2p9: ldo16 {
381			regulator-name = "vreg_l16b_2p9";
382			regulator-min-microvolt = <2912000>;
383			regulator-max-microvolt = <2912000>;
384			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
385		};
386
387		vreg_l17b_2p5: ldo17 {
388			regulator-name = "vreg_l17b_2p5";
389			regulator-min-microvolt = <2504000>;
390			regulator-max-microvolt = <2504000>;
391			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
392		};
393	};
394
395	regulators-1 {
396		compatible = "qcom,pm8550ve-rpmh-regulators";
397		qcom,pmic-id = "c";
398
399		vdd-l1-supply = <&vreg_s5j_1p2>;
400		vdd-l2-supply = <&vreg_s1f_0p7>;
401		vdd-l3-supply = <&vreg_s1f_0p7>;
402		vdd-s4-supply = <&vph_pwr>;
403
404		vreg_s4c_1p8: smps4 {
405			regulator-name = "vreg_s4c_1p8";
406			regulator-min-microvolt = <1856000>;
407			regulator-max-microvolt = <2000000>;
408			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
409		};
410
411		vreg_l1c_1p2: ldo1 {
412			regulator-name = "vreg_l1c_1p2";
413			regulator-min-microvolt = <1200000>;
414			regulator-max-microvolt = <1200000>;
415			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
416		};
417
418		vreg_l2c_0p8: ldo2 {
419			regulator-name = "vreg_l2c_0p8";
420			regulator-min-microvolt = <880000>;
421			regulator-max-microvolt = <920000>;
422			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
423		};
424
425		vreg_l3c_0p8: ldo3 {
426			regulator-name = "vreg_l3c_0p8";
427			regulator-min-microvolt = <880000>;
428			regulator-max-microvolt = <920000>;
429			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
430		};
431	};
432
433	regulators-2 {
434		compatible = "qcom,pmc8380-rpmh-regulators";
435		qcom,pmic-id = "d";
436
437		vdd-l1-supply = <&vreg_s1f_0p7>;
438		vdd-l2-supply = <&vreg_s1f_0p7>;
439		vdd-l3-supply = <&vreg_s4c_1p8>;
440		vdd-s1-supply = <&vph_pwr>;
441
442		vreg_l1d_0p8: ldo1 {
443			regulator-name = "vreg_l1d_0p8";
444			regulator-min-microvolt = <880000>;
445			regulator-max-microvolt = <920000>;
446			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
447		};
448
449		vreg_l2d_0p9: ldo2 {
450			regulator-name = "vreg_l2d_0p9";
451			regulator-min-microvolt = <912000>;
452			regulator-max-microvolt = <920000>;
453			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
454		};
455
456		vreg_l3d_1p8: ldo3 {
457			regulator-name = "vreg_l3d_1p8";
458			regulator-min-microvolt = <1800000>;
459			regulator-max-microvolt = <1800000>;
460			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
461		};
462	};
463
464	regulators-3 {
465		compatible = "qcom,pmc8380-rpmh-regulators";
466		qcom,pmic-id = "e";
467
468		vdd-l2-supply = <&vreg_s1f_0p7>;
469		vdd-l3-supply = <&vreg_s5j_1p2>;
470
471		vreg_l2e_0p8: ldo2 {
472			regulator-name = "vreg_l2e_0p8";
473			regulator-min-microvolt = <880000>;
474			regulator-max-microvolt = <920000>;
475			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
476		};
477
478		vreg_l3e_1p2: ldo3 {
479			regulator-name = "vreg_l3e_1p2";
480			regulator-min-microvolt = <1200000>;
481			regulator-max-microvolt = <1200000>;
482			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
483		};
484	};
485
486	regulators-4 {
487		compatible = "qcom,pmc8380-rpmh-regulators";
488		qcom,pmic-id = "f";
489
490		vdd-l1-supply = <&vreg_s5j_1p2>;
491		vdd-l2-supply = <&vreg_s5j_1p2>;
492		vdd-l3-supply = <&vreg_s5j_1p2>;
493		vdd-s1-supply = <&vph_pwr>;
494
495		vreg_s1f_0p7: smps1 {
496			regulator-name = "vreg_s1f_0p7";
497			regulator-min-microvolt = <700000>;
498			regulator-max-microvolt = <1100000>;
499			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
500		};
501
502		vreg_l1f_1p0: ldo1 {
503			regulator-name = "vreg_l1f_1p0";
504			regulator-min-microvolt = <1024000>;
505			regulator-max-microvolt = <1024000>;
506			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
507		};
508
509		vreg_l2f_1p0: ldo2 {
510			regulator-name = "vreg_l2f_1p0";
511			regulator-min-microvolt = <1024000>;
512			regulator-max-microvolt = <1024000>;
513			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
514		};
515
516		vreg_l3f_1p0: ldo3 {
517			regulator-name = "vreg_l3f_1p0";
518			regulator-min-microvolt = <1024000>;
519			regulator-max-microvolt = <1024000>;
520			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
521		};
522	};
523
524	regulators-6 {
525		compatible = "qcom,pm8550ve-rpmh-regulators";
526		qcom,pmic-id = "i";
527
528		vdd-l1-supply = <&vreg_s4c_1p8>;
529		vdd-l2-supply = <&vreg_s5j_1p2>;
530		vdd-l3-supply = <&vreg_s1f_0p7>;
531		vdd-s1-supply = <&vph_pwr>;
532		vdd-s2-supply = <&vph_pwr>;
533
534		vreg_s1i_0p9: smps1 {
535			regulator-name = "vreg_s1i_0p9";
536			regulator-min-microvolt = <900000>;
537			regulator-max-microvolt = <920000>;
538			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
539		};
540
541		vreg_s2i_1p0: smps2 {
542			regulator-name = "vreg_s2i_1p0";
543			regulator-min-microvolt = <1000000>;
544			regulator-max-microvolt = <1100000>;
545			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
546		};
547
548		vreg_l1i_1p8: ldo1 {
549			regulator-name = "vreg_l1i_1p8";
550			regulator-min-microvolt = <1800000>;
551			regulator-max-microvolt = <1800000>;
552			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
553		};
554
555		vreg_l2i_1p2: ldo2 {
556			regulator-name = "vreg_l2i_1p2";
557			regulator-min-microvolt = <1200000>;
558			regulator-max-microvolt = <1200000>;
559			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
560		};
561
562		vreg_l3i_0p8: ldo3 {
563			regulator-name = "vreg_l3i_0p8";
564			regulator-min-microvolt = <880000>;
565			regulator-max-microvolt = <920000>;
566			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
567		};
568	};
569
570	regulators-7 {
571		compatible = "qcom,pm8550ve-rpmh-regulators";
572		qcom,pmic-id = "j";
573
574		vdd-l1-supply = <&vreg_s1f_0p7>;
575		vdd-l2-supply = <&vreg_s5j_1p2>;
576		vdd-l3-supply = <&vreg_s1f_0p7>;
577		vdd-s5-supply = <&vph_pwr>;
578
579		vreg_s5j_1p2: smps5 {
580			regulator-name = "vreg_s5j_1p2";
581			regulator-min-microvolt = <1256000>;
582			regulator-max-microvolt = <1304000>;
583			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
584		};
585
586		vreg_l1j_0p8: ldo1 {
587			regulator-name = "vreg_l1j_0p8";
588			regulator-min-microvolt = <880000>;
589			regulator-max-microvolt = <920000>;
590			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
591		};
592
593		vreg_l2j_1p2: ldo2 {
594			regulator-name = "vreg_l2j_1p2";
595			regulator-min-microvolt = <1200000>;
596			regulator-max-microvolt = <1200000>;
597			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
598		};
599
600		vreg_l3j_0p8: ldo3 {
601			regulator-name = "vreg_l3j_0p8";
602			regulator-min-microvolt = <880000>;
603			regulator-max-microvolt = <920000>;
604			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
605		};
606	};
607};
608
609&lpass_tlmm {
610	spkr_01_sd_n_active: spkr-01-sd-n-active-state {
611		pins = "gpio12";
612		function = "gpio";
613		drive-strength = <16>;
614		bias-disable;
615		output-low;
616	};
617};
618
619&mdss {
620	status = "okay";
621};
622
623&mdss_dp3 {
624	compatible = "qcom,x1e80100-dp";
625	/delete-property/ #sound-dai-cells;
626
627	status = "okay";
628
629	aux-bus {
630		panel {
631			compatible = "edp-panel";
632			power-supply = <&vreg_edp_3p3>;
633
634			port {
635				edp_panel_in: endpoint {
636					remote-endpoint = <&mdss_dp3_out>;
637				};
638			};
639		};
640	};
641
642	ports {
643		port@1 {
644			reg = <1>;
645			mdss_dp3_out: endpoint {
646				data-lanes = <0 1 2 3>;
647				link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
648
649				remote-endpoint = <&edp_panel_in>;
650			};
651		};
652	};
653};
654
655&mdss_dp3_phy {
656	vdda-phy-supply = <&vreg_l3j_0p8>;
657	vdda-pll-supply = <&vreg_l2j_1p2>;
658
659	status = "okay";
660};
661
662&pcie4 {
663	status = "okay";
664};
665
666&pcie4_phy {
667	vdda-phy-supply = <&vreg_l3j_0p8>;
668	vdda-pll-supply = <&vreg_l3e_1p2>;
669
670	status = "okay";
671};
672
673&pcie6a {
674	perst-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
675	wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>;
676
677	vddpe-3v3-supply = <&vreg_nvme>;
678
679	pinctrl-names = "default";
680	pinctrl-0 = <&pcie6a_default>;
681
682	status = "okay";
683};
684
685&pcie6a_phy {
686	vdda-phy-supply = <&vreg_l1d_0p8>;
687	vdda-pll-supply = <&vreg_l2j_1p2>;
688
689	status = "okay";
690};
691
692&qupv3_0 {
693	status = "okay";
694};
695
696&qupv3_1 {
697	status = "okay";
698};
699
700&qupv3_2 {
701	status = "okay";
702};
703
704&remoteproc_adsp {
705	firmware-name = "qcom/x1e80100/adsp.mbn",
706			"qcom/x1e80100/adsp_dtb.mbn";
707
708	status = "okay";
709};
710
711&remoteproc_cdsp {
712	firmware-name = "qcom/x1e80100/cdsp.mbn",
713			"qcom/x1e80100/cdsp_dtb.mbn";
714
715	status = "okay";
716};
717
718&smb2360_3 {
719	status = "okay";
720};
721
722&smb2360_0_eusb2_repeater {
723	vdd18-supply = <&vreg_l3d_1p8>;
724	vdd3-supply = <&vreg_l2b_3p0>;
725};
726
727&smb2360_1_eusb2_repeater {
728	vdd18-supply = <&vreg_l3d_1p8>;
729	vdd3-supply = <&vreg_l14b_3p0>;
730};
731
732&smb2360_2_eusb2_repeater {
733	vdd18-supply = <&vreg_l3d_1p8>;
734	vdd3-supply = <&vreg_l8b_3p0>;
735};
736
737&swr0 {
738	pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>;
739	pinctrl-names = "default";
740
741	status = "okay";
742
743	/* WSA8845, Left Speaker */
744	left_spkr: speaker@0,0 {
745		compatible = "sdw20217020400";
746		reg = <0 0>;
747		#sound-dai-cells = <0>;
748		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
749		sound-name-prefix = "SpkrLeft";
750		vdd-1p8-supply = <&vreg_l15b_1p8>;
751		vdd-io-supply = <&vreg_l12b_1p2>;
752	};
753
754	/* WSA8845, Right Speaker */
755	right_spkr: speaker@0,1 {
756		compatible = "sdw20217020400";
757		reg = <0 1>;
758		#sound-dai-cells = <0>;
759		reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
760		sound-name-prefix = "SpkrRight";
761		vdd-1p8-supply = <&vreg_l15b_1p8>;
762		vdd-io-supply = <&vreg_l12b_1p2>;
763	};
764};
765
766&swr1 {
767	status = "okay";
768
769	/* WCD9385 RX */
770	wcd_rx: codec@0,4 {
771		compatible = "sdw20217010d00";
772		reg = <0 4>;
773		qcom,rx-port-mapping = <1 2 3 4 5>;
774	};
775};
776
777&swr2 {
778	status = "okay";
779
780	/* WCD9385 TX */
781	wcd_tx: codec@0,3 {
782		compatible = "sdw20217010d00";
783		reg = <0 3>;
784		qcom,tx-port-mapping = <2 2 3 4>;
785	};
786};
787
788&tlmm {
789	gpio-reserved-ranges = <33 3>, /* Unused */
790			       <44 4>, /* SPI (TPM) */
791			       <238 1>; /* UFS Reset */
792
793	edp_reg_en: edp-reg-en-state {
794		pins = "gpio70";
795		function = "gpio";
796		drive-strength = <16>;
797		bias-disable;
798	};
799
800	nvme_reg_en: nvme-reg-en-state {
801		pins = "gpio18";
802		function = "gpio";
803		drive-strength = <2>;
804		bias-disable;
805	};
806
807	pcie6a_default: pcie2a-default-state {
808		clkreq-n-pins {
809			pins = "gpio153";
810			function = "pcie6a_clk";
811			drive-strength = <2>;
812			bias-pull-up;
813		};
814
815		perst-n-pins {
816			pins = "gpio152";
817			function = "gpio";
818			drive-strength = <2>;
819			bias-pull-down;
820		};
821
822		wake-n-pins {
823		       pins = "gpio154";
824		       function = "gpio";
825		       drive-strength = <2>;
826		       bias-pull-up;
827	       };
828	};
829
830	wcd_default: wcd-reset-n-active-state {
831		pins = "gpio191";
832		function = "gpio";
833		drive-strength = <16>;
834		bias-disable;
835		output-low;
836	};
837};
838
839&uart21 {
840	compatible = "qcom,geni-debug-uart";
841	status = "okay";
842};
843
844&usb_1_ss0_hsphy {
845	vdd-supply = <&vreg_l3j_0p8>;
846	vdda12-supply = <&vreg_l2j_1p2>;
847
848	phys = <&smb2360_0_eusb2_repeater>;
849
850	status = "okay";
851};
852
853&usb_1_ss0_qmpphy {
854	vdda-phy-supply = <&vreg_l3e_1p2>;
855	vdda-pll-supply = <&vreg_l1j_0p8>;
856
857	status = "okay";
858};
859
860&usb_1_ss0 {
861	status = "okay";
862};
863
864&usb_1_ss0_dwc3 {
865	dr_mode = "host";
866};
867
868&usb_1_ss0_dwc3_hs {
869	remote-endpoint = <&pmic_glink_ss0_hs_in>;
870};
871
872&usb_1_ss0_qmpphy_out {
873	remote-endpoint = <&pmic_glink_ss0_ss_in>;
874};
875
876&usb_1_ss1_hsphy {
877	vdd-supply = <&vreg_l3j_0p8>;
878	vdda12-supply = <&vreg_l2j_1p2>;
879
880	phys = <&smb2360_1_eusb2_repeater>;
881
882	status = "okay";
883};
884
885&usb_1_ss1_qmpphy {
886	vdda-phy-supply = <&vreg_l3e_1p2>;
887	vdda-pll-supply = <&vreg_l2d_0p9>;
888
889	status = "okay";
890};
891
892&usb_1_ss1 {
893	status = "okay";
894};
895
896&usb_1_ss1_dwc3 {
897	dr_mode = "host";
898};
899
900&usb_1_ss1_dwc3_hs {
901	remote-endpoint = <&pmic_glink_ss1_hs_in>;
902};
903
904&usb_1_ss1_qmpphy_out {
905	remote-endpoint = <&pmic_glink_ss1_ss_in>;
906};
907
908&usb_1_ss2_hsphy {
909	vdd-supply = <&vreg_l3j_0p8>;
910	vdda12-supply = <&vreg_l2j_1p2>;
911
912	phys = <&smb2360_2_eusb2_repeater>;
913
914	status = "okay";
915};
916
917&usb_1_ss2_qmpphy {
918	vdda-phy-supply = <&vreg_l3e_1p2>;
919	vdda-pll-supply = <&vreg_l2d_0p9>;
920
921	status = "okay";
922};
923
924&usb_1_ss2 {
925	status = "okay";
926};
927
928&usb_1_ss2_dwc3 {
929	dr_mode = "host";
930};
931
932&usb_1_ss2_dwc3_hs {
933	remote-endpoint = <&pmic_glink_ss2_hs_in>;
934};
935
936&usb_1_ss2_qmpphy_out {
937	remote-endpoint = <&pmic_glink_ss2_ss_in>;
938};
939