Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/x1e80100-asus-vivobook-s15.dts

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