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