Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/x1-crd.dtsi

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