1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2022, Linaro Limited 4 */ 5 6 /dts-v1/; 7 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 10 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350b.h> 11 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 12 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 13 #include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h> 14 #include "sm8450.dtsi" 15 #include "pm8350.dtsi" 16 #include "pm8350b.dtsi" 17 #include "pm8350c.dtsi" 18 #include "pm8450.dtsi" 19 #include "pmk8350.dtsi" 20 #include "pmr735a.dtsi" 21 22 / { 23 model = "Qualcomm Technologies, Inc. SM8450 HDK"; 24 compatible = "qcom,sm8450-hdk", "qcom,sm8450"; 25 chassis-type = "embedded"; 26 27 aliases { 28 serial0 = &uart7; 29 }; 30 31 wcd938x: audio-codec { 32 compatible = "qcom,wcd9385-codec"; 33 34 pinctrl-names = "default"; 35 pinctrl-0 = <&wcd_default>; 36 37 qcom,micbias1-microvolt = <1800000>; 38 qcom,micbias2-microvolt = <1800000>; 39 qcom,micbias3-microvolt = <1800000>; 40 qcom,micbias4-microvolt = <1800000>; 41 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 42 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 43 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 44 qcom,rx-device = <&wcd_rx>; 45 qcom,tx-device = <&wcd_tx>; 46 47 reset-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>; 48 49 vdd-buck-supply = <&vreg_s10b_1p8>; 50 vdd-rxtx-supply = <&vreg_s10b_1p8>; 51 vdd-io-supply = <&vreg_s10b_1p8>; 52 vdd-mic-bias-supply = <&vreg_bob>; 53 54 #sound-dai-cells = <1>; 55 }; 56 57 chosen { 58 stdout-path = "serial0:115200n8"; 59 }; 60 61 hdmi-out { 62 compatible = "hdmi-connector"; 63 type = "a"; 64 65 port { 66 hdmi_connector_out: endpoint { 67 remote-endpoint = <<9611_out>; 68 }; 69 }; 70 }; 71 72 lt9611_1v2: lt9611-vdd12-regulator { 73 compatible = "regulator-fixed"; 74 regulator-name = "LT9611_1V2"; 75 76 vin-supply = <&vph_pwr>; 77 regulator-min-microvolt = <1200000>; 78 regulator-max-microvolt = <1200000>; 79 gpio = <&tlmm 9 GPIO_ACTIVE_HIGH>; 80 enable-active-high; 81 }; 82 83 lt9611_3v3: lt9611-3v3-regulator { 84 compatible = "regulator-fixed"; 85 regulator-name = "LT9611_3V3"; 86 87 vin-supply = <&vreg_bob>; 88 gpio = <&tlmm 109 GPIO_ACTIVE_HIGH>; 89 regulator-min-microvolt = <3300000>; 90 regulator-max-microvolt = <3300000>; 91 enable-active-high; 92 }; 93 94 pmic-glink { 95 compatible = "qcom,sm8450-pmic-glink", "qcom,pmic-glink"; 96 #address-cells = <1>; 97 #size-cells = <0>; 98 orientation-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>; 99 100 connector@0 { 101 compatible = "usb-c-connector"; 102 reg = <0>; 103 power-role = "dual"; 104 data-role = "dual"; 105 106 ports { 107 #address-cells = <1>; 108 #size-cells = <0>; 109 110 port@0 { 111 reg = <0>; 112 113 pmic_glink_hs_in: endpoint { 114 remote-endpoint = <&usb_1_dwc3_hs>; 115 }; 116 }; 117 118 port@1 { 119 reg = <1>; 120 121 pmic_glink_ss_in: endpoint { 122 remote-endpoint = <&usb_1_qmpphy_out>; 123 }; 124 }; 125 126 port@2 { 127 reg = <2>; 128 129 pmic_glink_sbu: endpoint { 130 remote-endpoint = <&fsa4480_sbu_mux>; 131 }; 132 }; 133 134 }; 135 }; 136 }; 137 138 thermal-zones { 139 camera-thermal { 140 polling-delay-passive = <250>; 141 142 thermal-sensors = <&pmk8350_adc_tm 2>; 143 144 trips { 145 active-config0 { 146 temperature = <75000>; 147 hysteresis = <4000>; 148 type = "passive"; 149 }; 150 }; 151 }; 152 153 rear-tof-thermal { 154 polling-delay-passive = <250>; 155 156 thermal-sensors = <&pmk8350_adc_tm 5>; 157 158 trips { 159 active-config0 { 160 temperature = <75000>; 161 hysteresis = <4000>; 162 type = "passive"; 163 }; 164 }; 165 }; 166 167 skin-msm-thermal { 168 polling-delay-passive = <250>; 169 170 thermal-sensors = <&pmk8350_adc_tm 1>; 171 172 trips { 173 active-config0 { 174 temperature = <75000>; 175 hysteresis = <4000>; 176 type = "passive"; 177 }; 178 }; 179 }; 180 181 therm1-thermal { 182 polling-delay-passive = <250>; 183 184 thermal-sensors = <&pmk8350_adc_tm 3>; 185 186 trips { 187 active-config0 { 188 temperature = <75000>; 189 hysteresis = <4000>; 190 type = "passive"; 191 }; 192 }; 193 }; 194 195 therm2-thermal { 196 polling-delay-passive = <250>; 197 198 thermal-sensors = <&pmk8350_adc_tm 6>; 199 200 trips { 201 active-config0 { 202 temperature = <75000>; 203 hysteresis = <4000>; 204 type = "passive"; 205 }; 206 }; 207 }; 208 209 usb-conn-thermal { 210 polling-delay-passive = <250>; 211 212 thermal-sensors = <&pmk8350_adc_tm 7>; 213 214 trips { 215 active-config0 { 216 temperature = <75000>; 217 hysteresis = <4000>; 218 type = "passive"; 219 }; 220 }; 221 }; 222 223 wide-rfc-thermal { 224 polling-delay-passive = <250>; 225 226 thermal-sensors = <&pmk8350_adc_tm 4>; 227 228 trips { 229 active-config0 { 230 temperature = <75000>; 231 hysteresis = <4000>; 232 type = "passive"; 233 }; 234 }; 235 }; 236 237 xo-thermal { 238 thermal-sensors = <&pmk8350_adc_tm 0>; 239 240 trips { 241 active-config0 { 242 temperature = <50000>; 243 hysteresis = <4000>; 244 type = "passive"; 245 }; 246 }; 247 }; 248 }; 249 250 vph_pwr: vph-pwr-regulator { 251 compatible = "regulator-fixed"; 252 regulator-name = "vph_pwr"; 253 regulator-min-microvolt = <3700000>; 254 regulator-max-microvolt = <3700000>; 255 256 regulator-always-on; 257 regulator-boot-on; 258 }; 259 }; 260 261 &apps_rsc { 262 regulators-0 { 263 compatible = "qcom,pm8350-rpmh-regulators"; 264 qcom,pmic-id = "b"; 265 266 vdd-s1-supply = <&vph_pwr>; 267 vdd-s2-supply = <&vph_pwr>; 268 vdd-s3-supply = <&vph_pwr>; 269 vdd-s4-supply = <&vph_pwr>; 270 vdd-s5-supply = <&vph_pwr>; 271 vdd-s6-supply = <&vph_pwr>; 272 vdd-s7-supply = <&vph_pwr>; 273 vdd-s8-supply = <&vph_pwr>; 274 vdd-s9-supply = <&vph_pwr>; 275 vdd-s10-supply = <&vph_pwr>; 276 vdd-s11-supply = <&vph_pwr>; 277 vdd-s12-supply = <&vph_pwr>; 278 279 vdd-l1-l4-supply = <&vreg_s11b_0p95>; 280 vdd-l2-l7-supply = <&vreg_bob>; 281 vdd-l3-l5-supply = <&vreg_bob>; 282 vdd-l6-l9-l10-supply = <&vreg_s12b_1p25>; 283 vdd-l8-supply = <&vreg_s2h_0p95>; 284 285 vreg_s10b_1p8: smps10 { 286 regulator-name = "vreg_s10b_1p8"; 287 regulator-min-microvolt = <1800000>; 288 regulator-max-microvolt = <1800000>; 289 }; 290 291 vreg_s11b_0p95: smps11 { 292 regulator-name = "vreg_s11b_0p95"; 293 regulator-min-microvolt = <966000>; 294 regulator-max-microvolt = <1104000>; 295 }; 296 297 vreg_s12b_1p25: smps12 { 298 regulator-name = "vreg_s12b_1p25"; 299 regulator-min-microvolt = <1350000>; 300 regulator-max-microvolt = <1400000>; 301 }; 302 303 vreg_l1b_0p91: ldo1 { 304 regulator-name = "vreg_l1b_0p91"; 305 regulator-min-microvolt = <912000>; 306 regulator-max-microvolt = <920000>; 307 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 308 }; 309 310 vreg_l2b_3p07: ldo2 { 311 regulator-name = "vreg_l2b_3p07"; 312 regulator-min-microvolt = <3072000>; 313 regulator-max-microvolt = <3072000>; 314 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 315 }; 316 317 vreg_l3b_0p9: ldo3 { 318 regulator-name = "vreg_l3b_0p9"; 319 regulator-min-microvolt = <904000>; 320 regulator-max-microvolt = <904000>; 321 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 322 }; 323 324 vreg_l5b_0p88: ldo5 { 325 regulator-name = "vreg_l5b_0p88"; 326 regulator-min-microvolt = <880000>; 327 regulator-max-microvolt = <888000>; 328 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 329 }; 330 331 vreg_l6b_1p2: ldo6 { 332 regulator-name = "vreg_l6b_1p2"; 333 regulator-min-microvolt = <1200000>; 334 regulator-max-microvolt = <1200000>; 335 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 336 }; 337 338 vreg_l7b_2p5: ldo7 { 339 regulator-name = "vreg_l7b_2p5"; 340 regulator-min-microvolt = <2504000>; 341 regulator-max-microvolt = <2504000>; 342 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 343 }; 344 345 vreg_l9b_1p2: ldo9 { 346 regulator-name = "vreg_l9b_1p2"; 347 regulator-min-microvolt = <1200000>; 348 regulator-max-microvolt = <1200000>; 349 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 350 }; 351 }; 352 353 regulators-1 { 354 compatible = "qcom,pm8350c-rpmh-regulators"; 355 qcom,pmic-id = "c"; 356 357 vdd-s1-supply = <&vph_pwr>; 358 vdd-s2-supply = <&vph_pwr>; 359 vdd-s3-supply = <&vph_pwr>; 360 vdd-s4-supply = <&vph_pwr>; 361 vdd-s5-supply = <&vph_pwr>; 362 vdd-s6-supply = <&vph_pwr>; 363 vdd-s7-supply = <&vph_pwr>; 364 vdd-s8-supply = <&vph_pwr>; 365 vdd-s9-supply = <&vph_pwr>; 366 vdd-s10-supply = <&vph_pwr>; 367 368 vdd-l1-l12-supply = <&vreg_bob>; 369 vdd-l2-l8-supply = <&vreg_bob>; 370 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; 371 vdd-l6-l9-l11-supply = <&vreg_bob>; 372 vdd-l10-supply = <&vreg_s12b_1p25>; 373 374 vdd-bob-supply = <&vph_pwr>; 375 376 vreg_s1c_1p86: smps1 { 377 regulator-name = "vreg_s1c_1p86"; 378 regulator-min-microvolt = <1800000>; 379 regulator-max-microvolt = <2024000>; 380 }; 381 382 vreg_s10c_1p05: smps10 { 383 regulator-name = "vreg_s10c_1p05"; 384 regulator-min-microvolt = <1000000>; 385 regulator-max-microvolt = <1100000>; 386 }; 387 388 vreg_bob: bob { 389 regulator-name = "vreg_bob"; 390 regulator-min-microvolt = <3008000>; 391 regulator-max-microvolt = <3960000>; 392 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 393 }; 394 395 vreg_l1c_1p8: ldo1 { 396 regulator-name = "vreg_l1c_1p8"; 397 regulator-min-microvolt = <1800000>; 398 regulator-max-microvolt = <1800000>; 399 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 400 }; 401 402 vreg_l3c_3p0: ldo3 { 403 regulator-name = "vreg_l3c_3p0"; 404 regulator-min-microvolt = <3296000>; 405 regulator-max-microvolt = <3304000>; 406 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 407 }; 408 409 vreg_l4c_1p8: ldo4 { 410 regulator-name = "vreg_l4c_1p8"; 411 regulator-min-microvolt = <1704000>; 412 regulator-max-microvolt = <3000000>; 413 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 414 }; 415 416 vreg_l5c_1p8: ldo5 { 417 regulator-name = "vreg_l5c_1p8"; 418 regulator-min-microvolt = <1704000>; 419 regulator-max-microvolt = <3000000>; 420 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 421 }; 422 423 vreg_l6c_1p8: ldo6 { 424 regulator-name = "vreg_l6c_1p8"; 425 regulator-min-microvolt = <1800000>; 426 regulator-max-microvolt = <3008000>; 427 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 428 }; 429 430 vreg_l7c_3p0: ldo7 { 431 regulator-name = "vreg_l7c_3p0"; 432 regulator-min-microvolt = <3008000>; 433 regulator-max-microvolt = <3008000>; 434 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 435 }; 436 437 vreg_l8c_1p8: ldo8 { 438 regulator-name = "vreg_l8c_1p8"; 439 regulator-min-microvolt = <1800000>; 440 regulator-max-microvolt = <1800000>; 441 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 442 }; 443 444 vreg_l9c_2p96: ldo9 { 445 regulator-name = "vreg_l9c_2p96"; 446 regulator-min-microvolt = <2960000>; 447 regulator-max-microvolt = <3008000>; 448 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 449 }; 450 451 vreg_l12c_1p8: ldo12 { 452 regulator-name = "vreg_l12c_1p8"; 453 regulator-min-microvolt = <1800000>; 454 regulator-max-microvolt = <1968000>; 455 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 456 }; 457 458 vreg_l13c_3p0: ldo13 { 459 regulator-name = "vreg_l13c_3p0"; 460 regulator-min-microvolt = <3000000>; 461 regulator-max-microvolt = <3000000>; 462 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 463 }; 464 }; 465 466 regulators-2 { 467 compatible = "qcom,pm8450-rpmh-regulators"; 468 qcom,pmic-id = "h"; 469 470 vdd-s1-supply = <&vph_pwr>; 471 vdd-s2-supply = <&vph_pwr>; 472 vdd-s3-supply = <&vph_pwr>; 473 vdd-s4-supply = <&vph_pwr>; 474 vdd-s5-supply = <&vph_pwr>; 475 vdd-s6-supply = <&vph_pwr>; 476 477 vdd-l2-supply = <&vreg_bob>; 478 vdd-l3-supply = <&vreg_bob>; 479 vdd-l4-supply = <&vreg_bob>; 480 481 vreg_s2h_0p95: smps2 { 482 regulator-name = "vreg_s2h_0p95"; 483 regulator-min-microvolt = <848000>; 484 regulator-max-microvolt = <1104000>; 485 }; 486 487 vreg_s3h_0p5: smps3 { 488 regulator-name = "vreg_s3h_0p5"; 489 regulator-min-microvolt = <500000>; 490 regulator-max-microvolt = <500000>; 491 }; 492 493 vreg_l2h_0p91: ldo2 { 494 regulator-name = "vreg_l2h_0p91"; 495 regulator-min-microvolt = <880000>; 496 regulator-max-microvolt = <912000>; 497 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 498 }; 499 500 vreg_l3h_0p91: ldo3 { 501 regulator-name = "vreg_l3h_0p91"; 502 regulator-min-microvolt = <912000>; 503 regulator-max-microvolt = <912000>; 504 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 505 }; 506 }; 507 508 regulators-3 { 509 compatible = "qcom,pmr735a-rpmh-regulators"; 510 qcom,pmic-id = "e"; 511 512 vdd-s1-supply = <&vph_pwr>; 513 vdd-s2-supply = <&vph_pwr>; 514 vdd-s3-supply = <&vph_pwr>; 515 516 vdd-l1-l2-supply = <&vreg_s2e_0p85>; 517 vdd-l3-supply = <&vreg_s1e_1p25>; 518 vdd-l4-supply = <&vreg_s1c_1p86>; 519 vdd-l5-l6-supply = <&vreg_s1c_1p86>; 520 vdd-l7-bob-supply = <&vreg_bob>; 521 522 vreg_s1e_1p25: smps1 { 523 regulator-name = "vreg_s1e_1p25"; 524 regulator-min-microvolt = <1200000>; 525 regulator-max-microvolt = <1296000>; 526 }; 527 528 vreg_s2e_0p85: smps2 { 529 regulator-name = "vreg_s2e_0p85"; 530 regulator-min-microvolt = <500000>; 531 regulator-max-microvolt = <1040000>; 532 }; 533 534 vreg_l1e_0p8: ldo1 { 535 regulator-name = "vreg_l1e_0p8"; 536 regulator-min-microvolt = <800000>; 537 regulator-max-microvolt = <800000>; 538 }; 539 540 vreg_l2e_0p8: ldo2 { 541 regulator-name = "vreg_l2e_0p8"; 542 regulator-min-microvolt = <800000>; 543 regulator-max-microvolt = <800000>; 544 }; 545 546 vreg_l3e_1p2: ldo3 { 547 regulator-name = "vreg_l3e_1p2"; 548 regulator-min-microvolt = <1200000>; 549 regulator-max-microvolt = <1200000>; 550 }; 551 552 vreg_l4e_1p7: ldo4 { 553 regulator-name = "vreg_l4e_1p7"; 554 regulator-min-microvolt = <1776000>; 555 regulator-max-microvolt = <1776000>; 556 }; 557 558 vreg_l5e_0p88: ldo5 { 559 regulator-name = "vreg_l5e_0p88"; 560 regulator-min-microvolt = <880000>; 561 regulator-max-microvolt = <880000>; 562 }; 563 564 vreg_l6e_1p2: ldo6 { 565 regulator-name = "vreg_l6e_1p2"; 566 regulator-min-microvolt = <1200000>; 567 regulator-max-microvolt = <1200000>; 568 }; 569 570 vreg_l7e_2p8: ldo7 { 571 regulator-name = "vreg_l7e_2p8"; 572 regulator-min-microvolt = <2800000>; 573 regulator-max-microvolt = <2800000>; 574 }; 575 }; 576 }; 577 578 &dispcc { 579 status = "okay"; 580 }; 581 582 &gpu { 583 status = "okay"; 584 585 zap-shader { 586 firmware-name = "qcom/sm8450/a730_zap.mbn"; 587 }; 588 }; 589 590 &i2c9 { 591 clock-frequency = <400000>; 592 status = "okay"; 593 594 lt9611_codec: hdmi-bridge@2b { 595 compatible = "lontium,lt9611uxc"; 596 reg = <0x2b>; 597 598 interrupts-extended = <&tlmm 44 IRQ_TYPE_EDGE_FALLING>; 599 600 reset-gpios = <&tlmm 107 GPIO_ACTIVE_HIGH>; 601 602 vdd-supply = <<9611_1v2>; 603 vcc-supply = <<9611_3v3>; 604 605 pinctrl-names = "default"; 606 pinctrl-0 = <<9611_irq_pin <9611_rst_pin>; 607 608 ports { 609 #address-cells = <1>; 610 #size-cells = <0>; 611 612 port@0 { 613 reg = <0>; 614 615 lt9611_a: endpoint { 616 remote-endpoint = <&mdss_dsi0_out>; 617 }; 618 }; 619 620 port@2 { 621 reg = <2>; 622 623 lt9611_out: endpoint { 624 remote-endpoint = <&hdmi_connector_out>; 625 }; 626 }; 627 }; 628 }; 629 }; 630 631 &i2c5 { 632 clock-frequency = <100000>; 633 634 status = "okay"; 635 636 typec-mux@42 { 637 compatible = "fcs,fsa4480"; 638 reg = <0x42>; 639 640 interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; 641 642 vcc-supply = <&vreg_bob>; 643 mode-switch; 644 orientation-switch; 645 646 port { 647 fsa4480_sbu_mux: endpoint { 648 remote-endpoint = <&pmic_glink_sbu>; 649 }; 650 }; 651 }; 652 }; 653 654 &mdss { 655 status = "okay"; 656 }; 657 658 &mdss_dsi0 { 659 vdda-supply = <&vreg_l6b_1p2>; 660 status = "okay"; 661 }; 662 663 &mdss_dsi0_out { 664 remote-endpoint = <<9611_a>; 665 data-lanes = <0 1 2 3>; 666 }; 667 668 &mdss_dsi0_phy { 669 vdds-supply = <&vreg_l5b_0p88>; 670 status = "okay"; 671 }; 672 673 &mdss_dp0 { 674 status = "okay"; 675 }; 676 677 &mdss_dp0_out { 678 data-lanes = <0 1>; 679 }; 680 681 &pcie0 { 682 status = "okay"; 683 max-link-speed = <2>; 684 }; 685 686 &pcie0_phy { 687 status = "okay"; 688 vdda-phy-supply = <&vreg_l5b_0p88>; 689 vdda-pll-supply = <&vreg_l6b_1p2>; 690 }; 691 692 &pcie1 { 693 status = "okay"; 694 }; 695 696 &pcie1_phy { 697 status = "okay"; 698 vdda-phy-supply = <&vreg_l2h_0p91>; 699 vdda-pll-supply = <&vreg_l6b_1p2>; 700 }; 701 702 &pm8350_temp_alarm { 703 io-channels = <&pmk8350_vadc PM8350_ADC7_DIE_TEMP(1)>; 704 io-channel-names = "thermal"; 705 }; 706 707 &pm8350b_temp_alarm { 708 io-channels = <&pmk8350_vadc PM8350B_ADC7_DIE_TEMP>; 709 io-channel-names = "thermal"; 710 }; 711 712 &pmr735a_temp_alarm { 713 io-channels = <&pmk8350_vadc PMR735A_ADC7_DIE_TEMP>; 714 io-channel-names = "thermal"; 715 }; 716 717 &pmk8350_adc_tm { 718 status = "okay"; 719 720 xo-therm@0 { 721 reg = <0>; 722 io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>; 723 qcom,ratiometric; 724 qcom,hw-settle-time-us = <200>; 725 }; 726 727 skin-msm-therm@1 { 728 reg = <1>; 729 io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; 730 qcom,ratiometric; 731 qcom,hw-settle-time-us = <200>; 732 }; 733 734 camera-therm@2 { 735 reg = <2>; 736 io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; 737 qcom,ratiometric; 738 qcom,hw-settle-time-us = <200>; 739 }; 740 741 therm1-therm@3 { 742 reg = <3>; 743 io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; 744 qcom,ratiometric; 745 qcom,hw-settle-time-us = <200>; 746 }; 747 748 wide-rfc-therm@4 { 749 reg = <4>; 750 io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; 751 qcom,ratiometric; 752 qcom,hw-settle-time-us = <200>; 753 }; 754 755 rear-tof-therm@5 { 756 reg = <5>; 757 io-channels = <&pmk8350_vadc PM8350_ADC7_AMUX_THM5_100K_PU(1)>; 758 qcom,ratiometric; 759 qcom,hw-settle-time-us = <200>; 760 }; 761 762 therm2-therm@6 { 763 reg = <6>; 764 io-channels = <&pmk8350_vadc PM8350_ADC7_GPIO3_100K_PU(1)>; 765 qcom,ratiometric; 766 qcom,hw-settle-time-us = <200>; 767 }; 768 769 usb-conn-therm@7 { 770 reg = <7>; 771 io-channels = <&pmk8350_vadc PM8350B_ADC7_AMUX_THM5_100K_PU>; 772 qcom,ratiometric; 773 qcom,hw-settle-time-us = <200>; 774 }; 775 }; 776 777 &pmk8350_vadc { 778 status = "okay"; 779 780 channel@3 { 781 reg = <PMK8350_ADC7_DIE_TEMP>; 782 label = "pmk8350_die_temp"; 783 }; 784 785 channel@44 { 786 reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>; 787 qcom,hw-settle-time = <200>; 788 qcom,ratiometric; 789 label = "pmk8350_xo_therm"; 790 }; 791 792 channel@103 { 793 reg = <PM8350_ADC7_DIE_TEMP(1)>; 794 label = "pm8350_die_temp"; 795 }; 796 797 channel@144 { 798 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(1)>; 799 qcom,hw-settle-time = <200>; 800 qcom,ratiometric; 801 label = "skin_msm_temp"; 802 }; 803 804 channel@145 { 805 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(1)>; 806 qcom,hw-settle-time = <200>; 807 qcom,ratiometric; 808 label = "camera_temp"; 809 }; 810 811 channel@146 { 812 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(1)>; 813 qcom,hw-settle-time = <200>; 814 qcom,ratiometric; 815 label = "therm1_temp"; 816 }; 817 818 channel@147 { 819 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>; 820 qcom,hw-settle-time = <200>; 821 qcom,ratiometric; 822 label = "wide_rfc_temp"; 823 }; 824 825 channel@148 { 826 reg = <PM8350_ADC7_AMUX_THM5_100K_PU(1)>; 827 qcom,hw-settle-time = <200>; 828 qcom,ratiometric; 829 label = "rear_tof_temp"; 830 }; 831 832 channel@14c { 833 reg = <PM8350_ADC7_GPIO3_100K_PU(1)>; 834 qcom,hw-settle-time = <200>; 835 qcom,ratiometric; 836 label = "therm2_temp"; 837 }; 838 839 channel@303 { 840 reg = <PM8350B_ADC7_DIE_TEMP>; 841 label = "pm8350b_die_temp"; 842 }; 843 844 channel@348 { 845 reg = <PM8350B_ADC7_AMUX_THM5_100K_PU>; 846 qcom,hw-settle-time = <200>; 847 qcom,ratiometric; 848 label = "usb_conn_temp"; 849 }; 850 851 channel@403 { 852 reg = <PMR735A_ADC7_DIE_TEMP>; 853 label = "pmr735a_die_temp"; 854 }; 855 856 channel@44a { 857 reg = <PMR735A_ADC7_GPIO1_100K_PU>; 858 qcom,hw-settle-time = <200>; 859 qcom,ratiometric; 860 label = "qtm_w_temp"; 861 }; 862 863 channel@44b { 864 reg = <PMR735A_ADC7_GPIO2_100K_PU>; 865 qcom,hw-settle-time = <200>; 866 qcom,ratiometric; 867 label = "qtm_n_temp"; 868 }; 869 }; 870 871 &remoteproc_adsp { 872 status = "okay"; 873 firmware-name = "qcom/sm8450/adsp.mbn"; 874 }; 875 876 &remoteproc_cdsp { 877 status = "okay"; 878 firmware-name = "qcom/sm8450/cdsp.mbn"; 879 }; 880 881 &remoteproc_mpss { 882 status = "okay"; 883 firmware-name = "qcom/sm8450/modem.mbn"; 884 }; 885 886 &remoteproc_slpi { 887 status = "okay"; 888 firmware-name = "qcom/sm8450/slpi.mbn"; 889 }; 890 891 &qupv3_id_0 { 892 status = "okay"; 893 }; 894 895 &qupv3_id_1 { 896 status = "okay"; 897 }; 898 899 &sdhc_2 { 900 cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>; 901 pinctrl-names = "default", "sleep"; 902 pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; 903 pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; 904 vmmc-supply = <&vreg_l9c_2p96>; 905 vqmmc-supply = <&vreg_l6c_1p8>; 906 no-sdio; 907 no-mmc; 908 status = "okay"; 909 }; 910 911 &sound { 912 compatible = "qcom,sm8450-sndcard"; 913 model = "SM8450-HDK"; 914 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", 915 "SpkrRight IN", "WSA_SPK2 OUT", 916 "IN1_HPHL", "HPHL_OUT", 917 "IN2_HPHR", "HPHR_OUT", 918 "AMIC1", "MIC BIAS1", 919 "AMIC2", "MIC BIAS2", 920 "AMIC3", "MIC BIAS3", 921 "AMIC4", "MIC BIAS3", 922 "AMIC5", "MIC BIAS4", 923 "VA DMIC0", "MIC BIAS3", 924 "VA DMIC1", "MIC BIAS3", 925 "VA DMIC2", "MIC BIAS1", 926 "VA DMIC3", "MIC BIAS1", 927 "TX DMIC0", "MIC BIAS3", 928 "TX DMIC1", "MIC BIAS3", 929 "TX DMIC2", "MIC BIAS1", 930 "TX DMIC3", "MIC BIAS1", 931 "TX SWR_INPUT0", "ADC1_OUTPUT", 932 "TX SWR_INPUT1", "ADC2_OUTPUT", 933 "TX SWR_INPUT0", "ADC3_OUTPUT", 934 "TX SWR_INPUT1", "ADC4_OUTPUT"; 935 936 wcd-playback-dai-link { 937 link-name = "WCD Playback"; 938 939 cpu { 940 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 941 }; 942 943 codec { 944 sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; 945 }; 946 947 platform { 948 sound-dai = <&q6apm>; 949 }; 950 }; 951 952 wcd-capture-dai-link { 953 link-name = "WCD Capture"; 954 955 cpu { 956 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 957 }; 958 959 codec { 960 sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; 961 }; 962 963 platform { 964 sound-dai = <&q6apm>; 965 }; 966 }; 967 968 wsa-dai-link { 969 link-name = "WSA Playback"; 970 971 cpu { 972 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 973 }; 974 975 codec { 976 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; 977 }; 978 979 platform { 980 sound-dai = <&q6apm>; 981 }; 982 }; 983 984 va-dai-link { 985 link-name = "VA Capture"; 986 987 cpu { 988 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 989 }; 990 991 codec { 992 sound-dai = <&vamacro 0>; 993 }; 994 995 platform { 996 sound-dai = <&q6apm>; 997 }; 998 }; 999 }; 1000 1001 &swr0 { 1002 status = "okay"; 1003 1004 left_spkr: speaker@0,1 { 1005 compatible = "sdw10217020200"; 1006 reg = <0 1>; 1007 pinctrl-names = "default"; 1008 pinctrl-0 = <&spkr_1_sd_n_active>; 1009 powerdown-gpios = <&tlmm 1 GPIO_ACTIVE_LOW>; 1010 #sound-dai-cells = <0>; 1011 sound-name-prefix = "SpkrLeft"; 1012 #thermal-sensor-cells = <0>; 1013 vdd-supply = <&vreg_s10b_1p8>; 1014 }; 1015 1016 right_spkr: speaker@0,2 { 1017 compatible = "sdw10217020200"; 1018 reg = <0 2>; 1019 pinctrl-names = "default"; 1020 pinctrl-0 = <&spkr_2_sd_n_active>; 1021 powerdown-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; 1022 #sound-dai-cells = <0>; 1023 sound-name-prefix = "SpkrRight"; 1024 #thermal-sensor-cells = <0>; 1025 vdd-supply = <&vreg_s10b_1p8>; 1026 }; 1027 }; 1028 1029 &swr1 { 1030 status = "okay"; 1031 1032 wcd_rx: codec@0,4 { 1033 compatible = "sdw20217010d00"; 1034 reg = <0 4>; 1035 qcom,rx-port-mapping = <1 2 3 4 5>; 1036 }; 1037 }; 1038 1039 &swr2 { 1040 status = "okay"; 1041 1042 wcd_tx: codec@0,3 { 1043 compatible = "sdw20217010d00"; 1044 reg = <0 3>; 1045 qcom,tx-port-mapping = <1 1 2 3>; 1046 }; 1047 }; 1048 1049 &tlmm { 1050 gpio-reserved-ranges = <28 4>, <36 4>; 1051 1052 lt9611_irq_pin: lt9611-irq-state { 1053 pins = "gpio44"; 1054 function = "gpio"; 1055 bias-disable; 1056 }; 1057 1058 lt9611_rst_pin: lt9611-rst-state { 1059 pins = "gpio107"; 1060 function = "gpio"; 1061 output-high; 1062 }; 1063 1064 sdc2_card_det_n: sd-card-det-n-state { 1065 pins = "gpio92"; 1066 function = "gpio"; 1067 drive-strength = <2>; 1068 bias-pull-up; 1069 }; 1070 }; 1071 1072 &uart7 { 1073 status = "okay"; 1074 }; 1075 1076 &ufs_mem_hc { 1077 status = "okay"; 1078 1079 reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; 1080 1081 vcc-supply = <&vreg_l7b_2p5>; 1082 vcc-max-microamp = <1100000>; 1083 vccq-supply = <&vreg_l9b_1p2>; 1084 vccq-max-microamp = <1200000>; 1085 vdd-hba-supply = <&vreg_l9b_1p2>; 1086 }; 1087 1088 &ufs_mem_phy { 1089 status = "okay"; 1090 1091 vdda-phy-supply = <&vreg_l5b_0p88>; 1092 vdda-pll-supply = <&vreg_l6b_1p2>; 1093 }; 1094 1095 &usb_1 { 1096 status = "okay"; 1097 }; 1098 1099 &usb_1_dwc3 { 1100 dr_mode = "otg"; 1101 usb-role-switch; 1102 }; 1103 1104 &usb_1_dwc3_hs { 1105 remote-endpoint = <&pmic_glink_hs_in>; 1106 }; 1107 1108 &usb_1_hsphy { 1109 status = "okay"; 1110 1111 vdda-pll-supply = <&vreg_l5b_0p88>; 1112 vdda18-supply = <&vreg_l1c_1p8>; 1113 vdda33-supply = <&vreg_l2b_3p07>; 1114 }; 1115 1116 &usb_1_qmpphy { 1117 status = "okay"; 1118 1119 vdda-phy-supply = <&vreg_l6b_1p2>; 1120 vdda-pll-supply = <&vreg_l1b_0p91>; 1121 }; 1122 1123 &usb_1_qmpphy_out { 1124 remote-endpoint = <&pmic_glink_ss_in>; 1125 }; 1126 1127 &vamacro { 1128 pinctrl-0 = <&dmic01_default>, <&dmic23_default>; 1129 pinctrl-names = "default"; 1130 vdd-micb-supply = <&vreg_s10b_1p8>; 1131 qcom,dmic-sample-rate = <600000>; 1132 1133 status = "okay"; 1134 }; 1135 1136 &tlmm { 1137 spkr_1_sd_n_active: spkr-1-sd-n-active-state { 1138 pins = "gpio1"; 1139 function = "gpio"; 1140 drive-strength = <16>; 1141 bias-disable; 1142 output-low; 1143 }; 1144 1145 spkr_2_sd_n_active: spkr-2-sd-n-active-state { 1146 pins = "gpio89"; 1147 function = "gpio"; 1148 drive-strength = <16>; 1149 bias-disable; 1150 output-low; 1151 }; 1152 1153 wcd_default: wcd-reset-n-active-state { 1154 pins = "gpio43"; 1155 function = "gpio"; 1156 drive-strength = <16>; 1157 bias-disable; 1158 output-low; 1159 }; 1160 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.