1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 */ 5 6#include <dt-bindings/gpio/gpio.h> 7#include <dt-bindings/input/gpio-keys.h> 8#include <dt-bindings/input/input.h> 9#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 10#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 11 12#include "hamoa-pmics.dtsi" 13 14/ { 15 model = "Qualcomm Technologies, Inc. X1E80100 CRD"; 16 compatible = "qcom,x1e80100-crd", "qcom,x1e80100"; 17 18 aliases { 19 serial0 = &uart21; 20 }; 21 22 wcd938x: audio-codec { 23 compatible = "qcom,wcd9385-codec"; 24 25 pinctrl-names = "default"; 26 pinctrl-0 = <&wcd_default>; 27 28 qcom,micbias1-microvolt = <1800000>; 29 qcom,micbias2-microvolt = <1800000>; 30 qcom,micbias3-microvolt = <1800000>; 31 qcom,micbias4-microvolt = <1800000>; 32 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 33 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 34 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 35 qcom,rx-device = <&wcd_rx>; 36 qcom,tx-device = <&wcd_tx>; 37 38 reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>; 39 40 vdd-buck-supply = <&vreg_l15b_1p8>; 41 vdd-rxtx-supply = <&vreg_l15b_1p8>; 42 vdd-io-supply = <&vreg_l15b_1p8>; 43 vdd-mic-bias-supply = <&vreg_bob1>; 44 45 #sound-dai-cells = <1>; 46 }; 47 48 chosen { 49 stdout-path = "serial0:115200n8"; 50 }; 51 52 gpio-keys { 53 compatible = "gpio-keys"; 54 55 pinctrl-0 = <&hall_int_n_default>, <&kypd_vol_up_n>; 56 pinctrl-names = "default"; 57 58 key-vol-up { 59 label = "volume_up"; 60 gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; 61 linux,code = <KEY_VOLUMEUP>; 62 wakeup-source; 63 }; 64 65 switch-lid { 66 label = "lid"; 67 gpios = <&tlmm 92 GPIO_ACTIVE_LOW>; 68 linux,input-type = <EV_SW>; 69 linux,code = <SW_LID>; 70 wakeup-source; 71 wakeup-event-action = <EV_ACT_DEASSERTED>; 72 }; 73 }; 74 75 pmic-glink { 76 compatible = "qcom,x1e80100-pmic-glink", 77 "qcom,sm8550-pmic-glink", 78 "qcom,pmic-glink"; 79 #address-cells = <1>; 80 #size-cells = <0>; 81 orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, 82 <&tlmm 123 GPIO_ACTIVE_HIGH>, 83 <&tlmm 125 GPIO_ACTIVE_HIGH>; 84 85 nvmem-cells = <&charge_limit_en>, 86 <&charge_limit_end>, 87 <&charge_limit_delta>; 88 nvmem-cell-names = "charge_limit_en", 89 "charge_limit_end", 90 "charge_limit_delta"; 91 92 /* Left-side rear port */ 93 connector@0 { 94 compatible = "usb-c-connector"; 95 reg = <0>; 96 power-role = "dual"; 97 data-role = "dual"; 98 99 ports { 100 #address-cells = <1>; 101 #size-cells = <0>; 102 103 port@0 { 104 reg = <0>; 105 106 pmic_glink_ss0_hs_in: endpoint { 107 remote-endpoint = <&usb_1_ss0_dwc3_hs>; 108 }; 109 }; 110 111 port@1 { 112 reg = <1>; 113 114 pmic_glink_ss0_ss_in: endpoint { 115 remote-endpoint = <&retimer_ss0_ss_out>; 116 }; 117 }; 118 119 port@2 { 120 reg = <2>; 121 122 pmic_glink_ss0_con_sbu_in: endpoint { 123 remote-endpoint = <&retimer_ss0_con_sbu_out>; 124 }; 125 }; 126 }; 127 }; 128 129 /* Left-side front port */ 130 connector@1 { 131 compatible = "usb-c-connector"; 132 reg = <1>; 133 power-role = "dual"; 134 data-role = "dual"; 135 136 ports { 137 #address-cells = <1>; 138 #size-cells = <0>; 139 140 port@0 { 141 reg = <0>; 142 143 pmic_glink_ss1_hs_in: endpoint { 144 remote-endpoint = <&usb_1_ss1_dwc3_hs>; 145 }; 146 }; 147 148 port@1 { 149 reg = <1>; 150 151 pmic_glink_ss1_ss_in: endpoint { 152 remote-endpoint = <&retimer_ss1_ss_out>; 153 }; 154 }; 155 156 port@2 { 157 reg = <2>; 158 159 pmic_glink_ss1_con_sbu_in: endpoint { 160 remote-endpoint = <&retimer_ss1_con_sbu_out>; 161 }; 162 }; 163 }; 164 }; 165 166 /* Right-side port */ 167 connector@2 { 168 compatible = "usb-c-connector"; 169 reg = <2>; 170 power-role = "dual"; 171 data-role = "dual"; 172 173 ports { 174 #address-cells = <1>; 175 #size-cells = <0>; 176 177 port@0 { 178 reg = <0>; 179 180 pmic_glink_ss2_hs_in: endpoint { 181 remote-endpoint = <&usb_1_ss2_dwc3_hs>; 182 }; 183 }; 184 185 port@1 { 186 reg = <1>; 187 188 pmic_glink_ss2_ss_in: endpoint { 189 remote-endpoint = <&retimer_ss2_ss_out>; 190 }; 191 }; 192 193 port@2 { 194 reg = <2>; 195 196 pmic_glink_ss2_con_sbu_in: endpoint { 197 remote-endpoint = <&retimer_ss2_con_sbu_out>; 198 }; 199 }; 200 }; 201 }; 202 }; 203 204 reserved-memory { 205 linux,cma { 206 compatible = "shared-dma-pool"; 207 size = <0x0 0x8000000>; 208 reusable; 209 linux,cma-default; 210 }; 211 }; 212 213 sound { 214 compatible = "qcom,x1e80100-sndcard"; 215 model = "X1E80100-CRD"; 216 audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT", 217 "TweeterLeft IN", "WSA WSA_SPK2 OUT", 218 "WooferRight IN", "WSA2 WSA_SPK2 OUT", 219 "TweeterRight IN", "WSA2 WSA_SPK2 OUT", 220 "IN1_HPHL", "HPHL_OUT", 221 "IN2_HPHR", "HPHR_OUT", 222 "AMIC2", "MIC BIAS2", 223 "VA DMIC0", "MIC BIAS3", 224 "VA DMIC1", "MIC BIAS3", 225 "VA DMIC2", "MIC BIAS1", 226 "VA DMIC3", "MIC BIAS1", 227 "TX SWR_INPUT1", "ADC2_OUTPUT"; 228 229 displayport-0-dai-link { 230 link-name = "DisplayPort0 Playback"; 231 232 codec { 233 sound-dai = <&mdss_dp0>; 234 }; 235 236 cpu { 237 sound-dai = <&q6apmbedai DISPLAY_PORT_RX_0>; 238 }; 239 240 platform { 241 sound-dai = <&q6apm>; 242 }; 243 }; 244 245 displayport-1-dai-link { 246 link-name = "DisplayPort1 Playback"; 247 248 codec { 249 sound-dai = <&mdss_dp1>; 250 }; 251 252 cpu { 253 sound-dai = <&q6apmbedai DISPLAY_PORT_RX_1>; 254 }; 255 256 platform { 257 sound-dai = <&q6apm>; 258 }; 259 }; 260 261 wcd-playback-dai-link { 262 link-name = "WCD Playback"; 263 264 cpu { 265 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 266 }; 267 268 codec { 269 sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; 270 }; 271 272 platform { 273 sound-dai = <&q6apm>; 274 }; 275 }; 276 277 wcd-capture-dai-link { 278 link-name = "WCD Capture"; 279 280 cpu { 281 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 282 }; 283 284 codec { 285 sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>; 286 }; 287 288 platform { 289 sound-dai = <&q6apm>; 290 }; 291 }; 292 293 wsa-dai-link { 294 link-name = "WSA Playback"; 295 296 cpu { 297 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 298 }; 299 300 codec { 301 sound-dai = <&left_woofer>, <&left_tweeter>, 302 <&swr0 0>, <&lpass_wsamacro 0>, 303 <&right_woofer>, <&right_tweeter>, 304 <&swr3 0>, <&lpass_wsa2macro 0>; 305 }; 306 307 platform { 308 sound-dai = <&q6apm>; 309 }; 310 }; 311 312 va-dai-link { 313 link-name = "VA Capture"; 314 315 cpu { 316 sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; 317 }; 318 319 codec { 320 sound-dai = <&lpass_vamacro 0>; 321 }; 322 323 platform { 324 sound-dai = <&q6apm>; 325 }; 326 }; 327 }; 328 329 vreg_edp_3p3: regulator-edp-3p3 { 330 compatible = "regulator-fixed"; 331 332 regulator-name = "VREG_EDP_3P3"; 333 regulator-min-microvolt = <3300000>; 334 regulator-max-microvolt = <3300000>; 335 336 gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; 337 enable-active-high; 338 339 pinctrl-0 = <&edp_reg_en>; 340 pinctrl-names = "default"; 341 342 regulator-boot-on; 343 }; 344 345 vreg_misc_3p3: regulator-misc-3p3 { 346 compatible = "regulator-fixed"; 347 348 regulator-name = "VREG_MISC_3P3"; 349 regulator-min-microvolt = <3300000>; 350 regulator-max-microvolt = <3300000>; 351 352 gpio = <&pm8550ve_8_gpios 6 GPIO_ACTIVE_HIGH>; 353 enable-active-high; 354 355 pinctrl-names = "default"; 356 pinctrl-0 = <&misc_3p3_reg_en>; 357 358 regulator-boot-on; 359 regulator-always-on; 360 }; 361 362 vreg_nvme: regulator-nvme { 363 compatible = "regulator-fixed"; 364 365 regulator-name = "VREG_NVME_3P3"; 366 regulator-min-microvolt = <3300000>; 367 regulator-max-microvolt = <3300000>; 368 369 gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>; 370 enable-active-high; 371 372 pinctrl-names = "default"; 373 pinctrl-0 = <&nvme_reg_en>; 374 375 regulator-boot-on; 376 }; 377 378 vreg_rtmr0_1p15: regulator-rtmr0-1p15 { 379 compatible = "regulator-fixed"; 380 381 regulator-name = "VREG_RTMR0_1P15"; 382 regulator-min-microvolt = <1150000>; 383 regulator-max-microvolt = <1150000>; 384 385 gpio = <&pmc8380_5_gpios 8 GPIO_ACTIVE_HIGH>; 386 enable-active-high; 387 388 pinctrl-0 = <&usb0_pwr_1p15_reg_en>; 389 pinctrl-names = "default"; 390 391 regulator-boot-on; 392 }; 393 394 vreg_rtmr0_1p8: regulator-rtmr0-1p8 { 395 compatible = "regulator-fixed"; 396 397 regulator-name = "VREG_RTMR0_1P8"; 398 regulator-min-microvolt = <1800000>; 399 regulator-max-microvolt = <1800000>; 400 401 gpio = <&pm8550ve_9_gpios 8 GPIO_ACTIVE_HIGH>; 402 enable-active-high; 403 404 pinctrl-0 = <&usb0_1p8_reg_en>; 405 pinctrl-names = "default"; 406 407 regulator-boot-on; 408 }; 409 410 vreg_rtmr0_3p3: regulator-rtmr0-3p3 { 411 compatible = "regulator-fixed"; 412 413 regulator-name = "VREG_RTMR0_3P3"; 414 regulator-min-microvolt = <3300000>; 415 regulator-max-microvolt = <3300000>; 416 417 gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>; 418 enable-active-high; 419 420 pinctrl-0 = <&usb0_3p3_reg_en>; 421 pinctrl-names = "default"; 422 423 regulator-boot-on; 424 }; 425 426 vreg_rtmr1_1p15: regulator-rtmr1-1p15 { 427 compatible = "regulator-fixed"; 428 429 regulator-name = "VREG_RTMR1_1P15"; 430 regulator-min-microvolt = <1150000>; 431 regulator-max-microvolt = <1150000>; 432 433 gpio = <&tlmm 188 GPIO_ACTIVE_HIGH>; 434 enable-active-high; 435 436 pinctrl-0 = <&usb1_pwr_1p15_reg_en>; 437 pinctrl-names = "default"; 438 439 regulator-boot-on; 440 }; 441 442 vreg_rtmr1_1p8: regulator-rtmr1-1p8 { 443 compatible = "regulator-fixed"; 444 445 regulator-name = "VREG_RTMR1_1P8"; 446 regulator-min-microvolt = <1800000>; 447 regulator-max-microvolt = <1800000>; 448 449 gpio = <&tlmm 175 GPIO_ACTIVE_HIGH>; 450 enable-active-high; 451 452 pinctrl-0 = <&usb1_pwr_1p8_reg_en>; 453 pinctrl-names = "default"; 454 455 regulator-boot-on; 456 }; 457 458 vreg_rtmr1_3p3: regulator-rtmr1-3p3 { 459 compatible = "regulator-fixed"; 460 461 regulator-name = "VREG_RTMR1_3P3"; 462 regulator-min-microvolt = <3300000>; 463 regulator-max-microvolt = <3300000>; 464 465 gpio = <&tlmm 186 GPIO_ACTIVE_HIGH>; 466 enable-active-high; 467 468 pinctrl-0 = <&usb1_pwr_3p3_reg_en>; 469 pinctrl-names = "default"; 470 471 regulator-boot-on; 472 }; 473 474 vreg_rtmr2_1p15: regulator-rtmr2-1p15 { 475 compatible = "regulator-fixed"; 476 477 regulator-name = "VREG_RTMR2_1P15"; 478 regulator-min-microvolt = <1150000>; 479 regulator-max-microvolt = <1150000>; 480 481 gpio = <&tlmm 189 GPIO_ACTIVE_HIGH>; 482 enable-active-high; 483 484 pinctrl-0 = <&usb2_pwr_1p15_reg_en>; 485 pinctrl-names = "default"; 486 487 regulator-boot-on; 488 }; 489 490 vreg_rtmr2_1p8: regulator-rtmr2-1p8 { 491 compatible = "regulator-fixed"; 492 493 regulator-name = "VREG_RTMR2_1P8"; 494 regulator-min-microvolt = <1800000>; 495 regulator-max-microvolt = <1800000>; 496 497 gpio = <&tlmm 126 GPIO_ACTIVE_HIGH>; 498 enable-active-high; 499 500 pinctrl-0 = <&usb2_pwr_1p8_reg_en>; 501 pinctrl-names = "default"; 502 503 regulator-boot-on; 504 }; 505 506 vreg_rtmr2_3p3: regulator-rtmr2-3p3 { 507 compatible = "regulator-fixed"; 508 509 regulator-name = "VREG_RTMR2_3P3"; 510 regulator-min-microvolt = <3300000>; 511 regulator-max-microvolt = <3300000>; 512 513 gpio = <&tlmm 187 GPIO_ACTIVE_HIGH>; 514 enable-active-high; 515 516 pinctrl-0 = <&usb2_pwr_3p3_reg_en>; 517 pinctrl-names = "default"; 518 519 regulator-boot-on; 520 }; 521 522 vph_pwr: regulator-vph-pwr { 523 compatible = "regulator-fixed"; 524 525 regulator-name = "vph_pwr"; 526 regulator-min-microvolt = <3700000>; 527 regulator-max-microvolt = <3700000>; 528 529 regulator-always-on; 530 regulator-boot-on; 531 }; 532 533 vreg_wwan: regulator-wwan { 534 compatible = "regulator-fixed"; 535 536 regulator-name = "SDX_VPH_PWR"; 537 regulator-min-microvolt = <3300000>; 538 regulator-max-microvolt = <3300000>; 539 540 gpio = <&tlmm 221 GPIO_ACTIVE_HIGH>; 541 enable-active-high; 542 543 pinctrl-0 = <&wwan_sw_en>; 544 pinctrl-names = "default"; 545 546 regulator-boot-on; 547 }; 548}; 549 550&apps_rsc { 551 regulators-0 { 552 compatible = "qcom,pm8550-rpmh-regulators"; 553 qcom,pmic-id = "b"; 554 555 vdd-bob1-supply = <&vph_pwr>; 556 vdd-bob2-supply = <&vph_pwr>; 557 vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>; 558 vdd-l2-l13-l14-supply = <&vreg_bob1>; 559 vdd-l5-l16-supply = <&vreg_bob1>; 560 vdd-l6-l7-supply = <&vreg_bob2>; 561 vdd-l8-l9-supply = <&vreg_bob1>; 562 vdd-l12-supply = <&vreg_s5j_1p2>; 563 vdd-l15-supply = <&vreg_s4c_1p8>; 564 vdd-l17-supply = <&vreg_bob2>; 565 566 vreg_bob1: bob1 { 567 regulator-name = "vreg_bob1"; 568 regulator-min-microvolt = <3008000>; 569 regulator-max-microvolt = <3960000>; 570 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 571 }; 572 573 vreg_bob2: bob2 { 574 regulator-name = "vreg_bob2"; 575 regulator-min-microvolt = <2504000>; 576 regulator-max-microvolt = <3008000>; 577 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 578 }; 579 580 vreg_l1b_1p8: ldo1 { 581 regulator-name = "vreg_l1b_1p8"; 582 regulator-min-microvolt = <1800000>; 583 regulator-max-microvolt = <1800000>; 584 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 585 }; 586 587 vreg_l2b_3p0: ldo2 { 588 regulator-name = "vreg_l2b_3p0"; 589 regulator-min-microvolt = <3072000>; 590 regulator-max-microvolt = <3100000>; 591 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 592 }; 593 594 vreg_l4b_1p8: ldo4 { 595 regulator-name = "vreg_l4b_1p8"; 596 regulator-min-microvolt = <1800000>; 597 regulator-max-microvolt = <1800000>; 598 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 599 }; 600 601 vreg_l5b_3p0: ldo5 { 602 regulator-name = "vreg_l5b_3p0"; 603 regulator-min-microvolt = <3000000>; 604 regulator-max-microvolt = <3000000>; 605 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 606 }; 607 608 vreg_l6b_1p8: ldo6 { 609 regulator-name = "vreg_l6b_1p8"; 610 regulator-min-microvolt = <1800000>; 611 regulator-max-microvolt = <2960000>; 612 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 613 }; 614 615 vreg_l7b_2p8: ldo7 { 616 regulator-name = "vreg_l7b_2p8"; 617 regulator-min-microvolt = <2800000>; 618 regulator-max-microvolt = <2800000>; 619 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 620 }; 621 622 vreg_l8b_3p0: ldo8 { 623 regulator-name = "vreg_l8b_3p0"; 624 regulator-min-microvolt = <3072000>; 625 regulator-max-microvolt = <3072000>; 626 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 627 }; 628 629 vreg_l9b_2p9: ldo9 { 630 regulator-name = "vreg_l9b_2p9"; 631 regulator-min-microvolt = <2960000>; 632 regulator-max-microvolt = <2960000>; 633 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 634 }; 635 636 vreg_l10b_1p8: ldo10 { 637 regulator-name = "vreg_l10b_1p8"; 638 regulator-min-microvolt = <1800000>; 639 regulator-max-microvolt = <1800000>; 640 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 641 }; 642 643 vreg_l12b_1p2: ldo12 { 644 regulator-name = "vreg_l12b_1p2"; 645 regulator-min-microvolt = <1200000>; 646 regulator-max-microvolt = <1200000>; 647 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 648 regulator-always-on; 649 }; 650 651 vreg_l13b_3p0: ldo13 { 652 regulator-name = "vreg_l13b_3p0"; 653 regulator-min-microvolt = <3072000>; 654 regulator-max-microvolt = <3100000>; 655 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 656 }; 657 658 vreg_l14b_3p0: ldo14 { 659 regulator-name = "vreg_l14b_3p0"; 660 regulator-min-microvolt = <3072000>; 661 regulator-max-microvolt = <3072000>; 662 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 663 }; 664 665 vreg_l15b_1p8: ldo15 { 666 regulator-name = "vreg_l15b_1p8"; 667 regulator-min-microvolt = <1800000>; 668 regulator-max-microvolt = <1800000>; 669 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 670 regulator-always-on; 671 }; 672 673 vreg_l16b_2p9: ldo16 { 674 regulator-name = "vreg_l16b_2p9"; 675 regulator-min-microvolt = <2912000>; 676 regulator-max-microvolt = <2912000>; 677 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 678 }; 679 680 vreg_l17b_2p5: ldo17 { 681 regulator-name = "vreg_l17b_2p5"; 682 regulator-min-microvolt = <2504000>; 683 regulator-max-microvolt = <2504000>; 684 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 685 }; 686 }; 687 688 regulators-1 { 689 compatible = "qcom,pm8550ve-rpmh-regulators"; 690 qcom,pmic-id = "c"; 691 692 vdd-l1-supply = <&vreg_s5j_1p2>; 693 vdd-l2-supply = <&vreg_s1f_0p7>; 694 vdd-l3-supply = <&vreg_s1f_0p7>; 695 vdd-s4-supply = <&vph_pwr>; 696 697 vreg_s4c_1p8: smps4 { 698 regulator-name = "vreg_s4c_1p8"; 699 regulator-min-microvolt = <1856000>; 700 regulator-max-microvolt = <2000000>; 701 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 702 }; 703 704 vreg_l1c_1p2: ldo1 { 705 regulator-name = "vreg_l1c_1p2"; 706 regulator-min-microvolt = <1200000>; 707 regulator-max-microvolt = <1200000>; 708 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 709 }; 710 711 vreg_l2c_0p8: ldo2 { 712 regulator-name = "vreg_l2c_0p8"; 713 regulator-min-microvolt = <880000>; 714 regulator-max-microvolt = <920000>; 715 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 716 }; 717 718 vreg_l3c_0p8: ldo3 { 719 regulator-name = "vreg_l3c_0p8"; 720 regulator-min-microvolt = <880000>; 721 regulator-max-microvolt = <920000>; 722 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 723 }; 724 }; 725 726 regulators-2 { 727 compatible = "qcom,pmc8380-rpmh-regulators"; 728 qcom,pmic-id = "d"; 729 730 vdd-l1-supply = <&vreg_s1f_0p7>; 731 vdd-l2-supply = <&vreg_s1f_0p7>; 732 vdd-l3-supply = <&vreg_s4c_1p8>; 733 vdd-s1-supply = <&vph_pwr>; 734 735 vreg_l1d_0p8: ldo1 { 736 regulator-name = "vreg_l1d_0p8"; 737 regulator-min-microvolt = <880000>; 738 regulator-max-microvolt = <920000>; 739 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 740 }; 741 742 vreg_l2d_0p9: ldo2 { 743 regulator-name = "vreg_l2d_0p9"; 744 regulator-min-microvolt = <912000>; 745 regulator-max-microvolt = <920000>; 746 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 747 }; 748 749 vreg_l3d_1p8: ldo3 { 750 regulator-name = "vreg_l3d_1p8"; 751 regulator-min-microvolt = <1800000>; 752 regulator-max-microvolt = <1800000>; 753 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 754 }; 755 }; 756 757 regulators-3 { 758 compatible = "qcom,pmc8380-rpmh-regulators"; 759 qcom,pmic-id = "e"; 760 761 vdd-l2-supply = <&vreg_s1f_0p7>; 762 vdd-l3-supply = <&vreg_s5j_1p2>; 763 764 vreg_l2e_0p8: ldo2 { 765 regulator-name = "vreg_l2e_0p8"; 766 regulator-min-microvolt = <880000>; 767 regulator-max-microvolt = <920000>; 768 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 769 }; 770 771 vreg_l3e_1p2: ldo3 { 772 regulator-name = "vreg_l3e_1p2"; 773 regulator-min-microvolt = <1200000>; 774 regulator-max-microvolt = <1200000>; 775 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 776 }; 777 }; 778 779 regulators-4 { 780 compatible = "qcom,pmc8380-rpmh-regulators"; 781 qcom,pmic-id = "f"; 782 783 vdd-l1-supply = <&vreg_s5j_1p2>; 784 vdd-l2-supply = <&vreg_s5j_1p2>; 785 vdd-l3-supply = <&vreg_s5j_1p2>; 786 vdd-s1-supply = <&vph_pwr>; 787 788 vreg_s1f_0p7: smps1 { 789 regulator-name = "vreg_s1f_0p7"; 790 regulator-min-microvolt = <700000>; 791 regulator-max-microvolt = <1100000>; 792 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 793 }; 794 795 vreg_l1f_1p0: ldo1 { 796 regulator-name = "vreg_l1f_1p0"; 797 regulator-min-microvolt = <1024000>; 798 regulator-max-microvolt = <1024000>; 799 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 800 }; 801 802 vreg_l2f_1p0: ldo2 { 803 regulator-name = "vreg_l2f_1p0"; 804 regulator-min-microvolt = <1024000>; 805 regulator-max-microvolt = <1024000>; 806 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 807 }; 808 809 vreg_l3f_1p0: ldo3 { 810 regulator-name = "vreg_l3f_1p0"; 811 regulator-min-microvolt = <1024000>; 812 regulator-max-microvolt = <1024000>; 813 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 814 }; 815 }; 816 817 regulators-6 { 818 compatible = "qcom,pm8550ve-rpmh-regulators"; 819 qcom,pmic-id = "i"; 820 821 vdd-l1-supply = <&vreg_s4c_1p8>; 822 vdd-l2-supply = <&vreg_s5j_1p2>; 823 vdd-l3-supply = <&vreg_s1f_0p7>; 824 vdd-s1-supply = <&vph_pwr>; 825 vdd-s2-supply = <&vph_pwr>; 826 827 vreg_s1i_0p9: smps1 { 828 regulator-name = "vreg_s1i_0p9"; 829 regulator-min-microvolt = <900000>; 830 regulator-max-microvolt = <920000>; 831 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 832 }; 833 834 vreg_s2i_1p0: smps2 { 835 regulator-name = "vreg_s2i_1p0"; 836 regulator-min-microvolt = <1000000>; 837 regulator-max-microvolt = <1100000>; 838 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 839 }; 840 841 vreg_l1i_1p8: ldo1 { 842 regulator-name = "vreg_l1i_1p8"; 843 regulator-min-microvolt = <1800000>; 844 regulator-max-microvolt = <1800000>; 845 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 846 }; 847 848 vreg_l2i_1p2: ldo2 { 849 regulator-name = "vreg_l2i_1p2"; 850 regulator-min-microvolt = <1200000>; 851 regulator-max-microvolt = <1200000>; 852 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 853 }; 854 855 vreg_l3i_0p8: ldo3 { 856 regulator-name = "vreg_l3i_0p8"; 857 regulator-min-microvolt = <880000>; 858 regulator-max-microvolt = <920000>; 859 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 860 }; 861 }; 862 863 regulators-7 { 864 compatible = "qcom,pm8550ve-rpmh-regulators"; 865 qcom,pmic-id = "j"; 866 867 vdd-l1-supply = <&vreg_s1f_0p7>; 868 vdd-l2-supply = <&vreg_s5j_1p2>; 869 vdd-l3-supply = <&vreg_s1f_0p7>; 870 vdd-s5-supply = <&vph_pwr>; 871 872 vreg_s5j_1p2: smps5 { 873 regulator-name = "vreg_s5j_1p2"; 874 regulator-min-microvolt = <1256000>; 875 regulator-max-microvolt = <1304000>; 876 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 877 }; 878 879 vreg_l1j_0p8: ldo1 { 880 regulator-name = "vreg_l1j_0p8"; 881 regulator-min-microvolt = <880000>; 882 regulator-max-microvolt = <920000>; 883 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 884 }; 885 886 vreg_l2j_1p2: ldo2 { 887 regulator-name = "vreg_l2j_1p2"; 888 regulator-min-microvolt = <1256000>; 889 regulator-max-microvolt = <1256000>; 890 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 891 }; 892 893 vreg_l3j_0p8: ldo3 { 894 regulator-name = "vreg_l3j_0p8"; 895 regulator-min-microvolt = <880000>; 896 regulator-max-microvolt = <920000>; 897 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 898 }; 899 }; 900}; 901 902&gpu { 903 status = "okay"; 904}; 905 906&i2c0 { 907 clock-frequency = <400000>; 908 909 status = "okay"; 910 911 touchpad@15 { 912 compatible = "hid-over-i2c"; 913 reg = <0x15>; 914 915 hid-descr-addr = <0x1>; 916 interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>; 917 918 vdd-supply = <&vreg_misc_3p3>; 919 vddl-supply = <&vreg_l12b_1p2>; 920 921 pinctrl-0 = <&tpad_default>; 922 pinctrl-names = "default"; 923 924 wakeup-source; 925 }; 926 927 keyboard@3a { 928 compatible = "hid-over-i2c"; 929 reg = <0x3a>; 930 931 hid-descr-addr = <0x1>; 932 interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>; 933 934 vdd-supply = <&vreg_misc_3p3>; 935 vddl-supply = <&vreg_l12b_1p2>; 936 937 pinctrl-0 = <&kybd_default>; 938 pinctrl-names = "default"; 939 940 wakeup-source; 941 }; 942}; 943 944&i2c1 { 945 clock-frequency = <400000>; 946 947 status = "okay"; 948 949 typec-mux@8 { 950 compatible = "parade,ps8830"; 951 reg = <0x08>; 952 953 clocks = <&rpmhcc RPMH_RF_CLK5>; 954 955 vdd-supply = <&vreg_rtmr2_1p15>; 956 vdd33-supply = <&vreg_rtmr2_3p3>; 957 vdd33-cap-supply = <&vreg_rtmr2_3p3>; 958 vddar-supply = <&vreg_rtmr2_1p15>; 959 vddat-supply = <&vreg_rtmr2_1p15>; 960 vddio-supply = <&vreg_rtmr2_1p8>; 961 962 reset-gpios = <&tlmm 185 GPIO_ACTIVE_LOW>; 963 964 pinctrl-0 = <&rtmr2_default>; 965 pinctrl-names = "default"; 966 967 orientation-switch; 968 retimer-switch; 969 970 ports { 971 #address-cells = <1>; 972 #size-cells = <0>; 973 974 port@0 { 975 reg = <0>; 976 977 retimer_ss2_ss_out: endpoint { 978 remote-endpoint = <&pmic_glink_ss2_ss_in>; 979 }; 980 }; 981 982 port@1 { 983 reg = <1>; 984 985 retimer_ss2_ss_in: endpoint { 986 remote-endpoint = <&usb_1_ss2_qmpphy_out>; 987 }; 988 }; 989 990 port@2 { 991 reg = <2>; 992 993 retimer_ss2_con_sbu_out: endpoint { 994 remote-endpoint = <&pmic_glink_ss2_con_sbu_in>; 995 }; 996 }; 997 }; 998 }; 999}; 1000 1001&i2c3 { 1002 clock-frequency = <400000>; 1003 1004 status = "okay"; 1005 1006 typec-mux@8 { 1007 compatible = "parade,ps8830"; 1008 reg = <0x08>; 1009 1010 clocks = <&rpmhcc RPMH_RF_CLK3>; 1011 1012 vdd-supply = <&vreg_rtmr0_1p15>; 1013 vdd33-supply = <&vreg_rtmr0_3p3>; 1014 vdd33-cap-supply = <&vreg_rtmr0_3p3>; 1015 vddar-supply = <&vreg_rtmr0_1p15>; 1016 vddat-supply = <&vreg_rtmr0_1p15>; 1017 vddio-supply = <&vreg_rtmr0_1p8>; 1018 1019 reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>; 1020 1021 pinctrl-0 = <&rtmr0_default>; 1022 pinctrl-names = "default"; 1023 1024 retimer-switch; 1025 orientation-switch; 1026 1027 ports { 1028 #address-cells = <1>; 1029 #size-cells = <0>; 1030 1031 port@0 { 1032 reg = <0>; 1033 1034 retimer_ss0_ss_out: endpoint { 1035 remote-endpoint = <&pmic_glink_ss0_ss_in>; 1036 }; 1037 }; 1038 1039 port@1 { 1040 reg = <1>; 1041 1042 retimer_ss0_ss_in: endpoint { 1043 remote-endpoint = <&usb_1_ss0_qmpphy_out>; 1044 }; 1045 }; 1046 1047 port@2 { 1048 reg = <2>; 1049 1050 retimer_ss0_con_sbu_out: endpoint { 1051 remote-endpoint = <&pmic_glink_ss0_con_sbu_in>; 1052 }; 1053 }; 1054 }; 1055 }; 1056}; 1057 1058&i2c5 { 1059 clock-frequency = <400000>; 1060 1061 status = "okay"; 1062 1063 eusb6_repeater: redriver@4f { 1064 compatible = "nxp,ptn3222"; 1065 reg = <0x4f>; 1066 1067 vdd1v8-supply = <&vreg_l4b_1p8>; 1068 vdd3v3-supply = <&vreg_l13b_3p0>; 1069 1070 reset-gpios = <&tlmm 184 GPIO_ACTIVE_LOW>; 1071 1072 pinctrl-0 = <&eusb6_reset_n>; 1073 pinctrl-names = "default"; 1074 1075 #phy-cells = <0>; 1076 }; 1077}; 1078 1079&i2c7 { 1080 clock-frequency = <400000>; 1081 1082 status = "okay"; 1083 1084 typec-mux@8 { 1085 compatible = "parade,ps8830"; 1086 reg = <0x8>; 1087 1088 clocks = <&rpmhcc RPMH_RF_CLK4>; 1089 1090 vdd-supply = <&vreg_rtmr1_1p15>; 1091 vdd33-supply = <&vreg_rtmr1_3p3>; 1092 vdd33-cap-supply = <&vreg_rtmr1_3p3>; 1093 vddar-supply = <&vreg_rtmr1_1p15>; 1094 vddat-supply = <&vreg_rtmr1_1p15>; 1095 vddio-supply = <&vreg_rtmr1_1p8>; 1096 1097 reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>; 1098 1099 pinctrl-0 = <&rtmr1_default>; 1100 pinctrl-names = "default"; 1101 1102 retimer-switch; 1103 orientation-switch; 1104 1105 ports { 1106 #address-cells = <1>; 1107 #size-cells = <0>; 1108 1109 port@0 { 1110 reg = <0>; 1111 1112 retimer_ss1_ss_out: endpoint { 1113 remote-endpoint = <&pmic_glink_ss1_ss_in>; 1114 }; 1115 }; 1116 1117 port@1 { 1118 reg = <1>; 1119 1120 retimer_ss1_ss_in: endpoint { 1121 remote-endpoint = <&usb_1_ss1_qmpphy_out>; 1122 }; 1123 }; 1124 1125 port@2 { 1126 reg = <2>; 1127 1128 retimer_ss1_con_sbu_out: endpoint { 1129 remote-endpoint = <&pmic_glink_ss1_con_sbu_in>; 1130 }; 1131 }; 1132 }; 1133 }; 1134}; 1135 1136&i2c8 { 1137 clock-frequency = <400000>; 1138 1139 status = "okay"; 1140 1141 touchscreen@10 { 1142 compatible = "hid-over-i2c"; 1143 reg = <0x10>; 1144 1145 hid-descr-addr = <0x1>; 1146 interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>; 1147 1148 vdd-supply = <&vreg_misc_3p3>; 1149 vddl-supply = <&vreg_l15b_1p8>; 1150 1151 pinctrl-0 = <&ts0_default>; 1152 pinctrl-names = "default"; 1153 }; 1154}; 1155 1156&lpass_tlmm { 1157 spkr_01_sd_n_active: spkr-01-sd-n-active-state { 1158 pins = "gpio12"; 1159 function = "gpio"; 1160 drive-strength = <16>; 1161 bias-disable; 1162 output-low; 1163 }; 1164 1165 spkr_23_sd_n_active: spkr-23-sd-n-active-state { 1166 pins = "gpio13"; 1167 function = "gpio"; 1168 drive-strength = <16>; 1169 bias-disable; 1170 output-low; 1171 }; 1172}; 1173 1174&lpass_vamacro { 1175 pinctrl-0 = <&dmic01_default>, <&dmic23_default>; 1176 pinctrl-names = "default"; 1177 1178 vdd-micb-supply = <&vreg_l1b_1p8>; 1179 qcom,dmic-sample-rate = <4800000>; 1180}; 1181 1182&mdss { 1183 status = "okay"; 1184}; 1185 1186&mdss_dp0 { 1187 status = "okay"; 1188}; 1189 1190&mdss_dp0_out { 1191 link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 1192}; 1193 1194&mdss_dp1 { 1195 status = "okay"; 1196}; 1197 1198&mdss_dp1_out { 1199 link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 1200}; 1201 1202&mdss_dp2 { 1203 status = "okay"; 1204}; 1205 1206&mdss_dp2_out { 1207 link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 1208}; 1209 1210&mdss_dp3 { 1211 /delete-property/ #sound-dai-cells; 1212 1213 pinctrl-0 = <&edp0_hpd_default>; 1214 pinctrl-names = "default"; 1215 1216 status = "okay"; 1217 1218 aux-bus { 1219 panel { 1220 compatible = "samsung,atna45af01", "samsung,atna33xc20"; 1221 enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>; 1222 power-supply = <&vreg_edp_3p3>; 1223 1224 pinctrl-0 = <&edp_bl_en>; 1225 pinctrl-names = "default"; 1226 1227 port { 1228 edp_panel_in: endpoint { 1229 remote-endpoint = <&mdss_dp3_out>; 1230 }; 1231 }; 1232 }; 1233 }; 1234}; 1235 1236&mdss_dp3_out { 1237 data-lanes = <0 1 2 3>; 1238 link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 1239 1240 remote-endpoint = <&edp_panel_in>; 1241}; 1242 1243&mdss_dp3_phy { 1244 vdda-phy-supply = <&vreg_l3j_0p8>; 1245 vdda-pll-supply = <&vreg_l2j_1p2>; 1246 1247 status = "okay"; 1248}; 1249 1250&pcie4 { 1251 pinctrl-0 = <&pcie4_default>; 1252 pinctrl-names = "default"; 1253 1254 status = "okay"; 1255}; 1256 1257&pcie4_port0 { 1258 reset-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>; 1259 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; 1260}; 1261 1262&pcie4_phy { 1263 vdda-phy-supply = <&vreg_l3i_0p8>; 1264 vdda-pll-supply = <&vreg_l3e_1p2>; 1265 1266 status = "okay"; 1267}; 1268 1269&pcie5 { 1270 vddpe-3v3-supply = <&vreg_wwan>; 1271 1272 pinctrl-0 = <&pcie5_default>; 1273 pinctrl-names = "default"; 1274 1275 status = "okay"; 1276}; 1277 1278&pcie5_phy { 1279 vdda-phy-supply = <&vreg_l3i_0p8>; 1280 vdda-pll-supply = <&vreg_l3e_1p2>; 1281 1282 status = "okay"; 1283}; 1284 1285&pcie5_port0 { 1286 reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; 1287 wake-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; 1288}; 1289 1290&pcie6a { 1291 vddpe-3v3-supply = <&vreg_nvme>; 1292 1293 pinctrl-names = "default"; 1294 pinctrl-0 = <&pcie6a_default>; 1295 1296 status = "okay"; 1297}; 1298 1299&pcie6a_phy { 1300 vdda-phy-supply = <&vreg_l1d_0p8>; 1301 vdda-pll-supply = <&vreg_l2j_1p2>; 1302 1303 status = "okay"; 1304}; 1305 1306&pcie6a_port0 { 1307 reset-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; 1308 wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>; 1309}; 1310 1311&pm8550_gpios { 1312 kypd_vol_up_n: kypd-vol-up-n-state { 1313 pins = "gpio6"; 1314 function = "normal"; 1315 power-source = <1>; /* 1.8 V */ 1316 bias-pull-up; 1317 input-enable; 1318 }; 1319 1320 rtmr0_default: rtmr0-reset-n-active-state { 1321 pins = "gpio10"; 1322 function = "normal"; 1323 power-source = <1>; /* 1.8V */ 1324 bias-disable; 1325 input-disable; 1326 output-enable; 1327 }; 1328 1329 usb0_3p3_reg_en: usb0-3p3-reg-en-state { 1330 pins = "gpio11"; 1331 function = "normal"; 1332 power-source = <1>; /* 1.8V */ 1333 bias-disable; 1334 input-disable; 1335 output-enable; 1336 }; 1337}; 1338 1339&pm8550ve_8_gpios { 1340 misc_3p3_reg_en: misc-3p3-reg-en-state { 1341 pins = "gpio6"; 1342 function = "normal"; 1343 bias-disable; 1344 input-disable; 1345 output-enable; 1346 drive-push-pull; 1347 power-source = <1>; /* 1.8 V */ 1348 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; 1349 }; 1350}; 1351 1352&pm8550ve_9_gpios { 1353 usb0_1p8_reg_en: usb0-1p8-reg-en-state { 1354 pins = "gpio8"; 1355 function = "normal"; 1356 power-source = <1>; /* 1.8V */ 1357 bias-disable; 1358 input-disable; 1359 output-enable; 1360 }; 1361}; 1362 1363&pmc8380_3_gpios { 1364 edp_bl_en: edp-bl-en-state { 1365 pins = "gpio4"; 1366 function = "normal"; 1367 power-source = <1>; /* 1.8V */ 1368 input-disable; 1369 output-enable; 1370 }; 1371}; 1372 1373&pmc8380_5_gpios { 1374 usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state { 1375 pins = "gpio8"; 1376 function = "normal"; 1377 power-source = <1>; /* 1.8V */ 1378 bias-disable; 1379 input-disable; 1380 output-enable; 1381 }; 1382}; 1383 1384&qupv3_0 { 1385 status = "okay"; 1386}; 1387 1388&qupv3_1 { 1389 status = "okay"; 1390}; 1391 1392&qupv3_2 { 1393 status = "okay"; 1394}; 1395 1396&remoteproc_adsp { 1397 firmware-name = "qcom/x1e80100/adsp.mbn", 1398 "qcom/x1e80100/adsp_dtb.mbn"; 1399 1400 status = "okay"; 1401}; 1402 1403&remoteproc_cdsp { 1404 firmware-name = "qcom/x1e80100/cdsp.mbn", 1405 "qcom/x1e80100/cdsp_dtb.mbn"; 1406 1407 status = "okay"; 1408}; 1409 1410&smb2360_0 { 1411 status = "okay"; 1412}; 1413 1414&smb2360_0_eusb2_repeater { 1415 vdd18-supply = <&vreg_l3d_1p8>; 1416 vdd3-supply = <&vreg_l2b_3p0>; 1417}; 1418 1419&smb2360_1 { 1420 status = "okay"; 1421}; 1422 1423&smb2360_1_eusb2_repeater { 1424 vdd18-supply = <&vreg_l3d_1p8>; 1425 vdd3-supply = <&vreg_l14b_3p0>; 1426}; 1427 1428&smb2360_2 { 1429 status = "okay"; 1430}; 1431 1432&smb2360_2_eusb2_repeater { 1433 vdd18-supply = <&vreg_l3d_1p8>; 1434 vdd3-supply = <&vreg_l8b_3p0>; 1435}; 1436 1437&swr0 { 1438 status = "okay"; 1439 1440 pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>; 1441 pinctrl-names = "default"; 1442 1443 /* WSA8845, Left Woofer */ 1444 left_woofer: speaker@0,0 { 1445 compatible = "sdw20217020400"; 1446 reg = <0 0>; 1447 reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; 1448 #sound-dai-cells = <0>; 1449 sound-name-prefix = "WooferLeft"; 1450 vdd-1p8-supply = <&vreg_l15b_1p8>; 1451 vdd-io-supply = <&vreg_l12b_1p2>; 1452 qcom,port-mapping = <1 2 3 7 10 13>; 1453 }; 1454 1455 /* WSA8845, Left Tweeter */ 1456 left_tweeter: speaker@0,1 { 1457 compatible = "sdw20217020400"; 1458 reg = <0 1>; 1459 reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; 1460 #sound-dai-cells = <0>; 1461 sound-name-prefix = "TweeterLeft"; 1462 vdd-1p8-supply = <&vreg_l15b_1p8>; 1463 vdd-io-supply = <&vreg_l12b_1p2>; 1464 qcom,port-mapping = <4 5 6 7 11 13>; 1465 }; 1466}; 1467 1468&swr1 { 1469 status = "okay"; 1470 1471 /* WCD9385 RX */ 1472 wcd_rx: codec@0,4 { 1473 compatible = "sdw20217010d00"; 1474 reg = <0 4>; 1475 qcom,rx-port-mapping = <1 2 3 4 5>; 1476 }; 1477}; 1478 1479&swr2 { 1480 status = "okay"; 1481 1482 /* WCD9385 TX */ 1483 wcd_tx: codec@0,3 { 1484 compatible = "sdw20217010d00"; 1485 reg = <0 3>; 1486 qcom,tx-port-mapping = <2 2 3 4>; 1487 }; 1488}; 1489 1490&swr3 { 1491 status = "okay"; 1492 1493 pinctrl-0 = <&wsa2_swr_active>, <&spkr_23_sd_n_active>; 1494 pinctrl-names = "default"; 1495 1496 /* WSA8845, Right Woofer */ 1497 right_woofer: speaker@0,0 { 1498 compatible = "sdw20217020400"; 1499 reg = <0 0>; 1500 reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; 1501 #sound-dai-cells = <0>; 1502 sound-name-prefix = "WooferRight"; 1503 vdd-1p8-supply = <&vreg_l15b_1p8>; 1504 vdd-io-supply = <&vreg_l12b_1p2>; 1505 qcom,port-mapping = <1 2 3 7 10 13>; 1506 }; 1507 1508 /* WSA8845, Right Tweeter */ 1509 right_tweeter: speaker@0,1 { 1510 compatible = "sdw20217020400"; 1511 reg = <0 1>; 1512 reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; 1513 #sound-dai-cells = <0>; 1514 sound-name-prefix = "TweeterRight"; 1515 vdd-1p8-supply = <&vreg_l15b_1p8>; 1516 vdd-io-supply = <&vreg_l12b_1p2>; 1517 qcom,port-mapping = <4 5 6 7 11 13>; 1518 }; 1519}; 1520 1521&tlmm { 1522 gpio-reserved-ranges = <34 2>, /* Unused */ 1523 <44 4>, /* SPI (TPM) */ 1524 <238 1>; /* UFS Reset */ 1525 1526 edp_reg_en: edp-reg-en-state { 1527 pins = "gpio70"; 1528 function = "gpio"; 1529 drive-strength = <16>; 1530 bias-disable; 1531 }; 1532 1533 eusb6_reset_n: eusb6-reset-n-state { 1534 pins = "gpio184"; 1535 function = "gpio"; 1536 drive-strength = <2>; 1537 bias-disable; 1538 output-low; 1539 }; 1540 1541 hall_int_n_default: hall-int-n-state { 1542 pins = "gpio92"; 1543 function = "gpio"; 1544 bias-disable; 1545 }; 1546 1547 kybd_default: kybd-default-state { 1548 pins = "gpio67"; 1549 function = "gpio"; 1550 bias-disable; 1551 }; 1552 1553 nvme_reg_en: nvme-reg-en-state { 1554 pins = "gpio18"; 1555 function = "gpio"; 1556 drive-strength = <2>; 1557 bias-disable; 1558 }; 1559 1560 pcie4_default: pcie4-default-state { 1561 clkreq-n-pins { 1562 pins = "gpio147"; 1563 function = "pcie4_clk"; 1564 drive-strength = <2>; 1565 bias-pull-up; 1566 }; 1567 1568 perst-n-pins { 1569 pins = "gpio146"; 1570 function = "gpio"; 1571 drive-strength = <2>; 1572 bias-disable; 1573 }; 1574 1575 wake-n-pins { 1576 pins = "gpio148"; 1577 function = "gpio"; 1578 drive-strength = <2>; 1579 bias-pull-up; 1580 }; 1581 }; 1582 1583 pcie5_default: pcie5-default-state { 1584 clkreq-n-pins { 1585 pins = "gpio150"; 1586 function = "pcie5_clk"; 1587 drive-strength = <2>; 1588 bias-pull-up; 1589 }; 1590 1591 perst-n-pins { 1592 pins = "gpio149"; 1593 function = "gpio"; 1594 drive-strength = <2>; 1595 bias-disable; 1596 }; 1597 1598 wake-n-pins { 1599 pins = "gpio151"; 1600 function = "gpio"; 1601 drive-strength = <2>; 1602 bias-pull-up; 1603 }; 1604 }; 1605 1606 pcie6a_default: pcie6a-default-state { 1607 clkreq-n-pins { 1608 pins = "gpio153"; 1609 function = "pcie6a_clk"; 1610 drive-strength = <2>; 1611 bias-pull-up; 1612 }; 1613 1614 perst-n-pins { 1615 pins = "gpio152"; 1616 function = "gpio"; 1617 drive-strength = <2>; 1618 bias-disable; 1619 }; 1620 1621 wake-n-pins { 1622 pins = "gpio154"; 1623 function = "gpio"; 1624 drive-strength = <2>; 1625 bias-pull-up; 1626 }; 1627 }; 1628 1629 rtmr1_default: rtmr1-reset-n-active-state { 1630 pins = "gpio176"; 1631 function = "gpio"; 1632 drive-strength = <2>; 1633 bias-disable; 1634 }; 1635 1636 rtmr2_default: rtmr2-reset-n-active-state { 1637 pins = "gpio185"; 1638 function = "gpio"; 1639 drive-strength = <2>; 1640 bias-disable; 1641 }; 1642 1643 tpad_default: tpad-default-state { 1644 pins = "gpio3"; 1645 function = "gpio"; 1646 bias-disable; 1647 }; 1648 1649 ts0_default: ts0-default-state { 1650 int-n-pins { 1651 pins = "gpio51"; 1652 function = "gpio"; 1653 bias-disable; 1654 }; 1655 1656 reset-n-pins { 1657 pins = "gpio48"; 1658 function = "gpio"; 1659 output-high; 1660 drive-strength = <16>; 1661 }; 1662 }; 1663 1664 usb1_pwr_1p15_reg_en: usb1-pwr-1p15-reg-en-state { 1665 pins = "gpio188"; 1666 function = "gpio"; 1667 drive-strength = <2>; 1668 bias-disable; 1669 }; 1670 1671 usb1_pwr_1p8_reg_en: usb1-pwr-1p8-reg-en-state { 1672 pins = "gpio175"; 1673 function = "gpio"; 1674 drive-strength = <2>; 1675 bias-disable; 1676 }; 1677 1678 usb1_pwr_3p3_reg_en: usb1-pwr-3p3-reg-en-state { 1679 pins = "gpio186"; 1680 function = "gpio"; 1681 drive-strength = <2>; 1682 bias-disable; 1683 }; 1684 1685 usb2_pwr_1p15_reg_en: usb2-pwr-1p15-reg-en-state { 1686 pins = "gpio189"; 1687 function = "gpio"; 1688 drive-strength = <2>; 1689 bias-disable; 1690 }; 1691 1692 usb2_pwr_1p8_reg_en: usb2-pwr-1p8-reg-en-state { 1693 pins = "gpio126"; 1694 function = "gpio"; 1695 drive-strength = <2>; 1696 bias-disable; 1697 }; 1698 1699 usb2_pwr_3p3_reg_en: usb2-pwr-3p3-reg-en-state { 1700 pins = "gpio187"; 1701 function = "gpio"; 1702 drive-strength = <2>; 1703 bias-disable; 1704 }; 1705 1706 wcd_default: wcd-reset-n-active-state { 1707 pins = "gpio191"; 1708 function = "gpio"; 1709 drive-strength = <16>; 1710 bias-disable; 1711 output-low; 1712 }; 1713 1714 wwan_sw_en: wwan-sw-en-state { 1715 pins = "gpio221"; 1716 function = "gpio"; 1717 drive-strength = <4>; 1718 bias-disable; 1719 }; 1720}; 1721 1722&uart21 { 1723 compatible = "qcom,geni-debug-uart"; 1724 status = "okay"; 1725}; 1726 1727&usb_1_ss0_hsphy { 1728 vdd-supply = <&vreg_l3j_0p8>; 1729 vdda12-supply = <&vreg_l2j_1p2>; 1730 1731 phys = <&smb2360_0_eusb2_repeater>; 1732 1733 status = "okay"; 1734}; 1735 1736&usb_1_ss0_qmpphy { 1737 vdda-phy-supply = <&vreg_l2j_1p2>; 1738 vdda-pll-supply = <&vreg_l1j_0p8>; 1739 1740 status = "okay"; 1741}; 1742 1743&usb_1_ss0 { 1744 dr_mode = "host"; 1745 1746 status = "okay"; 1747}; 1748 1749&usb_1_ss0_dwc3_hs { 1750 remote-endpoint = <&pmic_glink_ss0_hs_in>; 1751}; 1752 1753&usb_1_ss0_qmpphy_out { 1754 remote-endpoint = <&retimer_ss0_ss_in>; 1755}; 1756 1757&usb_1_ss1_hsphy { 1758 vdd-supply = <&vreg_l3j_0p8>; 1759 vdda12-supply = <&vreg_l2j_1p2>; 1760 1761 phys = <&smb2360_1_eusb2_repeater>; 1762 1763 status = "okay"; 1764}; 1765 1766&usb_1_ss1_qmpphy { 1767 vdda-phy-supply = <&vreg_l2j_1p2>; 1768 vdda-pll-supply = <&vreg_l2d_0p9>; 1769 1770 status = "okay"; 1771}; 1772 1773&usb_1_ss1 { 1774 dr_mode = "host"; 1775 1776 status = "okay"; 1777}; 1778 1779&usb_1_ss1_dwc3_hs { 1780 remote-endpoint = <&pmic_glink_ss1_hs_in>; 1781}; 1782 1783&usb_1_ss1_qmpphy_out { 1784 remote-endpoint = <&retimer_ss1_ss_in>; 1785}; 1786 1787&usb_1_ss2_hsphy { 1788 vdd-supply = <&vreg_l3j_0p8>; 1789 vdda12-supply = <&vreg_l2j_1p2>; 1790 1791 phys = <&smb2360_2_eusb2_repeater>; 1792 1793 status = "okay"; 1794}; 1795 1796&usb_1_ss2_qmpphy { 1797 vdda-phy-supply = <&vreg_l2j_1p2>; 1798 vdda-pll-supply = <&vreg_l2d_0p9>; 1799 1800 status = "okay"; 1801}; 1802 1803&usb_1_ss2 { 1804 dr_mode = "host"; 1805 1806 status = "okay"; 1807}; 1808 1809&usb_1_ss2_dwc3_hs { 1810 remote-endpoint = <&pmic_glink_ss2_hs_in>; 1811}; 1812 1813&usb_1_ss2_qmpphy_out { 1814 remote-endpoint = <&retimer_ss2_ss_in>; 1815}; 1816 1817&usb_mp { 1818 /* Only second port is used with USB 2.0 maximum speed */ 1819 status = "okay"; 1820}; 1821 1822&usb_mp_hsphy0 { 1823 vdd-supply = <&vreg_l2e_0p8>; 1824 vdda12-supply = <&vreg_l3e_1p2>; 1825 1826 status = "okay"; 1827}; 1828 1829&usb_mp_hsphy1 { 1830 vdd-supply = <&vreg_l2e_0p8>; 1831 vdda12-supply = <&vreg_l3e_1p2>; 1832 1833 phys = <&eusb6_repeater>; 1834 1835 status = "okay"; 1836}; 1837 1838&usb_mp_qmpphy0 { 1839 vdda-phy-supply = <&vreg_l3e_1p2>; 1840 vdda-pll-supply = <&vreg_l3c_0p8>; 1841 1842 status = "okay"; 1843}; 1844 1845&usb_mp_qmpphy1 { 1846 vdda-phy-supply = <&vreg_l3e_1p2>; 1847 vdda-pll-supply = <&vreg_l3c_0p8>; 1848 1849 status = "okay"; 1850}; 1851