1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2023 Qualcomm Innovation Cent 4 */ 5 6 /dts-v1/; 7 8 /* PM7250B is configured to use SID8/9 */ 9 #define PM7250B_SID 8 10 #define PM7250B_SID1 9 11 12 #include <dt-bindings/regulator/qcom,rpmh-regu 13 #include "sc7280.dtsi" 14 #include "pm7250b.dtsi" 15 #include "pm7325.dtsi" 16 #include "pm8350c.dtsi" 17 #include "pmk8350.dtsi" 18 19 /delete-node/ &ipa_fw_mem; 20 /delete-node/ &rmtfs_mem; 21 /delete-node/ &adsp_mem; 22 /delete-node/ &cdsp_mem; 23 /delete-node/ &video_mem; 24 /delete-node/ &wlan_ce_mem; 25 /delete-node/ &wpss_mem; 26 /delete-node/ &xbl_mem; 27 28 / { 29 model = "Qualcomm Technologies, Inc. R 30 compatible = "qcom,qcs6490-rb3gen2", " 31 chassis-type = "embedded"; 32 33 aliases { 34 serial0 = &uart5; 35 }; 36 37 chosen { 38 stdout-path = "serial0:115200n 39 }; 40 41 dp-connector { 42 compatible = "dp-connector"; 43 label = "DP"; 44 type = "mini"; 45 46 hpd-gpios = <&tlmm 60 GPIO_ACT 47 48 port { 49 dp_connector_in: endpo 50 remote-endpoin 51 }; 52 }; 53 }; 54 55 hdmi-connector { 56 compatible = "hdmi-connector"; 57 type = "a"; 58 59 port { 60 hdmi_con: endpoint { 61 remote-endpoin 62 }; 63 }; 64 }; 65 66 lt9611_1v2: lt9611-vdd12-regulator { 67 compatible = "regulator-fixed" 68 regulator-name = "LT9611_1V2"; 69 70 regulator-min-microvolt = <120 71 regulator-max-microvolt = <120 72 }; 73 74 reserved-memory { 75 xbl_mem: xbl@80700000 { 76 reg = <0x0 0x80700000 77 no-map; 78 }; 79 80 cdsp_secure_heap_mem: cdsp-sec 81 reg = <0x0 0x81800000 82 no-map; 83 }; 84 85 camera_mem: camera@84300000 { 86 reg = <0x0 0x84300000 87 no-map; 88 }; 89 90 wpss_mem: wpss@84800000 { 91 reg = <0x0 0x84800000 92 no-map; 93 }; 94 95 adsp_mem: adsp@86100000 { 96 reg = <0x0 0x86100000 97 no-map; 98 }; 99 100 cdsp_mem: cdsp@88900000 { 101 reg = <0x0 0x88900000 102 no-map; 103 }; 104 105 video_mem: video@8a700000 { 106 reg = <0x0 0x8a700000 107 no-map; 108 }; 109 110 cvp_mem: cvp@8ae00000 { 111 reg = <0x0 0x8ae00000 112 no-map; 113 }; 114 115 ipa_fw_mem: ipa-fw@8b300000 { 116 reg = <0x0 0x8b300000 117 no-map; 118 }; 119 120 ipa_gsi_mem: ipa-gsi@8b310000 121 reg = <0x0 0x8b310000 122 no-map; 123 }; 124 125 gpu_microcode_mem: gpu-microco 126 reg = <0x0 0x8b31a000 127 no-map; 128 }; 129 130 tz_stat_mem: tz-stat@c0000000 131 reg = <0x0 0xc0000000 132 no-map; 133 }; 134 135 tags_mem: tags@c0100000 { 136 reg = <0x0 0xc0100000 137 no-map; 138 }; 139 140 qtee_mem: qtee@c1300000 { 141 reg = <0x0 0xc1300000 142 no-map; 143 }; 144 145 trusted_apps_mem: trusted-apps 146 reg = <0x0 0xc1800000 147 no-map; 148 }; 149 150 debug_vm_mem: debug-vm@d060000 151 reg = <0x0 0xd0600000 152 no-map; 153 }; 154 }; 155 156 pmic-glink { 157 compatible = "qcom,qcm6490-pmi 158 159 #address-cells = <1>; 160 #size-cells = <0>; 161 162 connector@0 { 163 compatible = "usb-c-co 164 reg = <0>; 165 power-role = "dual"; 166 data-role = "dual"; 167 168 ports { 169 #address-cells 170 #size-cells = 171 172 port@0 { 173 reg = 174 175 pmic_g 176 177 }; 178 }; 179 180 port@1 { 181 reg = 182 183 pmic_g 184 185 }; 186 }; 187 188 port@2 { 189 reg = 190 191 pmic_g 192 193 }; 194 }; 195 }; 196 }; 197 }; 198 199 vph_pwr: vph-pwr-regulator { 200 compatible = "regulator-fixed" 201 regulator-name = "vph_pwr"; 202 regulator-min-microvolt = <370 203 regulator-max-microvolt = <370 204 }; 205 }; 206 207 &apps_rsc { 208 regulators-0 { 209 compatible = "qcom,pm7325-rpmh 210 qcom,pmic-id = "b"; 211 212 vdd-s1-supply = <&vph_pwr>; 213 vdd-s2-supply = <&vph_pwr>; 214 vdd-s3-supply = <&vph_pwr>; 215 vdd-s4-supply = <&vph_pwr>; 216 vdd-s5-supply = <&vph_pwr>; 217 vdd-s6-supply = <&vph_pwr>; 218 vdd-s7-supply = <&vph_pwr>; 219 vdd-s8-supply = <&vph_pwr>; 220 vdd-l1-l4-l12-l15-supply = <&v 221 vdd-l2-l7-supply = <&vreg_bob_ 222 vdd-l3-supply = <&vreg_s2b_0p8 223 vdd-l5-supply = <&vreg_s2b_0p8 224 vdd-l6-l9-l10-supply = <&vreg_ 225 vdd-l8-supply = <&vreg_s7b_0p9 226 vdd-l11-l17-l18-l19-supply = < 227 vdd-l13-supply = <&vreg_s7b_0p 228 vdd-l14-l16-supply = <&vreg_s8 229 230 vreg_s1b_1p872: smps1 { 231 regulator-name = "vreg 232 regulator-min-microvol 233 regulator-max-microvol 234 }; 235 236 vreg_s2b_0p876: smps2 { 237 regulator-name = "vreg 238 regulator-min-microvol 239 regulator-max-microvol 240 }; 241 242 vreg_s7b_0p972: smps7 { 243 regulator-name = "vreg 244 regulator-min-microvol 245 regulator-max-microvol 246 }; 247 248 vreg_s8b_1p272: smps8 { 249 regulator-name = "vreg 250 regulator-min-microvol 251 regulator-max-microvol 252 regulator-initial-mode 253 }; 254 255 vreg_l1b_0p912: ldo1 { 256 regulator-name = "vreg 257 regulator-min-microvol 258 regulator-max-microvol 259 regulator-initial-mode 260 }; 261 262 vreg_l2b_3p072: ldo2 { 263 regulator-name = "vreg 264 regulator-min-microvol 265 regulator-max-microvol 266 regulator-initial-mode 267 }; 268 269 vreg_l3b_0p504: ldo3 { 270 regulator-name = "vreg 271 regulator-min-microvol 272 regulator-max-microvol 273 regulator-initial-mode 274 }; 275 276 vreg_l4b_0p752: ldo4 { 277 regulator-name = "vreg 278 regulator-min-microvol 279 regulator-max-microvol 280 regulator-initial-mode 281 }; 282 283 reg_l5b_0p752: ldo5 { 284 regulator-name = "reg_ 285 regulator-min-microvol 286 regulator-max-microvol 287 regulator-initial-mode 288 }; 289 290 vreg_l6b_1p2: ldo6 { 291 regulator-name = "vreg 292 regulator-min-microvol 293 regulator-max-microvol 294 regulator-initial-mode 295 }; 296 297 vreg_l7b_2p952: ldo7 { 298 regulator-name = "vreg 299 regulator-min-microvol 300 regulator-max-microvol 301 regulator-initial-mode 302 }; 303 304 vreg_l8b_0p904: ldo8 { 305 regulator-name = "vreg 306 regulator-min-microvol 307 regulator-max-microvol 308 regulator-initial-mode 309 }; 310 311 vreg_l9b_1p2: ldo9 { 312 regulator-name = "vreg 313 regulator-min-microvol 314 regulator-max-microvol 315 regulator-initial-mode 316 regulator-allow-set-lo 317 regulator-allowed-mode 318 319 }; 320 321 vreg_l11b_1p504: ldo11 { 322 regulator-name = "vreg 323 regulator-min-microvol 324 regulator-max-microvol 325 regulator-initial-mode 326 }; 327 328 vreg_l12b_0p751: ldo12 { 329 regulator-name = "vreg 330 regulator-min-microvol 331 regulator-max-microvol 332 regulator-initial-mode 333 }; 334 335 vreg_l13b_0p53: ldo13 { 336 regulator-name = "vreg 337 regulator-min-microvol 338 regulator-max-microvol 339 regulator-initial-mode 340 }; 341 342 vreg_l14b_1p08: ldo14 { 343 regulator-name = "vreg 344 regulator-min-microvol 345 regulator-max-microvol 346 regulator-initial-mode 347 }; 348 349 vreg_l15b_0p765: ldo15 { 350 regulator-name = "vreg 351 regulator-min-microvol 352 regulator-max-microvol 353 regulator-initial-mode 354 }; 355 356 vreg_l16b_1p1: ldo16 { 357 regulator-name = "vreg 358 regulator-min-microvol 359 regulator-max-microvol 360 regulator-initial-mode 361 }; 362 363 vreg_l17b_1p7: ldo17 { 364 regulator-name = "vreg 365 regulator-min-microvol 366 regulator-max-microvol 367 regulator-initial-mode 368 }; 369 370 vreg_l18b_1p8: ldo18 { 371 regulator-name = "vreg 372 regulator-min-microvol 373 regulator-max-microvol 374 regulator-initial-mode 375 }; 376 377 vreg_l19b_1p8: ldo19 { 378 regulator-name = "vreg 379 regulator-min-microvol 380 regulator-max-microvol 381 regulator-initial-mode 382 }; 383 }; 384 385 regulators-1 { 386 compatible = "qcom,pm8350c-rpm 387 qcom,pmic-id = "c"; 388 389 vdd-s1-supply = <&vph_pwr>; 390 vdd-s2-supply = <&vph_pwr>; 391 vdd-s3-supply = <&vph_pwr>; 392 vdd-s4-supply = <&vph_pwr>; 393 vdd-s5-supply = <&vph_pwr>; 394 vdd-s6-supply = <&vph_pwr>; 395 vdd-s7-supply = <&vph_pwr>; 396 vdd-s8-supply = <&vph_pwr>; 397 vdd-s9-supply = <&vph_pwr>; 398 vdd-s10-supply = <&vph_pwr>; 399 vdd-l1-l12-supply = <&vreg_s1b 400 vdd-l2-l8-supply = <&vreg_s1b_ 401 vdd-l3-l4-l5-l7-l13-supply = < 402 vdd-l6-l9-l11-supply = <&vreg_ 403 vdd-l10-supply = <&vreg_s7b_0p 404 vdd-bob-supply = <&vph_pwr>; 405 406 vreg_s1c_2p19: smps1 { 407 regulator-name = "vreg 408 regulator-min-microvol 409 regulator-max-microvol 410 }; 411 412 vreg_s2c_0p752: smps2 { 413 regulator-name = "vreg 414 regulator-min-microvol 415 regulator-max-microvol 416 }; 417 418 vreg_s5c_0p752: smps5 { 419 regulator-name = "vreg 420 regulator-min-microvol 421 regulator-max-microvol 422 }; 423 424 vreg_s7c_0p752: smps7 { 425 regulator-name = "vreg 426 regulator-min-microvol 427 regulator-max-microvol 428 }; 429 430 vreg_s9c_1p084: smps9 { 431 regulator-name = "vreg 432 regulator-min-microvol 433 regulator-max-microvol 434 }; 435 436 vreg_l1c_1p8: ldo1 { 437 regulator-name = "vreg 438 regulator-min-microvol 439 regulator-max-microvol 440 regulator-initial-mode 441 }; 442 443 vreg_l2c_1p62: ldo2 { 444 regulator-name = "vreg 445 regulator-min-microvol 446 regulator-max-microvol 447 regulator-initial-mode 448 }; 449 450 vreg_l3c_2p8: ldo3 { 451 regulator-name = "vreg 452 regulator-min-microvol 453 regulator-max-microvol 454 regulator-initial-mode 455 }; 456 457 vreg_l4c_1p62: ldo4 { 458 regulator-name = "vreg 459 regulator-min-microvol 460 regulator-max-microvol 461 regulator-initial-mode 462 }; 463 464 vreg_l5c_1p62: ldo5 { 465 regulator-name = "vreg 466 regulator-min-microvol 467 regulator-max-microvol 468 regulator-initial-mode 469 }; 470 471 vreg_l6c_2p96: ldo6 { 472 regulator-name = "vreg 473 regulator-min-microvol 474 regulator-max-microvol 475 regulator-initial-mode 476 }; 477 478 vreg_l7c_3p0: ldo7 { 479 regulator-name = "vreg 480 regulator-min-microvol 481 regulator-max-microvol 482 regulator-initial-mode 483 }; 484 485 vreg_l8c_1p62: ldo8 { 486 regulator-name = "vreg 487 regulator-min-microvol 488 regulator-max-microvol 489 regulator-initial-mode 490 }; 491 492 vreg_l9c_2p96: ldo9 { 493 regulator-name = "vreg 494 regulator-min-microvol 495 regulator-max-microvol 496 regulator-initial-mode 497 }; 498 499 vreg_l10c_0p88: ldo10 { 500 regulator-name = "vreg 501 regulator-min-microvol 502 regulator-max-microvol 503 regulator-initial-mode 504 }; 505 506 vreg_l11c_2p8: ldo11 { 507 regulator-name = "vreg 508 regulator-min-microvol 509 regulator-max-microvol 510 regulator-initial-mode 511 }; 512 513 vreg_l12c_1p65: ldo12 { 514 regulator-name = "vreg 515 regulator-min-microvol 516 regulator-max-microvol 517 regulator-initial-mode 518 }; 519 520 vreg_l13c_2p7: ldo13 { 521 regulator-name = "vreg 522 regulator-min-microvol 523 regulator-max-microvol 524 regulator-initial-mode 525 }; 526 527 vreg_bob_3p296: bob { 528 regulator-name = "vreg 529 regulator-min-microvol 530 regulator-max-microvol 531 }; 532 }; 533 }; 534 535 &gcc { 536 protected-clocks = <GCC_CFG_NOC_LPASS_ 537 <GCC_MSS_CFG_AHB_CL 538 <GCC_MSS_GPLL0_MAIN 539 <GCC_MSS_OFFLINE_AX 540 <GCC_MSS_Q6SS_BOOT_ 541 <GCC_MSS_Q6_MEMNOC_ 542 <GCC_MSS_SNOC_AXI_C 543 <GCC_QSPI_CNOC_PERI 544 <GCC_QSPI_CORE_CLK> 545 <GCC_QSPI_CORE_CLK_ 546 <GCC_SEC_CTRL_CLK_S 547 <GCC_WPSS_AHB_BDG_M 548 <GCC_WPSS_AHB_CLK>, 549 <GCC_WPSS_RSCP_CLK> 550 }; 551 552 &gpi_dma0 { 553 status = "okay"; 554 }; 555 556 &gpi_dma1 { 557 status = "okay"; 558 }; 559 560 &i2c0 { 561 clock-frequency = <400000>; 562 status = "okay"; 563 564 lt9611_codec: hdmi-bridge@2b { 565 compatible = "lontium,lt9611ux 566 reg = <0x2b>; 567 568 interrupts-extended = <&tlmm 2 569 reset-gpios = <&pm7250b_gpios 570 571 vdd-supply = <<9611_1v2>; 572 vcc-supply = <&vreg_l11c_2p8>; 573 574 pinctrl-names = "default"; 575 pinctrl-0 = <<9611_irq_pin & 576 577 ports { 578 #address-cells = <1>; 579 #size-cells = <0>; 580 581 port@0 { 582 reg = <0>; 583 584 lt9611_a: endp 585 remote 586 }; 587 }; 588 589 port@2 { 590 reg = <2>; 591 592 lt9611_out: en 593 remote 594 }; 595 }; 596 }; 597 }; 598 }; 599 600 &i2c1 { 601 status = "okay"; 602 603 typec-mux@1c { 604 compatible = "onnn,nb7vpq904m" 605 reg = <0x1c>; 606 607 vcc-supply = <&vreg_l18b_1p8>; 608 609 retimer-switch; 610 orientation-switch; 611 612 ports { 613 #address-cells = <1>; 614 #size-cells = <0>; 615 616 port@0 { 617 reg = <0>; 618 619 redriver_usb_c 620 remote 621 }; 622 }; 623 624 port@1 { 625 reg = <1>; 626 627 redriver_phy_c 628 remote 629 data-l 630 }; 631 }; 632 633 port@2 { 634 reg = <2>; 635 636 redriver_usb_c 637 remote 638 }; 639 }; 640 }; 641 }; 642 }; 643 644 &mdss { 645 status = "okay"; 646 }; 647 648 &mdss_dp { 649 status = "okay"; 650 }; 651 652 &mdss_dp_out { 653 data-lanes = <0 1>; 654 remote-endpoint = <&usb_dp_qmpphy_dp_i 655 }; 656 657 &mdss_dsi { 658 vdda-supply = <&vreg_l6b_1p2>; 659 status = "okay"; 660 }; 661 662 &mdss_dsi0_out { 663 remote-endpoint = <<9611_a>; 664 data-lanes = <0 1 2 3>; 665 }; 666 667 &mdss_dsi_phy { 668 vdds-supply = <&vreg_l10c_0p88>; 669 status = "okay"; 670 }; 671 672 &mdss_edp { 673 status = "okay"; 674 }; 675 676 &mdss_edp_out { 677 data-lanes = <0 1 2 3>; 678 link-frequencies = /bits/ 64 <16200000 679 680 remote-endpoint = <&dp_connector_in>; 681 }; 682 683 &mdss_edp_phy { 684 status = "okay"; 685 }; 686 687 &pmk8350_rtc { 688 status = "okay"; 689 }; 690 691 &qupv3_id_0 { 692 status = "okay"; 693 }; 694 695 &qupv3_id_1 { 696 status = "okay"; 697 }; 698 699 &remoteproc_adsp { 700 firmware-name = "qcom/qcs6490/adsp.mbn 701 status = "okay"; 702 }; 703 704 &remoteproc_cdsp { 705 firmware-name = "qcom/qcs6490/cdsp.mbn 706 status = "okay"; 707 }; 708 709 &remoteproc_mpss { 710 firmware-name = "qcom/qcs6490/modem.md 711 status = "okay"; 712 }; 713 714 &remoteproc_wpss { 715 firmware-name = "qcom/qcs6490/wpss.mbn 716 status = "okay"; 717 }; 718 719 &tlmm { 720 gpio-reserved-ranges = <32 2>, /* ADSP 721 <48 4>; /* NFC 722 }; 723 724 &uart5 { 725 status = "okay"; 726 }; 727 728 &usb_1 { 729 status = "okay"; 730 }; 731 732 &usb_1_dwc3 { 733 dr_mode = "otg"; 734 usb-role-switch; 735 }; 736 737 &usb_1_dwc3_hs { 738 remote-endpoint = <&pmic_glink_hs_in>; 739 }; 740 741 &usb_1_dwc3_ss { 742 remote-endpoint = <&usb_dp_qmpphy_usb_ 743 }; 744 745 &usb_1_hsphy { 746 vdda-pll-supply = <&vreg_l10c_0p88>; 747 vdda33-supply = <&vreg_l2b_3p072>; 748 vdda18-supply = <&vreg_l1c_1p8>; 749 750 status = "okay"; 751 }; 752 753 &usb_1_qmpphy { 754 vdda-phy-supply = <&vreg_l6b_1p2>; 755 vdda-pll-supply = <&vreg_l1b_0p912>; 756 757 orientation-switch; 758 759 status = "okay"; 760 }; 761 762 &usb_dp_qmpphy_out { 763 remote-endpoint = <&redriver_phy_con_s 764 }; 765 766 &usb_dp_qmpphy_usb_ss_in { 767 remote-endpoint = <&usb_1_dwc3_ss>; 768 }; 769 770 &usb_dp_qmpphy_dp_in { 771 remote-endpoint = <&mdss_dp_out>; 772 }; 773 774 &ufs_mem_hc { 775 reset-gpios = <&tlmm 175 GPIO_ACTIVE_L 776 vcc-supply = <&vreg_l7b_2p952>; 777 vcc-max-microamp = <800000>; 778 vccq-supply = <&vreg_l9b_1p2>; 779 vccq-max-microamp = <900000>; 780 vccq2-supply = <&vreg_l9b_1p2>; 781 vccq2-max-microamp = <900000>; 782 783 status = "okay"; 784 }; 785 786 &ufs_mem_phy { 787 vdda-phy-supply = <&vreg_l10c_0p88>; 788 vdda-pll-supply = <&vreg_l6b_1p2>; 789 790 status = "okay"; 791 }; 792 793 &wifi { 794 memory-region = <&wlan_fw_mem>; 795 }; 796 797 /* PINCTRL - ADDITIONS TO NODES IN PARENT DEVI 798 799 &edp_hot_plug_det { 800 function = "gpio"; 801 bias-disable; 802 }; 803 804 &pm7250b_gpios { 805 lt9611_rst_pin: lt9611-rst-state { 806 pins = "gpio2"; 807 function = "normal"; 808 809 output-high; 810 input-disable; 811 power-source = <0>; 812 }; 813 }; 814 815 &tlmm { 816 lt9611_irq_pin: lt9611-irq-state { 817 pins = "gpio24"; 818 function = "gpio"; 819 drive-strength = <2>; 820 bias-disable; 821 }; 822 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.