Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/sc8280xp-crd.dts

raw
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022, Linaro Limited
5 */
6
7 /dts-v1/;
8
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11
12 #include "sc8280xp.dtsi"
13 #include "sc8280xp-pmics.dtsi"
14
15 / {
16 model = "Qualcomm SC8280XP CRD";
17 compatible = "qcom,sc8280xp-crd", "qcom,sc8280xp";
18
19 aliases {
20 i2c4 = &i2c4;
21 i2c21 = &i2c21;
22 serial0 = &uart17;
23 serial1 = &uart2;
24 };
25
26 backlight: backlight {
27 compatible = "pwm-backlight";
28 pwms = <&pmc8280c_lpg 3 1000000>;
29 enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>;
30 power-supply = <&vreg_edp_bl>;
31
32 pinctrl-names = "default";
33 pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>;
34 };
35
36 chosen {
37 stdout-path = "serial0:115200n8";
38 };
39
40 gpio-keys {
41 compatible = "gpio-keys";
42
43 pinctrl-0 = <&kypd_vol_up_n>;
44 pinctrl-names = "default";
45
46 key-vol-up {
47 label = "volume_up";
48 gpios = <&pmc8280_1_gpios 6 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_VOLUMEUP>;
50 wakeup-source;
51 };
52 };
53
54 pmic-glink {
55 compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";
56
57 #address-cells = <1>;
58 #size-cells = <0>;
59
60 connector@0 {
61 compatible = "usb-c-connector";
62 reg = <0>;
63 power-role = "dual";
64 data-role = "dual";
65
66 ports {
67 #address-cells = <1>;
68 #size-cells = <0>;
69
70 port@0 {
71 reg = <0>;
72
73 pmic_glink_con0_hs: endpoint {
74 remote-endpoint = <&usb_0_dwc3_hs>;
75 };
76 };
77
78 port@1 {
79 reg = <1>;
80
81 pmic_glink_con0_ss: endpoint {
82 remote-endpoint = <&usb_0_qmpphy_out>;
83 };
84 };
85
86 port@2 {
87 reg = <2>;
88
89 pmic_glink_con0_sbu: endpoint {
90 remote-endpoint = <&usb0_sbu_mux>;
91 };
92 };
93 };
94 };
95
96 connector@1 {
97 compatible = "usb-c-connector";
98 reg = <1>;
99 power-role = "dual";
100 data-role = "dual";
101
102 ports {
103 #address-cells = <1>;
104 #size-cells = <0>;
105 port@0 {
106 reg = <0>;
107
108 pmic_glink_con1_hs: endpoint {
109 remote-endpoint = <&usb_1_dwc3_hs>;
110 };
111 };
112
113 port@1 {
114 reg = <1>;
115
116 pmic_glink_con1_ss: endpoint {
117 remote-endpoint = <&usb_1_qmpphy_out>;
118 };
119 };
120
121 port@2 {
122 reg = <2>;
123
124 pmic_glink_con1_sbu: endpoint {
125 remote-endpoint = <&usb1_sbu_mux>;
126 };
127 };
128 };
129 };
130 };
131
132 vreg_edp_3p3: regulator-edp-3p3 {
133 compatible = "regulator-fixed";
134
135 regulator-name = "VREG_EDP_3P3";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138
139 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
140 enable-active-high;
141
142 pinctrl-names = "default";
143 pinctrl-0 = <&edp_reg_en>;
144
145 regulator-boot-on;
146 };
147
148 vreg_edp_bl: regulator-edp-bl {
149 compatible = "regulator-fixed";
150
151 regulator-name = "VREG_EDP_BL";
152 regulator-min-microvolt = <3600000>;
153 regulator-max-microvolt = <3600000>;
154
155 gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>;
156 enable-active-high;
157
158 pinctrl-names = "default";
159 pinctrl-0 = <&edp_bl_reg_en>;
160
161 regulator-boot-on;
162 };
163
164 vreg_nvme: regulator-nvme {
165 compatible = "regulator-fixed";
166
167 regulator-name = "VREG_NVME_3P3";
168 regulator-min-microvolt = <3300000>;
169 regulator-max-microvolt = <3300000>;
170
171 gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>;
172 enable-active-high;
173
174 pinctrl-names = "default";
175 pinctrl-0 = <&nvme_reg_en>;
176 };
177
178 vreg_misc_3p3: regulator-misc-3p3 {
179 compatible = "regulator-fixed";
180
181 regulator-name = "VREG_MISC_3P3";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
184
185 gpio = <&pmc8280_1_gpios 2 GPIO_ACTIVE_HIGH>;
186 enable-active-high;
187
188 pinctrl-names = "default";
189 pinctrl-0 = <&misc_3p3_reg_en>;
190
191 regulator-boot-on;
192 regulator-always-on;
193 };
194
195 vreg_wlan: regulator-wlan {
196 compatible = "regulator-fixed";
197
198 regulator-name = "VPH_PWR_WLAN";
199 regulator-min-microvolt = <3900000>;
200 regulator-max-microvolt = <3900000>;
201
202 gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>;
203 enable-active-high;
204
205 pinctrl-names = "default";
206 pinctrl-0 = <&hastings_reg_en>;
207
208 regulator-boot-on;
209 };
210
211 vreg_wwan: regulator-wwan {
212 compatible = "regulator-fixed";
213
214 regulator-name = "SDX_VPH_PWR";
215 regulator-min-microvolt = <3300000>;
216 regulator-max-microvolt = <3300000>;
217
218 gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>;
219 enable-active-high;
220
221 pinctrl-names = "default";
222 pinctrl-0 = <&wwan_sw_en>;
223
224 regulator-boot-on;
225 };
226
227 reserved-memory {
228 linux,cma {
229 compatible = "shared-dma-pool";
230 size = <0x0 0x8000000>;
231 reusable;
232 linux,cma-default;
233 };
234 };
235
236 usb0-sbu-mux {
237 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
238
239 enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>;
240 select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>;
241
242 pinctrl-names = "default";
243 pinctrl-0 = <&usb0_sbu_default>;
244
245 mode-switch;
246 orientation-switch;
247
248 port {
249 usb0_sbu_mux: endpoint {
250 remote-endpoint = <&pmic_glink_con0_sbu>;
251 };
252 };
253 };
254
255 usb1-sbu-mux {
256 compatible = "pericom,pi3usb102", "gpio-sbu-mux";
257
258 enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
259 select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
260
261 pinctrl-names = "default";
262 pinctrl-0 = <&usb1_sbu_default>;
263
264 mode-switch;
265 orientation-switch;
266
267 port {
268 usb1_sbu_mux: endpoint {
269 remote-endpoint = <&pmic_glink_con1_sbu>;
270 };
271 };
272 };
273
274 wcn6855-pmu {
275 compatible = "qcom,wcn6855-pmu";
276
277 pinctrl-0 = <&bt_en>, <&wlan_en>;
278 pinctrl-names = "default";
279
280 wlan-enable-gpios = <&tlmm 134 GPIO_ACTIVE_HIGH>;
281 bt-enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
282 swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>;
283
284 vddio-supply = <&vreg_s10b>;
285 vddaon-supply = <&vreg_s12b>;
286 vddpmu-supply = <&vreg_s12b>;
287 vddpmumx-supply = <&vreg_s12b>;
288 vddpmucx-supply = <&vreg_s12b>;
289 vddrfa0p95-supply = <&vreg_s12b>;
290 vddrfa1p3-supply = <&vreg_s11b>;
291 vddrfa1p9-supply = <&vreg_s1c>;
292 vddpcie1p3-supply = <&vreg_s11b>;
293 vddpcie1p9-supply = <&vreg_s1c>;
294
295 regulators {
296 vreg_pmu_rfa_cmn_0p8: ldo0 {
297 regulator-name = "vreg_pmu_rfa_cmn_0p8";
298 };
299
300 vreg_pmu_aon_0p8: ldo1 {
301 regulator-name = "vreg_pmu_aon_0p8";
302 };
303
304 vreg_pmu_wlcx_0p8: ldo2 {
305 regulator-name = "vreg_pmu_wlcx_0p8";
306 };
307
308 vreg_pmu_wlmx_0p8: ldo3 {
309 regulator-name = "vreg_pmu_wlmx_0p8";
310 };
311
312 vreg_pmu_btcmx_0p8: ldo4 {
313 regulator-name = "vreg_pmu_btcmx_0p8";
314 };
315
316 vreg_pmu_pcie_1p8: ldo5 {
317 regulator-name = "vreg_pmu_pcie_1p8";
318 };
319
320 vreg_pmu_pcie_0p9: ldo6 {
321 regulator-name = "vreg_pmu_pcie_0p9";
322 };
323
324 vreg_pmu_rfa_0p8: ldo7 {
325 regulator-name = "vreg_pmu_rfa_0p8";
326 };
327
328 vreg_pmu_rfa_1p2: ldo8 {
329 regulator-name = "vreg_pmu_rfa_1p2";
330 };
331
332 vreg_pmu_rfa_1p7: ldo9 {
333 regulator-name = "vreg_pmu_rfa_1p7";
334 };
335 };
336 };
337 };
338
339 &apps_rsc {
340 regulators-0 {
341 compatible = "qcom,pm8350-rpmh-regulators";
342 qcom,pmic-id = "b";
343
344 vdd-l3-l5-supply = <&vreg_s11b>;
345
346 vreg_s10b: smps10 {
347 regulator-name = "vreg_s10b";
348 regulator-min-microvolt = <1800000>;
349 regulator-max-microvolt = <1800000>;
350 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
351 regulator-always-on;
352 regulator-boot-on;
353 };
354
355 vreg_s11b: smps11 {
356 regulator-name = "vreg_s11b";
357 regulator-min-microvolt = <1272000>;
358 regulator-max-microvolt = <1272000>;
359 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
360 };
361
362 vreg_s12b: smps12 {
363 regulator-name = "vreg_s12b";
364 regulator-min-microvolt = <984000>;
365 regulator-max-microvolt = <984000>;
366 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
367 };
368
369 vreg_l3b: ldo3 {
370 regulator-name = "vreg_l3b";
371 regulator-min-microvolt = <1200000>;
372 regulator-max-microvolt = <1200000>;
373 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
374 regulator-boot-on;
375 };
376
377 vreg_l4b: ldo4 {
378 regulator-name = "vreg_l4b";
379 regulator-min-microvolt = <912000>;
380 regulator-max-microvolt = <912000>;
381 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
382 };
383
384 vreg_l6b: ldo6 {
385 regulator-name = "vreg_l6b";
386 regulator-min-microvolt = <880000>;
387 regulator-max-microvolt = <880000>;
388 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
389 regulator-boot-on;
390 };
391 };
392
393 regulators-1 {
394 compatible = "qcom,pm8350c-rpmh-regulators";
395 qcom,pmic-id = "c";
396
397 vreg_s1c: smps1 {
398 regulator-name = "vreg_s1c";
399 regulator-min-microvolt = <1888000>;
400 regulator-max-microvolt = <1888000>;
401 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
402 };
403
404 vreg_l1c: ldo1 {
405 regulator-name = "vreg_l1c";
406 regulator-min-microvolt = <1800000>;
407 regulator-max-microvolt = <1800000>;
408 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
409 };
410
411 vreg_l6c: ldo6 {
412 regulator-name = "vreg_l6c";
413 regulator-min-microvolt = <1800000>;
414 regulator-max-microvolt = <2960000>;
415 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
416 };
417
418 vreg_l7c: ldo7 {
419 regulator-name = "vreg_l7c";
420 regulator-min-microvolt = <2504000>;
421 regulator-max-microvolt = <2504000>;
422 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
423 regulator-allow-set-load;
424 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
425 RPMH_REGULATOR_MODE_HPM>;
426 };
427
428 vreg_l9c: ldo9 {
429 regulator-name = "vreg_l9c";
430 regulator-min-microvolt = <2960000>;
431 regulator-max-microvolt = <2960000>;
432 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
433 };
434
435 vreg_l13c: ldo13 {
436 regulator-name = "vreg_l13c";
437 regulator-min-microvolt = <3072000>;
438 regulator-max-microvolt = <3072000>;
439 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
440 };
441 };
442
443 regulators-2 {
444 compatible = "qcom,pm8350-rpmh-regulators";
445 qcom,pmic-id = "d";
446
447 vdd-l1-l4-supply = <&vreg_s11b>;
448
449 vreg_l3d: ldo3 {
450 regulator-name = "vreg_l3d";
451 regulator-min-microvolt = <1200000>;
452 regulator-max-microvolt = <1200000>;
453 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
454 regulator-allow-set-load;
455 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
456 RPMH_REGULATOR_MODE_HPM>;
457 };
458
459 vreg_l4d: ldo4 {
460 regulator-name = "vreg_l4d";
461 regulator-min-microvolt = <1200000>;
462 regulator-max-microvolt = <1200000>;
463 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
464 };
465
466 vreg_l6d: ldo6 {
467 regulator-name = "vreg_l6d";
468 regulator-min-microvolt = <880000>;
469 regulator-max-microvolt = <880000>;
470 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
471 };
472
473 vreg_l7d: ldo7 {
474 regulator-name = "vreg_l7d";
475 regulator-min-microvolt = <3072000>;
476 regulator-max-microvolt = <3072000>;
477 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
478 };
479
480 vreg_l9d: ldo9 {
481 regulator-name = "vreg_l9d";
482 regulator-min-microvolt = <912000>;
483 regulator-max-microvolt = <912000>;
484 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
485 };
486 };
487 };
488
489 &dispcc0 {
490 status = "okay";
491 };
492
493 &gpi_dma0 {
494 status = "okay";
495 };
496
497 &gpi_dma1 {
498 status = "okay";
499 };
500
501 &gpi_dma2 {
502 status = "okay";
503 };
504
505 &gpu {
506 status = "okay";
507 };
508
509 &gpu_zap_shader {
510 firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn";
511 };
512
513 &mdss0 {
514 status = "okay";
515 };
516
517 &mdss0_dp0 {
518 status = "okay";
519 };
520
521 &mdss0_dp0_out {
522 data-lanes = <0 1>;
523 remote-endpoint = <&usb_0_qmpphy_dp_in>;
524 };
525
526 &mdss0_dp1 {
527 status = "okay";
528 };
529
530 &mdss0_dp1_out {
531 data-lanes = <0 1>;
532 remote-endpoint = <&usb_1_qmpphy_dp_in>;
533 };
534
535 &mdss0_dp3 {
536 compatible = "qcom,sc8280xp-edp";
537 /delete-property/ #sound-dai-cells;
538
539 data-lanes = <0 1 2 3>;
540
541 status = "okay";
542
543 aux-bus {
544 panel {
545 compatible = "edp-panel";
546 power-supply = <&vreg_edp_3p3>;
547
548 backlight = <&backlight>;
549
550 port {
551 edp_panel_in: endpoint {
552 remote-endpoint = <&mdss0_dp3_out>;
553 };
554 };
555 };
556 };
557 };
558
559 &mdss0_dp3_out {
560 remote-endpoint = <&edp_panel_in>;
561 };
562
563 &mdss0_dp3_phy {
564 compatible = "qcom,sc8280xp-edp-phy";
565
566 vdda-phy-supply = <&vreg_l6b>;
567 vdda-pll-supply = <&vreg_l3b>;
568
569 status = "okay";
570 };
571
572 &i2c4 {
573 clock-frequency = <400000>;
574
575 pinctrl-names = "default";
576 pinctrl-0 = <&i2c4_default>;
577
578 status = "okay";
579
580 touchscreen@10 {
581 compatible = "hid-over-i2c";
582 reg = <0x10>;
583
584 hid-descr-addr = <0x1>;
585 interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>;
586 vdd-supply = <&vreg_misc_3p3>;
587
588 pinctrl-names = "default";
589 pinctrl-0 = <&ts0_default>;
590 };
591 };
592
593 &i2c21 {
594 clock-frequency = <400000>;
595
596 pinctrl-names = "default";
597 pinctrl-0 = <&i2c21_default>;
598
599 status = "okay";
600
601 touchpad@15 {
602 compatible = "hid-over-i2c";
603 reg = <0x15>;
604
605 hid-descr-addr = <0x1>;
606 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>;
607 vdd-supply = <&vreg_misc_3p3>;
608
609 pinctrl-names = "default";
610 pinctrl-0 = <&tpad_default>;
611
612 wakeup-source;
613 };
614
615 keyboard@68 {
616 compatible = "hid-over-i2c";
617 reg = <0x68>;
618
619 hid-descr-addr = <0x1>;
620 interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>;
621 vdd-supply = <&vreg_misc_3p3>;
622
623 pinctrl-names = "default";
624 pinctrl-0 = <&kybd_default>;
625
626 wakeup-source;
627 };
628 };
629
630 &pcie2a {
631 perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>;
632 wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
633
634 vddpe-3v3-supply = <&vreg_nvme>;
635
636 pinctrl-names = "default";
637 pinctrl-0 = <&pcie2a_default>;
638
639 status = "okay";
640 };
641
642 &pcie2a_phy {
643 vdda-phy-supply = <&vreg_l6d>;
644 vdda-pll-supply = <&vreg_l4d>;
645
646 status = "okay";
647 };
648
649 &pcie3a {
650 perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
651 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>;
652
653 vddpe-3v3-supply = <&vreg_wwan>;
654
655 pinctrl-names = "default";
656 pinctrl-0 = <&pcie3a_default>;
657
658 status = "okay";
659 };
660
661 &pcie3a_phy {
662 vdda-phy-supply = <&vreg_l6d>;
663 vdda-pll-supply = <&vreg_l4d>;
664
665 status = "okay";
666 };
667
668 &pcie4 {
669 max-link-speed = <2>;
670
671 perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>;
672 wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>;
673
674 vddpe-3v3-supply = <&vreg_wlan>;
675
676 pinctrl-names = "default";
677 pinctrl-0 = <&pcie4_default>;
678
679 status = "okay";
680 };
681
682 &pcie4_phy {
683 vdda-phy-supply = <&vreg_l6d>;
684 vdda-pll-supply = <&vreg_l4d>;
685
686 status = "okay";
687 };
688
689 &pcie4_port0 {
690 wifi@0 {
691 compatible = "pci17cb,1103";
692 reg = <0x10000 0x0 0x0 0x0 0x0>;
693
694 vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
695 vddaon-supply = <&vreg_pmu_aon_0p8>;
696 vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
697 vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
698 vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
699 vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
700 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
701 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
702 vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
703
704 qcom,calibration-variant = "QC_8280XP_CRD";
705 };
706 };
707
708 &pmc8280c_lpg {
709 status = "okay";
710 };
711
712 &pmk8280_pon_pwrkey {
713 status = "okay";
714 };
715
716 &pmk8280_rtc {
717 nvmem-cells = <&rtc_offset>;
718 nvmem-cell-names = "offset";
719
720 status = "okay";
721 };
722
723 &pmk8280_sdam_6 {
724 status = "okay";
725
726 rtc_offset: rtc-offset@bc {
727 reg = <0xbc 0x4>;
728 };
729 };
730
731 &qup0 {
732 status = "okay";
733 };
734
735 &qup1 {
736 status = "okay";
737 };
738
739 &qup2 {
740 status = "okay";
741 };
742
743 &remoteproc_adsp {
744 firmware-name = "qcom/sc8280xp/qcadsp8280.mbn";
745
746 status = "okay";
747 };
748
749 &remoteproc_nsp0 {
750 firmware-name = "qcom/sc8280xp/qccdsp8280.mbn";
751
752 status = "okay";
753 };
754
755 &remoteproc_slpi {
756 firmware-name = "qcom/sc8280xp/qcslpi8280.mbn";
757
758 status = "okay";
759 };
760
761 &sdc2 {
762 pinctrl-0 = <&sdc2_default_state>;
763 pinctrl-1 = <&sdc2_sleep_state>;
764 pinctrl-names = "default", "sleep";
765
766 vmmc-supply = <&vreg_l9c>;
767 vqmmc-supply = <&vreg_l6c>;
768
769 cd-gpios = <&tlmm 131 GPIO_ACTIVE_LOW>;
770
771 status = "okay";
772 };
773
774 &uart2 {
775 pinctrl-0 = <&uart2_default>;
776 pinctrl-names = "default";
777
778 status = "okay";
779
780 bluetooth {
781 compatible = "qcom,wcn6855-bt";
782
783 vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
784 vddaon-supply = <&vreg_pmu_aon_0p8>;
785 vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
786 vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
787 vddbtcmx-supply = <&vreg_pmu_btcmx_0p8>;
788 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
789 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
790 vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
791 };
792 };
793
794 &uart17 {
795 compatible = "qcom,geni-debug-uart";
796
797 status = "okay";
798 };
799
800 &ufs_mem_hc {
801 reset-gpios = <&tlmm 228 GPIO_ACTIVE_LOW>;
802
803 vcc-supply = <&vreg_l7c>;
804 vcc-max-microamp = <800000>;
805 vccq-supply = <&vreg_l3d>;
806 vccq-max-microamp = <900000>;
807
808 status = "okay";
809 };
810
811 &ufs_mem_phy {
812 vdda-phy-supply = <&vreg_l6b>;
813 vdda-pll-supply = <&vreg_l3b>;
814
815 status = "okay";
816 };
817
818 &usb_0 {
819 status = "okay";
820 };
821
822 &usb_0_dwc3 {
823 dr_mode = "host";
824 };
825
826 &usb_0_dwc3_hs {
827 remote-endpoint = <&pmic_glink_con0_hs>;
828 };
829
830 &usb_0_hsphy {
831 vdda-pll-supply = <&vreg_l9d>;
832 vdda18-supply = <&vreg_l1c>;
833 vdda33-supply = <&vreg_l7d>;
834
835 status = "okay";
836 };
837
838 &usb_0_qmpphy {
839 vdda-phy-supply = <&vreg_l9d>;
840 vdda-pll-supply = <&vreg_l4d>;
841
842 orientation-switch;
843
844 status = "okay";
845 };
846
847 &usb_0_qmpphy_dp_in {
848 remote-endpoint = <&mdss0_dp0_out>;
849 };
850
851 &usb_0_qmpphy_out {
852 remote-endpoint = <&pmic_glink_con0_ss>;
853 };
854
855 &usb_1 {
856 status = "okay";
857 };
858
859 &usb_1_dwc3 {
860 dr_mode = "host";
861 };
862
863 &usb_1_dwc3_hs {
864 remote-endpoint = <&pmic_glink_con1_hs>;
865 };
866
867 &usb_1_hsphy {
868 vdda-pll-supply = <&vreg_l4b>;
869 vdda18-supply = <&vreg_l1c>;
870 vdda33-supply = <&vreg_l13c>;
871
872 status = "okay";
873 };
874
875 &usb_1_qmpphy {
876 vdda-phy-supply = <&vreg_l4b>;
877 vdda-pll-supply = <&vreg_l3b>;
878
879 orientation-switch;
880
881 status = "okay";
882 };
883
884 &usb_1_qmpphy_dp_in {
885 remote-endpoint = <&mdss0_dp1_out>;
886 };
887
888 &usb_1_qmpphy_out {
889 remote-endpoint = <&pmic_glink_con1_ss>;
890 };
891
892 &xo_board_clk {
893 clock-frequency = <38400000>;
894 };
895
896 /* PINCTRL - additions to nodes defined in sc8280xp.dtsi */
897
898 &pmc8280_1_gpios {
899 edp_bl_en: edp-bl-en-state {
900 pins = "gpio8";
901 function = "normal";
902 };
903
904 edp_bl_reg_en: edp-bl-reg-en-state {
905 pins = "gpio9";
906 function = "normal";
907 };
908
909 kypd_vol_up_n: kypd-vol-up-n-state {
910 pins = "gpio6";
911 function = "normal";
912 power-source = <0>; /* 3.3 V */
913 bias-pull-up;
914 input-enable;
915 };
916
917 misc_3p3_reg_en: misc-3p3-reg-en-state {
918 pins = "gpio2";
919 function = "normal";
920 };
921 };
922
923 &pmc8280_2_gpios {
924 wwan_sw_en: wwan-sw-en-state {
925 pins = "gpio1";
926 function = "normal";
927 };
928 };
929
930 &pmc8280c_gpios {
931 edp_bl_pwm: edp-bl-pwm-state {
932 pins = "gpio8";
933 function = "func1";
934 };
935 };
936
937 &pmr735a_gpios {
938 hastings_reg_en: hastings-reg-en-state {
939 pins = "gpio1";
940 function = "normal";
941 };
942 };
943
944 &tlmm {
945 gpio-reserved-ranges = <74 6>, <83 4>, <125 2>, <128 2>, <154 7>;
946
947 bt_en: bt-en-state {
948 pins = "gpio133";
949 function = "gpio";
950 drive-strength = <16>;
951 bias-disable;
952 };
953
954 edp_reg_en: edp-reg-en-state {
955 pins = "gpio25";
956 function = "gpio";
957 drive-strength = <16>;
958 bias-disable;
959 };
960
961 i2c4_default: i2c4-default-state {
962 pins = "gpio171", "gpio172";
963 function = "qup4";
964 drive-strength = <16>;
965 bias-disable;
966 };
967
968 i2c21_default: i2c21-default-state {
969 pins = "gpio81", "gpio82";
970 function = "qup21";
971 drive-strength = <16>;
972 bias-disable;
973 };
974
975 kybd_default: kybd-default-state {
976 disable-pins {
977 pins = "gpio102";
978 function = "gpio";
979 output-low;
980 };
981
982 int-n-pins {
983 pins = "gpio104";
984 function = "gpio";
985 bias-disable;
986 };
987
988 reset-pins {
989 pins = "gpio105";
990 function = "gpio";
991 bias-disable;
992 };
993 };
994
995 nvme_reg_en: nvme-reg-en-state {
996 pins = "gpio135";
997 function = "gpio";
998 drive-strength = <2>;
999 bias-disable;
1000 };
1001
1002 pcie2a_default: pcie2a-default-state {
1003 clkreq-n-pins {
1004 pins = "gpio142";
1005 function = "pcie2a_clkreq";
1006 drive-strength = <2>;
1007 bias-pull-up;
1008 };
1009
1010 perst-n-pins {
1011 pins = "gpio143";
1012 function = "gpio";
1013 drive-strength = <2>;
1014 bias-disable;
1015 };
1016
1017 wake-n-pins {
1018 pins = "gpio145";
1019 function = "gpio";
1020 drive-strength = <2>;
1021 bias-pull-up;
1022 };
1023 };
1024
1025 pcie3a_default: pcie3a-default-state {
1026 clkreq-n-pins {
1027 pins = "gpio150";
1028 function = "pcie3a_clkreq";
1029 drive-strength = <2>;
1030 bias-pull-up;
1031 };
1032
1033 perst-n-pins {
1034 pins = "gpio151";
1035 function = "gpio";
1036 drive-strength = <2>;
1037 bias-disable;
1038 };
1039
1040 wake-n-pins {
1041 pins = "gpio148";
1042 function = "gpio";
1043 drive-strength = <2>;
1044 bias-pull-up;
1045 };
1046 };
1047
1048 pcie4_default: pcie4-default-state {
1049 clkreq-n-pins {
1050 pins = "gpio140";
1051 function = "pcie4_clkreq";
1052 drive-strength = <2>;
1053 bias-pull-up;
1054 };
1055
1056 perst-n-pins {
1057 pins = "gpio141";
1058 function = "gpio";
1059 drive-strength = <2>;
1060 bias-disable;
1061 };
1062
1063 wake-n-pins {
1064 pins = "gpio139";
1065 function = "gpio";
1066 drive-strength = <2>;
1067 bias-pull-up;
1068 };
1069 };
1070
1071 sdc2_default_state: sdc2-default-state {
1072 clk-pins {
1073 pins = "sdc2_clk";
1074 drive-strength = <16>;
1075 bias-disable;
1076 };
1077
1078 cmd-pins {
1079 pins = "sdc2_cmd";
1080 drive-strength = <16>;
1081 bias-pull-up;
1082 };
1083
1084 data-pins {
1085 pins = "sdc2_data";
1086 drive-strength = <16>;
1087 bias-pull-up;
1088 };
1089
1090 card-detect-pins {
1091 pins = "gpio131";
1092 function = "gpio";
1093 drive-strength = <2>;
1094 bias-disable;
1095 };
1096 };
1097
1098 sdc2_sleep_state: sdc2-sleep-state {
1099 clk-pins {
1100 pins = "sdc2_clk";
1101 drive-strength = <2>;
1102 bias-disable;
1103 };
1104
1105 cmd-pins {
1106 pins = "sdc2_cmd";
1107 drive-strength = <2>;
1108 bias-pull-up;
1109 };
1110
1111 data-pins {
1112 pins = "sdc2_data";
1113 drive-strength = <2>;
1114 bias-pull-up;
1115 };
1116
1117 card-detect-pins {
1118 pins = "gpio131";
1119 function = "gpio";
1120 drive-strength = <2>;
1121 bias-disable;
1122 };
1123 };
1124
1125 tpad_default: tpad-default-state {
1126 int-n-pins {
1127 pins = "gpio182";
1128 function = "gpio";
1129 bias-disable;
1130 };
1131 };
1132
1133 ts0_default: ts0-default-state {
1134 int-n-pins {
1135 pins = "gpio175";
1136 function = "gpio";
1137 bias-disable;
1138 };
1139
1140 reset-n-pins {
1141 pins = "gpio99";
1142 function = "gpio";
1143 bias-disable;
1144 };
1145 };
1146
1147 uart2_default: uart2-default-state {
1148 cts-pins {
1149 pins = "gpio121";
1150 function = "qup2";
1151 bias-bus-hold;
1152 };
1153
1154 rts-pins {
1155 pins = "gpio122";
1156 function = "qup2";
1157 drive-strength = <2>;
1158 bias-disable;
1159 };
1160
1161 rx-pins {
1162 pins = "gpio124";
1163 function = "qup2";
1164 bias-pull-up;
1165 };
1166
1167 tx-pins {
1168 pins = "gpio123";
1169 function = "qup2";
1170 drive-strength = <2>;
1171 bias-disable;
1172 };
1173 };
1174
1175 usb0_sbu_default: usb0-sbu-state {
1176 oe-n-pins {
1177 pins = "gpio101";
1178 function = "gpio";
1179 bias-disable;
1180 drive-strength = <16>;
1181 output-high;
1182 };
1183
1184 sel-pins {
1185 pins = "gpio164";
1186 function = "gpio";
1187 bias-disable;
1188 drive-strength = <16>;
1189 };
1190
1191 mode-pins {
1192 pins = "gpio167";
1193 function = "gpio";
1194 bias-disable;
1195 drive-strength = <16>;
1196 output-high;
1197 };
1198 };
1199
1200 usb1_sbu_default: usb1-sbu-state {
1201 oe-n-pins {
1202 pins = "gpio48";
1203 function = "gpio";
1204 bias-disable;
1205 drive-strength = <16>;
1206 output-high;
1207 };
1208
1209 sel-pins {
1210 pins = "gpio47";
1211 function = "gpio";
1212 bias-disable;
1213 drive-strength = <16>;
1214 };
1215
1216 mode-pins {
1217 pins = "gpio50";
1218 function = "gpio";
1219 bias-disable;
1220 drive-strength = <16>;
1221 output-high;
1222 };
1223 };
1224
1225 wlan_en: wlan-en-state {
1226 pins = "gpio134";
1227 function = "gpio";
1228 drive-strength = <16>;
1229 bias-disable;
1230 };
1231 };