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