1// SPDX-License-Identifier: GPL-2.0 2/* Copyright (c) 2016, The Linux Foundation. All rights reserved. */ 3 4#include <dt-bindings/interrupt-controller/arm-gic.h> 5#include <dt-bindings/clock/qcom,gcc-msm8998.h> 6#include <dt-bindings/clock/qcom,gpucc-msm8998.h> 7#include <dt-bindings/clock/qcom,mmcc-msm8998.h> 8#include <dt-bindings/clock/qcom,rpmcc.h> 9#include <dt-bindings/power/qcom-rpmpd.h> 10#include <dt-bindings/gpio/gpio.h> 11 12/ { 13 interrupt-parent = <&intc>; 14 15 qcom,msm-id = <292 0x0>; 16 17 #address-cells = <2>; 18 #size-cells = <2>; 19 20 chosen { }; 21 22 memory@80000000 { 23 device_type = "memory"; 24 /* We expect the bootloader to fill in the reg */ 25 reg = <0x0 0x80000000 0x0 0x0>; 26 }; 27 28 reserved-memory { 29 #address-cells = <2>; 30 #size-cells = <2>; 31 ranges; 32 33 hyp_mem: memory@85800000 { 34 reg = <0x0 0x85800000 0x0 0x600000>; 35 no-map; 36 }; 37 38 xbl_mem: memory@85e00000 { 39 reg = <0x0 0x85e00000 0x0 0x100000>; 40 no-map; 41 }; 42 43 smem_mem: smem-mem@86000000 { 44 reg = <0x0 0x86000000 0x0 0x200000>; 45 no-map; 46 }; 47 48 tz_mem: memory@86200000 { 49 reg = <0x0 0x86200000 0x0 0x2d00000>; 50 no-map; 51 }; 52 53 rmtfs_mem: memory@88f00000 { 54 compatible = "qcom,rmtfs-mem"; 55 reg = <0x0 0x88f00000 0x0 0x200000>; 56 no-map; 57 58 qcom,client-id = <1>; 59 qcom,vmid = <15>; 60 }; 61 62 spss_mem: memory@8ab00000 { 63 reg = <0x0 0x8ab00000 0x0 0x700000>; 64 no-map; 65 }; 66 67 adsp_mem: memory@8b200000 { 68 reg = <0x0 0x8b200000 0x0 0x1a00000>; 69 no-map; 70 }; 71 72 mpss_mem: memory@8cc00000 { 73 reg = <0x0 0x8cc00000 0x0 0x7000000>; 74 no-map; 75 }; 76 77 venus_mem: memory@93c00000 { 78 reg = <0x0 0x93c00000 0x0 0x500000>; 79 no-map; 80 }; 81 82 mba_mem: memory@94100000 { 83 reg = <0x0 0x94100000 0x0 0x200000>; 84 no-map; 85 }; 86 87 slpi_mem: memory@94300000 { 88 reg = <0x0 0x94300000 0x0 0xf00000>; 89 no-map; 90 }; 91 92 ipa_fw_mem: memory@95200000 { 93 reg = <0x0 0x95200000 0x0 0x10000>; 94 no-map; 95 }; 96 97 ipa_gsi_mem: memory@95210000 { 98 reg = <0x0 0x95210000 0x0 0x5000>; 99 no-map; 100 }; 101 102 gpu_mem: memory@95600000 { 103 reg = <0x0 0x95600000 0x0 0x100000>; 104 no-map; 105 }; 106 107 wlan_msa_mem: memory@95700000 { 108 reg = <0x0 0x95700000 0x0 0x100000>; 109 no-map; 110 }; 111 112 mdata_mem: mpss-metadata { 113 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>; 114 size = <0x0 0x4000>; 115 no-map; 116 }; 117 }; 118 119 clocks { 120 xo: xo-board { 121 compatible = "fixed-clock"; 122 #clock-cells = <0>; 123 clock-frequency = <19200000>; 124 clock-output-names = "xo_board"; 125 }; 126 127 sleep_clk: sleep-clk { 128 compatible = "fixed-clock"; 129 #clock-cells = <0>; 130 clock-frequency = <32764>; 131 }; 132 }; 133 134 cpus { 135 #address-cells = <2>; 136 #size-cells = <0>; 137 138 CPU0: cpu@0 { 139 device_type = "cpu"; 140 compatible = "qcom,kryo280"; 141 reg = <0x0 0x0>; 142 enable-method = "psci"; 143 capacity-dmips-mhz = <1024>; 144 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 145 next-level-cache = <&L2_0>; 146 L2_0: l2-cache { 147 compatible = "cache"; 148 cache-level = <2>; 149 cache-unified; 150 }; 151 }; 152 153 CPU1: cpu@1 { 154 device_type = "cpu"; 155 compatible = "qcom,kryo280"; 156 reg = <0x0 0x1>; 157 enable-method = "psci"; 158 capacity-dmips-mhz = <1024>; 159 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 160 next-level-cache = <&L2_0>; 161 }; 162 163 CPU2: cpu@2 { 164 device_type = "cpu"; 165 compatible = "qcom,kryo280"; 166 reg = <0x0 0x2>; 167 enable-method = "psci"; 168 capacity-dmips-mhz = <1024>; 169 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 170 next-level-cache = <&L2_0>; 171 }; 172 173 CPU3: cpu@3 { 174 device_type = "cpu"; 175 compatible = "qcom,kryo280"; 176 reg = <0x0 0x3>; 177 enable-method = "psci"; 178 capacity-dmips-mhz = <1024>; 179 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 180 next-level-cache = <&L2_0>; 181 }; 182 183 CPU4: cpu@100 { 184 device_type = "cpu"; 185 compatible = "qcom,kryo280"; 186 reg = <0x0 0x100>; 187 enable-method = "psci"; 188 capacity-dmips-mhz = <1536>; 189 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; 190 next-level-cache = <&L2_1>; 191 L2_1: l2-cache { 192 compatible = "cache"; 193 cache-level = <2>; 194 cache-unified; 195 }; 196 }; 197 198 CPU5: cpu@101 { 199 device_type = "cpu"; 200 compatible = "qcom,kryo280"; 201 reg = <0x0 0x101>; 202 enable-method = "psci"; 203 capacity-dmips-mhz = <1536>; 204 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; 205 next-level-cache = <&L2_1>; 206 }; 207 208 CPU6: cpu@102 { 209 device_type = "cpu"; 210 compatible = "qcom,kryo280"; 211 reg = <0x0 0x102>; 212 enable-method = "psci"; 213 capacity-dmips-mhz = <1536>; 214 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; 215 next-level-cache = <&L2_1>; 216 }; 217 218 CPU7: cpu@103 { 219 device_type = "cpu"; 220 compatible = "qcom,kryo280"; 221 reg = <0x0 0x103>; 222 enable-method = "psci"; 223 capacity-dmips-mhz = <1536>; 224 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; 225 next-level-cache = <&L2_1>; 226 }; 227 228 cpu-map { 229 cluster0 { 230 core0 { 231 cpu = <&CPU0>; 232 }; 233 234 core1 { 235 cpu = <&CPU1>; 236 }; 237 238 core2 { 239 cpu = <&CPU2>; 240 }; 241 242 core3 { 243 cpu = <&CPU3>; 244 }; 245 }; 246 247 cluster1 { 248 core0 { 249 cpu = <&CPU4>; 250 }; 251 252 core1 { 253 cpu = <&CPU5>; 254 }; 255 256 core2 { 257 cpu = <&CPU6>; 258 }; 259 260 core3 { 261 cpu = <&CPU7>; 262 }; 263 }; 264 }; 265 266 idle-states { 267 entry-method = "psci"; 268 269 LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { 270 compatible = "arm,idle-state"; 271 idle-state-name = "little-retention"; 272 /* CPU Retention (C2D), L2 Active */ 273 arm,psci-suspend-param = <0x00000002>; 274 entry-latency-us = <81>; 275 exit-latency-us = <86>; 276 min-residency-us = <504>; 277 }; 278 279 LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { 280 compatible = "arm,idle-state"; 281 idle-state-name = "little-power-collapse"; 282 /* CPU + L2 Power Collapse (C3, D4) */ 283 arm,psci-suspend-param = <0x40000003>; 284 entry-latency-us = <814>; 285 exit-latency-us = <4562>; 286 min-residency-us = <9183>; 287 local-timer-stop; 288 }; 289 290 BIG_CPU_SLEEP_0: cpu-sleep-1-0 { 291 compatible = "arm,idle-state"; 292 idle-state-name = "big-retention"; 293 /* CPU Retention (C2D), L2 Active */ 294 arm,psci-suspend-param = <0x00000002>; 295 entry-latency-us = <79>; 296 exit-latency-us = <82>; 297 min-residency-us = <1302>; 298 }; 299 300 BIG_CPU_SLEEP_1: cpu-sleep-1-1 { 301 compatible = "arm,idle-state"; 302 idle-state-name = "big-power-collapse"; 303 /* CPU + L2 Power Collapse (C3, D4) */ 304 arm,psci-suspend-param = <0x40000003>; 305 entry-latency-us = <724>; 306 exit-latency-us = <2027>; 307 min-residency-us = <9419>; 308 local-timer-stop; 309 }; 310 }; 311 }; 312 313 firmware { 314 scm { 315 compatible = "qcom,scm-msm8998", "qcom,scm"; 316 }; 317 }; 318 319 dsi_opp_table: opp-table-dsi { 320 compatible = "operating-points-v2"; 321 322 opp-131250000 { 323 opp-hz = /bits/ 64 <131250000>; 324 required-opps = <&rpmpd_opp_low_svs>; 325 }; 326 327 opp-210000000 { 328 opp-hz = /bits/ 64 <210000000>; 329 required-opps = <&rpmpd_opp_svs>; 330 }; 331 332 opp-312500000 { 333 opp-hz = /bits/ 64 <312500000>; 334 required-opps = <&rpmpd_opp_nom>; 335 }; 336 }; 337 338 psci { 339 compatible = "arm,psci-1.0"; 340 method = "smc"; 341 }; 342 343 rpm: remoteproc { 344 compatible = "qcom,msm8998-rpm-proc", "qcom,rpm-proc"; 345 346 glink-edge { 347 compatible = "qcom,glink-rpm"; 348 349 interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; 350 qcom,rpm-msg-ram = <&rpm_msg_ram>; 351 mboxes = <&apcs_glb 0>; 352 353 rpm_requests: rpm-requests { 354 compatible = "qcom,rpm-msm8998"; 355 qcom,glink-channels = "rpm_requests"; 356 357 rpmcc: clock-controller { 358 compatible = "qcom,rpmcc-msm8998", "qcom,rpmcc"; 359 clocks = <&xo>; 360 clock-names = "xo"; 361 #clock-cells = <1>; 362 }; 363 364 rpmpd: power-controller { 365 compatible = "qcom,msm8998-rpmpd"; 366 #power-domain-cells = <1>; 367 operating-points-v2 = <&rpmpd_opp_table>; 368 369 rpmpd_opp_table: opp-table { 370 compatible = "operating-points-v2"; 371 372 rpmpd_opp_ret: opp1 { 373 opp-level = <RPM_SMD_LEVEL_RETENTION>; 374 }; 375 376 rpmpd_opp_ret_plus: opp2 { 377 opp-level = <RPM_SMD_LEVEL_RETENTION_PLUS>; 378 }; 379 380 rpmpd_opp_min_svs: opp3 { 381 opp-level = <RPM_SMD_LEVEL_MIN_SVS>; 382 }; 383 384 rpmpd_opp_low_svs: opp4 { 385 opp-level = <RPM_SMD_LEVEL_LOW_SVS>; 386 }; 387 388 rpmpd_opp_svs: opp5 { 389 opp-level = <RPM_SMD_LEVEL_SVS>; 390 }; 391 392 rpmpd_opp_svs_plus: opp6 { 393 opp-level = <RPM_SMD_LEVEL_SVS_PLUS>; 394 }; 395 396 rpmpd_opp_nom: opp7 { 397 opp-level = <RPM_SMD_LEVEL_NOM>; 398 }; 399 400 rpmpd_opp_nom_plus: opp8 { 401 opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; 402 }; 403 404 rpmpd_opp_turbo: opp9 { 405 opp-level = <RPM_SMD_LEVEL_TURBO>; 406 }; 407 408 rpmpd_opp_turbo_plus: opp10 { 409 opp-level = <RPM_SMD_LEVEL_BINNING>; 410 }; 411 }; 412 }; 413 }; 414 }; 415 }; 416 417 smem { 418 compatible = "qcom,smem"; 419 memory-region = <&smem_mem>; 420 hwlocks = <&tcsr_mutex 3>; 421 }; 422 423 smp2p-lpass { 424 compatible = "qcom,smp2p"; 425 qcom,smem = <443>, <429>; 426 427 interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>; 428 429 mboxes = <&apcs_glb 10>; 430 431 qcom,local-pid = <0>; 432 qcom,remote-pid = <2>; 433 434 adsp_smp2p_out: master-kernel { 435 qcom,entry-name = "master-kernel"; 436 #qcom,smem-state-cells = <1>; 437 }; 438 439 adsp_smp2p_in: slave-kernel { 440 qcom,entry-name = "slave-kernel"; 441 442 interrupt-controller; 443 #interrupt-cells = <2>; 444 }; 445 }; 446 447 smp2p-mpss { 448 compatible = "qcom,smp2p"; 449 qcom,smem = <435>, <428>; 450 interrupts = <GIC_SPI 451 IRQ_TYPE_EDGE_RISING>; 451 mboxes = <&apcs_glb 14>; 452 qcom,local-pid = <0>; 453 qcom,remote-pid = <1>; 454 455 modem_smp2p_out: master-kernel { 456 qcom,entry-name = "master-kernel"; 457 #qcom,smem-state-cells = <1>; 458 }; 459 460 modem_smp2p_in: slave-kernel { 461 qcom,entry-name = "slave-kernel"; 462 interrupt-controller; 463 #interrupt-cells = <2>; 464 }; 465 }; 466 467 smp2p-slpi { 468 compatible = "qcom,smp2p"; 469 qcom,smem = <481>, <430>; 470 interrupts = <GIC_SPI 178 IRQ_TYPE_EDGE_RISING>; 471 mboxes = <&apcs_glb 26>; 472 qcom,local-pid = <0>; 473 qcom,remote-pid = <3>; 474 475 slpi_smp2p_out: master-kernel { 476 qcom,entry-name = "master-kernel"; 477 #qcom,smem-state-cells = <1>; 478 }; 479 480 slpi_smp2p_in: slave-kernel { 481 qcom,entry-name = "slave-kernel"; 482 interrupt-controller; 483 #interrupt-cells = <2>; 484 }; 485 }; 486 487 thermal-zones { 488 cpu0-thermal { 489 polling-delay-passive = <250>; 490 polling-delay = <1000>; 491 492 thermal-sensors = <&tsens0 1>; 493 494 trips { 495 cpu0_alert0: trip-point0 { 496 temperature = <75000>; 497 hysteresis = <2000>; 498 type = "passive"; 499 }; 500 501 cpu0_crit: cpu-crit { 502 temperature = <110000>; 503 hysteresis = <2000>; 504 type = "critical"; 505 }; 506 }; 507 }; 508 509 cpu1-thermal { 510 polling-delay-passive = <250>; 511 polling-delay = <1000>; 512 513 thermal-sensors = <&tsens0 2>; 514 515 trips { 516 cpu1_alert0: trip-point0 { 517 temperature = <75000>; 518 hysteresis = <2000>; 519 type = "passive"; 520 }; 521 522 cpu1_crit: cpu-crit { 523 temperature = <110000>; 524 hysteresis = <2000>; 525 type = "critical"; 526 }; 527 }; 528 }; 529 530 cpu2-thermal { 531 polling-delay-passive = <250>; 532 polling-delay = <1000>; 533 534 thermal-sensors = <&tsens0 3>; 535 536 trips { 537 cpu2_alert0: trip-point0 { 538 temperature = <75000>; 539 hysteresis = <2000>; 540 type = "passive"; 541 }; 542 543 cpu2_crit: cpu-crit { 544 temperature = <110000>; 545 hysteresis = <2000>; 546 type = "critical"; 547 }; 548 }; 549 }; 550 551 cpu3-thermal { 552 polling-delay-passive = <250>; 553 polling-delay = <1000>; 554 555 thermal-sensors = <&tsens0 4>; 556 557 trips { 558 cpu3_alert0: trip-point0 { 559 temperature = <75000>; 560 hysteresis = <2000>; 561 type = "passive"; 562 }; 563 564 cpu3_crit: cpu-crit { 565 temperature = <110000>; 566 hysteresis = <2000>; 567 type = "critical"; 568 }; 569 }; 570 }; 571 572 cpu4-thermal { 573 polling-delay-passive = <250>; 574 polling-delay = <1000>; 575 576 thermal-sensors = <&tsens0 7>; 577 578 trips { 579 cpu4_alert0: trip-point0 { 580 temperature = <75000>; 581 hysteresis = <2000>; 582 type = "passive"; 583 }; 584 585 cpu4_crit: cpu-crit { 586 temperature = <110000>; 587 hysteresis = <2000>; 588 type = "critical"; 589 }; 590 }; 591 }; 592 593 cpu5-thermal { 594 polling-delay-passive = <250>; 595 polling-delay = <1000>; 596 597 thermal-sensors = <&tsens0 8>; 598 599 trips { 600 cpu5_alert0: trip-point0 { 601 temperature = <75000>; 602 hysteresis = <2000>; 603 type = "passive"; 604 }; 605 606 cpu5_crit: cpu-crit { 607 temperature = <110000>; 608 hysteresis = <2000>; 609 type = "critical"; 610 }; 611 }; 612 }; 613 614 cpu6-thermal { 615 polling-delay-passive = <250>; 616 polling-delay = <1000>; 617 618 thermal-sensors = <&tsens0 9>; 619 620 trips { 621 cpu6_alert0: trip-point0 { 622 temperature = <75000>; 623 hysteresis = <2000>; 624 type = "passive"; 625 }; 626 627 cpu6_crit: cpu-crit { 628 temperature = <110000>; 629 hysteresis = <2000>; 630 type = "critical"; 631 }; 632 }; 633 }; 634 635 cpu7-thermal { 636 polling-delay-passive = <250>; 637 polling-delay = <1000>; 638 639 thermal-sensors = <&tsens0 10>; 640 641 trips { 642 cpu7_alert0: trip-point0 { 643 temperature = <75000>; 644 hysteresis = <2000>; 645 type = "passive"; 646 }; 647 648 cpu7_crit: cpu-crit { 649 temperature = <110000>; 650 hysteresis = <2000>; 651 type = "critical"; 652 }; 653 }; 654 }; 655 656 gpu-bottom-thermal { 657 polling-delay-passive = <250>; 658 polling-delay = <1000>; 659 660 thermal-sensors = <&tsens0 12>; 661 662 trips { 663 gpu1_alert0: trip-point0 { 664 temperature = <90000>; 665 hysteresis = <2000>; 666 type = "hot"; 667 }; 668 }; 669 }; 670 671 gpu-top-thermal { 672 polling-delay-passive = <250>; 673 polling-delay = <1000>; 674 675 thermal-sensors = <&tsens0 13>; 676 677 trips { 678 gpu2_alert0: trip-point0 { 679 temperature = <90000>; 680 hysteresis = <2000>; 681 type = "hot"; 682 }; 683 }; 684 }; 685 686 clust0-mhm-thermal { 687 polling-delay-passive = <250>; 688 polling-delay = <1000>; 689 690 thermal-sensors = <&tsens0 5>; 691 692 trips { 693 cluster0_mhm_alert0: trip-point0 { 694 temperature = <90000>; 695 hysteresis = <2000>; 696 type = "hot"; 697 }; 698 }; 699 }; 700 701 clust1-mhm-thermal { 702 polling-delay-passive = <250>; 703 polling-delay = <1000>; 704 705 thermal-sensors = <&tsens0 6>; 706 707 trips { 708 cluster1_mhm_alert0: trip-point0 { 709 temperature = <90000>; 710 hysteresis = <2000>; 711 type = "hot"; 712 }; 713 }; 714 }; 715 716 cluster1-l2-thermal { 717 polling-delay-passive = <250>; 718 polling-delay = <1000>; 719 720 thermal-sensors = <&tsens0 11>; 721 722 trips { 723 cluster1_l2_alert0: trip-point0 { 724 temperature = <90000>; 725 hysteresis = <2000>; 726 type = "hot"; 727 }; 728 }; 729 }; 730 731 modem-thermal { 732 polling-delay-passive = <250>; 733 polling-delay = <1000>; 734 735 thermal-sensors = <&tsens1 1>; 736 737 trips { 738 modem_alert0: trip-point0 { 739 temperature = <90000>; 740 hysteresis = <2000>; 741 type = "hot"; 742 }; 743 }; 744 }; 745 746 mem-thermal { 747 polling-delay-passive = <250>; 748 polling-delay = <1000>; 749 750 thermal-sensors = <&tsens1 2>; 751 752 trips { 753 mem_alert0: trip-point0 { 754 temperature = <90000>; 755 hysteresis = <2000>; 756 type = "hot"; 757 }; 758 }; 759 }; 760 761 wlan-thermal { 762 polling-delay-passive = <250>; 763 polling-delay = <1000>; 764 765 thermal-sensors = <&tsens1 3>; 766 767 trips { 768 wlan_alert0: trip-point0 { 769 temperature = <90000>; 770 hysteresis = <2000>; 771 type = "hot"; 772 }; 773 }; 774 }; 775 776 q6-dsp-thermal { 777 polling-delay-passive = <250>; 778 polling-delay = <1000>; 779 780 thermal-sensors = <&tsens1 4>; 781 782 trips { 783 q6_dsp_alert0: trip-point0 { 784 temperature = <90000>; 785 hysteresis = <2000>; 786 type = "hot"; 787 }; 788 }; 789 }; 790 791 camera-thermal { 792 polling-delay-passive = <250>; 793 polling-delay = <1000>; 794 795 thermal-sensors = <&tsens1 5>; 796 797 trips { 798 camera_alert0: trip-point0 { 799 temperature = <90000>; 800 hysteresis = <2000>; 801 type = "hot"; 802 }; 803 }; 804 }; 805 806 multimedia-thermal { 807 polling-delay-passive = <250>; 808 polling-delay = <1000>; 809 810 thermal-sensors = <&tsens1 6>; 811 812 trips { 813 multimedia_alert0: trip-point0 { 814 temperature = <90000>; 815 hysteresis = <2000>; 816 type = "hot"; 817 }; 818 }; 819 }; 820 }; 821 822 timer { 823 compatible = "arm,armv8-timer"; 824 interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, 825 <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, 826 <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, 827 <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; 828 }; 829 830 soc: soc@0 { 831 #address-cells = <1>; 832 #size-cells = <1>; 833 ranges = <0 0 0 0xffffffff>; 834 compatible = "simple-bus"; 835 836 gcc: clock-controller@100000 { 837 compatible = "qcom,gcc-msm8998"; 838 #clock-cells = <1>; 839 #reset-cells = <1>; 840 #power-domain-cells = <1>; 841 reg = <0x00100000 0xb0000>; 842 843 clock-names = "xo", "sleep_clk"; 844 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&sleep_clk>; 845 846 /* 847 * The hypervisor typically configures the memory region where these clocks 848 * reside as read-only for the HLOS. If the HLOS tried to enable or disable 849 * these clocks on a device with such configuration (e.g. because they are 850 * enabled but unused during boot-up), the device will most likely decide 851 * to reboot. 852 * In light of that, we are conservative here and we list all such clocks 853 * as protected. The board dts (or a user-supplied dts) can override the 854 * list of protected clocks if it differs from the norm, and it is in fact 855 * desired for the HLOS to manage these clocks 856 */ 857 protected-clocks = <AGGRE2_SNOC_NORTH_AXI>, 858 <SSC_XO>, 859 <SSC_CNOC_AHBS_CLK>; 860 }; 861 862 rpm_msg_ram: sram@778000 { 863 compatible = "qcom,rpm-msg-ram"; 864 reg = <0x00778000 0x7000>; 865 }; 866 867 qfprom: qfprom@784000 { 868 compatible = "qcom,msm8998-qfprom", "qcom,qfprom"; 869 reg = <0x00784000 0x621c>; 870 #address-cells = <1>; 871 #size-cells = <1>; 872 873 qusb2_hstx_trim: hstx-trim@23a { 874 reg = <0x23a 0x1>; 875 bits = <0 4>; 876 }; 877 }; 878 879 tsens0: thermal@10ab000 { 880 compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; 881 reg = <0x010ab000 0x1000>, /* TM */ 882 <0x010aa000 0x1000>; /* SROT */ 883 #qcom,sensors = <14>; 884 interrupts = <GIC_SPI 458 IRQ_TYPE_LEVEL_HIGH>, 885 <GIC_SPI 445 IRQ_TYPE_LEVEL_HIGH>; 886 interrupt-names = "uplow", "critical"; 887 #thermal-sensor-cells = <1>; 888 }; 889 890 tsens1: thermal@10ae000 { 891 compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; 892 reg = <0x010ae000 0x1000>, /* TM */ 893 <0x010ad000 0x1000>; /* SROT */ 894 #qcom,sensors = <8>; 895 interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>, 896 <GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>; 897 interrupt-names = "uplow", "critical"; 898 #thermal-sensor-cells = <1>; 899 }; 900 901 anoc1_smmu: iommu@1680000 { 902 compatible = "qcom,msm8998-smmu-v2", "qcom,smmu-v2"; 903 reg = <0x01680000 0x10000>; 904 #iommu-cells = <1>; 905 906 #global-interrupts = <0>; 907 interrupts = 908 <GIC_SPI 364 IRQ_TYPE_EDGE_RISING>, 909 <GIC_SPI 365 IRQ_TYPE_EDGE_RISING>, 910 <GIC_SPI 366 IRQ_TYPE_EDGE_RISING>, 911 <GIC_SPI 367 IRQ_TYPE_EDGE_RISING>, 912 <GIC_SPI 368 IRQ_TYPE_EDGE_RISING>, 913 <GIC_SPI 369 IRQ_TYPE_EDGE_RISING>; 914 }; 915 916 anoc2_smmu: iommu@16c0000 { 917 compatible = "qcom,msm8998-smmu-v2", "qcom,smmu-v2"; 918 reg = <0x016c0000 0x40000>; 919 #iommu-cells = <1>; 920 921 #global-interrupts = <0>; 922 interrupts = 923 <GIC_SPI 373 IRQ_TYPE_EDGE_RISING>, 924 <GIC_SPI 374 IRQ_TYPE_EDGE_RISING>, 925 <GIC_SPI 375 IRQ_TYPE_EDGE_RISING>, 926 <GIC_SPI 376 IRQ_TYPE_EDGE_RISING>, 927 <GIC_SPI 377 IRQ_TYPE_EDGE_RISING>, 928 <GIC_SPI 378 IRQ_TYPE_EDGE_RISING>, 929 <GIC_SPI 462 IRQ_TYPE_EDGE_RISING>, 930 <GIC_SPI 463 IRQ_TYPE_EDGE_RISING>, 931 <GIC_SPI 464 IRQ_TYPE_EDGE_RISING>, 932 <GIC_SPI 465 IRQ_TYPE_EDGE_RISING>; 933 }; 934 935 pcie0: pci@1c00000 { 936 compatible = "qcom,pcie-msm8998", "qcom,pcie-msm8996"; 937 reg = <0x01c00000 0x2000>, 938 <0x1b000000 0xf1d>, 939 <0x1b000f20 0xa8>, 940 <0x1b100000 0x100000>; 941 reg-names = "parf", "dbi", "elbi", "config"; 942 device_type = "pci"; 943 linux,pci-domain = <0>; 944 bus-range = <0x00 0xff>; 945 #address-cells = <3>; 946 #size-cells = <2>; 947 num-lanes = <1>; 948 phys = <&pciephy>; 949 phy-names = "pciephy"; 950 status = "disabled"; 951 952 ranges = <0x01000000 0x0 0x00000000 0x1b200000 0x0 0x100000>, 953 <0x02000000 0x0 0x1b300000 0x1b300000 0x0 0xd00000>; 954 955 #interrupt-cells = <1>; 956 interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>; 957 interrupt-names = "msi"; 958 interrupt-map-mask = <0 0 0 0x7>; 959 interrupt-map = <0 0 0 1 &intc 0 0 135 IRQ_TYPE_LEVEL_HIGH>, 960 <0 0 0 2 &intc 0 0 136 IRQ_TYPE_LEVEL_HIGH>, 961 <0 0 0 3 &intc 0 0 138 IRQ_TYPE_LEVEL_HIGH>, 962 <0 0 0 4 &intc 0 0 139 IRQ_TYPE_LEVEL_HIGH>; 963 964 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>, 965 <&gcc GCC_PCIE_0_AUX_CLK>, 966 <&gcc GCC_PCIE_0_CFG_AHB_CLK>, 967 <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, 968 <&gcc GCC_PCIE_0_SLV_AXI_CLK>; 969 clock-names = "pipe", "aux", "cfg", "bus_master", "bus_slave"; 970 971 power-domains = <&gcc PCIE_0_GDSC>; 972 iommu-map = <0x100 &anoc1_smmu 0x1480 1>; 973 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; 974 }; 975 976 pcie_phy: phy@1c06000 { 977 compatible = "qcom,msm8998-qmp-pcie-phy"; 978 reg = <0x01c06000 0x18c>; 979 #address-cells = <1>; 980 #size-cells = <1>; 981 status = "disabled"; 982 ranges; 983 984 clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>, 985 <&gcc GCC_PCIE_0_CFG_AHB_CLK>, 986 <&gcc GCC_PCIE_CLKREF_CLK>; 987 clock-names = "aux", "cfg_ahb", "ref"; 988 989 resets = <&gcc GCC_PCIE_0_PHY_BCR>, <&gcc GCC_PCIE_PHY_BCR>; 990 reset-names = "phy", "common"; 991 992 vdda-phy-supply = <&vreg_l1a_0p875>; 993 vdda-pll-supply = <&vreg_l2a_1p2>; 994 995 pciephy: phy@1c06800 { 996 reg = <0x01c06200 0x128>, <0x01c06400 0x1fc>, <0x01c06800 0x20c>; 997 #phy-cells = <0>; 998 999 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>; 1000 clock-names = "pipe0"; 1001 clock-output-names = "pcie_0_pipe_clk_src"; 1002 #clock-cells = <0>; 1003 }; 1004 }; 1005 1006 ufshc: ufshc@1da4000 { 1007 compatible = "qcom,msm8998-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; 1008 reg = <0x01da4000 0x2500>; 1009 interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>; 1010 phys = <&ufsphy_lanes>; 1011 phy-names = "ufsphy"; 1012 lanes-per-direction = <2>; 1013 power-domains = <&gcc UFS_GDSC>; 1014 status = "disabled"; 1015 #reset-cells = <1>; 1016 1017 clock-names = 1018 "core_clk", 1019 "bus_aggr_clk", 1020 "iface_clk", 1021 "core_clk_unipro", 1022 "ref_clk", 1023 "tx_lane0_sync_clk", 1024 "rx_lane0_sync_clk", 1025 "rx_lane1_sync_clk"; 1026 clocks = 1027 <&gcc GCC_UFS_AXI_CLK>, 1028 <&gcc GCC_AGGRE1_UFS_AXI_CLK>, 1029 <&gcc GCC_UFS_AHB_CLK>, 1030 <&gcc GCC_UFS_UNIPRO_CORE_CLK>, 1031 <&rpmcc RPM_SMD_LN_BB_CLK1>, 1032 <&gcc GCC_UFS_TX_SYMBOL_0_CLK>, 1033 <&gcc GCC_UFS_RX_SYMBOL_0_CLK>, 1034 <&gcc GCC_UFS_RX_SYMBOL_1_CLK>; 1035 freq-table-hz = 1036 <50000000 200000000>, 1037 <0 0>, 1038 <0 0>, 1039 <37500000 150000000>, 1040 <0 0>, 1041 <0 0>, 1042 <0 0>, 1043 <0 0>; 1044 1045 resets = <&gcc GCC_UFS_BCR>; 1046 reset-names = "rst"; 1047 }; 1048 1049 ufsphy: phy@1da7000 { 1050 compatible = "qcom,msm8998-qmp-ufs-phy"; 1051 reg = <0x01da7000 0x18c>; 1052 #address-cells = <1>; 1053 #size-cells = <1>; 1054 status = "disabled"; 1055 ranges; 1056 1057 clock-names = 1058 "ref", 1059 "ref_aux"; 1060 clocks = 1061 <&gcc GCC_UFS_CLKREF_CLK>, 1062 <&gcc GCC_UFS_PHY_AUX_CLK>; 1063 1064 reset-names = "ufsphy"; 1065 resets = <&ufshc 0>; 1066 1067 ufsphy_lanes: phy@1da7400 { 1068 reg = <0x01da7400 0x128>, 1069 <0x01da7600 0x1fc>, 1070 <0x01da7c00 0x1dc>, 1071 <0x01da7800 0x128>, 1072 <0x01da7a00 0x1fc>; 1073 #phy-cells = <0>; 1074 }; 1075 }; 1076 1077 tcsr_mutex: hwlock@1f40000 { 1078 compatible = "qcom,tcsr-mutex"; 1079 reg = <0x01f40000 0x20000>; 1080 #hwlock-cells = <1>; 1081 }; 1082 1083 tcsr_regs_1: syscon@1f60000 { 1084 compatible = "qcom,msm8998-tcsr", "syscon"; 1085 reg = <0x01f60000 0x20000>; 1086 }; 1087 1088 tlmm: pinctrl@3400000 { 1089 compatible = "qcom,msm8998-pinctrl"; 1090 reg = <0x03400000 0xc00000>; 1091 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 1092 gpio-ranges = <&tlmm 0 0 150>; 1093 gpio-controller; 1094 #gpio-cells = <2>; 1095 interrupt-controller; 1096 #interrupt-cells = <2>; 1097 1098 sdc2_on: sdc2-on-state { 1099 clk-pins { 1100 pins = "sdc2_clk"; 1101 drive-strength = <16>; 1102 bias-disable; 1103 }; 1104 1105 cmd-pins { 1106 pins = "sdc2_cmd"; 1107 drive-strength = <10>; 1108 bias-pull-up; 1109 }; 1110 1111 data-pins { 1112 pins = "sdc2_data"; 1113 drive-strength = <10>; 1114 bias-pull-up; 1115 }; 1116 }; 1117 1118 sdc2_off: sdc2-off-state { 1119 clk-pins { 1120 pins = "sdc2_clk"; 1121 drive-strength = <2>; 1122 bias-disable; 1123 }; 1124 1125 cmd-pins { 1126 pins = "sdc2_cmd"; 1127 drive-strength = <2>; 1128 bias-pull-up; 1129 }; 1130 1131 data-pins { 1132 pins = "sdc2_data"; 1133 drive-strength = <2>; 1134 bias-pull-up; 1135 }; 1136 }; 1137 1138 sdc2_cd: sdc2-cd-state { 1139 pins = "gpio95"; 1140 function = "gpio"; 1141 bias-pull-up; 1142 drive-strength = <2>; 1143 }; 1144 1145 blsp1_uart3_on: blsp1-uart3-on-state { 1146 tx-pins { 1147 pins = "gpio45"; 1148 function = "blsp_uart3_a"; 1149 drive-strength = <2>; 1150 bias-disable; 1151 }; 1152 1153 rx-pins { 1154 pins = "gpio46"; 1155 function = "blsp_uart3_a"; 1156 drive-strength = <2>; 1157 bias-disable; 1158 }; 1159 1160 cts-pins { 1161 pins = "gpio47"; 1162 function = "blsp_uart3_a"; 1163 drive-strength = <2>; 1164 bias-disable; 1165 }; 1166 1167 rfr-pins { 1168 pins = "gpio48"; 1169 function = "blsp_uart3_a"; 1170 drive-strength = <2>; 1171 bias-disable; 1172 }; 1173 }; 1174 1175 blsp1_i2c1_default: blsp1-i2c1-default-state { 1176 pins = "gpio2", "gpio3"; 1177 function = "blsp_i2c1"; 1178 drive-strength = <2>; 1179 bias-disable; 1180 }; 1181 1182 blsp1_i2c1_sleep: blsp1-i2c1-sleep-state-state { 1183 pins = "gpio2", "gpio3"; 1184 function = "blsp_i2c1"; 1185 drive-strength = <2>; 1186 bias-pull-up; 1187 }; 1188 1189 blsp1_i2c2_default: blsp1-i2c2-default-state { 1190 pins = "gpio32", "gpio33"; 1191 function = "blsp_i2c2"; 1192 drive-strength = <2>; 1193 bias-disable; 1194 }; 1195 1196 blsp1_i2c2_sleep: blsp1-i2c2-sleep-state-state { 1197 pins = "gpio32", "gpio33"; 1198 function = "blsp_i2c2"; 1199 drive-strength = <2>; 1200 bias-pull-up; 1201 }; 1202 1203 blsp1_i2c3_default: blsp1-i2c3-default-state { 1204 pins = "gpio47", "gpio48"; 1205 function = "blsp_i2c3"; 1206 drive-strength = <2>; 1207 bias-disable; 1208 }; 1209 1210 blsp1_i2c3_sleep: blsp1-i2c3-sleep-state { 1211 pins = "gpio47", "gpio48"; 1212 function = "blsp_i2c3"; 1213 drive-strength = <2>; 1214 bias-pull-up; 1215 }; 1216 1217 blsp1_i2c4_default: blsp1-i2c4-default-state { 1218 pins = "gpio10", "gpio11"; 1219 function = "blsp_i2c4"; 1220 drive-strength = <2>; 1221 bias-disable; 1222 }; 1223 1224 blsp1_i2c4_sleep: blsp1-i2c4-sleep-state { 1225 pins = "gpio10", "gpio11"; 1226 function = "blsp_i2c4"; 1227 drive-strength = <2>; 1228 bias-pull-up; 1229 }; 1230 1231 blsp1_i2c5_default: blsp1-i2c5-default-state { 1232 pins = "gpio87", "gpio88"; 1233 function = "blsp_i2c5"; 1234 drive-strength = <2>; 1235 bias-disable; 1236 }; 1237 1238 blsp1_i2c5_sleep: blsp1-i2c5-sleep-state { 1239 pins = "gpio87", "gpio88"; 1240 function = "blsp_i2c5"; 1241 drive-strength = <2>; 1242 bias-pull-up; 1243 }; 1244 1245 blsp1_i2c6_default: blsp1-i2c6-default-state { 1246 pins = "gpio43", "gpio44"; 1247 function = "blsp_i2c6"; 1248 drive-strength = <2>; 1249 bias-disable; 1250 }; 1251 1252 blsp1_i2c6_sleep: blsp1-i2c6-sleep-state { 1253 pins = "gpio43", "gpio44"; 1254 function = "blsp_i2c6"; 1255 drive-strength = <2>; 1256 bias-pull-up; 1257 }; 1258 1259 blsp1_spi_b_default: blsp1-spi-b-default-state { 1260 pins = "gpio23", "gpio28"; 1261 function = "blsp1_spi_b"; 1262 drive-strength = <6>; 1263 bias-disable; 1264 }; 1265 1266 blsp1_spi1_default: blsp1-spi1-default-state { 1267 pins = "gpio0", "gpio1", "gpio2", "gpio3"; 1268 function = "blsp_spi1"; 1269 drive-strength = <6>; 1270 bias-disable; 1271 }; 1272 1273 blsp1_spi2_default: blsp1-spi2-default-state { 1274 pins = "gpio31", "gpio34", "gpio32", "gpio33"; 1275 function = "blsp_spi2"; 1276 drive-strength = <6>; 1277 bias-disable; 1278 }; 1279 1280 blsp1_spi3_default: blsp1-spi3-default-state { 1281 pins = "gpio45", "gpio46", "gpio47", "gpio48"; 1282 function = "blsp_spi2"; 1283 drive-strength = <6>; 1284 bias-disable; 1285 }; 1286 1287 blsp1_spi4_default: blsp1-spi4-default-state { 1288 pins = "gpio8", "gpio9", "gpio10", "gpio11"; 1289 function = "blsp_spi4"; 1290 drive-strength = <6>; 1291 bias-disable; 1292 }; 1293 1294 blsp1_spi5_default: blsp1-spi5-default-state { 1295 pins = "gpio85", "gpio86", "gpio87", "gpio88"; 1296 function = "blsp_spi5"; 1297 drive-strength = <6>; 1298 bias-disable; 1299 }; 1300 1301 blsp1_spi6_default: blsp1-spi6-default-state { 1302 pins = "gpio41", "gpio42", "gpio43", "gpio44"; 1303 function = "blsp_spi6"; 1304 drive-strength = <6>; 1305 bias-disable; 1306 }; 1307 1308 1309 /* 6 interfaces per QUP, BLSP2 indexes are numbered (n)+6 */ 1310 blsp2_i2c1_default: blsp2-i2c1-default-state { 1311 pins = "gpio55", "gpio56"; 1312 function = "blsp_i2c7"; 1313 drive-strength = <2>; 1314 bias-disable; 1315 }; 1316 1317 blsp2_i2c1_sleep: blsp2-i2c1-sleep-state { 1318 pins = "gpio55", "gpio56"; 1319 function = "blsp_i2c7"; 1320 drive-strength = <2>; 1321 bias-pull-up; 1322 }; 1323 1324 blsp2_i2c2_default: blsp2-i2c2-default-state { 1325 pins = "gpio6", "gpio7"; 1326 function = "blsp_i2c8"; 1327 drive-strength = <2>; 1328 bias-disable; 1329 }; 1330 1331 blsp2_i2c2_sleep: blsp2-i2c2-sleep-state { 1332 pins = "gpio6", "gpio7"; 1333 function = "blsp_i2c8"; 1334 drive-strength = <2>; 1335 bias-pull-up; 1336 }; 1337 1338 blsp2_i2c3_default: blsp2-i2c3-default-state { 1339 pins = "gpio51", "gpio52"; 1340 function = "blsp_i2c9"; 1341 drive-strength = <2>; 1342 bias-disable; 1343 }; 1344 1345 blsp2_i2c3_sleep: blsp2-i2c3-sleep-state { 1346 pins = "gpio51", "gpio52"; 1347 function = "blsp_i2c9"; 1348 drive-strength = <2>; 1349 bias-pull-up; 1350 }; 1351 1352 blsp2_i2c4_default: blsp2-i2c4-default-state { 1353 pins = "gpio67", "gpio68"; 1354 function = "blsp_i2c10"; 1355 drive-strength = <2>; 1356 bias-disable; 1357 }; 1358 1359 blsp2_i2c4_sleep: blsp2-i2c4-sleep-state { 1360 pins = "gpio67", "gpio68"; 1361 function = "blsp_i2c10"; 1362 drive-strength = <2>; 1363 bias-pull-up; 1364 }; 1365 1366 blsp2_i2c5_default: blsp2-i2c5-default-state { 1367 pins = "gpio60", "gpio61"; 1368 function = "blsp_i2c11"; 1369 drive-strength = <2>; 1370 bias-disable; 1371 }; 1372 1373 blsp2_i2c5_sleep: blsp2-i2c5-sleep-state { 1374 pins = "gpio60", "gpio61"; 1375 function = "blsp_i2c11"; 1376 drive-strength = <2>; 1377 bias-pull-up; 1378 }; 1379 1380 blsp2_i2c6_default: blsp2-i2c6-default-state { 1381 pins = "gpio83", "gpio84"; 1382 function = "blsp_i2c12"; 1383 drive-strength = <2>; 1384 bias-disable; 1385 }; 1386 1387 blsp2_i2c6_sleep: blsp2-i2c6-sleep-state { 1388 pins = "gpio83", "gpio84"; 1389 function = "blsp_i2c12"; 1390 drive-strength = <2>; 1391 bias-pull-up; 1392 }; 1393 1394 blsp2_spi1_default: blsp2-spi1-default-state { 1395 pins = "gpio53", "gpio54", "gpio55", "gpio56"; 1396 function = "blsp_spi7"; 1397 drive-strength = <6>; 1398 bias-disable; 1399 }; 1400 1401 blsp2_spi2_default: blsp2-spi2-default-state { 1402 pins = "gpio4", "gpio5", "gpio6", "gpio7"; 1403 function = "blsp_spi8"; 1404 drive-strength = <6>; 1405 bias-disable; 1406 }; 1407 1408 blsp2_spi3_default: blsp2-spi3-default-state { 1409 pins = "gpio49", "gpio50", "gpio51", "gpio52"; 1410 function = "blsp_spi9"; 1411 drive-strength = <6>; 1412 bias-disable; 1413 }; 1414 1415 blsp2_spi4_default: blsp2-spi4-default-state { 1416 pins = "gpio65", "gpio66", "gpio67", "gpio68"; 1417 function = "blsp_spi10"; 1418 drive-strength = <6>; 1419 bias-disable; 1420 }; 1421 1422 blsp2_spi5_default: blsp2-spi5-default-state { 1423 pins = "gpio58", "gpio59", "gpio60", "gpio61"; 1424 function = "blsp_spi11"; 1425 drive-strength = <6>; 1426 bias-disable; 1427 }; 1428 1429 blsp2_spi6_default: blsp2-spi6-default-state { 1430 pins = "gpio81", "gpio82", "gpio83", "gpio84"; 1431 function = "blsp_spi12"; 1432 drive-strength = <6>; 1433 bias-disable; 1434 }; 1435 }; 1436 1437 remoteproc_mss: remoteproc@4080000 { 1438 compatible = "qcom,msm8998-mss-pil"; 1439 reg = <0x04080000 0x100>, <0x04180000 0x20>; 1440 reg-names = "qdsp6", "rmb"; 1441 1442 interrupts-extended = 1443 <&intc GIC_SPI 448 IRQ_TYPE_EDGE_RISING>, 1444 <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, 1445 <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, 1446 <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, 1447 <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, 1448 <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; 1449 interrupt-names = "wdog", "fatal", "ready", 1450 "handover", "stop-ack", 1451 "shutdown-ack"; 1452 1453 clocks = <&gcc GCC_MSS_CFG_AHB_CLK>, 1454 <&gcc GCC_BIMC_MSS_Q6_AXI_CLK>, 1455 <&gcc GCC_BOOT_ROM_AHB_CLK>, 1456 <&gcc GCC_MSS_GPLL0_DIV_CLK_SRC>, 1457 <&gcc GCC_MSS_SNOC_AXI_CLK>, 1458 <&gcc GCC_MSS_MNOC_BIMC_AXI_CLK>, 1459 <&rpmcc RPM_SMD_QDSS_CLK>, 1460 <&rpmcc RPM_SMD_XO_CLK_SRC>; 1461 clock-names = "iface", "bus", "mem", "gpll0_mss", 1462 "snoc_axi", "mnoc_axi", "qdss", "xo"; 1463 1464 qcom,smem-states = <&modem_smp2p_out 0>; 1465 qcom,smem-state-names = "stop"; 1466 1467 resets = <&gcc GCC_MSS_RESTART>; 1468 reset-names = "mss_restart"; 1469 1470 qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>; 1471 1472 power-domains = <&rpmpd MSM8998_VDDCX>, 1473 <&rpmpd MSM8998_VDDMX>; 1474 power-domain-names = "cx", "mx"; 1475 1476 status = "disabled"; 1477 1478 mba { 1479 memory-region = <&mba_mem>; 1480 }; 1481 1482 mpss { 1483 memory-region = <&mpss_mem>; 1484 }; 1485 1486 metadata { 1487 memory-region = <&mdata_mem>; 1488 }; 1489 1490 glink-edge { 1491 interrupts = <GIC_SPI 452 IRQ_TYPE_EDGE_RISING>; 1492 label = "modem"; 1493 qcom,remote-pid = <1>; 1494 mboxes = <&apcs_glb 15>; 1495 }; 1496 }; 1497 1498 adreno_gpu: gpu@5000000 { 1499 compatible = "qcom,adreno-540.1", "qcom,adreno"; 1500 reg = <0x05000000 0x40000>; 1501 reg-names = "kgsl_3d0_reg_memory"; 1502 1503 clocks = <&gcc GCC_GPU_CFG_AHB_CLK>, 1504 <&gpucc RBBMTIMER_CLK>, 1505 <&gcc GCC_BIMC_GFX_CLK>, 1506 <&gcc GCC_GPU_BIMC_GFX_CLK>, 1507 <&gpucc RBCPR_CLK>, 1508 <&gpucc GFX3D_CLK>; 1509 clock-names = "iface", 1510 "rbbmtimer", 1511 "mem", 1512 "mem_iface", 1513 "rbcpr", 1514 "core"; 1515 1516 interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>; 1517 iommus = <&adreno_smmu 0>; 1518 operating-points-v2 = <&gpu_opp_table>; 1519 power-domains = <&rpmpd MSM8998_VDDMX>; 1520 status = "disabled"; 1521 1522 gpu_opp_table: opp-table { 1523 compatible = "operating-points-v2"; 1524 opp-710000097 { 1525 opp-hz = /bits/ 64 <710000097>; 1526 opp-level = <RPM_SMD_LEVEL_TURBO>; 1527 opp-supported-hw = <0xff>; 1528 }; 1529 1530 opp-670000048 { 1531 opp-hz = /bits/ 64 <670000048>; 1532 opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; 1533 opp-supported-hw = <0xff>; 1534 }; 1535 1536 opp-596000097 { 1537 opp-hz = /bits/ 64 <596000097>; 1538 opp-level = <RPM_SMD_LEVEL_NOM>; 1539 opp-supported-hw = <0xff>; 1540 }; 1541 1542 opp-515000097 { 1543 opp-hz = /bits/ 64 <515000097>; 1544 opp-level = <RPM_SMD_LEVEL_SVS_PLUS>; 1545 opp-supported-hw = <0xff>; 1546 }; 1547 1548 opp-414000000 { 1549 opp-hz = /bits/ 64 <414000000>; 1550 opp-level = <RPM_SMD_LEVEL_SVS>; 1551 opp-supported-hw = <0xff>; 1552 }; 1553 1554 opp-342000000 { 1555 opp-hz = /bits/ 64 <342000000>; 1556 opp-level = <RPM_SMD_LEVEL_LOW_SVS>; 1557 opp-supported-hw = <0xff>; 1558 }; 1559 1560 opp-257000000 { 1561 opp-hz = /bits/ 64 <257000000>; 1562 opp-level = <RPM_SMD_LEVEL_MIN_SVS>; 1563 opp-supported-hw = <0xff>; 1564 }; 1565 }; 1566 }; 1567 1568 adreno_smmu: iommu@5040000 { 1569 compatible = "qcom,msm8998-smmu-v2", "qcom,smmu-v2"; 1570 reg = <0x05040000 0x10000>; 1571 clocks = <&gcc GCC_GPU_CFG_AHB_CLK>, 1572 <&gcc GCC_BIMC_GFX_CLK>, 1573 <&gcc GCC_GPU_BIMC_GFX_CLK>; 1574 clock-names = "iface", "mem", "mem_iface"; 1575 1576 #global-interrupts = <0>; 1577 #iommu-cells = <1>; 1578 interrupts = 1579 <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>, 1580 <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>, 1581 <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>; 1582 /* 1583 * GPU-GX GDSC's parent is GPU-CX. We need to bring up the 1584 * GPU-CX for SMMU but we need both of them up for Adreno. 1585 * Contemporarily, we also need to manage the VDDMX rpmpd 1586 * domain in the Adreno driver. 1587 * Enable GPU CX/GX GDSCs here so that we can manage the 1588 * SoC VDDMX RPM Power Domain in the Adreno driver. 1589 */ 1590 power-domains = <&gpucc GPU_GX_GDSC>; 1591 }; 1592 1593 gpucc: clock-controller@5065000 { 1594 compatible = "qcom,msm8998-gpucc"; 1595 #clock-cells = <1>; 1596 #reset-cells = <1>; 1597 #power-domain-cells = <1>; 1598 reg = <0x05065000 0x9000>; 1599 1600 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, 1601 <&gcc GCC_GPU_GPLL0_CLK>; 1602 clock-names = "xo", 1603 "gpll0"; 1604 }; 1605 1606 remoteproc_slpi: remoteproc@5800000 { 1607 compatible = "qcom,msm8998-slpi-pas"; 1608 reg = <0x05800000 0x4040>; 1609 1610 interrupts-extended = <&intc GIC_SPI 390 IRQ_TYPE_EDGE_RISING>, 1611 <&slpi_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, 1612 <&slpi_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, 1613 <&slpi_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, 1614 <&slpi_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; 1615 interrupt-names = "wdog", "fatal", "ready", 1616 "handover", "stop-ack"; 1617 1618 px-supply = <&vreg_lvs2a_1p8>; 1619 1620 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, 1621 <&rpmcc RPM_SMD_AGGR2_NOC_CLK>; 1622 clock-names = "xo", "aggre2"; 1623 1624 memory-region = <&slpi_mem>; 1625 1626 qcom,smem-states = <&slpi_smp2p_out 0>; 1627 qcom,smem-state-names = "stop"; 1628 1629 power-domains = <&rpmpd MSM8998_SSCCX>; 1630 power-domain-names = "ssc_cx"; 1631 1632 status = "disabled"; 1633 1634 glink-edge { 1635 interrupts = <GIC_SPI 179 IRQ_TYPE_EDGE_RISING>; 1636 label = "dsps"; 1637 qcom,remote-pid = <3>; 1638 mboxes = <&apcs_glb 27>; 1639 }; 1640 }; 1641 1642 stm: stm@6002000 { 1643 compatible = "arm,coresight-stm", "arm,primecell"; 1644 reg = <0x06002000 0x1000>, 1645 <0x16280000 0x180000>; 1646 reg-names = "stm-base", "stm-stimulus-base"; 1647 status = "disabled"; 1648 1649 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1650 clock-names = "apb_pclk", "atclk"; 1651 1652 out-ports { 1653 port { 1654 stm_out: endpoint { 1655 remote-endpoint = <&funnel0_in7>; 1656 }; 1657 }; 1658 }; 1659 }; 1660 1661 funnel1: funnel@6041000 { 1662 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 1663 reg = <0x06041000 0x1000>; 1664 status = "disabled"; 1665 1666 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1667 clock-names = "apb_pclk", "atclk"; 1668 1669 out-ports { 1670 port { 1671 funnel0_out: endpoint { 1672 remote-endpoint = 1673 <&merge_funnel_in0>; 1674 }; 1675 }; 1676 }; 1677 1678 in-ports { 1679 #address-cells = <1>; 1680 #size-cells = <0>; 1681 1682 port@7 { 1683 reg = <7>; 1684 funnel0_in7: endpoint { 1685 remote-endpoint = <&stm_out>; 1686 }; 1687 }; 1688 }; 1689 }; 1690 1691 funnel2: funnel@6042000 { 1692 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 1693 reg = <0x06042000 0x1000>; 1694 status = "disabled"; 1695 1696 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1697 clock-names = "apb_pclk", "atclk"; 1698 1699 out-ports { 1700 port { 1701 funnel1_out: endpoint { 1702 remote-endpoint = 1703 <&merge_funnel_in1>; 1704 }; 1705 }; 1706 }; 1707 1708 in-ports { 1709 #address-cells = <1>; 1710 #size-cells = <0>; 1711 1712 port@6 { 1713 reg = <6>; 1714 funnel1_in6: endpoint { 1715 remote-endpoint = 1716 <&apss_merge_funnel_out>; 1717 }; 1718 }; 1719 }; 1720 }; 1721 1722 funnel3: funnel@6045000 { 1723 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 1724 reg = <0x06045000 0x1000>; 1725 status = "disabled"; 1726 1727 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1728 clock-names = "apb_pclk", "atclk"; 1729 1730 out-ports { 1731 port { 1732 merge_funnel_out: endpoint { 1733 remote-endpoint = 1734 <&etf_in>; 1735 }; 1736 }; 1737 }; 1738 1739 in-ports { 1740 #address-cells = <1>; 1741 #size-cells = <0>; 1742 1743 port@0 { 1744 reg = <0>; 1745 merge_funnel_in0: endpoint { 1746 remote-endpoint = 1747 <&funnel0_out>; 1748 }; 1749 }; 1750 1751 port@1 { 1752 reg = <1>; 1753 merge_funnel_in1: endpoint { 1754 remote-endpoint = 1755 <&funnel1_out>; 1756 }; 1757 }; 1758 }; 1759 }; 1760 1761 replicator1: replicator@6046000 { 1762 compatible = "arm,coresight-dynamic-replicator", "arm,primecell"; 1763 reg = <0x06046000 0x1000>; 1764 status = "disabled"; 1765 1766 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1767 clock-names = "apb_pclk", "atclk"; 1768 1769 out-ports { 1770 port { 1771 replicator_out: endpoint { 1772 remote-endpoint = <&etr_in>; 1773 }; 1774 }; 1775 }; 1776 1777 in-ports { 1778 port { 1779 replicator_in: endpoint { 1780 remote-endpoint = <&etf_out>; 1781 }; 1782 }; 1783 }; 1784 }; 1785 1786 etf: etf@6047000 { 1787 compatible = "arm,coresight-tmc", "arm,primecell"; 1788 reg = <0x06047000 0x1000>; 1789 status = "disabled"; 1790 1791 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1792 clock-names = "apb_pclk", "atclk"; 1793 1794 out-ports { 1795 port { 1796 etf_out: endpoint { 1797 remote-endpoint = 1798 <&replicator_in>; 1799 }; 1800 }; 1801 }; 1802 1803 in-ports { 1804 port { 1805 etf_in: endpoint { 1806 remote-endpoint = 1807 <&merge_funnel_out>; 1808 }; 1809 }; 1810 }; 1811 }; 1812 1813 etr: etr@6048000 { 1814 compatible = "arm,coresight-tmc", "arm,primecell"; 1815 reg = <0x06048000 0x1000>; 1816 status = "disabled"; 1817 1818 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1819 clock-names = "apb_pclk", "atclk"; 1820 arm,scatter-gather; 1821 1822 in-ports { 1823 port { 1824 etr_in: endpoint { 1825 remote-endpoint = 1826 <&replicator_out>; 1827 }; 1828 }; 1829 }; 1830 }; 1831 1832 etm1: etm@7840000 { 1833 compatible = "arm,coresight-etm4x", "arm,primecell"; 1834 reg = <0x07840000 0x1000>; 1835 status = "disabled"; 1836 1837 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1838 clock-names = "apb_pclk", "atclk"; 1839 1840 cpu = <&CPU0>; 1841 1842 out-ports { 1843 port { 1844 etm0_out: endpoint { 1845 remote-endpoint = 1846 <&apss_funnel_in0>; 1847 }; 1848 }; 1849 }; 1850 }; 1851 1852 etm2: etm@7940000 { 1853 compatible = "arm,coresight-etm4x", "arm,primecell"; 1854 reg = <0x07940000 0x1000>; 1855 status = "disabled"; 1856 1857 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1858 clock-names = "apb_pclk", "atclk"; 1859 1860 cpu = <&CPU1>; 1861 1862 out-ports { 1863 port { 1864 etm1_out: endpoint { 1865 remote-endpoint = 1866 <&apss_funnel_in1>; 1867 }; 1868 }; 1869 }; 1870 }; 1871 1872 etm3: etm@7a40000 { 1873 compatible = "arm,coresight-etm4x", "arm,primecell"; 1874 reg = <0x07a40000 0x1000>; 1875 status = "disabled"; 1876 1877 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1878 clock-names = "apb_pclk", "atclk"; 1879 1880 cpu = <&CPU2>; 1881 1882 out-ports { 1883 port { 1884 etm2_out: endpoint { 1885 remote-endpoint = 1886 <&apss_funnel_in2>; 1887 }; 1888 }; 1889 }; 1890 }; 1891 1892 etm4: etm@7b40000 { 1893 compatible = "arm,coresight-etm4x", "arm,primecell"; 1894 reg = <0x07b40000 0x1000>; 1895 status = "disabled"; 1896 1897 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1898 clock-names = "apb_pclk", "atclk"; 1899 1900 cpu = <&CPU3>; 1901 1902 out-ports { 1903 port { 1904 etm3_out: endpoint { 1905 remote-endpoint = 1906 <&apss_funnel_in3>; 1907 }; 1908 }; 1909 }; 1910 }; 1911 1912 funnel4: funnel@7b60000 { /* APSS Funnel */ 1913 compatible = "arm,coresight-etm4x", "arm,primecell"; 1914 reg = <0x07b60000 0x1000>; 1915 status = "disabled"; 1916 1917 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 1918 clock-names = "apb_pclk", "atclk"; 1919 1920 out-ports { 1921 port { 1922 apss_funnel_out: endpoint { 1923 remote-endpoint = 1924 <&apss_merge_funnel_in>; 1925 }; 1926 }; 1927 }; 1928 1929 in-ports { 1930 #address-cells = <1>; 1931 #size-cells = <0>; 1932 1933 port@0 { 1934 reg = <0>; 1935 apss_funnel_in0: endpoint { 1936 remote-endpoint = 1937 <&etm0_out>; 1938 }; 1939 }; 1940 1941 port@1 { 1942 reg = <1>; 1943 apss_funnel_in1: endpoint { 1944 remote-endpoint = 1945 <&etm1_out>; 1946 }; 1947 }; 1948 1949 port@2 { 1950 reg = <2>; 1951 apss_funnel_in2: endpoint { 1952 remote-endpoint = 1953 <&etm2_out>; 1954 }; 1955 }; 1956 1957 port@3 { 1958 reg = <3>; 1959 apss_funnel_in3: endpoint { 1960 remote-endpoint = 1961 <&etm3_out>; 1962 }; 1963 }; 1964 1965 port@4 { 1966 reg = <4>; 1967 apss_funnel_in4: endpoint { 1968 remote-endpoint = 1969 <&etm4_out>; 1970 }; 1971 }; 1972 1973 port@5 { 1974 reg = <5>; 1975 apss_funnel_in5: endpoint { 1976 remote-endpoint = 1977 <&etm5_out>; 1978 }; 1979 }; 1980 1981 port@6 { 1982 reg = <6>; 1983 apss_funnel_in6: endpoint { 1984 remote-endpoint = 1985 <&etm6_out>; 1986 }; 1987 }; 1988 1989 port@7 { 1990 reg = <7>; 1991 apss_funnel_in7: endpoint { 1992 remote-endpoint = 1993 <&etm7_out>; 1994 }; 1995 }; 1996 }; 1997 }; 1998 1999 funnel5: funnel@7b70000 { 2000 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 2001 reg = <0x07b70000 0x1000>; 2002 status = "disabled"; 2003 2004 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 2005 clock-names = "apb_pclk", "atclk"; 2006 2007 out-ports { 2008 port { 2009 apss_merge_funnel_out: endpoint { 2010 remote-endpoint = 2011 <&funnel1_in6>; 2012 }; 2013 }; 2014 }; 2015 2016 in-ports { 2017 port { 2018 apss_merge_funnel_in: endpoint { 2019 remote-endpoint = 2020 <&apss_funnel_out>; 2021 }; 2022 }; 2023 }; 2024 }; 2025 2026 etm5: etm@7c40000 { 2027 compatible = "arm,coresight-etm4x", "arm,primecell"; 2028 reg = <0x07c40000 0x1000>; 2029 status = "disabled"; 2030 2031 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 2032 clock-names = "apb_pclk", "atclk"; 2033 2034 cpu = <&CPU4>; 2035 2036 out-ports { 2037 port { 2038 etm4_out: endpoint { 2039 remote-endpoint = <&apss_funnel_in4>; 2040 }; 2041 }; 2042 }; 2043 }; 2044 2045 etm6: etm@7d40000 { 2046 compatible = "arm,coresight-etm4x", "arm,primecell"; 2047 reg = <0x07d40000 0x1000>; 2048 status = "disabled"; 2049 2050 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 2051 clock-names = "apb_pclk", "atclk"; 2052 2053 cpu = <&CPU5>; 2054 2055 out-ports { 2056 port { 2057 etm5_out: endpoint { 2058 remote-endpoint = <&apss_funnel_in5>; 2059 }; 2060 }; 2061 }; 2062 }; 2063 2064 etm7: etm@7e40000 { 2065 compatible = "arm,coresight-etm4x", "arm,primecell"; 2066 reg = <0x07e40000 0x1000>; 2067 status = "disabled"; 2068 2069 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 2070 clock-names = "apb_pclk", "atclk"; 2071 2072 cpu = <&CPU6>; 2073 2074 out-ports { 2075 port { 2076 etm6_out: endpoint { 2077 remote-endpoint = <&apss_funnel_in6>; 2078 }; 2079 }; 2080 }; 2081 }; 2082 2083 etm8: etm@7f40000 { 2084 compatible = "arm,coresight-etm4x", "arm,primecell"; 2085 reg = <0x07f40000 0x1000>; 2086 status = "disabled"; 2087 2088 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>; 2089 clock-names = "apb_pclk", "atclk"; 2090 2091 cpu = <&CPU7>; 2092 2093 out-ports { 2094 port { 2095 etm7_out: endpoint { 2096 remote-endpoint = <&apss_funnel_in7>; 2097 }; 2098 }; 2099 }; 2100 }; 2101 2102 sram@290000 { 2103 compatible = "qcom,rpm-stats"; 2104 reg = <0x00290000 0x10000>; 2105 }; 2106 2107 spmi_bus: spmi@800f000 { 2108 compatible = "qcom,spmi-pmic-arb"; 2109 reg = <0x0800f000 0x1000>, 2110 <0x08400000 0x1000000>, 2111 <0x09400000 0x1000000>, 2112 <0x0a400000 0x220000>, 2113 <0x0800a000 0x3000>; 2114 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; 2115 interrupt-names = "periph_irq"; 2116 interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>; 2117 qcom,ee = <0>; 2118 qcom,channel = <0>; 2119 #address-cells = <2>; 2120 #size-cells = <0>; 2121 interrupt-controller; 2122 #interrupt-cells = <4>; 2123 }; 2124 2125 usb3: usb@a8f8800 { 2126 compatible = "qcom,msm8998-dwc3", "qcom,dwc3"; 2127 reg = <0x0a8f8800 0x400>; 2128 status = "disabled"; 2129 #address-cells = <1>; 2130 #size-cells = <1>; 2131 ranges; 2132 2133 clocks = <&gcc GCC_CFG_NOC_USB3_AXI_CLK>, 2134 <&gcc GCC_USB30_MASTER_CLK>, 2135 <&gcc GCC_AGGRE1_USB3_AXI_CLK>, 2136 <&gcc GCC_USB30_SLEEP_CLK>, 2137 <&gcc GCC_USB30_MOCK_UTMI_CLK>; 2138 clock-names = "cfg_noc", 2139 "core", 2140 "iface", 2141 "sleep", 2142 "mock_utmi"; 2143 2144 assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>, 2145 <&gcc GCC_USB30_MASTER_CLK>; 2146 assigned-clock-rates = <19200000>, <120000000>; 2147 2148 interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>, 2149 <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>; 2150 interrupt-names = "hs_phy_irq", "ss_phy_irq"; 2151 2152 power-domains = <&gcc USB_30_GDSC>; 2153 2154 resets = <&gcc GCC_USB_30_BCR>; 2155 2156 usb3_dwc3: usb@a800000 { 2157 compatible = "snps,dwc3"; 2158 reg = <0x0a800000 0xcd00>; 2159 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; 2160 snps,dis_u2_susphy_quirk; 2161 snps,dis_enblslpm_quirk; 2162 snps,parkmode-disable-ss-quirk; 2163 phys = <&qusb2phy>, <&usb3phy>; 2164 phy-names = "usb2-phy", "usb3-phy"; 2165 snps,has-lpm-erratum; 2166 snps,hird-threshold = /bits/ 8 <0x10>; 2167 }; 2168 }; 2169 2170 usb3phy: phy@c010000 { 2171 compatible = "qcom,msm8998-qmp-usb3-phy"; 2172 reg = <0x0c010000 0x1000>; 2173 2174 clocks = <&gcc GCC_USB3_PHY_AUX_CLK>, 2175 <&gcc GCC_USB3_CLKREF_CLK>, 2176 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, 2177 <&gcc GCC_USB3_PHY_PIPE_CLK>; 2178 clock-names = "aux", 2179 "ref", 2180 "cfg_ahb", 2181 "pipe"; 2182 clock-output-names = "usb3_phy_pipe_clk_src"; 2183 #clock-cells = <0>; 2184 #phy-cells = <0>; 2185 2186 resets = <&gcc GCC_USB3_PHY_BCR>, 2187 <&gcc GCC_USB3PHY_PHY_BCR>; 2188 reset-names = "phy", 2189 "phy_phy"; 2190 2191 status = "disabled"; 2192 }; 2193 2194 qusb2phy: phy@c012000 { 2195 compatible = "qcom,msm8998-qusb2-phy"; 2196 reg = <0x0c012000 0x2a8>; 2197 status = "disabled"; 2198 #phy-cells = <0>; 2199 2200 clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, 2201 <&gcc GCC_RX1_USB2_CLKREF_CLK>; 2202 clock-names = "cfg_ahb", "ref"; 2203 2204 resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; 2205 2206 nvmem-cells = <&qusb2_hstx_trim>; 2207 }; 2208 2209 sdhc2: mmc@c0a4900 { 2210 compatible = "qcom,msm8998-sdhci", "qcom,sdhci-msm-v4"; 2211 reg = <0x0c0a4900 0x314>, <0x0c0a4000 0x800>; 2212 reg-names = "hc", "core"; 2213 2214 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, 2215 <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; 2216 interrupt-names = "hc_irq", "pwr_irq"; 2217 2218 clock-names = "iface", "core", "xo"; 2219 clocks = <&gcc GCC_SDCC2_AHB_CLK>, 2220 <&gcc GCC_SDCC2_APPS_CLK>, 2221 <&rpmcc RPM_SMD_XO_CLK_SRC>; 2222 bus-width = <4>; 2223 status = "disabled"; 2224 }; 2225 2226 blsp1_dma: dma-controller@c144000 { 2227 compatible = "qcom,bam-v1.7.0"; 2228 reg = <0x0c144000 0x25000>; 2229 interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; 2230 clocks = <&gcc GCC_BLSP1_AHB_CLK>; 2231 clock-names = "bam_clk"; 2232 #dma-cells = <1>; 2233 qcom,ee = <0>; 2234 qcom,controlled-remotely; 2235 num-channels = <18>; 2236 qcom,num-ees = <4>; 2237 }; 2238 2239 blsp1_uart3: serial@c171000 { 2240 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; 2241 reg = <0x0c171000 0x1000>; 2242 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; 2243 clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>, 2244 <&gcc GCC_BLSP1_AHB_CLK>; 2245 clock-names = "core", "iface"; 2246 dmas = <&blsp1_dma 4>, <&blsp1_dma 5>; 2247 dma-names = "tx", "rx"; 2248 pinctrl-names = "default"; 2249 pinctrl-0 = <&blsp1_uart3_on>; 2250 status = "disabled"; 2251 }; 2252 2253 blsp1_i2c1: i2c@c175000 { 2254 compatible = "qcom,i2c-qup-v2.2.1"; 2255 reg = <0x0c175000 0x600>; 2256 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; 2257 2258 clocks = <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>, 2259 <&gcc GCC_BLSP1_AHB_CLK>; 2260 clock-names = "core", "iface"; 2261 dmas = <&blsp1_dma 6>, <&blsp1_dma 7>; 2262 dma-names = "tx", "rx"; 2263 pinctrl-names = "default", "sleep"; 2264 pinctrl-0 = <&blsp1_i2c1_default>; 2265 pinctrl-1 = <&blsp1_i2c1_sleep>; 2266 clock-frequency = <400000>; 2267 2268 status = "disabled"; 2269 #address-cells = <1>; 2270 #size-cells = <0>; 2271 }; 2272 2273 blsp1_i2c2: i2c@c176000 { 2274 compatible = "qcom,i2c-qup-v2.2.1"; 2275 reg = <0x0c176000 0x600>; 2276 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; 2277 2278 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, 2279 <&gcc GCC_BLSP1_AHB_CLK>; 2280 clock-names = "core", "iface"; 2281 dmas = <&blsp1_dma 8>, <&blsp1_dma 9>; 2282 dma-names = "tx", "rx"; 2283 pinctrl-names = "default", "sleep"; 2284 pinctrl-0 = <&blsp1_i2c2_default>; 2285 pinctrl-1 = <&blsp1_i2c2_sleep>; 2286 clock-frequency = <400000>; 2287 2288 status = "disabled"; 2289 #address-cells = <1>; 2290 #size-cells = <0>; 2291 }; 2292 2293 blsp1_i2c3: i2c@c177000 { 2294 compatible = "qcom,i2c-qup-v2.2.1"; 2295 reg = <0x0c177000 0x600>; 2296 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; 2297 2298 clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, 2299 <&gcc GCC_BLSP1_AHB_CLK>; 2300 clock-names = "core", "iface"; 2301 dmas = <&blsp1_dma 10>, <&blsp1_dma 11>; 2302 dma-names = "tx", "rx"; 2303 pinctrl-names = "default", "sleep"; 2304 pinctrl-0 = <&blsp1_i2c3_default>; 2305 pinctrl-1 = <&blsp1_i2c3_sleep>; 2306 clock-frequency = <400000>; 2307 2308 status = "disabled"; 2309 #address-cells = <1>; 2310 #size-cells = <0>; 2311 }; 2312 2313 blsp1_i2c4: i2c@c178000 { 2314 compatible = "qcom,i2c-qup-v2.2.1"; 2315 reg = <0x0c178000 0x600>; 2316 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; 2317 2318 clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, 2319 <&gcc GCC_BLSP1_AHB_CLK>; 2320 clock-names = "core", "iface"; 2321 dmas = <&blsp1_dma 12>, <&blsp1_dma 13>; 2322 dma-names = "tx", "rx"; 2323 pinctrl-names = "default", "sleep"; 2324 pinctrl-0 = <&blsp1_i2c4_default>; 2325 pinctrl-1 = <&blsp1_i2c4_sleep>; 2326 clock-frequency = <400000>; 2327 2328 status = "disabled"; 2329 #address-cells = <1>; 2330 #size-cells = <0>; 2331 }; 2332 2333 blsp1_i2c5: i2c@c179000 { 2334 compatible = "qcom,i2c-qup-v2.2.1"; 2335 reg = <0x0c179000 0x600>; 2336 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; 2337 2338 clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>, 2339 <&gcc GCC_BLSP1_AHB_CLK>; 2340 clock-names = "core", "iface"; 2341 dmas = <&blsp1_dma 14>, <&blsp1_dma 15>; 2342 dma-names = "tx", "rx"; 2343 pinctrl-names = "default", "sleep"; 2344 pinctrl-0 = <&blsp1_i2c5_default>; 2345 pinctrl-1 = <&blsp1_i2c5_sleep>; 2346 clock-frequency = <400000>; 2347 2348 status = "disabled"; 2349 #address-cells = <1>; 2350 #size-cells = <0>; 2351 }; 2352 2353 blsp1_i2c6: i2c@c17a000 { 2354 compatible = "qcom,i2c-qup-v2.2.1"; 2355 reg = <0x0c17a000 0x600>; 2356 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; 2357 2358 clocks = <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>, 2359 <&gcc GCC_BLSP1_AHB_CLK>; 2360 clock-names = "core", "iface"; 2361 dmas = <&blsp1_dma 16>, <&blsp1_dma 17>; 2362 dma-names = "tx", "rx"; 2363 pinctrl-names = "default", "sleep"; 2364 pinctrl-0 = <&blsp1_i2c6_default>; 2365 pinctrl-1 = <&blsp1_i2c6_sleep>; 2366 clock-frequency = <400000>; 2367 2368 status = "disabled"; 2369 #address-cells = <1>; 2370 #size-cells = <0>; 2371 }; 2372 2373 blsp1_spi1: spi@c175000 { 2374 compatible = "qcom,spi-qup-v2.2.1"; 2375 reg = <0x0c175000 0x600>; 2376 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; 2377 2378 clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>, 2379 <&gcc GCC_BLSP1_AHB_CLK>; 2380 clock-names = "core", "iface"; 2381 dmas = <&blsp1_dma 6>, <&blsp1_dma 7>; 2382 dma-names = "tx", "rx"; 2383 pinctrl-names = "default"; 2384 pinctrl-0 = <&blsp1_spi1_default>; 2385 2386 status = "disabled"; 2387 #address-cells = <1>; 2388 #size-cells = <0>; 2389 }; 2390 2391 blsp1_spi2: spi@c176000 { 2392 compatible = "qcom,spi-qup-v2.2.1"; 2393 reg = <0x0c176000 0x600>; 2394 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; 2395 2396 clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>, 2397 <&gcc GCC_BLSP1_AHB_CLK>; 2398 clock-names = "core", "iface"; 2399 dmas = <&blsp1_dma 8>, <&blsp1_dma 9>; 2400 dma-names = "tx", "rx"; 2401 pinctrl-names = "default"; 2402 pinctrl-0 = <&blsp1_spi2_default>; 2403 2404 status = "disabled"; 2405 #address-cells = <1>; 2406 #size-cells = <0>; 2407 }; 2408 2409 blsp1_spi3: spi@c177000 { 2410 compatible = "qcom,spi-qup-v2.2.1"; 2411 reg = <0x0c177000 0x600>; 2412 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; 2413 2414 clocks = <&gcc GCC_BLSP1_QUP3_SPI_APPS_CLK>, 2415 <&gcc GCC_BLSP1_AHB_CLK>; 2416 clock-names = "core", "iface"; 2417 dmas = <&blsp1_dma 10>, <&blsp1_dma 11>; 2418 dma-names = "tx", "rx"; 2419 pinctrl-names = "default"; 2420 pinctrl-0 = <&blsp1_spi3_default>; 2421 2422 status = "disabled"; 2423 #address-cells = <1>; 2424 #size-cells = <0>; 2425 }; 2426 2427 blsp1_spi4: spi@c178000 { 2428 compatible = "qcom,spi-qup-v2.2.1"; 2429 reg = <0x0c178000 0x600>; 2430 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; 2431 2432 clocks = <&gcc GCC_BLSP1_QUP4_SPI_APPS_CLK>, 2433 <&gcc GCC_BLSP1_AHB_CLK>; 2434 clock-names = "core", "iface"; 2435 dmas = <&blsp1_dma 12>, <&blsp1_dma 13>; 2436 dma-names = "tx", "rx"; 2437 pinctrl-names = "default"; 2438 pinctrl-0 = <&blsp1_spi4_default>; 2439 2440 status = "disabled"; 2441 #address-cells = <1>; 2442 #size-cells = <0>; 2443 }; 2444 2445 blsp1_spi5: spi@c179000 { 2446 compatible = "qcom,spi-qup-v2.2.1"; 2447 reg = <0x0c179000 0x600>; 2448 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; 2449 2450 clocks = <&gcc GCC_BLSP1_QUP5_SPI_APPS_CLK>, 2451 <&gcc GCC_BLSP1_AHB_CLK>; 2452 clock-names = "core", "iface"; 2453 dmas = <&blsp1_dma 14>, <&blsp1_dma 15>; 2454 dma-names = "tx", "rx"; 2455 pinctrl-names = "default"; 2456 pinctrl-0 = <&blsp1_spi5_default>; 2457 2458 status = "disabled"; 2459 #address-cells = <1>; 2460 #size-cells = <0>; 2461 }; 2462 2463 blsp1_spi6: spi@c17a000 { 2464 compatible = "qcom,spi-qup-v2.2.1"; 2465 reg = <0x0c17a000 0x600>; 2466 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; 2467 2468 clocks = <&gcc GCC_BLSP1_QUP6_SPI_APPS_CLK>, 2469 <&gcc GCC_BLSP1_AHB_CLK>; 2470 clock-names = "core", "iface"; 2471 dmas = <&blsp1_dma 16>, <&blsp1_dma 17>; 2472 dma-names = "tx", "rx"; 2473 pinctrl-names = "default"; 2474 pinctrl-0 = <&blsp1_spi6_default>; 2475 2476 status = "disabled"; 2477 #address-cells = <1>; 2478 #size-cells = <0>; 2479 }; 2480 2481 blsp2_dma: dma-controller@c184000 { 2482 compatible = "qcom,bam-v1.7.0"; 2483 reg = <0x0c184000 0x25000>; 2484 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>; 2485 clocks = <&gcc GCC_BLSP2_AHB_CLK>; 2486 clock-names = "bam_clk"; 2487 #dma-cells = <1>; 2488 qcom,ee = <0>; 2489 qcom,controlled-remotely; 2490 num-channels = <18>; 2491 qcom,num-ees = <4>; 2492 }; 2493 2494 blsp2_uart1: serial@c1b0000 { 2495 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; 2496 reg = <0x0c1b0000 0x1000>; 2497 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; 2498 clocks = <&gcc GCC_BLSP2_UART2_APPS_CLK>, 2499 <&gcc GCC_BLSP2_AHB_CLK>; 2500 clock-names = "core", "iface"; 2501 status = "disabled"; 2502 }; 2503 2504 blsp2_i2c1: i2c@c1b5000 { 2505 compatible = "qcom,i2c-qup-v2.2.1"; 2506 reg = <0x0c1b5000 0x600>; 2507 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 2508 2509 clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>, 2510 <&gcc GCC_BLSP2_AHB_CLK>; 2511 clock-names = "core", "iface"; 2512 dmas = <&blsp2_dma 6>, <&blsp2_dma 7>; 2513 dma-names = "tx", "rx"; 2514 pinctrl-names = "default", "sleep"; 2515 pinctrl-0 = <&blsp2_i2c1_default>; 2516 pinctrl-1 = <&blsp2_i2c1_sleep>; 2517 clock-frequency = <400000>; 2518 2519 status = "disabled"; 2520 #address-cells = <1>; 2521 #size-cells = <0>; 2522 }; 2523 2524 blsp2_i2c2: i2c@c1b6000 { 2525 compatible = "qcom,i2c-qup-v2.2.1"; 2526 reg = <0x0c1b6000 0x600>; 2527 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; 2528 2529 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, 2530 <&gcc GCC_BLSP2_AHB_CLK>; 2531 clock-names = "core", "iface"; 2532 dmas = <&blsp2_dma 8>, <&blsp2_dma 9>; 2533 dma-names = "tx", "rx"; 2534 pinctrl-names = "default", "sleep"; 2535 pinctrl-0 = <&blsp2_i2c2_default>; 2536 pinctrl-1 = <&blsp2_i2c2_sleep>; 2537 clock-frequency = <400000>; 2538 2539 status = "disabled"; 2540 #address-cells = <1>; 2541 #size-cells = <0>; 2542 }; 2543 2544 blsp2_i2c3: i2c@c1b7000 { 2545 compatible = "qcom,i2c-qup-v2.2.1"; 2546 reg = <0x0c1b7000 0x600>; 2547 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; 2548 2549 clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>, 2550 <&gcc GCC_BLSP2_AHB_CLK>; 2551 clock-names = "core", "iface"; 2552 dmas = <&blsp2_dma 10>, <&blsp2_dma 11>; 2553 dma-names = "tx", "rx"; 2554 pinctrl-names = "default", "sleep"; 2555 pinctrl-0 = <&blsp2_i2c3_default>; 2556 pinctrl-1 = <&blsp2_i2c3_sleep>; 2557 clock-frequency = <400000>; 2558 2559 status = "disabled"; 2560 #address-cells = <1>; 2561 #size-cells = <0>; 2562 }; 2563 2564 blsp2_i2c4: i2c@c1b8000 { 2565 compatible = "qcom,i2c-qup-v2.2.1"; 2566 reg = <0x0c1b8000 0x600>; 2567 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 2568 2569 clocks = <&gcc GCC_BLSP2_QUP4_I2C_APPS_CLK>, 2570 <&gcc GCC_BLSP2_AHB_CLK>; 2571 clock-names = "core", "iface"; 2572 dmas = <&blsp2_dma 12>, <&blsp2_dma 13>; 2573 dma-names = "tx", "rx"; 2574 pinctrl-names = "default", "sleep"; 2575 pinctrl-0 = <&blsp2_i2c4_default>; 2576 pinctrl-1 = <&blsp2_i2c4_sleep>; 2577 clock-frequency = <400000>; 2578 2579 status = "disabled"; 2580 #address-cells = <1>; 2581 #size-cells = <0>; 2582 }; 2583 2584 blsp2_i2c5: i2c@c1b9000 { 2585 compatible = "qcom,i2c-qup-v2.2.1"; 2586 reg = <0x0c1b9000 0x600>; 2587 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; 2588 2589 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, 2590 <&gcc GCC_BLSP2_AHB_CLK>; 2591 clock-names = "core", "iface"; 2592 dmas = <&blsp2_dma 14>, <&blsp2_dma 15>; 2593 dma-names = "tx", "rx"; 2594 pinctrl-names = "default", "sleep"; 2595 pinctrl-0 = <&blsp2_i2c5_default>; 2596 pinctrl-1 = <&blsp2_i2c5_sleep>; 2597 clock-frequency = <400000>; 2598 2599 status = "disabled"; 2600 #address-cells = <1>; 2601 #size-cells = <0>; 2602 }; 2603 2604 blsp2_i2c6: i2c@c1ba000 { 2605 compatible = "qcom,i2c-qup-v2.2.1"; 2606 reg = <0x0c1ba000 0x600>; 2607 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; 2608 2609 clocks = <&gcc GCC_BLSP2_QUP6_I2C_APPS_CLK>, 2610 <&gcc GCC_BLSP2_AHB_CLK>; 2611 clock-names = "core", "iface"; 2612 dmas = <&blsp2_dma 16>, <&blsp2_dma 17>; 2613 dma-names = "tx", "rx"; 2614 pinctrl-names = "default", "sleep"; 2615 pinctrl-0 = <&blsp2_i2c6_default>; 2616 pinctrl-1 = <&blsp2_i2c6_sleep>; 2617 clock-frequency = <400000>; 2618 2619 status = "disabled"; 2620 #address-cells = <1>; 2621 #size-cells = <0>; 2622 }; 2623 2624 blsp2_spi1: spi@c1b5000 { 2625 compatible = "qcom,spi-qup-v2.2.1"; 2626 reg = <0x0c1b5000 0x600>; 2627 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 2628 2629 clocks = <&gcc GCC_BLSP2_QUP1_SPI_APPS_CLK>, 2630 <&gcc GCC_BLSP2_AHB_CLK>; 2631 clock-names = "core", "iface"; 2632 dmas = <&blsp2_dma 6>, <&blsp2_dma 7>; 2633 dma-names = "tx", "rx"; 2634 pinctrl-names = "default"; 2635 pinctrl-0 = <&blsp2_spi1_default>; 2636 2637 status = "disabled"; 2638 #address-cells = <1>; 2639 #size-cells = <0>; 2640 }; 2641 2642 blsp2_spi2: spi@c1b6000 { 2643 compatible = "qcom,spi-qup-v2.2.1"; 2644 reg = <0x0c1b6000 0x600>; 2645 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; 2646 2647 clocks = <&gcc GCC_BLSP2_QUP2_SPI_APPS_CLK>, 2648 <&gcc GCC_BLSP2_AHB_CLK>; 2649 clock-names = "core", "iface"; 2650 dmas = <&blsp2_dma 8>, <&blsp2_dma 9>; 2651 dma-names = "tx", "rx"; 2652 pinctrl-names = "default"; 2653 pinctrl-0 = <&blsp2_spi2_default>; 2654 2655 status = "disabled"; 2656 #address-cells = <1>; 2657 #size-cells = <0>; 2658 }; 2659 2660 blsp2_spi3: spi@c1b7000 { 2661 compatible = "qcom,spi-qup-v2.2.1"; 2662 reg = <0x0c1b7000 0x600>; 2663 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; 2664 2665 clocks = <&gcc GCC_BLSP2_QUP3_SPI_APPS_CLK>, 2666 <&gcc GCC_BLSP2_AHB_CLK>; 2667 clock-names = "core", "iface"; 2668 dmas = <&blsp2_dma 10>, <&blsp2_dma 11>; 2669 dma-names = "tx", "rx"; 2670 pinctrl-names = "default"; 2671 pinctrl-0 = <&blsp2_spi3_default>; 2672 2673 status = "disabled"; 2674 #address-cells = <1>; 2675 #size-cells = <0>; 2676 }; 2677 2678 blsp2_spi4: spi@c1b8000 { 2679 compatible = "qcom,spi-qup-v2.2.1"; 2680 reg = <0x0c1b8000 0x600>; 2681 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 2682 2683 clocks = <&gcc GCC_BLSP2_QUP4_SPI_APPS_CLK>, 2684 <&gcc GCC_BLSP2_AHB_CLK>; 2685 clock-names = "core", "iface"; 2686 dmas = <&blsp2_dma 12>, <&blsp2_dma 13>; 2687 dma-names = "tx", "rx"; 2688 pinctrl-names = "default"; 2689 pinctrl-0 = <&blsp2_spi4_default>; 2690 2691 status = "disabled"; 2692 #address-cells = <1>; 2693 #size-cells = <0>; 2694 }; 2695 2696 blsp2_spi5: spi@c1b9000 { 2697 compatible = "qcom,spi-qup-v2.2.1"; 2698 reg = <0x0c1b9000 0x600>; 2699 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; 2700 2701 clocks = <&gcc GCC_BLSP2_QUP5_SPI_APPS_CLK>, 2702 <&gcc GCC_BLSP2_AHB_CLK>; 2703 clock-names = "core", "iface"; 2704 dmas = <&blsp2_dma 14>, <&blsp2_dma 15>; 2705 dma-names = "tx", "rx"; 2706 pinctrl-names = "default"; 2707 pinctrl-0 = <&blsp2_spi5_default>; 2708 2709 status = "disabled"; 2710 #address-cells = <1>; 2711 #size-cells = <0>; 2712 }; 2713 2714 blsp2_spi6: spi@c1ba000 { 2715 compatible = "qcom,spi-qup-v2.2.1"; 2716 reg = <0x0c1ba000 0x600>; 2717 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; 2718 2719 clocks = <&gcc GCC_BLSP2_QUP6_SPI_APPS_CLK>, 2720 <&gcc GCC_BLSP2_AHB_CLK>; 2721 clock-names = "core", "iface"; 2722 dmas = <&blsp2_dma 16>, <&blsp2_dma 17>; 2723 dma-names = "tx", "rx"; 2724 pinctrl-names = "default"; 2725 pinctrl-0 = <&blsp2_spi6_default>; 2726 2727 status = "disabled"; 2728 #address-cells = <1>; 2729 #size-cells = <0>; 2730 }; 2731 2732 mmcc: clock-controller@c8c0000 { 2733 compatible = "qcom,mmcc-msm8998"; 2734 #clock-cells = <1>; 2735 #reset-cells = <1>; 2736 #power-domain-cells = <1>; 2737 reg = <0xc8c0000 0x40000>; 2738 2739 clock-names = "xo", 2740 "gpll0", 2741 "dsi0dsi", 2742 "dsi0byte", 2743 "dsi1dsi", 2744 "dsi1byte", 2745 "hdmipll", 2746 "dplink", 2747 "dpvco", 2748 "gpll0_div"; 2749 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, 2750 <&gcc GCC_MMSS_GPLL0_CLK>, 2751 <&mdss_dsi0_phy 1>, 2752 <&mdss_dsi0_phy 0>, 2753 <&mdss_dsi1_phy 1>, 2754 <&mdss_dsi1_phy 0>, 2755 <0>, 2756 <0>, 2757 <0>, 2758 <&gcc GCC_MMSS_GPLL0_DIV_CLK>; 2759 }; 2760 2761 mdss: display-subsystem@c900000 { 2762 compatible = "qcom,msm8998-mdss"; 2763 reg = <0x0c900000 0x1000>; 2764 reg-names = "mdss"; 2765 2766 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; 2767 interrupt-controller; 2768 #interrupt-cells = <1>; 2769 2770 clocks = <&mmcc MDSS_AHB_CLK>, 2771 <&mmcc MDSS_AXI_CLK>, 2772 <&mmcc MDSS_MDP_CLK>; 2773 clock-names = "iface", 2774 "bus", 2775 "core"; 2776 2777 power-domains = <&mmcc MDSS_GDSC>; 2778 iommus = <&mmss_smmu 0>; 2779 2780 #address-cells = <1>; 2781 #size-cells = <1>; 2782 ranges; 2783 2784 status = "disabled"; 2785 2786 mdss_mdp: display-controller@c901000 { 2787 compatible = "qcom,msm8998-dpu"; 2788 reg = <0x0c901000 0x8f000>, 2789 <0x0c9a8e00 0xf0>, 2790 <0x0c9b0000 0x2008>, 2791 <0x0c9b8000 0x1040>; 2792 reg-names = "mdp", 2793 "regdma", 2794 "vbif", 2795 "vbif_nrt"; 2796 2797 interrupt-parent = <&mdss>; 2798 interrupts = <0>; 2799 2800 clocks = <&mmcc MDSS_AHB_CLK>, 2801 <&mmcc MDSS_AXI_CLK>, 2802 <&mmcc MNOC_AHB_CLK>, 2803 <&mmcc MDSS_MDP_CLK>, 2804 <&mmcc MDSS_VSYNC_CLK>; 2805 clock-names = "iface", 2806 "bus", 2807 "mnoc", 2808 "core", 2809 "vsync"; 2810 2811 assigned-clocks = <&mmcc MDSS_VSYNC_CLK>; 2812 assigned-clock-rates = <19200000>; 2813 2814 operating-points-v2 = <&mdp_opp_table>; 2815 power-domains = <&rpmpd MSM8998_VDDMX>; 2816 2817 mdp_opp_table: opp-table { 2818 compatible = "operating-points-v2"; 2819 2820 opp-171430000 { 2821 opp-hz = /bits/ 64 <171430000>; 2822 required-opps = <&rpmpd_opp_low_svs>; 2823 }; 2824 2825 opp-275000000 { 2826 opp-hz = /bits/ 64 <275000000>; 2827 required-opps = <&rpmpd_opp_svs>; 2828 }; 2829 2830 opp-330000000 { 2831 opp-hz = /bits/ 64 <330000000>; 2832 required-opps = <&rpmpd_opp_nom>; 2833 }; 2834 2835 opp-412500000 { 2836 opp-hz = /bits/ 64 <412500000>; 2837 required-opps = <&rpmpd_opp_turbo>; 2838 }; 2839 }; 2840 2841 ports { 2842 #address-cells = <1>; 2843 #size-cells = <0>; 2844 2845 port@0 { 2846 reg = <0>; 2847 2848 dpu_intf1_out: endpoint { 2849 remote-endpoint = <&mdss_dsi0_in>; 2850 }; 2851 }; 2852 2853 port@1 { 2854 reg = <1>; 2855 2856 dpu_intf2_out: endpoint { 2857 remote-endpoint = <&mdss_dsi1_in>; 2858 }; 2859 }; 2860 }; 2861 }; 2862 2863 mdss_dsi0: dsi@c994000 { 2864 compatible = "qcom,msm8998-dsi-ctrl", "qcom,mdss-dsi-ctrl"; 2865 reg = <0x0c994000 0x400>; 2866 reg-names = "dsi_ctrl"; 2867 2868 interrupt-parent = <&mdss>; 2869 interrupts = <4>; 2870 2871 clocks = <&mmcc MDSS_BYTE0_CLK>, 2872 <&mmcc MDSS_BYTE0_INTF_CLK>, 2873 <&mmcc MDSS_PCLK0_CLK>, 2874 <&mmcc MDSS_ESC0_CLK>, 2875 <&mmcc MDSS_AHB_CLK>, 2876 <&mmcc MDSS_AXI_CLK>; 2877 clock-names = "byte", 2878 "byte_intf", 2879 "pixel", 2880 "core", 2881 "iface", 2882 "bus"; 2883 assigned-clocks = <&mmcc BYTE0_CLK_SRC>, 2884 <&mmcc PCLK0_CLK_SRC>; 2885 assigned-clock-parents = <&mdss_dsi0_phy 0>, 2886 <&mdss_dsi0_phy 1>; 2887 2888 operating-points-v2 = <&dsi_opp_table>; 2889 power-domains = <&rpmpd MSM8998_VDDCX>; 2890 2891 phys = <&mdss_dsi0_phy>; 2892 phy-names = "dsi"; 2893 2894 #address-cells = <1>; 2895 #size-cells = <0>; 2896 2897 status = "disabled"; 2898 2899 ports { 2900 #address-cells = <1>; 2901 #size-cells = <0>; 2902 2903 port@0 { 2904 reg = <0>; 2905 2906 mdss_dsi0_in: endpoint { 2907 remote-endpoint = <&dpu_intf1_out>; 2908 }; 2909 }; 2910 2911 port@1 { 2912 reg = <1>; 2913 2914 mdss_dsi0_out: endpoint { 2915 }; 2916 }; 2917 }; 2918 }; 2919 2920 mdss_dsi0_phy: phy@c994400 { 2921 compatible = "qcom,dsi-phy-10nm-8998"; 2922 reg = <0x0c994400 0x200>, 2923 <0x0c994600 0x280>, 2924 <0x0c994a00 0x1e0>; 2925 reg-names = "dsi_phy", 2926 "dsi_phy_lane", 2927 "dsi_pll"; 2928 2929 clocks = <&mmcc MDSS_AHB_CLK>, 2930 <&rpmcc RPM_SMD_XO_CLK_SRC>; 2931 clock-names = "iface", "ref"; 2932 2933 #clock-cells = <1>; 2934 #phy-cells = <0>; 2935 2936 status = "disabled"; 2937 }; 2938 2939 mdss_dsi1: dsi@c996000 { 2940 compatible = "qcom,msm8998-dsi-ctrl", "qcom,mdss-dsi-ctrl"; 2941 reg = <0x0c996000 0x400>; 2942 reg-names = "dsi_ctrl"; 2943 2944 interrupt-parent = <&mdss>; 2945 interrupts = <5>; 2946 2947 clocks = <&mmcc MDSS_BYTE1_CLK>, 2948 <&mmcc MDSS_BYTE1_INTF_CLK>, 2949 <&mmcc MDSS_PCLK1_CLK>, 2950 <&mmcc MDSS_ESC1_CLK>, 2951 <&mmcc MDSS_AHB_CLK>, 2952 <&mmcc MDSS_AXI_CLK>; 2953 clock-names = "byte", 2954 "byte_intf", 2955 "pixel", 2956 "core", 2957 "iface", 2958 "bus"; 2959 assigned-clocks = <&mmcc BYTE1_CLK_SRC>, 2960 <&mmcc PCLK1_CLK_SRC>; 2961 assigned-clock-parents = <&mdss_dsi1_phy 0>, 2962 <&mdss_dsi1_phy 1>; 2963 2964 operating-points-v2 = <&dsi_opp_table>; 2965 power-domains = <&rpmpd MSM8998_VDDCX>; 2966 2967 phys = <&mdss_dsi1_phy>; 2968 phy-names = "dsi"; 2969 2970 #address-cells = <1>; 2971 #size-cells = <0>; 2972 2973 status = "disabled"; 2974 2975 ports { 2976 #address-cells = <1>; 2977 #size-cells = <0>; 2978 2979 port@0 { 2980 reg = <0>; 2981 2982 mdss_dsi1_in: endpoint { 2983 remote-endpoint = <&dpu_intf2_out>; 2984 }; 2985 }; 2986 2987 port@1 { 2988 reg = <1>; 2989 2990 mdss_dsi1_out: endpoint { 2991 }; 2992 }; 2993 }; 2994 }; 2995 2996 mdss_dsi1_phy: phy@c996400 { 2997 compatible = "qcom,dsi-phy-10nm-8998"; 2998 reg = <0x0c996400 0x200>, 2999 <0x0c996600 0x280>, 3000 <0x0c996a00 0x10e>; 3001 reg-names = "dsi_phy", 3002 "dsi_phy_lane", 3003 "dsi_pll"; 3004 3005 clocks = <&mmcc MDSS_AHB_CLK>, 3006 <&rpmcc RPM_SMD_XO_CLK_SRC>; 3007 clock-names = "iface", 3008 "ref"; 3009 3010 #clock-cells = <1>; 3011 #phy-cells = <0>; 3012 3013 status = "disabled"; 3014 }; 3015 }; 3016 3017 mmss_smmu: iommu@cd00000 { 3018 compatible = "qcom,msm8998-smmu-v2", "qcom,smmu-v2"; 3019 reg = <0x0cd00000 0x40000>; 3020 #iommu-cells = <1>; 3021 3022 clocks = <&mmcc MNOC_AHB_CLK>, 3023 <&mmcc BIMC_SMMU_AHB_CLK>, 3024 <&mmcc BIMC_SMMU_AXI_CLK>; 3025 clock-names = "iface-mm", 3026 "iface-smmu", 3027 "bus-smmu"; 3028 3029 #global-interrupts = <0>; 3030 interrupts = 3031 <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>, 3032 <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>, 3033 <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>, 3034 <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>, 3035 <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, 3036 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>, 3037 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>, 3038 <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>, 3039 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>, 3040 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, 3041 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>, 3042 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>, 3043 <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>, 3044 <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>, 3045 <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>, 3046 <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>, 3047 <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>, 3048 <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>, 3049 <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, 3050 <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; 3051 3052 power-domains = <&mmcc BIMC_SMMU_GDSC>; 3053 }; 3054 3055 remoteproc_adsp: remoteproc@17300000 { 3056 compatible = "qcom,msm8998-adsp-pas"; 3057 reg = <0x17300000 0x4040>; 3058 3059 interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, 3060 <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, 3061 <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, 3062 <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, 3063 <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; 3064 interrupt-names = "wdog", "fatal", "ready", 3065 "handover", "stop-ack"; 3066 3067 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; 3068 clock-names = "xo"; 3069 3070 memory-region = <&adsp_mem>; 3071 3072 qcom,smem-states = <&adsp_smp2p_out 0>; 3073 qcom,smem-state-names = "stop"; 3074 3075 power-domains = <&rpmpd MSM8998_VDDCX>; 3076 power-domain-names = "cx"; 3077 3078 status = "disabled"; 3079 3080 glink-edge { 3081 interrupts = <GIC_SPI 157 IRQ_TYPE_EDGE_RISING>; 3082 label = "lpass"; 3083 qcom,remote-pid = <2>; 3084 mboxes = <&apcs_glb 9>; 3085 }; 3086 }; 3087 3088 apcs_glb: mailbox@17911000 { 3089 compatible = "qcom,msm8998-apcs-hmss-global", 3090 "qcom,msm8994-apcs-kpss-global"; 3091 reg = <0x17911000 0x1000>; 3092 3093 #mbox-cells = <1>; 3094 }; 3095 3096 timer@17920000 { 3097 #address-cells = <1>; 3098 #size-cells = <1>; 3099 ranges; 3100 compatible = "arm,armv7-timer-mem"; 3101 reg = <0x17920000 0x1000>; 3102 3103 frame@17921000 { 3104 frame-number = <0>; 3105 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, 3106 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 3107 reg = <0x17921000 0x1000>, 3108 <0x17922000 0x1000>; 3109 }; 3110 3111 frame@17923000 { 3112 frame-number = <1>; 3113 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 3114 reg = <0x17923000 0x1000>; 3115 status = "disabled"; 3116 }; 3117 3118 frame@17924000 { 3119 frame-number = <2>; 3120 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; 3121 reg = <0x17924000 0x1000>; 3122 status = "disabled"; 3123 }; 3124 3125 frame@17925000 { 3126 frame-number = <3>; 3127 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 3128 reg = <0x17925000 0x1000>; 3129 status = "disabled"; 3130 }; 3131 3132 frame@17926000 { 3133 frame-number = <4>; 3134 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 3135 reg = <0x17926000 0x1000>; 3136 status = "disabled"; 3137 }; 3138 3139 frame@17927000 { 3140 frame-number = <5>; 3141 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 3142 reg = <0x17927000 0x1000>; 3143 status = "disabled"; 3144 }; 3145 3146 frame@17928000 { 3147 frame-number = <6>; 3148 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 3149 reg = <0x17928000 0x1000>; 3150 status = "disabled"; 3151 }; 3152 }; 3153 3154 intc: interrupt-controller@17a00000 { 3155 compatible = "arm,gic-v3"; 3156 reg = <0x17a00000 0x10000>, /* GICD */ 3157 <0x17b00000 0x100000>; /* GICR * 8 */ 3158 #interrupt-cells = <3>; 3159 #address-cells = <1>; 3160 #size-cells = <1>; 3161 ranges; 3162 interrupt-controller; 3163 #redistributor-regions = <1>; 3164 redistributor-stride = <0x0 0x20000>; 3165 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; 3166 }; 3167 3168 wifi: wifi@18800000 { 3169 compatible = "qcom,wcn3990-wifi"; 3170 status = "disabled"; 3171 reg = <0x18800000 0x800000>; 3172 reg-names = "membase"; 3173 memory-region = <&wlan_msa_mem>; 3174 clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>; 3175 clock-names = "cxo_ref_clk_pin"; 3176 interrupts = 3177 <GIC_SPI 413 IRQ_TYPE_LEVEL_HIGH>, 3178 <GIC_SPI 414 IRQ_TYPE_LEVEL_HIGH>, 3179 <GIC_SPI 415 IRQ_TYPE_LEVEL_HIGH>, 3180 <GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, 3181 <GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH>, 3182 <GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH>, 3183 <GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH>, 3184 <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>, 3185 <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>, 3186 <GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH>, 3187 <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>, 3188 <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>; 3189 iommus = <&anoc2_smmu 0x1900>, 3190 <&anoc2_smmu 0x1901>; 3191 qcom,snoc-host-cap-8bit-quirk; 3192 }; 3193 }; 3194}; 3195