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