1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2023, Linaro Limited 4 */ 5 6/dts-v1/; 7 8#include <dt-bindings/leds/common.h> 9#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 10#include "sm8650.dtsi" 11#include "pm8010.dtsi" 12#include "pm8550.dtsi" 13#include "pm8550b.dtsi" 14#define PMK8550VE_SID 8 15#include "pm8550ve.dtsi" 16#include "pm8550vs.dtsi" 17#include "pmk8550.dtsi" 18#include "pmr735d_a.dtsi" 19 20/ { 21 model = "Qualcomm Technologies, Inc. SM8650 QRD"; 22 compatible = "qcom,sm8650-qrd", "qcom,sm8650"; 23 24 aliases { 25 serial0 = &uart15; 26 serial1 = &uart14; 27 }; 28 29 chosen { 30 stdout-path = "serial0:115200n8"; 31 }; 32 33 gpio-keys { 34 compatible = "gpio-keys"; 35 36 pinctrl-0 = <&volume_up_n>; 37 pinctrl-names = "default"; 38 39 key-volume-up { 40 label = "Volume Up"; 41 linux,code = <KEY_VOLUMEUP>; 42 gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; 43 debounce-interval = <15>; 44 linux,can-disable; 45 wakeup-source; 46 }; 47 }; 48 49 pmic-glink { 50 compatible = "qcom,sm8650-pmic-glink", 51 "qcom,sm8550-pmic-glink", 52 "qcom,pmic-glink"; 53 #address-cells = <1>; 54 #size-cells = <0>; 55 orientation-gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>; 56 57 connector@0 { 58 compatible = "usb-c-connector"; 59 reg = <0>; 60 61 power-role = "dual"; 62 data-role = "dual"; 63 64 ports { 65 #address-cells = <1>; 66 #size-cells = <0>; 67 68 port@0 { 69 reg = <0>; 70 71 pmic_glink_hs_in: endpoint { 72 remote-endpoint = <&usb_1_dwc3_hs>; 73 }; 74 }; 75 76 port@1 { 77 reg = <1>; 78 79 pmic_glink_ss_in: endpoint { 80 remote-endpoint = <&redriver_ss_out>; 81 }; 82 }; 83 84 port@2 { 85 reg = <2>; 86 87 pmic_glink_sbu: endpoint { 88 remote-endpoint = <&wcd_usbss_sbu_mux>; 89 }; 90 }; 91 }; 92 }; 93 }; 94 95 sound { 96 compatible = "qcom,sm8650-sndcard", "qcom,sm8450-sndcard"; 97 model = "SM8650-QRD"; 98 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", 99 "SpkrRight IN", "WSA_SPK2 OUT", 100 "IN1_HPHL", "HPHL_OUT", 101 "IN2_HPHR", "HPHR_OUT", 102 "AMIC1", "MIC BIAS1", 103 "AMIC2", "MIC BIAS2", 104 "AMIC3", "MIC BIAS3", 105 "AMIC4", "MIC BIAS3", 106 "AMIC5", "MIC BIAS4", 107 "TX SWR_INPUT0", "ADC1_OUTPUT", 108 "TX SWR_INPUT1", "ADC2_OUTPUT", 109 "TX SWR_INPUT2", "ADC3_OUTPUT", 110 "TX SWR_INPUT3", "ADC4_OUTPUT"; 111 112 wcd-playback-dai-link { 113 link-name = "WCD Playback"; 114 115 cpu { 116 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 117 }; 118 119 codec { 120 sound-dai = <&wcd939x 0>, <&swr1 0>, <&lpass_rxmacro 0>; 121 }; 122 123 platform { 124 sound-dai = <&q6apm>; 125 }; 126 }; 127 128 wcd-capture-dai-link { 129 link-name = "WCD Capture"; 130 131 cpu { 132 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 133 }; 134 135 codec { 136 sound-dai = <&wcd939x 1>, <&swr2 0>, <&lpass_txmacro 0>; 137 }; 138 139 platform { 140 sound-dai = <&q6apm>; 141 }; 142 }; 143 144 wsa-dai-link { 145 link-name = "WSA Playback"; 146 147 cpu { 148 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 149 }; 150 151 codec { 152 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&lpass_wsamacro 0>; 153 }; 154 155 platform { 156 sound-dai = <&q6apm>; 157 }; 158 }; 159 }; 160 161 vph_pwr: vph-pwr-regulator { 162 compatible = "regulator-fixed"; 163 164 regulator-name = "vph_pwr"; 165 regulator-min-microvolt = <3700000>; 166 regulator-max-microvolt = <3700000>; 167 168 regulator-always-on; 169 regulator-boot-on; 170 }; 171 172 wcd939x: audio-codec { 173 compatible = "qcom,wcd9395-codec", "qcom,wcd9390-codec"; 174 175 pinctrl-0 = <&wcd_default>; 176 pinctrl-names = "default"; 177 178 qcom,micbias1-microvolt = <1800000>; 179 qcom,micbias2-microvolt = <1800000>; 180 qcom,micbias3-microvolt = <1800000>; 181 qcom,micbias4-microvolt = <1800000>; 182 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 183 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 184 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 185 qcom,rx-device = <&wcd_rx>; 186 qcom,tx-device = <&wcd_tx>; 187 188 reset-gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 189 190 vdd-buck-supply = <&vreg_l15b_1p8>; 191 vdd-rxtx-supply = <&vreg_l15b_1p8>; 192 vdd-io-supply = <&vreg_l15b_1p8>; 193 vdd-mic-bias-supply = <&vreg_bob1>; 194 195 #sound-dai-cells = <1>; 196 197 mode-switch; 198 orientation-switch; 199 200 port { 201 wcd_codec_headset_in: endpoint { 202 remote-endpoint = <&wcd_usbss_headset_out>; 203 }; 204 }; 205 }; 206}; 207 208&apps_rsc { 209 regulators-0 { 210 compatible = "qcom,pm8550-rpmh-regulators"; 211 212 vdd-bob1-supply = <&vph_pwr>; 213 vdd-bob2-supply = <&vph_pwr>; 214 vdd-l2-l13-l14-supply = <&vreg_bob1>; 215 vdd-l3-supply = <&vreg_s1c_1p2>; 216 vdd-l5-l16-supply = <&vreg_bob1>; 217 vdd-l6-l7-supply = <&vreg_bob1>; 218 vdd-l8-l9-supply = <&vreg_bob1>; 219 vdd-l11-supply = <&vreg_s1c_1p2>; 220 vdd-l12-supply = <&vreg_s6c_1p8>; 221 vdd-l15-supply = <&vreg_s6c_1p8>; 222 vdd-l17-supply = <&vreg_bob2>; 223 224 qcom,pmic-id = "b"; 225 226 vreg_bob1: bob1 { 227 regulator-name = "vreg_bob1"; 228 regulator-min-microvolt = <3296000>; 229 regulator-max-microvolt = <3960000>; 230 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 231 }; 232 233 vreg_bob2: bob2 { 234 regulator-name = "vreg_bob2"; 235 regulator-min-microvolt = <2720000>; 236 regulator-max-microvolt = <3008000>; 237 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 238 }; 239 240 vreg_l2b_3p0: ldo2 { 241 regulator-name = "vreg_l2b_3p0"; 242 regulator-min-microvolt = <3008000>; 243 regulator-max-microvolt = <3008000>; 244 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 245 regulator-allow-set-load; 246 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 247 RPMH_REGULATOR_MODE_HPM>; 248 }; 249 250 vreg_l5b_3p1: ldo5 { 251 regulator-name = "vreg_l5b_3p1"; 252 regulator-min-microvolt = <3104000>; 253 regulator-max-microvolt = <3104000>; 254 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 255 regulator-allow-set-load; 256 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 257 RPMH_REGULATOR_MODE_HPM>; 258 }; 259 260 vreg_l6b_1p8: ldo6 { 261 regulator-name = "vreg_l6b_1p8"; 262 regulator-min-microvolt = <1800000>; 263 regulator-max-microvolt = <3008000>; 264 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 265 regulator-allow-set-load; 266 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 267 RPMH_REGULATOR_MODE_HPM>; 268 }; 269 270 vreg_l7b_1p8: ldo7 { 271 regulator-name = "vreg_l7b_1p8"; 272 regulator-min-microvolt = <1800000>; 273 regulator-max-microvolt = <3008000>; 274 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 275 }; 276 277 vreg_l8b_1p8: ldo8 { 278 regulator-name = "vreg_l8b_1p8"; 279 regulator-min-microvolt = <1800000>; 280 regulator-max-microvolt = <3008000>; 281 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 282 regulator-allow-set-load; 283 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 284 RPMH_REGULATOR_MODE_HPM>; 285 }; 286 287 vreg_l11b_1p2: ldo11 { 288 regulator-name = "vreg_l11b_1p2"; 289 regulator-min-microvolt = <1200000>; 290 regulator-max-microvolt = <1504000>; 291 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 292 regulator-allow-set-load; 293 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 294 RPMH_REGULATOR_MODE_HPM>; 295 }; 296 297 vreg_l12b_1p8: ldo12 { 298 regulator-name = "vreg_l12b_1p8"; 299 regulator-min-microvolt = <1800000>; 300 regulator-max-microvolt = <1800000>; 301 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 302 regulator-allow-set-load; 303 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 304 RPMH_REGULATOR_MODE_HPM>; 305 }; 306 307 vreg_l13b_3p0: ldo13 { 308 regulator-name = "vreg_l13b_3p0"; 309 regulator-min-microvolt = <3000000>; 310 regulator-max-microvolt = <3000000>; 311 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 312 regulator-allow-set-load; 313 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 314 RPMH_REGULATOR_MODE_HPM>; 315 }; 316 317 vreg_l14b_3p2: ldo14 { 318 regulator-name = "vreg_l14b_3p2"; 319 regulator-min-microvolt = <3200000>; 320 regulator-max-microvolt = <3200000>; 321 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 322 regulator-allow-set-load; 323 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 324 RPMH_REGULATOR_MODE_HPM>; 325 }; 326 327 vreg_l15b_1p8: ldo15 { 328 regulator-name = "vreg_l15b_1p8"; 329 regulator-min-microvolt = <1800000>; 330 regulator-max-microvolt = <1800000>; 331 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 332 regulator-allow-set-load; 333 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 334 RPMH_REGULATOR_MODE_HPM>; 335 }; 336 337 vreg_l16b_2p8: ldo16 { 338 regulator-name = "vreg_l16b_2p8"; 339 regulator-min-microvolt = <2800000>; 340 regulator-max-microvolt = <2800000>; 341 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 342 regulator-allow-set-load; 343 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 344 RPMH_REGULATOR_MODE_HPM>; 345 }; 346 347 vreg_l17b_2p5: ldo17 { 348 regulator-name = "vreg_l17b_2p5"; 349 regulator-min-microvolt = <2504000>; 350 regulator-max-microvolt = <2504000>; 351 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 352 regulator-allow-set-load; 353 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 354 RPMH_REGULATOR_MODE_HPM>; 355 }; 356 }; 357 358 regulators-1 { 359 compatible = "qcom,pm8550vs-rpmh-regulators"; 360 361 vdd-l1-supply = <&vreg_s1c_1p2>; 362 vdd-l2-supply = <&vreg_s1c_1p2>; 363 vdd-l3-supply = <&vreg_s1c_1p2>; 364 vdd-s1-supply = <&vph_pwr>; 365 vdd-s2-supply = <&vph_pwr>; 366 vdd-s3-supply = <&vph_pwr>; 367 vdd-s4-supply = <&vph_pwr>; 368 vdd-s5-supply = <&vph_pwr>; 369 vdd-s6-supply = <&vph_pwr>; 370 371 qcom,pmic-id = "c"; 372 373 vreg_s1c_1p2: smps1 { 374 regulator-name = "vreg_s1c_1p2"; 375 regulator-min-microvolt = <1256000>; 376 regulator-max-microvolt = <1348000>; 377 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 378 }; 379 380 vreg_s2c_0p8: smps2 { 381 regulator-name = "vreg_s2c_0p8"; 382 regulator-min-microvolt = <852000>; 383 regulator-max-microvolt = <1036000>; 384 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 385 }; 386 387 vreg_s3c_0p9: smps3 { 388 regulator-name = "vreg_s3c_0p9"; 389 regulator-min-microvolt = <976000>; 390 regulator-max-microvolt = <1064000>; 391 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 392 }; 393 394 vreg_s4c_1p2: smps4 { 395 regulator-name = "vreg_s4c_1p2"; 396 regulator-min-microvolt = <1224000>; 397 regulator-max-microvolt = <1280000>; 398 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 399 }; 400 401 vreg_s5c_0p7: smps5 { 402 regulator-name = "vreg_s5c_0p7"; 403 regulator-min-microvolt = <752000>; 404 regulator-max-microvolt = <900000>; 405 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 406 }; 407 408 vreg_s6c_1p8: smps6 { 409 regulator-name = "vreg_s6c_1p8"; 410 regulator-min-microvolt = <1856000>; 411 regulator-max-microvolt = <2000000>; 412 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 413 }; 414 415 vreg_l1c_1p2: ldo1 { 416 regulator-name = "vreg_l1c_1p2"; 417 regulator-min-microvolt = <1200000>; 418 regulator-max-microvolt = <1200000>; 419 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 420 regulator-allow-set-load; 421 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 422 RPMH_REGULATOR_MODE_HPM>; 423 }; 424 425 vreg_l3c_1p2: ldo3 { 426 regulator-name = "vreg_l3c_1p2"; 427 regulator-min-microvolt = <1200000>; 428 regulator-max-microvolt = <1200000>; 429 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 430 regulator-allow-set-load; 431 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 432 RPMH_REGULATOR_MODE_HPM>; 433 }; 434 }; 435 436 regulators-2 { 437 compatible = "qcom,pm8550vs-rpmh-regulators"; 438 439 vdd-l1-supply = <&vreg_s3c_0p9>; 440 441 qcom,pmic-id = "d"; 442 443 vreg_l1d_0p88: ldo1 { 444 regulator-name = "vreg_l1d_0p88"; 445 regulator-min-microvolt = <912000>; 446 regulator-max-microvolt = <920000>; 447 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 448 regulator-allow-set-load; 449 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 450 RPMH_REGULATOR_MODE_HPM>; 451 }; 452 }; 453 454 regulators-3 { 455 compatible = "qcom,pm8550vs-rpmh-regulators"; 456 457 vdd-l3-supply = <&vreg_s3c_0p9>; 458 459 qcom,pmic-id = "e"; 460 461 vreg_l3e_0p9: ldo3 { 462 regulator-name = "vreg_l3e_0p9"; 463 regulator-min-microvolt = <880000>; 464 regulator-max-microvolt = <920000>; 465 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 466 regulator-allow-set-load; 467 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 468 RPMH_REGULATOR_MODE_HPM>; 469 }; 470 }; 471 472 regulators-4 { 473 compatible = "qcom,pm8550vs-rpmh-regulators"; 474 475 vdd-l1-supply = <&vreg_s3c_0p9>; 476 vdd-l3-supply = <&vreg_s3c_0p9>; 477 478 qcom,pmic-id = "g"; 479 480 vreg_l1g_0p91: ldo1 { 481 regulator-name = "vreg_l1g_0p91"; 482 regulator-min-microvolt = <912000>; 483 regulator-max-microvolt = <920000>; 484 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 485 regulator-allow-set-load; 486 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 487 RPMH_REGULATOR_MODE_HPM>; 488 }; 489 490 vreg_l3g_0p91: ldo3 { 491 regulator-name = "vreg_l3g_0p91"; 492 regulator-min-microvolt = <880000>; 493 regulator-max-microvolt = <912000>; 494 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 495 regulator-allow-set-load; 496 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 497 RPMH_REGULATOR_MODE_HPM>; 498 }; 499 }; 500 501 regulators-5 { 502 compatible = "qcom,pm8550ve-rpmh-regulators"; 503 504 vdd-l1-supply = <&vreg_s3c_0p9>; 505 vdd-l2-supply = <&vreg_s3c_0p9>; 506 vdd-l3-supply = <&vreg_s1c_1p2>; 507 vdd-s4-supply = <&vph_pwr>; 508 509 qcom,pmic-id = "i"; 510 511 vreg_s4i_0p85: smps4 { 512 regulator-name = "vreg_s4i_0p85"; 513 regulator-min-microvolt = <852000>; 514 regulator-max-microvolt = <1004000>; 515 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 516 }; 517 518 vreg_l1i_0p88: ldo1 { 519 regulator-name = "vreg_l1i_0p88"; 520 regulator-min-microvolt = <880000>; 521 regulator-max-microvolt = <912000>; 522 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 523 regulator-allow-set-load; 524 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 525 RPMH_REGULATOR_MODE_HPM>; 526 }; 527 528 vreg_l2i_0p88: ldo2 { 529 regulator-name = "vreg_l2i_0p88"; 530 regulator-min-microvolt = <880000>; 531 regulator-max-microvolt = <912000>; 532 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 533 regulator-allow-set-load; 534 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 535 RPMH_REGULATOR_MODE_HPM>; 536 }; 537 538 vreg_l3i_1p2: ldo3 { 539 regulator-name = "vreg_l3i_0p91"; 540 regulator-min-microvolt = <1200000>; 541 regulator-max-microvolt = <1200000>; 542 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 543 regulator-allow-set-load; 544 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 545 RPMH_REGULATOR_MODE_HPM>; 546 }; 547 }; 548 549 regulators-6 { 550 compatible = "qcom,pm8010-rpmh-regulators"; 551 qcom,pmic-id = "m"; 552 553 vdd-l1-l2-supply = <&vreg_s1c_1p2>; 554 vdd-l3-l4-supply = <&vreg_bob2>; 555 vdd-l5-supply = <&vreg_s6c_1p8>; 556 vdd-l6-supply = <&vreg_bob1>; 557 vdd-l7-supply = <&vreg_bob1>; 558 559 vreg_l1m_1p1: ldo1 { 560 regulator-name = "vreg_l1m_1p1"; 561 regulator-min-microvolt = <1104000>; 562 regulator-max-microvolt = <1104000>; 563 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 564 regulator-allow-set-load; 565 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 566 RPMH_REGULATOR_MODE_HPM>; 567 }; 568 569 vreg_l2m_1p056: ldo2 { 570 regulator-name = "vreg_l2m_1p056"; 571 regulator-min-microvolt = <1056000>; 572 regulator-max-microvolt = <1056000>; 573 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 574 regulator-allow-set-load; 575 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 576 RPMH_REGULATOR_MODE_HPM>; 577 }; 578 579 vreg_l3m_2p8: ldo3 { 580 regulator-name = "vreg_l3m_2p8"; 581 regulator-min-microvolt = <2800000>; 582 regulator-max-microvolt = <2800000>; 583 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 584 }; 585 586 vreg_l4m_2p8: ldo4 { 587 regulator-name = "vreg_l4m_2p8"; 588 regulator-min-microvolt = <2800000>; 589 regulator-max-microvolt = <2800000>; 590 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 591 }; 592 593 vreg_l5m_1p8: ldo5 { 594 regulator-name = "vreg_l5m_1p8"; 595 regulator-min-microvolt = <1800000>; 596 regulator-max-microvolt = <1800000>; 597 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 598 }; 599 600 vreg_l6m_2p8: ldo6 { 601 regulator-name = "vreg_l6m_2p8"; 602 regulator-min-microvolt = <2800000>; 603 regulator-max-microvolt = <2800000>; 604 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 605 }; 606 607 vreg_l7m_2p96: ldo7 { 608 regulator-name = "vreg_l7m_2p96"; 609 regulator-min-microvolt = <2960000>; 610 regulator-max-microvolt = <2960000>; 611 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 612 }; 613 }; 614 615 regulators-7 { 616 compatible = "qcom,pm8010-rpmh-regulators"; 617 qcom,pmic-id = "n"; 618 619 vdd-l1-l2-supply = <&vreg_s1c_1p2>; 620 vdd-l3-l4-supply = <&vreg_s6c_1p8>; 621 vdd-l5-supply = <&vreg_bob2>; 622 vdd-l6-supply = <&vreg_bob2>; 623 vdd-l7-supply = <&vreg_bob1>; 624 625 vreg_l1n_1p1: ldo1 { 626 regulator-name = "vreg_l1n_1p1"; 627 regulator-min-microvolt = <1104000>; 628 regulator-max-microvolt = <1104000>; 629 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 630 regulator-allow-set-load; 631 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 632 RPMH_REGULATOR_MODE_HPM>; 633 }; 634 635 vreg_l2n_1p056: ldo2 { 636 regulator-name = "vreg_l2n_1p056"; 637 regulator-min-microvolt = <1056000>; 638 regulator-max-microvolt = <1056000>; 639 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 640 regulator-allow-set-load; 641 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 642 RPMH_REGULATOR_MODE_HPM>; 643 }; 644 645 vreg_l3n_1p8: ldo3 { 646 regulator-name = "vreg_l3n_1p8"; 647 regulator-min-microvolt = <1800000>; 648 regulator-max-microvolt = <1800000>; 649 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 650 }; 651 652 vreg_l4n_1p8: ldo4 { 653 regulator-name = "vreg_l4n_1p8"; 654 regulator-min-microvolt = <1800000>; 655 regulator-max-microvolt = <1800000>; 656 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 657 }; 658 659 vreg_l5n_2p8: ldo5 { 660 regulator-name = "vreg_l5n_2p8"; 661 regulator-min-microvolt = <2800000>; 662 regulator-max-microvolt = <2800000>; 663 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 664 }; 665 666 vreg_l6n_2p8: ldo6 { 667 regulator-name = "vreg_l6n_2p8"; 668 regulator-min-microvolt = <2800000>; 669 regulator-max-microvolt = <2800000>; 670 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 671 }; 672 673 vreg_l7n_3p3: ldo7 { 674 regulator-name = "vreg_l7n_3p3"; 675 regulator-min-microvolt = <3304000>; 676 regulator-max-microvolt = <3304000>; 677 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 678 }; 679 }; 680}; 681 682&dispcc { 683 status = "okay"; 684}; 685 686&gpi_dma1 { 687 status = "okay"; 688}; 689 690&i2c3 { 691 status = "okay"; 692 693 wcd_usbss: typec-mux@e { 694 compatible = "qcom,wcd9395-usbss", "qcom,wcd9390-usbss"; 695 reg = <0xe>; 696 697 vdd-supply = <&vreg_l15b_1p8>; 698 reset-gpios = <&tlmm 152 GPIO_ACTIVE_HIGH>; 699 700 mode-switch; 701 orientation-switch; 702 703 ports { 704 #address-cells = <1>; 705 #size-cells = <0>; 706 707 port@0 { 708 reg = <0>; 709 710 wcd_usbss_sbu_mux: endpoint { 711 remote-endpoint = <&pmic_glink_sbu>; 712 }; 713 }; 714 715 port@1 { 716 reg = <1>; 717 718 wcd_usbss_headset_out: endpoint { 719 remote-endpoint = <&wcd_codec_headset_in>; 720 }; 721 }; 722 }; 723 }; 724}; 725 726&i2c6 { 727 status = "okay"; 728 729 typec-mux@1c { 730 compatible = "onnn,nb7vpq904m"; 731 reg = <0x1c>; 732 733 vcc-supply = <&vreg_l15b_1p8>; 734 735 retimer-switch; 736 orientation-switch; 737 738 ports { 739 #address-cells = <1>; 740 #size-cells = <0>; 741 742 port@0 { 743 reg = <0>; 744 745 redriver_ss_out: endpoint { 746 remote-endpoint = <&pmic_glink_ss_in>; 747 }; 748 }; 749 750 port@1 { 751 reg = <1>; 752 753 redriver_ss_in: endpoint { 754 data-lanes = <3 2 1 0>; 755 remote-endpoint = <&usb_dp_qmpphy_out>; 756 }; 757 }; 758 }; 759 }; 760}; 761 762&ipa { 763 qcom,gsi-loader = "self"; 764 memory-region = <&ipa_fw_mem>; 765 firmware-name = "qcom/sm8650/ipa_fws.mbn"; 766 status = "okay"; 767}; 768 769&lpass_tlmm { 770 spkr_1_sd_n_active: spkr-1-sd-n-active-state { 771 pins = "gpio21"; 772 function = "gpio"; 773 drive-strength = <16>; 774 bias-disable; 775 output-low; 776 }; 777}; 778 779&mdss { 780 status = "okay"; 781}; 782 783&mdss_dsi0 { 784 vdda-supply = <&vreg_l3i_1p2>; 785 786 status = "okay"; 787 788 panel@0 { 789 compatible = "visionox,vtdr6130"; 790 reg = <0>; 791 792 reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; 793 794 vddio-supply = <&vreg_l12b_1p8>; 795 vci-supply = <&vreg_l13b_3p0>; 796 vdd-supply = <&vreg_l11b_1p2>; 797 798 pinctrl-0 = <&disp0_reset_n_active>, <&mdp_vsync_active>; 799 pinctrl-1 = <&disp0_reset_n_suspend>, <&mdp_vsync_suspend>; 800 pinctrl-names = "default", "sleep"; 801 802 port { 803 panel0_in: endpoint { 804 remote-endpoint = <&mdss_dsi0_out>; 805 }; 806 }; 807 }; 808}; 809 810&mdss_dsi0_out { 811 remote-endpoint = <&panel0_in>; 812 data-lanes = <0 1 2 3>; 813}; 814 815&mdss_dsi0_phy { 816 vdds-supply = <&vreg_l1i_0p88>; 817 818 status = "okay"; 819}; 820 821&mdss_dp0 { 822 status = "okay"; 823}; 824 825&mdss_dp0_out { 826 data-lanes = <0 1>; 827 remote-endpoint = <&usb_dp_qmpphy_dp_in>; 828}; 829 830&mdss_mdp { 831 status = "okay"; 832}; 833 834&pcie_1_phy_aux_clk { 835 clock-frequency = <1000>; 836}; 837 838&pcie0 { 839 wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; 840 perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; 841 842 pinctrl-0 = <&pcie0_default_state>; 843 pinctrl-names = "default"; 844 845 status = "okay"; 846}; 847 848&pcie0_phy { 849 vdda-phy-supply = <&vreg_l1i_0p88>; 850 vdda-pll-supply = <&vreg_l3i_1p2>; 851 852 status = "okay"; 853}; 854 855&pon_pwrkey { 856 status = "okay"; 857}; 858 859&pon_resin { 860 linux,code = <KEY_VOLUMEDOWN>; 861 862 status = "okay"; 863}; 864 865&pm8550_flash { 866 status = "okay"; 867 868 led-0 { 869 function = LED_FUNCTION_FLASH; 870 color = <LED_COLOR_ID_YELLOW>; 871 led-sources = <1>, <4>; 872 led-max-microamp = <500000>; 873 flash-max-microamp = <2000000>; 874 flash-max-timeout-us = <1280000>; 875 function-enumerator = <0>; 876 }; 877 878 led-1 { 879 function = LED_FUNCTION_FLASH; 880 color = <LED_COLOR_ID_WHITE>; 881 led-sources = <2>, <3>; 882 led-max-microamp = <500000>; 883 flash-max-microamp = <2000000>; 884 flash-max-timeout-us = <1280000>; 885 function-enumerator = <1>; 886 }; 887}; 888 889&pm8550_gpios { 890 volume_up_n: volume-up-n-state { 891 pins = "gpio6"; 892 function = "normal"; 893 bias-pull-up; 894 input-enable; 895 power-source = <1>; 896 }; 897}; 898 899&pm8550_pwm { 900 status = "okay"; 901 902 multi-led { 903 color = <LED_COLOR_ID_RGB>; 904 function = LED_FUNCTION_STATUS; 905 906 #address-cells = <1>; 907 #size-cells = <0>; 908 909 led@1 { 910 reg = <1>; 911 color = <LED_COLOR_ID_RED>; 912 }; 913 914 led@2 { 915 reg = <2>; 916 color = <LED_COLOR_ID_GREEN>; 917 }; 918 919 led@3 { 920 reg = <3>; 921 color = <LED_COLOR_ID_BLUE>; 922 }; 923 }; 924}; 925 926&pm8550b_eusb2_repeater { 927 vdd18-supply = <&vreg_l15b_1p8>; 928 vdd3-supply = <&vreg_l5b_3p1>; 929}; 930 931&pmk8550_rtc { 932 status = "okay"; 933}; 934 935&qup_i2c3_data_clk { 936 /* Use internal I2C pull-up */ 937 bias-pull-up = <2200>; 938}; 939 940&qupv3_id_0 { 941 status = "okay"; 942}; 943 944&qupv3_id_1 { 945 status = "okay"; 946}; 947 948&remoteproc_adsp { 949 firmware-name = "qcom/sm8650/adsp.mbn", 950 "qcom/sm8650/adsp_dtb.mbn"; 951 952 status = "okay"; 953}; 954 955&remoteproc_cdsp { 956 firmware-name = "qcom/sm8650/cdsp.mbn", 957 "qcom/sm8650/cdsp_dtb.mbn"; 958 959 status = "okay"; 960}; 961 962&remoteproc_mpss { 963 firmware-name = "qcom/sm8650/modem.mbn", 964 "qcom/sm8650/modem_dtb.mbn"; 965 966 status = "okay"; 967}; 968 969&sleep_clk { 970 clock-frequency = <32000>; 971}; 972 973&spi4 { 974 status = "okay"; 975 976 touchscreen@0 { 977 compatible = "goodix,gt9916"; 978 reg = <0>; 979 980 interrupt-parent = <&tlmm>; 981 interrupts = <162 IRQ_TYPE_LEVEL_LOW>; 982 983 reset-gpios = <&tlmm 161 GPIO_ACTIVE_LOW>; 984 985 avdd-supply = <&vreg_l14b_3p2>; 986 987 spi-max-frequency = <1000000>; 988 989 touchscreen-size-x = <1080>; 990 touchscreen-size-y = <2400>; 991 992 pinctrl-0 = <&ts_irq>, <&ts_reset>; 993 pinctrl-names = "default"; 994 }; 995}; 996 997&swr0 { 998 status = "okay"; 999 1000 /* WSA8845, Speaker Left */ 1001 left_spkr: speaker@0,0 { 1002 compatible = "sdw20217020400"; 1003 reg = <0 0>; 1004 pinctrl-0 = <&spkr_1_sd_n_active>; 1005 pinctrl-names = "default"; 1006 powerdown-gpios = <&lpass_tlmm 21 GPIO_ACTIVE_LOW>; 1007 #sound-dai-cells = <0>; 1008 sound-name-prefix = "SpkrLeft"; 1009 vdd-1p8-supply = <&vreg_l15b_1p8>; 1010 vdd-io-supply = <&vreg_l3c_1p2>; 1011 }; 1012 1013 /* WSA8845, Speaker Right */ 1014 right_spkr: speaker@0,1 { 1015 compatible = "sdw20217020400"; 1016 reg = <0 1>; 1017 pinctrl-0 = <&spkr_2_sd_n_active>; 1018 pinctrl-names = "default"; 1019 powerdown-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>; 1020 #sound-dai-cells = <0>; 1021 sound-name-prefix = "SpkrRight"; 1022 vdd-1p8-supply = <&vreg_l15b_1p8>; 1023 vdd-io-supply = <&vreg_l3c_1p2>; 1024 }; 1025}; 1026 1027&swr1 { 1028 status = "okay"; 1029 1030 /* WCD9395 RX */ 1031 wcd_rx: codec@0,4 { 1032 compatible = "sdw20217010e00"; 1033 reg = <0 4>; 1034 1035 /* 1036 * WCD9395 RX Port 1 (HPH_L/R) <=> SWR1 Port 1 (HPH_L/R) 1037 * WCD9395 RX Port 2 (CLSH) <=> SWR1 Port 2 (CLSH) 1038 * WCD9395 RX Port 3 (COMP_L/R) <=> SWR1 Port 3 (COMP_L/R) 1039 * WCD9395 RX Port 4 (LO) <=> SWR1 Port 4 (LO) 1040 * WCD9395 RX Port 5 (DSD_L/R) <=> SWR1 Port 5 (DSD_L/R) 1041 * WCD9395 RX Port 6 (HIFI_PCM_L/R) <=> SWR1 Port 9 (HIFI_PCM_L/R) 1042 */ 1043 qcom,rx-port-mapping = <1 2 3 4 5 9>; 1044 }; 1045}; 1046 1047&swr2 { 1048 status = "okay"; 1049 1050 /* WCD9395 TX */ 1051 wcd_tx: codec@0,3 { 1052 compatible = "sdw20217010e00"; 1053 reg = <0 3>; 1054 1055 /* 1056 * WCD9395 TX Port 1 (ADC1,2,3,4) <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3) 1057 * WCD9395 TX Port 2 (ADC3,4 & DMIC0,1) <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3) 1058 * WCD9395 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 (TX SWR_INPUT 4,5,6,7) 1059 * WCD9395 TX Port 4 (DMIC4,5,6,7) <=> SWR2 Port 4 (TX SWR_INPUT 8,9,10,11) 1060 */ 1061 qcom,tx-port-mapping = <2 2 3 4>; 1062 }; 1063}; 1064 1065&tlmm { 1066 /* Reserved I/Os for NFC */ 1067 gpio-reserved-ranges = <32 8>, <74 1>; 1068 1069 bt_default: bt-default-state { 1070 bt-en-pins { 1071 pins = "gpio17"; 1072 function = "gpio"; 1073 drive-strength = <16>; 1074 bias-disable; 1075 }; 1076 1077 sw-ctrl-pins { 1078 pins = "gpio18"; 1079 function = "gpio"; 1080 bias-pull-down; 1081 }; 1082 }; 1083 1084 disp0_reset_n_active: disp0-reset-n-active-state { 1085 pins = "gpio133"; 1086 function = "gpio"; 1087 drive-strength = <8>; 1088 bias-disable; 1089 }; 1090 1091 disp0_reset_n_suspend: disp0-reset-n-suspend-state { 1092 pins = "gpio133"; 1093 function = "gpio"; 1094 drive-strength = <2>; 1095 bias-pull-down; 1096 }; 1097 1098 mdp_vsync_active: mdp-vsync-active-state { 1099 pins = "gpio86"; 1100 function = "mdp_vsync"; 1101 drive-strength = <2>; 1102 bias-pull-down; 1103 }; 1104 1105 mdp_vsync_suspend: mdp-vsync-suspend-state { 1106 pins = "gpio86"; 1107 function = "mdp_vsync"; 1108 drive-strength = <2>; 1109 bias-pull-down; 1110 }; 1111 1112 spkr_2_sd_n_active: spkr-2-sd-n-active-state { 1113 pins = "gpio77"; 1114 function = "gpio"; 1115 drive-strength = <16>; 1116 bias-disable; 1117 output-low; 1118 }; 1119 1120 ts_irq: ts-irq-state { 1121 pins = "gpio161"; 1122 function = "gpio"; 1123 drive-strength = <8>; 1124 bias-pull-up; 1125 output-disable; 1126 }; 1127 1128 ts_reset: ts-reset-state { 1129 pins = "gpio162"; 1130 function = "gpio"; 1131 drive-strength = <8>; 1132 bias-pull-up; 1133 }; 1134 1135 wcd_default: wcd-reset-n-active-state { 1136 pins = "gpio107"; 1137 function = "gpio"; 1138 drive-strength = <16>; 1139 bias-disable; 1140 output-low; 1141 }; 1142}; 1143 1144&uart14 { 1145 status = "okay"; 1146 1147 bluetooth { 1148 compatible = "qcom,wcn7850-bt"; 1149 1150 clocks = <&rpmhcc RPMH_RF_CLK1>; 1151 1152 vddio-supply = <&vreg_l3c_1p2>; 1153 vddaon-supply = <&vreg_l15b_1p8>; 1154 vdddig-supply = <&vreg_s3c_0p9>; 1155 vddrfa0p8-supply = <&vreg_s3c_0p9>; 1156 vddrfa1p2-supply = <&vreg_s1c_1p2>; 1157 vddrfa1p9-supply = <&vreg_s6c_1p8>; 1158 1159 max-speed = <3200000>; 1160 1161 enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>; 1162 swctrl-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; 1163 1164 pinctrl-0 = <&bt_default>; 1165 pinctrl-names = "default"; 1166 }; 1167}; 1168 1169&uart15 { 1170 status = "okay"; 1171}; 1172 1173&ufs_mem_hc { 1174 reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; 1175 1176 vcc-supply = <&vreg_l17b_2p5>; 1177 vcc-max-microamp = <1300000>; 1178 vccq-supply = <&vreg_l1c_1p2>; 1179 vccq-max-microamp = <1200000>; 1180 1181 status = "okay"; 1182}; 1183 1184&ufs_mem_phy { 1185 vdda-phy-supply = <&vreg_l1d_0p88>; 1186 vdda-pll-supply = <&vreg_l3i_1p2>; 1187 1188 status = "okay"; 1189}; 1190 1191/* 1192 * DPAUX -> WCD9395 -> USB_SBU -> USB-C 1193 * eUSB2 DP/DM -> PM85550HS -> eUSB2 DP/DM -> WCD9395 -> USB-C 1194 * USB SS -> NB7VPQ904MMUTWG -> USB-C 1195 */ 1196 1197&usb_1 { 1198 status = "okay"; 1199}; 1200 1201&usb_1_dwc3 { 1202 dr_mode = "otg"; 1203 usb-role-switch; 1204}; 1205 1206&usb_1_dwc3_hs { 1207 remote-endpoint = <&pmic_glink_hs_in>; 1208}; 1209 1210&usb_1_dwc3_ss { 1211 remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; 1212}; 1213 1214&usb_1_hsphy { 1215 vdd-supply = <&vreg_l1i_0p88>; 1216 vdda12-supply = <&vreg_l3i_1p2>; 1217 1218 phys = <&pm8550b_eusb2_repeater>; 1219 1220 status = "okay"; 1221}; 1222 1223&usb_dp_qmpphy { 1224 vdda-phy-supply = <&vreg_l3i_1p2>; 1225 vdda-pll-supply = <&vreg_l3g_0p91>; 1226 1227 orientation-switch; 1228 1229 status = "okay"; 1230}; 1231 1232&usb_dp_qmpphy_dp_in { 1233 remote-endpoint = <&mdss_dp0_out>; 1234}; 1235 1236&usb_dp_qmpphy_out { 1237 remote-endpoint = <&redriver_ss_in>; 1238}; 1239 1240&usb_dp_qmpphy_usb_ss_in { 1241 remote-endpoint = <&usb_1_dwc3_ss>; 1242}; 1243 1244&xo_board { 1245 clock-frequency = <76800000>; 1246}; 1247