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#include "x1e80100-pmics.dtsi" 13 14/ { 15 model = "Qualcomm Technologies, Inc. X1E80100 QCP"; 16 compatible = "qcom,x1e80100-qcp", "qcom,x1e80100"; 17 18 aliases { 19 serial0 = &uart21; 20 }; 21 22 chosen { 23 stdout-path = "serial0:115200n8"; 24 }; 25 26 vph_pwr: vph-pwr-regulator { 27 compatible = "regulator-fixed"; 28 29 regulator-name = "vph_pwr"; 30 regulator-min-microvolt = <3700000>; 31 regulator-max-microvolt = <3700000>; 32 33 regulator-always-on; 34 regulator-boot-on; 35 }; 36 37 vreg_edp_3p3: regulator-edp-3p3 { 38 compatible = "regulator-fixed"; 39 40 regulator-name = "VREG_EDP_3P3"; 41 regulator-min-microvolt = <3300000>; 42 regulator-max-microvolt = <3300000>; 43 44 gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; 45 enable-active-high; 46 47 pinctrl-0 = <&edp_reg_en>; 48 pinctrl-names = "default"; 49 50 regulator-always-on; 51 regulator-boot-on; 52 }; 53}; 54 55&apps_rsc { 56 regulators-0 { 57 compatible = "qcom,pm8550-rpmh-regulators"; 58 qcom,pmic-id = "b"; 59 60 vdd-bob1-supply = <&vph_pwr>; 61 vdd-bob2-supply = <&vph_pwr>; 62 vdd-l1-l4-l10-supply = <&vreg_s4c_1p8>; 63 vdd-l2-l13-l14-supply = <&vreg_bob1>; 64 vdd-l5-l16-supply = <&vreg_bob1>; 65 vdd-l6-l7-supply = <&vreg_bob2>; 66 vdd-l8-l9-supply = <&vreg_bob1>; 67 vdd-l12-supply = <&vreg_s5j_1p2>; 68 vdd-l15-supply = <&vreg_s4c_1p8>; 69 vdd-l17-supply = <&vreg_bob2>; 70 71 vreg_bob1: bob1 { 72 regulator-name = "vreg_bob1"; 73 regulator-min-microvolt = <3008000>; 74 regulator-max-microvolt = <3960000>; 75 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 76 }; 77 78 vreg_bob2: bob2 { 79 regulator-name = "vreg_bob2"; 80 regulator-min-microvolt = <2504000>; 81 regulator-max-microvolt = <3008000>; 82 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 83 }; 84 85 vreg_l1b_1p8: ldo1 { 86 regulator-name = "vreg_l1b_1p8"; 87 regulator-min-microvolt = <1800000>; 88 regulator-max-microvolt = <1800000>; 89 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 90 }; 91 92 vreg_l2b_3p0: ldo2 { 93 regulator-name = "vreg_l2b_3p0"; 94 regulator-min-microvolt = <3072000>; 95 regulator-max-microvolt = <3100000>; 96 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 97 }; 98 99 vreg_l4b_1p8: ldo4 { 100 regulator-name = "vreg_l4b_1p8"; 101 regulator-min-microvolt = <1800000>; 102 regulator-max-microvolt = <1800000>; 103 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 104 }; 105 106 vreg_l5b_3p0: ldo5 { 107 regulator-name = "vreg_l5b_3p0"; 108 regulator-min-microvolt = <3000000>; 109 regulator-max-microvolt = <3000000>; 110 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 111 }; 112 113 vreg_l6b_1p8: ldo6 { 114 regulator-name = "vreg_l6b_1p8"; 115 regulator-min-microvolt = <1800000>; 116 regulator-max-microvolt = <2960000>; 117 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 118 }; 119 120 vreg_l7b_2p8: ldo7 { 121 regulator-name = "vreg_l7b_2p8"; 122 regulator-min-microvolt = <2800000>; 123 regulator-max-microvolt = <2800000>; 124 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 125 }; 126 127 vreg_l8b_3p0: ldo8 { 128 regulator-name = "vreg_l8b_3p0"; 129 regulator-min-microvolt = <3072000>; 130 regulator-max-microvolt = <3072000>; 131 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 132 }; 133 134 vreg_l9b_2p9: ldo9 { 135 regulator-name = "vreg_l9b_2p9"; 136 regulator-min-microvolt = <2960000>; 137 regulator-max-microvolt = <2960000>; 138 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 139 }; 140 141 vreg_l10b_1p8: ldo10 { 142 regulator-name = "vreg_l10b_1p8"; 143 regulator-min-microvolt = <1800000>; 144 regulator-max-microvolt = <1800000>; 145 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 146 }; 147 148 vreg_l12b_1p2: ldo12 { 149 regulator-name = "vreg_l12b_1p2"; 150 regulator-min-microvolt = <1200000>; 151 regulator-max-microvolt = <1200000>; 152 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 153 }; 154 155 vreg_l13b_3p0: ldo13 { 156 regulator-name = "vreg_l13b_3p0"; 157 regulator-min-microvolt = <3072000>; 158 regulator-max-microvolt = <3100000>; 159 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 160 }; 161 162 vreg_l14b_3p0: ldo14 { 163 regulator-name = "vreg_l14b_3p0"; 164 regulator-min-microvolt = <3072000>; 165 regulator-max-microvolt = <3072000>; 166 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 167 }; 168 169 vreg_l15b_1p8: ldo15 { 170 regulator-name = "vreg_l15b_1p8"; 171 regulator-min-microvolt = <1800000>; 172 regulator-max-microvolt = <1800000>; 173 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 174 }; 175 176 vreg_l16b_2p9: ldo16 { 177 regulator-name = "vreg_l16b_2p9"; 178 regulator-min-microvolt = <2912000>; 179 regulator-max-microvolt = <2912000>; 180 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 181 }; 182 183 vreg_l17b_2p5: ldo17 { 184 regulator-name = "vreg_l17b_2p5"; 185 regulator-min-microvolt = <2504000>; 186 regulator-max-microvolt = <2504000>; 187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 188 }; 189 }; 190 191 regulators-1 { 192 compatible = "qcom,pm8550ve-rpmh-regulators"; 193 qcom,pmic-id = "c"; 194 195 vdd-l1-supply = <&vreg_s5j_1p2>; 196 vdd-l2-supply = <&vreg_s1f_0p7>; 197 vdd-l3-supply = <&vreg_s1f_0p7>; 198 vdd-s4-supply = <&vph_pwr>; 199 200 vreg_s4c_1p8: smps4 { 201 regulator-name = "vreg_s4c_1p8"; 202 regulator-min-microvolt = <1856000>; 203 regulator-max-microvolt = <2000000>; 204 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 205 }; 206 207 vreg_l1c_1p2: ldo1 { 208 regulator-name = "vreg_l1c_1p2"; 209 regulator-min-microvolt = <1200000>; 210 regulator-max-microvolt = <1200000>; 211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 212 }; 213 214 vreg_l2c_0p8: ldo2 { 215 regulator-name = "vreg_l2c_0p8"; 216 regulator-min-microvolt = <880000>; 217 regulator-max-microvolt = <920000>; 218 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 219 }; 220 221 vreg_l3c_0p8: ldo3 { 222 regulator-name = "vreg_l3c_0p8"; 223 regulator-min-microvolt = <880000>; 224 regulator-max-microvolt = <920000>; 225 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 226 }; 227 }; 228 229 regulators-2 { 230 compatible = "qcom,pmc8380-rpmh-regulators"; 231 qcom,pmic-id = "d"; 232 233 vdd-l1-supply = <&vreg_s1f_0p7>; 234 vdd-l2-supply = <&vreg_s1f_0p7>; 235 vdd-l3-supply = <&vreg_s4c_1p8>; 236 vdd-s1-supply = <&vph_pwr>; 237 238 vreg_l1d_0p8: ldo1 { 239 regulator-name = "vreg_l1d_0p8"; 240 regulator-min-microvolt = <880000>; 241 regulator-max-microvolt = <920000>; 242 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 243 }; 244 245 vreg_l2d_0p9: ldo2 { 246 regulator-name = "vreg_l2d_0p9"; 247 regulator-min-microvolt = <912000>; 248 regulator-max-microvolt = <920000>; 249 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 250 }; 251 252 vreg_l3d_1p8: ldo3 { 253 regulator-name = "vreg_l3d_1p8"; 254 regulator-min-microvolt = <1800000>; 255 regulator-max-microvolt = <1800000>; 256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 257 }; 258 }; 259 260 regulators-3 { 261 compatible = "qcom,pmc8380-rpmh-regulators"; 262 qcom,pmic-id = "e"; 263 264 vdd-l2-supply = <&vreg_s1f_0p7>; 265 vdd-l3-supply = <&vreg_s5j_1p2>; 266 267 vreg_l2e_0p8: ldo2 { 268 regulator-name = "vreg_l2e_0p8"; 269 regulator-min-microvolt = <880000>; 270 regulator-max-microvolt = <920000>; 271 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 272 }; 273 274 vreg_l3e_1p2: ldo3 { 275 regulator-name = "vreg_l3e_1p2"; 276 regulator-min-microvolt = <1200000>; 277 regulator-max-microvolt = <1200000>; 278 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 279 }; 280 }; 281 282 regulators-4 { 283 compatible = "qcom,pmc8380-rpmh-regulators"; 284 qcom,pmic-id = "f"; 285 286 vdd-l1-supply = <&vreg_s5j_1p2>; 287 vdd-l2-supply = <&vreg_s5j_1p2>; 288 vdd-l3-supply = <&vreg_s5j_1p2>; 289 vdd-s1-supply = <&vph_pwr>; 290 291 vreg_s1f_0p7: smps1 { 292 regulator-name = "vreg_s1f_0p7"; 293 regulator-min-microvolt = <700000>; 294 regulator-max-microvolt = <1100000>; 295 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 296 }; 297 298 vreg_l1f_1p0: ldo1 { 299 regulator-name = "vreg_l1f_1p0"; 300 regulator-min-microvolt = <1024000>; 301 regulator-max-microvolt = <1024000>; 302 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 303 }; 304 305 vreg_l2f_1p0: ldo2 { 306 regulator-name = "vreg_l2f_1p0"; 307 regulator-min-microvolt = <1024000>; 308 regulator-max-microvolt = <1024000>; 309 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 310 }; 311 312 vreg_l3f_1p0: ldo3 { 313 regulator-name = "vreg_l3f_1p0"; 314 regulator-min-microvolt = <1024000>; 315 regulator-max-microvolt = <1024000>; 316 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 317 }; 318 }; 319 320 regulators-6 { 321 compatible = "qcom,pm8550ve-rpmh-regulators"; 322 qcom,pmic-id = "i"; 323 324 vdd-l1-supply = <&vreg_s4c_1p8>; 325 vdd-l2-supply = <&vreg_s5j_1p2>; 326 vdd-l3-supply = <&vreg_s1f_0p7>; 327 vdd-s1-supply = <&vph_pwr>; 328 vdd-s2-supply = <&vph_pwr>; 329 330 vreg_s1i_0p9: smps1 { 331 regulator-name = "vreg_s1i_0p9"; 332 regulator-min-microvolt = <900000>; 333 regulator-max-microvolt = <920000>; 334 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 335 }; 336 337 vreg_s2i_1p0: smps2 { 338 regulator-name = "vreg_s2i_1p0"; 339 regulator-min-microvolt = <1000000>; 340 regulator-max-microvolt = <1100000>; 341 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 342 }; 343 344 vreg_l1i_1p8: ldo1 { 345 regulator-name = "vreg_l1i_1p8"; 346 regulator-min-microvolt = <1800000>; 347 regulator-max-microvolt = <1800000>; 348 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 349 }; 350 351 vreg_l2i_1p2: ldo2 { 352 regulator-name = "vreg_l2i_1p2"; 353 regulator-min-microvolt = <1200000>; 354 regulator-max-microvolt = <1200000>; 355 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 356 }; 357 358 vreg_l3i_0p8: ldo3 { 359 regulator-name = "vreg_l3i_0p8"; 360 regulator-min-microvolt = <880000>; 361 regulator-max-microvolt = <920000>; 362 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 363 }; 364 }; 365 366 regulators-7 { 367 compatible = "qcom,pm8550ve-rpmh-regulators"; 368 qcom,pmic-id = "j"; 369 370 vdd-l1-supply = <&vreg_s1f_0p7>; 371 vdd-l2-supply = <&vreg_s5j_1p2>; 372 vdd-l3-supply = <&vreg_s1f_0p7>; 373 vdd-s5-supply = <&vph_pwr>; 374 375 vreg_s5j_1p2: smps5 { 376 regulator-name = "vreg_s5j_1p2"; 377 regulator-min-microvolt = <1256000>; 378 regulator-max-microvolt = <1304000>; 379 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 380 }; 381 382 vreg_l1j_0p8: ldo1 { 383 regulator-name = "vreg_l1j_0p8"; 384 regulator-min-microvolt = <880000>; 385 regulator-max-microvolt = <920000>; 386 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 387 }; 388 389 vreg_l2j_1p2: ldo2 { 390 regulator-name = "vreg_l2j_1p2"; 391 regulator-min-microvolt = <1200000>; 392 regulator-max-microvolt = <1200000>; 393 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 394 }; 395 396 vreg_l3j_0p8: ldo3 { 397 regulator-name = "vreg_l3j_0p8"; 398 regulator-min-microvolt = <880000>; 399 regulator-max-microvolt = <920000>; 400 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 401 }; 402 }; 403}; 404 405&mdss { 406 status = "okay"; 407}; 408 409&mdss_dp3 { 410 compatible = "qcom,x1e80100-dp"; 411 /delete-property/ #sound-dai-cells; 412 413 status = "okay"; 414 415 aux-bus { 416 panel { 417 compatible = "edp-panel"; 418 power-supply = <&vreg_edp_3p3>; 419 420 port { 421 edp_panel_in: endpoint { 422 remote-endpoint = <&mdss_dp3_out>; 423 }; 424 }; 425 }; 426 }; 427 428 ports { 429 port@1 { 430 reg = <1>; 431 mdss_dp3_out: endpoint { 432 data-lanes = <0 1 2 3>; 433 link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; 434 435 remote-endpoint = <&edp_panel_in>; 436 }; 437 }; 438 }; 439}; 440 441&mdss_dp3_phy { 442 vdda-phy-supply = <&vreg_l3j_0p8>; 443 vdda-pll-supply = <&vreg_l2j_1p2>; 444 445 status = "okay"; 446}; 447 448&pcie4 { 449 status = "okay"; 450}; 451 452&pcie4_phy { 453 vdda-phy-supply = <&vreg_l3j_0p8>; 454 vdda-pll-supply = <&vreg_l3e_1p2>; 455 456 status = "okay"; 457}; 458 459&pcie6a { 460 status = "okay"; 461}; 462 463&pcie6a_phy { 464 vdda-phy-supply = <&vreg_l3j_0p8>; 465 vdda-pll-supply = <&vreg_l2j_1p2>; 466 467 status = "okay"; 468}; 469 470&qupv3_0 { 471 status = "okay"; 472}; 473 474&qupv3_1 { 475 status = "okay"; 476}; 477 478&qupv3_2 { 479 status = "okay"; 480}; 481 482&remoteproc_adsp { 483 firmware-name = "qcom/x1e80100/adsp.mbn", 484 "qcom/x1e80100/adsp_dtb.mbn"; 485 486 status = "okay"; 487}; 488 489&remoteproc_cdsp { 490 firmware-name = "qcom/x1e80100/cdsp.mbn", 491 "qcom/x1e80100/cdsp_dtb.mbn"; 492 493 status = "okay"; 494}; 495 496&smb2360_0_eusb2_repeater { 497 vdd18-supply = <&vreg_l3d_1p8>; 498 vdd3-supply = <&vreg_l2b_3p0>; 499}; 500 501&smb2360_1_eusb2_repeater { 502 vdd18-supply = <&vreg_l3d_1p8>; 503 vdd3-supply = <&vreg_l14b_3p0>; 504}; 505 506&smb2360_2_eusb2_repeater { 507 vdd18-supply = <&vreg_l3d_1p8>; 508 vdd3-supply = <&vreg_l8b_3p0>; 509}; 510 511&tlmm { 512 gpio-reserved-ranges = <33 3>, /* Unused */ 513 <44 4>, /* SPI (TPM) */ 514 <238 1>; /* UFS Reset */ 515 516 edp_reg_en: edp-reg-en-state { 517 pins = "gpio70"; 518 function = "gpio"; 519 drive-strength = <16>; 520 bias-disable; 521 }; 522}; 523 524&uart21 { 525 compatible = "qcom,geni-debug-uart"; 526 status = "okay"; 527}; 528 529&usb_1_ss0_hsphy { 530 vdd-supply = <&vreg_l2e_0p8>; 531 vdda12-supply = <&vreg_l3e_1p2>; 532 533 phys = <&smb2360_0_eusb2_repeater>; 534 535 status = "okay"; 536}; 537 538&usb_1_ss0_qmpphy { 539 status = "okay"; 540}; 541 542&usb_1_ss0 { 543 status = "okay"; 544}; 545 546&usb_1_ss0_dwc3 { 547 dr_mode = "host"; 548 usb-role-switch; 549}; 550 551&usb_1_ss1_hsphy { 552 vdd-supply = <&vreg_l2e_0p8>; 553 vdda12-supply = <&vreg_l3e_1p2>; 554 555 phys = <&smb2360_1_eusb2_repeater>; 556 557 status = "okay"; 558}; 559 560&usb_1_ss1_qmpphy { 561 status = "okay"; 562}; 563 564&usb_1_ss1 { 565 status = "okay"; 566}; 567 568&usb_1_ss1_dwc3 { 569 dr_mode = "host"; 570 usb-role-switch; 571}; 572 573&usb_1_ss2_hsphy { 574 vdd-supply = <&vreg_l2e_0p8>; 575 vdda12-supply = <&vreg_l3e_1p2>; 576 577 phys = <&smb2360_2_eusb2_repeater>; 578 579 status = "okay"; 580}; 581 582&usb_1_ss2_qmpphy { 583 status = "okay"; 584}; 585 586&usb_1_ss2 { 587 status = "okay"; 588}; 589 590&usb_1_ss2_dwc3 { 591 dr_mode = "host"; 592 usb-role-switch; 593}; 594