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