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