Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/x1-asus-zenbook-a14.dtsi

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