1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 */ 5 6/dts-v1/; 7 8#include <dt-bindings/gpio/gpio.h> 9#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 10 11#include "x1e80100.dtsi" 12 13/ { 14 model = "Qualcomm Technologies, Inc. X1E80100 CRD"; 15 compatible = "qcom,x1e80100-crd", "qcom,x1e80100"; 16 17 aliases { 18 serial0 = &uart21; 19 }; 20 21 wcd938x: audio-codec { 22 compatible = "qcom,wcd9385-codec"; 23 24 pinctrl-names = "default"; 25 pinctrl-0 = <&wcd_default>; 26 27 qcom,micbias1-microvolt = <1800000>; 28 qcom,micbias2-microvolt = <1800000>; 29 qcom,micbias3-microvolt = <1800000>; 30 qcom,micbias4-microvolt = <1800000>; 31 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 32 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 33 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 34 qcom,rx-device = <&wcd_rx>; 35 qcom,tx-device = <&wcd_tx>; 36 37 reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>; 38 39 vdd-buck-supply = <&vreg_l15b_1p8>; 40 vdd-rxtx-supply = <&vreg_l15b_1p8>; 41 vdd-io-supply = <&vreg_l15b_1p8>; 42 vdd-mic-bias-supply = <&vreg_bob1>; 43 44 #sound-dai-cells = <1>; 45 }; 46 47 chosen { 48 stdout-path = "serial0:115200n8"; 49 }; 50 51 sound { 52 compatible = "qcom,x1e80100-sndcard"; 53 model = "X1E80100-CRD"; 54 audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT", 55 "TwitterLeft IN", "WSA WSA_SPK2 OUT", 56 "WooferRight IN", "WSA2 WSA_SPK2 OUT", 57 "TwitterRight IN", "WSA2 WSA_SPK2 OUT", 58 "IN1_HPHL", "HPHL_OUT", 59 "IN2_HPHR", "HPHR_OUT", 60 "AMIC2", "MIC BIAS2", 61 "VA DMIC0", "MIC BIAS3", 62 "VA DMIC1", "MIC BIAS3", 63 "VA DMIC2", "MIC BIAS1", 64 "VA DMIC3", "MIC BIAS1", 65 "VA DMIC0", "VA MIC BIAS3", 66 "VA DMIC1", "VA MIC BIAS3", 67 "VA DMIC2", "VA MIC BIAS1", 68 "VA DMIC3", "VA MIC BIAS1", 69 "TX SWR_INPUT1", "ADC2_OUTPUT"; 70 71 wcd-playback-dai-link { 72 link-name = "WCD Playback"; 73 74 cpu { 75 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 76 }; 77 78 codec { 79 sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; 80 }; 81 82 platform { 83 sound-dai = <&q6apm>; 84 }; 85 }; 86 87 wcd-capture-dai-link { 88 link-name = "WCD Capture"; 89 90 cpu { 91 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 92 }; 93 94 codec { 95 sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>; 96 }; 97 98 platform { 99 sound-dai = <&q6apm>; 100 }; 101 }; 102 103 wsa-dai-link { 104 link-name = "WSA Playback"; 105 106 cpu { 107 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 108 }; 109 110 codec { 111 sound-dai = <&left_woofer>, <&left_tweeter>, 112 <&swr0 0>, <&lpass_wsamacro 0>, 113 <&right_woofer>, <&right_tweeter>, 114 <&swr3 0>, <&lpass_wsa2macro 0>; 115 }; 116 117 platform { 118 sound-dai = <&q6apm>; 119 }; 120 }; 121 122 va-dai-link { 123 link-name = "VA Capture"; 124 125 cpu { 126 sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; 127 }; 128 129 codec { 130 sound-dai = <&lpass_vamacro 0>; 131 }; 132 133 platform { 134 sound-dai = <&q6apm>; 135 }; 136 }; 137 }; 138 139 vph_pwr: vph-pwr-regulator { 140 compatible = "regulator-fixed"; 141 142 regulator-name = "vph_pwr"; 143 regulator-min-microvolt = <3700000>; 144 regulator-max-microvolt = <3700000>; 145 146 regulator-always-on; 147 regulator-boot-on; 148 }; 149 150 vreg_edp_3p3: regulator-edp-3p3 { 151 compatible = "regulator-fixed"; 152 153 regulator-name = "VREG_EDP_3P3"; 154 regulator-min-microvolt = <3300000>; 155 regulator-max-microvolt = <3300000>; 156 157 gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; 158 enable-active-high; 159 160 pinctrl-0 = <&edp_reg_en>; 161 pinctrl-names = "default"; 162 163 regulator-always-on; 164 regulator-boot-on; 165 }; 166}; 167 168&apps_rsc { 169 regulators-0 { 170 compatible = "qcom,pm8550-rpmh-regulators"; 171 qcom,pmic-id = "b"; 172 173 vdd-bob1-supply = <&vph_pwr>; 174 vdd-bob2-supply = <&vph_pwr>; 175 vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>; 176 vdd-l2-l13-l14-supply = <&vreg_bob1>; 177 vdd-l5-l16-supply = <&vreg_bob1>; 178 vdd-l6-l7-supply = <&vreg_bob2>; 179 vdd-l8-l9-supply = <&vreg_bob1>; 180 vdd-l12-supply = <&vreg_s5j_1p2>; 181 vdd-l15-supply = <&vreg_s4c_1p8>; 182 vdd-l17-supply = <&vreg_bob2>; 183 184 vreg_bob1: bob1 { 185 regulator-name = "vreg_bob1"; 186 regulator-min-microvolt = <3008000>; 187 regulator-max-microvolt = <3960000>; 188 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 189 }; 190 191 vreg_bob2: bob2 { 192 regulator-name = "vreg_bob2"; 193 regulator-min-microvolt = <2504000>; 194 regulator-max-microvolt = <3008000>; 195 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 196 }; 197 198 vreg_l1b_1p8: ldo1 { 199 regulator-name = "vreg_l1b_1p8"; 200 regulator-min-microvolt = <1800000>; 201 regulator-max-microvolt = <1800000>; 202 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 203 }; 204 205 vreg_l2b_3p0: ldo2 { 206 regulator-name = "vreg_l2b_3p0"; 207 regulator-min-microvolt = <3072000>; 208 regulator-max-microvolt = <3100000>; 209 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 210 }; 211 212 vreg_l4b_1p8: ldo4 { 213 regulator-name = "vreg_l4b_1p8"; 214 regulator-min-microvolt = <1800000>; 215 regulator-max-microvolt = <1800000>; 216 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 217 }; 218 219 vreg_l5b_3p0: ldo5 { 220 regulator-name = "vreg_l5b_3p0"; 221 regulator-min-microvolt = <3000000>; 222 regulator-max-microvolt = <3000000>; 223 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 224 }; 225 226 vreg_l6b_1p8: ldo6 { 227 regulator-name = "vreg_l6b_1p8"; 228 regulator-min-microvolt = <1800000>; 229 regulator-max-microvolt = <2960000>; 230 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 231 }; 232 233 vreg_l7b_2p8: ldo7 { 234 regulator-name = "vreg_l7b_2p8"; 235 regulator-min-microvolt = <2800000>; 236 regulator-max-microvolt = <2800000>; 237 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 238 }; 239 240 vreg_l8b_3p0: ldo8 { 241 regulator-name = "vreg_l8b_3p0"; 242 regulator-min-microvolt = <3072000>; 243 regulator-max-microvolt = <3072000>; 244 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 245 }; 246 247 vreg_l9b_2p9: ldo9 { 248 regulator-name = "vreg_l9b_2p9"; 249 regulator-min-microvolt = <2960000>; 250 regulator-max-microvolt = <2960000>; 251 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 252 }; 253 254 vreg_l10b_1p8: ldo10 { 255 regulator-name = "vreg_l10b_1p8"; 256 regulator-min-microvolt = <1800000>; 257 regulator-max-microvolt = <1800000>; 258 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 259 }; 260 261 vreg_l12b_1p2: ldo12 { 262 regulator-name = "vreg_l12b_1p2"; 263 regulator-min-microvolt = <1200000>; 264 regulator-max-microvolt = <1200000>; 265 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 266 }; 267 268 vreg_l13b_3p0: ldo13 { 269 regulator-name = "vreg_l13b_3p0"; 270 regulator-min-microvolt = <3072000>; 271 regulator-max-microvolt = <3100000>; 272 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 273 }; 274 275 vreg_l14b_3p0: ldo14 { 276 regulator-name = "vreg_l14b_3p0"; 277 regulator-min-microvolt = <3072000>; 278 regulator-max-microvolt = <3072000>; 279 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 280 }; 281 282 vreg_l15b_1p8: ldo15 { 283 regulator-name = "vreg_l15b_1p8"; 284 regulator-min-microvolt = <1800000>; 285 regulator-max-microvolt = <1800000>; 286 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 287 }; 288 289 vreg_l16b_2p9: ldo16 { 290 regulator-name = "vreg_l16b_2p9"; 291 regulator-min-microvolt = <2912000>; 292 regulator-max-microvolt = <2912000>; 293 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 294 }; 295 296 vreg_l17b_2p5: ldo17 { 297 regulator-name = "vreg_l17b_2p5"; 298 regulator-min-microvolt = <2504000>; 299 regulator-max-microvolt = <2504000>; 300 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 301 }; 302 }; 303 304 regulators-1 { 305 compatible = "qcom,pm8550ve-rpmh-regulators"; 306 qcom,pmic-id = "c"; 307 308 vdd-l1-supply = <&vreg_s5j_1p2>; 309 vdd-l2-supply = <&vreg_s1f_0p7>; 310 vdd-l3-supply = <&vreg_s1f_0p7>; 311 vdd-s4-supply = <&vph_pwr>; 312 313 vreg_s4c_1p8: smps4 { 314 regulator-name = "vreg_s4c_1p8"; 315 regulator-min-microvolt = <1856000>; 316 regulator-max-microvolt = <2000000>; 317 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 318 }; 319 320 vreg_l1c_1p2: ldo1 { 321 regulator-name = "vreg_l1c_1p2"; 322 regulator-min-microvolt = <1200000>; 323 regulator-max-microvolt = <1200000>; 324 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 325 }; 326 327 vreg_l2c_0p8: ldo2 { 328 regulator-name = "vreg_l2c_0p8"; 329 regulator-min-microvolt = <880000>; 330 regulator-max-microvolt = <920000>; 331 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 332 }; 333 334 vreg_l3c_0p8: ldo3 { 335 regulator-name = "vreg_l3c_0p8"; 336 regulator-min-microvolt = <880000>; 337 regulator-max-microvolt = <920000>; 338 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 339 }; 340 }; 341 342 regulators-2 { 343 compatible = "qcom,pmc8380-rpmh-regulators"; 344 qcom,pmic-id = "d"; 345 346 vdd-l1-supply = <&vreg_s1f_0p7>; 347 vdd-l2-supply = <&vreg_s1f_0p7>; 348 vdd-l3-supply = <&vreg_s4c_1p8>; 349 vdd-s1-supply = <&vph_pwr>; 350 351 vreg_l1d_0p8: ldo1 { 352 regulator-name = "vreg_l1d_0p8"; 353 regulator-min-microvolt = <880000>; 354 regulator-max-microvolt = <920000>; 355 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 356 }; 357 358 vreg_l2d_0p9: ldo2 { 359 regulator-name = "vreg_l2d_0p9"; 360 regulator-min-microvolt = <912000>; 361 regulator-max-microvolt = <920000>; 362 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 363 }; 364 365 vreg_l3d_1p8: ldo3 { 366 regulator-name = "vreg_l3d_1p8"; 367 regulator-min-microvolt = <1800000>; 368 regulator-max-microvolt = <1800000>; 369 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 370 }; 371 }; 372 373 regulators-3 { 374 compatible = "qcom,pmc8380-rpmh-regulators"; 375 qcom,pmic-id = "e"; 376 377 vdd-l2-supply = <&vreg_s1f_0p7>; 378 vdd-l3-supply = <&vreg_s5j_1p2>; 379 380 vreg_l2e_0p8: ldo2 { 381 regulator-name = "vreg_l2e_0p8"; 382 regulator-min-microvolt = <880000>; 383 regulator-max-microvolt = <920000>; 384 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 385 }; 386 387 vreg_l3e_1p2: ldo3 { 388 regulator-name = "vreg_l3e_1p2"; 389 regulator-min-microvolt = <1200000>; 390 regulator-max-microvolt = <1200000>; 391 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 392 }; 393 }; 394 395 regulators-4 { 396 compatible = "qcom,pmc8380-rpmh-regulators"; 397 qcom,pmic-id = "f"; 398 399 vdd-l1-supply = <&vreg_s5j_1p2>; 400 vdd-l2-supply = <&vreg_s5j_1p2>; 401 vdd-l3-supply = <&vreg_s5j_1p2>; 402 vdd-s1-supply = <&vph_pwr>; 403 404 vreg_s1f_0p7: smps1 { 405 regulator-name = "vreg_s1f_0p7"; 406 regulator-min-microvolt = <700000>; 407 regulator-max-microvolt = <1100000>; 408 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 409 }; 410 411 vreg_l1f_1p0: ldo1 { 412 regulator-name = "vreg_l1f_1p0"; 413 regulator-min-microvolt = <1024000>; 414 regulator-max-microvolt = <1024000>; 415 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 416 }; 417 418 vreg_l2f_1p0: ldo2 { 419 regulator-name = "vreg_l2f_1p0"; 420 regulator-min-microvolt = <1024000>; 421 regulator-max-microvolt = <1024000>; 422 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 423 }; 424 425 vreg_l3f_1p0: ldo3 { 426 regulator-name = "vreg_l3f_1p0"; 427 regulator-min-microvolt = <1024000>; 428 regulator-max-microvolt = <1024000>; 429 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 430 }; 431 }; 432 433 regulators-6 { 434 compatible = "qcom,pm8550ve-rpmh-regulators"; 435 qcom,pmic-id = "i"; 436 437 vdd-l1-supply = <&vreg_s4c_1p8>; 438 vdd-l2-supply = <&vreg_s5j_1p2>; 439 vdd-l3-supply = <&vreg_s1f_0p7>; 440 vdd-s1-supply = <&vph_pwr>; 441 vdd-s2-supply = <&vph_pwr>; 442 443 vreg_s1i_0p9: smps1 { 444 regulator-name = "vreg_s1i_0p9"; 445 regulator-min-microvolt = <900000>; 446 regulator-max-microvolt = <920000>; 447 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 448 }; 449 450 vreg_s2i_1p0: smps2 { 451 regulator-name = "vreg_s2i_1p0"; 452 regulator-min-microvolt = <1000000>; 453 regulator-max-microvolt = <1100000>; 454 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 455 }; 456 457 vreg_l1i_1p8: ldo1 { 458 regulator-name = "vreg_l1i_1p8"; 459 regulator-min-microvolt = <1800000>; 460 regulator-max-microvolt = <1800000>; 461 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 462 }; 463 464 vreg_l2i_1p2: ldo2 { 465 regulator-name = "vreg_l2i_1p2"; 466 regulator-min-microvolt = <1200000>; 467 regulator-max-microvolt = <1200000>; 468 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 469 }; 470 471 vreg_l3i_0p8: ldo3 { 472 regulator-name = "vreg_l3i_0p8"; 473 regulator-min-microvolt = <880000>; 474 regulator-max-microvolt = <920000>; 475 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 476 }; 477 }; 478 479 regulators-7 { 480 compatible = "qcom,pm8550ve-rpmh-regulators"; 481 qcom,pmic-id = "j"; 482 483 vdd-l1-supply = <&vreg_s1f_0p7>; 484 vdd-l2-supply = <&vreg_s5j_1p2>; 485 vdd-l3-supply = <&vreg_s1f_0p7>; 486 vdd-s5-supply = <&vph_pwr>; 487 488 vreg_s5j_1p2: smps5 { 489 regulator-name = "vreg_s5j_1p2"; 490 regulator-min-microvolt = <1256000>; 491 regulator-max-microvolt = <1304000>; 492 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 493 }; 494 495 vreg_l1j_0p8: ldo1 { 496 regulator-name = "vreg_l1j_0p8"; 497 regulator-min-microvolt = <880000>; 498 regulator-max-microvolt = <920000>; 499 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 500 }; 501 502 vreg_l2j_1p2: ldo2 { 503 regulator-name = "vreg_l2j_1p2"; 504 regulator-min-microvolt = <1200000>; 505 regulator-max-microvolt = <1200000>; 506 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 507 }; 508 509 vreg_l3j_0p8: ldo3 { 510 regulator-name = "vreg_l3j_0p8"; 511 regulator-min-microvolt = <880000>; 512 regulator-max-microvolt = <920000>; 513 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 514 }; 515 }; 516}; 517 518&i2c0 { 519 clock-frequency = <400000>; 520 521 status = "okay"; 522 523 touchpad@15 { 524 compatible = "hid-over-i2c"; 525 reg = <0x15>; 526 527 hid-descr-addr = <0x1>; 528 interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>; 529 530 pinctrl-0 = <&tpad_default>; 531 pinctrl-names = "default"; 532 533 wakeup-source; 534 }; 535 536 keyboard@3a { 537 compatible = "hid-over-i2c"; 538 reg = <0x3a>; 539 540 hid-descr-addr = <0x1>; 541 interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>; 542 543 pinctrl-0 = <&kybd_default>; 544 pinctrl-names = "default"; 545 546 wakeup-source; 547 }; 548}; 549 550&i2c8 { 551 clock-frequency = <400000>; 552 553 status = "okay"; 554 555 touchscreen@10 { 556 compatible = "hid-over-i2c"; 557 reg = <0x10>; 558 559 hid-descr-addr = <0x1>; 560 interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>; 561 562 pinctrl-0 = <&ts0_default>; 563 pinctrl-names = "default"; 564 }; 565}; 566 567&lpass_tlmm { 568 spkr_01_sd_n_active: spkr-01-sd-n-active-state { 569 pins = "gpio12"; 570 function = "gpio"; 571 drive-strength = <16>; 572 bias-disable; 573 output-low; 574 }; 575 576 spkr_23_sd_n_active: spkr-23-sd-n-active-state { 577 pins = "gpio13"; 578 function = "gpio"; 579 drive-strength = <16>; 580 bias-disable; 581 output-low; 582 }; 583}; 584 585&lpass_vamacro { 586 pinctrl-0 = <&dmic01_default>, <&dmic23_default>; 587 pinctrl-names = "default"; 588 589 vdd-micb-supply = <&vreg_l1b_1p8>; 590 qcom,dmic-sample-rate = <4800000>; 591}; 592 593&mdss { 594 status = "okay"; 595}; 596 597&mdss_dp3 { 598 compatible = "qcom,x1e80100-dp"; 599 /delete-property/ #sound-dai-cells; 600 601 data-lanes = <0 1 2 3>; 602 603 status = "okay"; 604 605 aux-bus { 606 panel { 607 compatible = "edp-panel"; 608 power-supply = <&vreg_edp_3p3>; 609 610 port { 611 edp_panel_in: endpoint { 612 remote-endpoint = <&mdss_dp3_out>; 613 }; 614 }; 615 }; 616 }; 617 618 ports { 619 port@1 { 620 reg = <1>; 621 mdss_dp3_out: endpoint { 622 remote-endpoint = <&edp_panel_in>; 623 }; 624 }; 625 }; 626}; 627 628&mdss_dp3_phy { 629 vdda-phy-supply = <&vreg_l3j_0p8>; 630 vdda-pll-supply = <&vreg_l2j_1p2>; 631 632 status = "okay"; 633}; 634 635&pcie4 { 636 status = "okay"; 637}; 638 639&pcie4_phy { 640 vdda-phy-supply = <&vreg_l3j_0p8>; 641 vdda-pll-supply = <&vreg_l3e_1p2>; 642 643 status = "okay"; 644}; 645 646&pcie6a { 647 status = "okay"; 648}; 649 650&pcie6a_phy { 651 vdda-phy-supply = <&vreg_l3j_0p8>; 652 vdda-pll-supply = <&vreg_l2j_1p2>; 653 654 status = "okay"; 655}; 656 657&qupv3_0 { 658 status = "okay"; 659}; 660 661&qupv3_1 { 662 status = "okay"; 663}; 664 665&qupv3_2 { 666 status = "okay"; 667}; 668 669&remoteproc_adsp { 670 firmware-name = "qcom/x1e80100/adsp.mbn", 671 "qcom/x1e80100/adsp_dtb.mbn"; 672 673 status = "okay"; 674}; 675 676&remoteproc_cdsp { 677 firmware-name = "qcom/x1e80100/cdsp.mbn", 678 "qcom/x1e80100/cdsp_dtb.mbn"; 679 680 status = "okay"; 681}; 682 683&swr0 { 684 status = "okay"; 685 686 /* WSA8845, Left Woofer */ 687 left_woofer: speaker@0,0 { 688 compatible = "sdw20217020400"; 689 reg = <0 0>; 690 pinctrl-0 = <&spkr_01_sd_n_active>; 691 pinctrl-names = "default"; 692 powerdown-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; 693 #sound-dai-cells = <0>; 694 sound-name-prefix = "WooferLeft"; 695 vdd-1p8-supply = <&vreg_l15b_1p8>; 696 vdd-io-supply = <&vreg_l12b_1p2>; 697 }; 698 699 /* WSA8845, Left Tweeter */ 700 left_tweeter: speaker@0,1 { 701 compatible = "sdw20217020400"; 702 reg = <0 1>; 703 /* pinctrl in left_woofer node because of sharing the GPIO*/ 704 powerdown-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; 705 #sound-dai-cells = <0>; 706 sound-name-prefix = "TwitterLeft"; 707 vdd-1p8-supply = <&vreg_l15b_1p8>; 708 vdd-io-supply = <&vreg_l12b_1p2>; 709 }; 710}; 711 712&swr1 { 713 status = "okay"; 714 715 /* WCD9385 RX */ 716 wcd_rx: codec@0,4 { 717 compatible = "sdw20217010d00"; 718 reg = <0 4>; 719 qcom,rx-port-mapping = <1 2 3 4 5>; 720 }; 721}; 722 723&swr2 { 724 status = "okay"; 725 726 /* WCD9385 TX */ 727 wcd_tx: codec@0,3 { 728 compatible = "sdw20217010d00"; 729 reg = <0 3>; 730 qcom,tx-port-mapping = <1 1 2 3>; 731 }; 732}; 733 734&swr3 { 735 status = "okay"; 736 737 /* WSA8845, Right Woofer */ 738 right_woofer: speaker@0,0 { 739 compatible = "sdw20217020400"; 740 reg = <0 0>; 741 pinctrl-0 = <&spkr_23_sd_n_active>; 742 pinctrl-names = "default"; 743 powerdown-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; 744 #sound-dai-cells = <0>; 745 sound-name-prefix = "WooferRight"; 746 vdd-1p8-supply = <&vreg_l15b_1p8>; 747 vdd-io-supply = <&vreg_l12b_1p2>; 748 }; 749 750 /* WSA8845, Right Tweeter */ 751 right_tweeter: speaker@0,1 { 752 compatible = "sdw20217020400"; 753 reg = <0 1>; 754 /* pinctrl in right_woofer node because of sharing the GPIO*/ 755 powerdown-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; 756 #sound-dai-cells = <0>; 757 sound-name-prefix = "TwitterRight"; 758 vdd-1p8-supply = <&vreg_l15b_1p8>; 759 vdd-io-supply = <&vreg_l12b_1p2>; 760 }; 761}; 762 763&tlmm { 764 gpio-reserved-ranges = <34 2>, /* Unused */ 765 <44 4>, /* SPI (TPM) */ 766 <238 1>; /* UFS Reset */ 767 768 edp_reg_en: edp-reg-en-state { 769 pins = "gpio70"; 770 function = "gpio"; 771 drive-strength = <16>; 772 bias-disable; 773 }; 774 775 kybd_default: kybd-default-state { 776 pins = "gpio67"; 777 function = "gpio"; 778 bias-disable; 779 }; 780 781 tpad_default: tpad-default-state { 782 pins = "gpio3"; 783 function = "gpio"; 784 bias-disable; 785 }; 786 787 ts0_default: ts0-default-state { 788 int-n-pins { 789 pins = "gpio51"; 790 function = "gpio"; 791 bias-disable; 792 }; 793 794 reset-n-pins { 795 pins = "gpio48"; 796 function = "gpio"; 797 output-high; 798 drive-strength = <16>; 799 }; 800 }; 801 802 wcd_default: wcd-reset-n-active-state { 803 pins = "gpio191"; 804 function = "gpio"; 805 drive-strength = <16>; 806 bias-disable; 807 output-low; 808 }; 809}; 810 811&uart21 { 812 compatible = "qcom,geni-debug-uart"; 813 status = "okay"; 814}; 815 816&usb_1_ss0_hsphy { 817 vdd-supply = <&vreg_l2e_0p8>; 818 vdda12-supply = <&vreg_l3e_1p2>; 819 820 status = "okay"; 821}; 822 823&usb_1_ss0_qmpphy { 824 status = "okay"; 825}; 826 827&usb_1_ss0 { 828 status = "okay"; 829}; 830 831&usb_1_ss0_dwc3 { 832 dr_mode = "host"; 833 usb-role-switch; 834}; 835 836&usb_1_ss1_hsphy { 837 vdd-supply = <&vreg_l2e_0p8>; 838 vdda12-supply = <&vreg_l3e_1p2>; 839 840 status = "okay"; 841}; 842 843&usb_1_ss1_qmpphy { 844 status = "okay"; 845}; 846 847&usb_1_ss1 { 848 status = "okay"; 849}; 850 851&usb_1_ss1_dwc3 { 852 dr_mode = "host"; 853 usb-role-switch; 854}; 855 856&usb_1_ss2_hsphy { 857 vdd-supply = <&vreg_l2e_0p8>; 858 vdda12-supply = <&vreg_l3e_1p2>; 859 860 status = "okay"; 861}; 862 863&usb_1_ss2_qmpphy { 864 status = "okay"; 865}; 866 867&usb_1_ss2 { 868 status = "okay"; 869}; 870 871&usb_1_ss2_dwc3 { 872 dr_mode = "host"; 873 usb-role-switch; 874}; 875