1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2020, Konrad Dybcio <konradybcio@gmail.com> 4 * Copyright (c) 2020, AngeloGioacchino Del Regno <kholk11@gmail.com> 5 */ 6 7#include <dt-bindings/clock/qcom,gcc-sdm660.h> 8#include <dt-bindings/clock/qcom,gpucc-sdm660.h> 9#include <dt-bindings/clock/qcom,mmcc-sdm660.h> 10#include <dt-bindings/clock/qcom,rpmcc.h> 11#include <dt-bindings/power/qcom-rpmpd.h> 12#include <dt-bindings/gpio/gpio.h> 13#include <dt-bindings/interrupt-controller/arm-gic.h> 14#include <dt-bindings/soc/qcom,apr.h> 15 16/ { 17 interrupt-parent = <&intc>; 18 19 #address-cells = <2>; 20 #size-cells = <2>; 21 22 aliases { 23 mmc1 = &sdhc_1; 24 mmc2 = &sdhc_2; 25 }; 26 27 chosen { }; 28 29 clocks { 30 xo_board: xo-board { 31 compatible = "fixed-clock"; 32 #clock-cells = <0>; 33 clock-frequency = <19200000>; 34 clock-output-names = "xo_board"; 35 }; 36 37 sleep_clk: sleep-clk { 38 compatible = "fixed-clock"; 39 #clock-cells = <0>; 40 clock-frequency = <32764>; 41 clock-output-names = "sleep_clk"; 42 }; 43 }; 44 45 cpus { 46 #address-cells = <2>; 47 #size-cells = <0>; 48 49 CPU0: cpu@100 { 50 device_type = "cpu"; 51 compatible = "arm,cortex-a53"; 52 reg = <0x0 0x100>; 53 enable-method = "psci"; 54 cpu-idle-states = <&PERF_CPU_SLEEP_0 55 &PERF_CPU_SLEEP_1 56 &PERF_CLUSTER_SLEEP_0 57 &PERF_CLUSTER_SLEEP_1 58 &PERF_CLUSTER_SLEEP_2>; 59 capacity-dmips-mhz = <1126>; 60 #cooling-cells = <2>; 61 next-level-cache = <&L2_1>; 62 L2_1: l2-cache { 63 compatible = "cache"; 64 cache-level = <2>; 65 }; 66 }; 67 68 CPU1: cpu@101 { 69 device_type = "cpu"; 70 compatible = "arm,cortex-a53"; 71 reg = <0x0 0x101>; 72 enable-method = "psci"; 73 cpu-idle-states = <&PERF_CPU_SLEEP_0 74 &PERF_CPU_SLEEP_1 75 &PERF_CLUSTER_SLEEP_0 76 &PERF_CLUSTER_SLEEP_1 77 &PERF_CLUSTER_SLEEP_2>; 78 capacity-dmips-mhz = <1126>; 79 #cooling-cells = <2>; 80 next-level-cache = <&L2_1>; 81 }; 82 83 CPU2: cpu@102 { 84 device_type = "cpu"; 85 compatible = "arm,cortex-a53"; 86 reg = <0x0 0x102>; 87 enable-method = "psci"; 88 cpu-idle-states = <&PERF_CPU_SLEEP_0 89 &PERF_CPU_SLEEP_1 90 &PERF_CLUSTER_SLEEP_0 91 &PERF_CLUSTER_SLEEP_1 92 &PERF_CLUSTER_SLEEP_2>; 93 capacity-dmips-mhz = <1126>; 94 #cooling-cells = <2>; 95 next-level-cache = <&L2_1>; 96 }; 97 98 CPU3: cpu@103 { 99 device_type = "cpu"; 100 compatible = "arm,cortex-a53"; 101 reg = <0x0 0x103>; 102 enable-method = "psci"; 103 cpu-idle-states = <&PERF_CPU_SLEEP_0 104 &PERF_CPU_SLEEP_1 105 &PERF_CLUSTER_SLEEP_0 106 &PERF_CLUSTER_SLEEP_1 107 &PERF_CLUSTER_SLEEP_2>; 108 capacity-dmips-mhz = <1126>; 109 #cooling-cells = <2>; 110 next-level-cache = <&L2_1>; 111 }; 112 113 CPU4: cpu@0 { 114 device_type = "cpu"; 115 compatible = "arm,cortex-a53"; 116 reg = <0x0 0x0>; 117 enable-method = "psci"; 118 cpu-idle-states = <&PWR_CPU_SLEEP_0 119 &PWR_CPU_SLEEP_1 120 &PWR_CLUSTER_SLEEP_0 121 &PWR_CLUSTER_SLEEP_1 122 &PWR_CLUSTER_SLEEP_2>; 123 capacity-dmips-mhz = <1024>; 124 #cooling-cells = <2>; 125 next-level-cache = <&L2_0>; 126 L2_0: l2-cache { 127 compatible = "cache"; 128 cache-level = <2>; 129 }; 130 }; 131 132 CPU5: cpu@1 { 133 device_type = "cpu"; 134 compatible = "arm,cortex-a53"; 135 reg = <0x0 0x1>; 136 enable-method = "psci"; 137 cpu-idle-states = <&PWR_CPU_SLEEP_0 138 &PWR_CPU_SLEEP_1 139 &PWR_CLUSTER_SLEEP_0 140 &PWR_CLUSTER_SLEEP_1 141 &PWR_CLUSTER_SLEEP_2>; 142 capacity-dmips-mhz = <1024>; 143 #cooling-cells = <2>; 144 next-level-cache = <&L2_0>; 145 }; 146 147 CPU6: cpu@2 { 148 device_type = "cpu"; 149 compatible = "arm,cortex-a53"; 150 reg = <0x0 0x2>; 151 enable-method = "psci"; 152 cpu-idle-states = <&PWR_CPU_SLEEP_0 153 &PWR_CPU_SLEEP_1 154 &PWR_CLUSTER_SLEEP_0 155 &PWR_CLUSTER_SLEEP_1 156 &PWR_CLUSTER_SLEEP_2>; 157 capacity-dmips-mhz = <1024>; 158 #cooling-cells = <2>; 159 next-level-cache = <&L2_0>; 160 }; 161 162 CPU7: cpu@3 { 163 device_type = "cpu"; 164 compatible = "arm,cortex-a53"; 165 reg = <0x0 0x3>; 166 enable-method = "psci"; 167 cpu-idle-states = <&PWR_CPU_SLEEP_0 168 &PWR_CPU_SLEEP_1 169 &PWR_CLUSTER_SLEEP_0 170 &PWR_CLUSTER_SLEEP_1 171 &PWR_CLUSTER_SLEEP_2>; 172 capacity-dmips-mhz = <1024>; 173 #cooling-cells = <2>; 174 next-level-cache = <&L2_0>; 175 }; 176 177 cpu-map { 178 cluster0 { 179 core0 { 180 cpu = <&CPU4>; 181 }; 182 183 core1 { 184 cpu = <&CPU5>; 185 }; 186 187 core2 { 188 cpu = <&CPU6>; 189 }; 190 191 core3 { 192 cpu = <&CPU7>; 193 }; 194 }; 195 196 cluster1 { 197 core0 { 198 cpu = <&CPU0>; 199 }; 200 201 core1 { 202 cpu = <&CPU1>; 203 }; 204 205 core2 { 206 cpu = <&CPU2>; 207 }; 208 209 core3 { 210 cpu = <&CPU3>; 211 }; 212 }; 213 }; 214 215 idle-states { 216 entry-method = "psci"; 217 218 PWR_CPU_SLEEP_0: cpu-sleep-0-0 { 219 compatible = "arm,idle-state"; 220 idle-state-name = "pwr-retention"; 221 arm,psci-suspend-param = <0x40000002>; 222 entry-latency-us = <338>; 223 exit-latency-us = <423>; 224 min-residency-us = <200>; 225 }; 226 227 PWR_CPU_SLEEP_1: cpu-sleep-0-1 { 228 compatible = "arm,idle-state"; 229 idle-state-name = "pwr-power-collapse"; 230 arm,psci-suspend-param = <0x40000003>; 231 entry-latency-us = <515>; 232 exit-latency-us = <1821>; 233 min-residency-us = <1000>; 234 local-timer-stop; 235 }; 236 237 PERF_CPU_SLEEP_0: cpu-sleep-1-0 { 238 compatible = "arm,idle-state"; 239 idle-state-name = "perf-retention"; 240 arm,psci-suspend-param = <0x40000002>; 241 entry-latency-us = <154>; 242 exit-latency-us = <87>; 243 min-residency-us = <200>; 244 }; 245 246 PERF_CPU_SLEEP_1: cpu-sleep-1-1 { 247 compatible = "arm,idle-state"; 248 idle-state-name = "perf-power-collapse"; 249 arm,psci-suspend-param = <0x40000003>; 250 entry-latency-us = <262>; 251 exit-latency-us = <301>; 252 min-residency-us = <1000>; 253 local-timer-stop; 254 }; 255 256 PWR_CLUSTER_SLEEP_0: cluster-sleep-0-0 { 257 compatible = "arm,idle-state"; 258 idle-state-name = "pwr-cluster-dynamic-retention"; 259 arm,psci-suspend-param = <0x400000F2>; 260 entry-latency-us = <284>; 261 exit-latency-us = <384>; 262 min-residency-us = <9987>; 263 local-timer-stop; 264 }; 265 266 PWR_CLUSTER_SLEEP_1: cluster-sleep-0-1 { 267 compatible = "arm,idle-state"; 268 idle-state-name = "pwr-cluster-retention"; 269 arm,psci-suspend-param = <0x400000F3>; 270 entry-latency-us = <338>; 271 exit-latency-us = <423>; 272 min-residency-us = <9987>; 273 local-timer-stop; 274 }; 275 276 PWR_CLUSTER_SLEEP_2: cluster-sleep-0-2 { 277 compatible = "arm,idle-state"; 278 idle-state-name = "pwr-cluster-retention"; 279 arm,psci-suspend-param = <0x400000F4>; 280 entry-latency-us = <515>; 281 exit-latency-us = <1821>; 282 min-residency-us = <9987>; 283 local-timer-stop; 284 }; 285 286 PERF_CLUSTER_SLEEP_0: cluster-sleep-1-0 { 287 compatible = "arm,idle-state"; 288 idle-state-name = "perf-cluster-dynamic-retention"; 289 arm,psci-suspend-param = <0x400000F2>; 290 entry-latency-us = <272>; 291 exit-latency-us = <329>; 292 min-residency-us = <9987>; 293 local-timer-stop; 294 }; 295 296 PERF_CLUSTER_SLEEP_1: cluster-sleep-1-1 { 297 compatible = "arm,idle-state"; 298 idle-state-name = "perf-cluster-retention"; 299 arm,psci-suspend-param = <0x400000F3>; 300 entry-latency-us = <332>; 301 exit-latency-us = <368>; 302 min-residency-us = <9987>; 303 local-timer-stop; 304 }; 305 306 PERF_CLUSTER_SLEEP_2: cluster-sleep-1-2 { 307 compatible = "arm,idle-state"; 308 idle-state-name = "perf-cluster-retention"; 309 arm,psci-suspend-param = <0x400000F4>; 310 entry-latency-us = <545>; 311 exit-latency-us = <1609>; 312 min-residency-us = <9987>; 313 local-timer-stop; 314 }; 315 }; 316 }; 317 318 firmware { 319 scm { 320 compatible = "qcom,scm-msm8998", "qcom,scm"; 321 }; 322 }; 323 324 memory@80000000 { 325 device_type = "memory"; 326 /* We expect the bootloader to fill in the reg */ 327 reg = <0x0 0x80000000 0x0 0x0>; 328 }; 329 330 pmu { 331 compatible = "arm,armv8-pmuv3"; 332 interrupts = <GIC_PPI 6 IRQ_TYPE_LEVEL_HIGH>; 333 }; 334 335 psci { 336 compatible = "arm,psci-1.0"; 337 method = "smc"; 338 }; 339 340 reserved-memory { 341 #address-cells = <2>; 342 #size-cells = <2>; 343 ranges; 344 345 wlan_msa_guard: wlan-msa-guard@85600000 { 346 reg = <0x0 0x85600000 0x0 0x100000>; 347 no-map; 348 }; 349 350 wlan_msa_mem: wlan-msa-mem@85700000 { 351 reg = <0x0 0x85700000 0x0 0x100000>; 352 no-map; 353 }; 354 355 qhee_code: qhee-code@85800000 { 356 reg = <0x0 0x85800000 0x0 0x600000>; 357 no-map; 358 }; 359 360 rmtfs_mem: memory@85e00000 { 361 compatible = "qcom,rmtfs-mem"; 362 reg = <0x0 0x85e00000 0x0 0x200000>; 363 no-map; 364 365 qcom,client-id = <1>; 366 qcom,vmid = <15>; 367 }; 368 369 smem_region: smem-mem@86000000 { 370 reg = <0 0x86000000 0 0x200000>; 371 no-map; 372 }; 373 374 tz_mem: memory@86200000 { 375 reg = <0x0 0x86200000 0x0 0x3300000>; 376 no-map; 377 }; 378 379 mpss_region: mpss@8ac00000 { 380 reg = <0x0 0x8ac00000 0x0 0x7e00000>; 381 no-map; 382 }; 383 384 adsp_region: adsp@92a00000 { 385 reg = <0x0 0x92a00000 0x0 0x1e00000>; 386 no-map; 387 }; 388 389 mba_region: mba@94800000 { 390 reg = <0x0 0x94800000 0x0 0x200000>; 391 no-map; 392 }; 393 394 buffer_mem: tzbuffer@94a00000 { 395 reg = <0x0 0x94a00000 0x0 0x100000>; 396 no-map; 397 }; 398 399 venus_region: venus@9f800000 { 400 reg = <0x0 0x9f800000 0x0 0x800000>; 401 no-map; 402 }; 403 404 adsp_mem: adsp-region@f6000000 { 405 reg = <0x0 0xf6000000 0x0 0x800000>; 406 no-map; 407 }; 408 409 qseecom_mem: qseecom-region@f6800000 { 410 reg = <0x0 0xf6800000 0x0 0x1400000>; 411 no-map; 412 }; 413 414 zap_shader_region: gpu@fed00000 { 415 compatible = "shared-dma-pool"; 416 reg = <0x0 0xfed00000 0x0 0xa00000>; 417 no-map; 418 }; 419 }; 420 421 rpm-glink { 422 compatible = "qcom,glink-rpm"; 423 424 interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; 425 qcom,rpm-msg-ram = <&rpm_msg_ram>; 426 mboxes = <&apcs_glb 0>; 427 428 rpm_requests: rpm-requests { 429 compatible = "qcom,rpm-sdm660"; 430 qcom,glink-channels = "rpm_requests"; 431 432 rpmcc: clock-controller { 433 compatible = "qcom,rpmcc-sdm660", "qcom,rpmcc"; 434 #clock-cells = <1>; 435 }; 436 437 rpmpd: power-controller { 438 compatible = "qcom,sdm660-rpmpd"; 439 #power-domain-cells = <1>; 440 operating-points-v2 = <&rpmpd_opp_table>; 441 442 rpmpd_opp_table: opp-table { 443 compatible = "operating-points-v2"; 444 445 rpmpd_opp_ret: opp1 { 446 opp-level = <RPM_SMD_LEVEL_RETENTION>; 447 }; 448 449 rpmpd_opp_ret_plus: opp2 { 450 opp-level = <RPM_SMD_LEVEL_RETENTION_PLUS>; 451 }; 452 453 rpmpd_opp_min_svs: opp3 { 454 opp-level = <RPM_SMD_LEVEL_MIN_SVS>; 455 }; 456 457 rpmpd_opp_low_svs: opp4 { 458 opp-level = <RPM_SMD_LEVEL_LOW_SVS>; 459 }; 460 461 rpmpd_opp_svs: opp5 { 462 opp-level = <RPM_SMD_LEVEL_SVS>; 463 }; 464 465 rpmpd_opp_svs_plus: opp6 { 466 opp-level = <RPM_SMD_LEVEL_SVS_PLUS>; 467 }; 468 469 rpmpd_opp_nom: opp7 { 470 opp-level = <RPM_SMD_LEVEL_NOM>; 471 }; 472 473 rpmpd_opp_nom_plus: opp8 { 474 opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; 475 }; 476 477 rpmpd_opp_turbo: opp9 { 478 opp-level = <RPM_SMD_LEVEL_TURBO>; 479 }; 480 }; 481 }; 482 }; 483 }; 484 485 smem: smem { 486 compatible = "qcom,smem"; 487 memory-region = <&smem_region>; 488 hwlocks = <&tcsr_mutex 3>; 489 }; 490 491 smp2p-adsp { 492 compatible = "qcom,smp2p"; 493 qcom,smem = <443>, <429>; 494 interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>; 495 mboxes = <&apcs_glb 10>; 496 qcom,local-pid = <0>; 497 qcom,remote-pid = <2>; 498 499 adsp_smp2p_out: master-kernel { 500 qcom,entry-name = "master-kernel"; 501 #qcom,smem-state-cells = <1>; 502 }; 503 504 adsp_smp2p_in: slave-kernel { 505 qcom,entry-name = "slave-kernel"; 506 interrupt-controller; 507 #interrupt-cells = <2>; 508 }; 509 }; 510 511 smp2p-mpss { 512 compatible = "qcom,smp2p"; 513 qcom,smem = <435>, <428>; 514 interrupts = <GIC_SPI 451 IRQ_TYPE_EDGE_RISING>; 515 mboxes = <&apcs_glb 14>; 516 qcom,local-pid = <0>; 517 qcom,remote-pid = <1>; 518 519 modem_smp2p_out: master-kernel { 520 qcom,entry-name = "master-kernel"; 521 #qcom,smem-state-cells = <1>; 522 }; 523 524 modem_smp2p_in: slave-kernel { 525 qcom,entry-name = "slave-kernel"; 526 interrupt-controller; 527 #interrupt-cells = <2>; 528 }; 529 }; 530 531 soc { 532 #address-cells = <1>; 533 #size-cells = <1>; 534 ranges = <0 0 0 0xffffffff>; 535 compatible = "simple-bus"; 536 537 gcc: clock-controller@100000 { 538 compatible = "qcom,gcc-sdm630"; 539 #clock-cells = <1>; 540 #reset-cells = <1>; 541 #power-domain-cells = <1>; 542 reg = <0x00100000 0x94000>; 543 544 clock-names = "xo", "sleep_clk"; 545 clocks = <&xo_board>, 546 <&sleep_clk>; 547 }; 548 549 rpm_msg_ram: sram@778000 { 550 compatible = "qcom,rpm-msg-ram"; 551 reg = <0x00778000 0x7000>; 552 }; 553 554 qfprom: qfprom@780000 { 555 compatible = "qcom,qfprom"; 556 reg = <0x00780000 0x621c>; 557 #address-cells = <1>; 558 #size-cells = <1>; 559 560 qusb2_hstx_trim: hstx-trim@240 { 561 reg = <0x240 0x1>; 562 bits = <25 3>; 563 }; 564 565 gpu_speed_bin: gpu-speed-bin@41a0 { 566 reg = <0x41a0 0x1>; 567 bits = <21 7>; 568 }; 569 }; 570 571 rng: rng@793000 { 572 compatible = "qcom,prng-ee"; 573 reg = <0x00793000 0x1000>; 574 clocks = <&gcc GCC_PRNG_AHB_CLK>; 575 clock-names = "core"; 576 }; 577 578 bimc: interconnect@1008000 { 579 compatible = "qcom,sdm660-bimc"; 580 reg = <0x01008000 0x78000>; 581 #interconnect-cells = <1>; 582 clock-names = "bus", "bus_a"; 583 clocks = <&rpmcc RPM_SMD_BIMC_CLK>, 584 <&rpmcc RPM_SMD_BIMC_A_CLK>; 585 }; 586 587 restart@10ac000 { 588 compatible = "qcom,pshold"; 589 reg = <0x010ac000 0x4>; 590 }; 591 592 cnoc: interconnect@1500000 { 593 compatible = "qcom,sdm660-cnoc"; 594 reg = <0x01500000 0x10000>; 595 #interconnect-cells = <1>; 596 clock-names = "bus", "bus_a"; 597 clocks = <&rpmcc RPM_SMD_CNOC_CLK>, 598 <&rpmcc RPM_SMD_CNOC_A_CLK>; 599 }; 600 601 snoc: interconnect@1626000 { 602 compatible = "qcom,sdm660-snoc"; 603 reg = <0x01626000 0x7090>; 604 #interconnect-cells = <1>; 605 clock-names = "bus", "bus_a"; 606 clocks = <&rpmcc RPM_SMD_SNOC_CLK>, 607 <&rpmcc RPM_SMD_SNOC_A_CLK>; 608 }; 609 610 anoc2_smmu: iommu@16c0000 { 611 compatible = "qcom,sdm630-smmu-v2", "qcom,smmu-v2"; 612 reg = <0x016c0000 0x40000>; 613 614 assigned-clocks = <&rpmcc RPM_SMD_AGGR2_NOC_CLK>; 615 assigned-clock-rates = <1000>; 616 clocks = <&rpmcc RPM_SMD_AGGR2_NOC_CLK>; 617 clock-names = "bus"; 618 #global-interrupts = <2>; 619 #iommu-cells = <1>; 620 621 interrupts = 622 <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, 623 <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, 624 625 <GIC_SPI 373 IRQ_TYPE_LEVEL_HIGH>, 626 <GIC_SPI 374 IRQ_TYPE_LEVEL_LOW>, 627 <GIC_SPI 375 IRQ_TYPE_LEVEL_LOW>, 628 <GIC_SPI 376 IRQ_TYPE_LEVEL_LOW>, 629 <GIC_SPI 377 IRQ_TYPE_LEVEL_LOW>, 630 <GIC_SPI 378 IRQ_TYPE_LEVEL_LOW>, 631 <GIC_SPI 462 IRQ_TYPE_LEVEL_HIGH>, 632 <GIC_SPI 463 IRQ_TYPE_LEVEL_HIGH>, 633 <GIC_SPI 464 IRQ_TYPE_LEVEL_HIGH>, 634 <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>, 635 <GIC_SPI 466 IRQ_TYPE_LEVEL_HIGH>, 636 <GIC_SPI 467 IRQ_TYPE_LEVEL_HIGH>, 637 <GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH>, 638 <GIC_SPI 354 IRQ_TYPE_LEVEL_HIGH>, 639 <GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH>, 640 <GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>, 641 <GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH>, 642 <GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH>, 643 <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>, 644 <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>, 645 <GIC_SPI 442 IRQ_TYPE_LEVEL_HIGH>, 646 <GIC_SPI 443 IRQ_TYPE_LEVEL_HIGH>, 647 <GIC_SPI 444 IRQ_TYPE_LEVEL_HIGH>, 648 <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>, 649 <GIC_SPI 468 IRQ_TYPE_LEVEL_HIGH>, 650 <GIC_SPI 469 IRQ_TYPE_LEVEL_HIGH>, 651 <GIC_SPI 472 IRQ_TYPE_LEVEL_HIGH>, 652 <GIC_SPI 473 IRQ_TYPE_LEVEL_HIGH>, 653 <GIC_SPI 474 IRQ_TYPE_LEVEL_HIGH>; 654 655 status = "disabled"; 656 }; 657 658 a2noc: interconnect@1704000 { 659 compatible = "qcom,sdm660-a2noc"; 660 reg = <0x01704000 0xc100>; 661 #interconnect-cells = <1>; 662 clock-names = "bus", 663 "bus_a", 664 "ipa", 665 "ufs_axi", 666 "aggre2_ufs_axi", 667 "aggre2_usb3_axi", 668 "cfg_noc_usb2_axi"; 669 clocks = <&rpmcc RPM_SMD_AGGR2_NOC_CLK>, 670 <&rpmcc RPM_SMD_AGGR2_NOC_A_CLK>, 671 <&rpmcc RPM_SMD_IPA_CLK>, 672 <&gcc GCC_UFS_AXI_CLK>, 673 <&gcc GCC_AGGRE2_UFS_AXI_CLK>, 674 <&gcc GCC_AGGRE2_USB3_AXI_CLK>, 675 <&gcc GCC_CFG_NOC_USB2_AXI_CLK>; 676 }; 677 678 mnoc: interconnect@1745000 { 679 compatible = "qcom,sdm660-mnoc"; 680 reg = <0x01745000 0xA010>; 681 #interconnect-cells = <1>; 682 clock-names = "bus", "bus_a", "iface"; 683 clocks = <&rpmcc RPM_SMD_MMSSNOC_AXI_CLK>, 684 <&rpmcc RPM_SMD_MMSSNOC_AXI_CLK_A>, 685 <&mmcc AHB_CLK_SRC>; 686 }; 687 688 tsens: thermal-sensor@10ae000 { 689 compatible = "qcom,sdm630-tsens", "qcom,tsens-v2"; 690 reg = <0x010ae000 0x1000>, /* TM */ 691 <0x010ad000 0x1000>; /* SROT */ 692 #qcom,sensors = <12>; 693 interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>, 694 <GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>; 695 interrupt-names = "uplow", "critical"; 696 #thermal-sensor-cells = <1>; 697 }; 698 699 tcsr_mutex_regs: syscon@1f40000 { 700 compatible = "syscon"; 701 reg = <0x01f40000 0x40000>; 702 }; 703 704 tlmm: pinctrl@3100000 { 705 compatible = "qcom,sdm630-pinctrl"; 706 reg = <0x03100000 0x400000>, 707 <0x03500000 0x400000>, 708 <0x03900000 0x400000>; 709 reg-names = "south", "center", "north"; 710 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; 711 gpio-controller; 712 gpio-ranges = <&tlmm 0 0 114>; 713 #gpio-cells = <2>; 714 interrupt-controller; 715 #interrupt-cells = <2>; 716 717 blsp1_uart1_default: blsp1-uart1-default { 718 pins = "gpio0", "gpio1", "gpio2", "gpio3"; 719 drive-strength = <2>; 720 bias-disable; 721 }; 722 723 blsp1_uart1_sleep: blsp1-uart1-sleep { 724 pins = "gpio0", "gpio1", "gpio2", "gpio3"; 725 drive-strength = <2>; 726 bias-disable; 727 }; 728 729 blsp1_uart2_default: blsp1-uart2-default { 730 pins = "gpio4", "gpio5"; 731 drive-strength = <2>; 732 bias-disable; 733 }; 734 735 blsp2_uart1_default: blsp2-uart1-active { 736 tx-rts { 737 pins = "gpio16", "gpio19"; 738 function = "blsp_uart5"; 739 drive-strength = <2>; 740 bias-disable; 741 }; 742 743 rx { 744 /* 745 * Avoid garbage data while BT module 746 * is powered off or not driving signal 747 */ 748 pins = "gpio17"; 749 function = "blsp_uart5"; 750 drive-strength = <2>; 751 bias-pull-up; 752 }; 753 754 cts { 755 /* Match the pull of the BT module */ 756 pins = "gpio18"; 757 function = "blsp_uart5"; 758 drive-strength = <2>; 759 bias-pull-down; 760 }; 761 }; 762 763 blsp2_uart1_sleep: blsp2-uart1-sleep { 764 tx { 765 pins = "gpio16"; 766 function = "gpio"; 767 drive-strength = <2>; 768 bias-pull-up; 769 }; 770 771 rx-cts-rts { 772 pins = "gpio17", "gpio18", "gpio19"; 773 function = "gpio"; 774 drive-strength = <2>; 775 bias-no-pull; 776 }; 777 }; 778 779 i2c1_default: i2c1-default { 780 pins = "gpio2", "gpio3"; 781 function = "blsp_i2c1"; 782 drive-strength = <2>; 783 bias-disable; 784 }; 785 786 i2c1_sleep: i2c1-sleep { 787 pins = "gpio2", "gpio3"; 788 function = "blsp_i2c1"; 789 drive-strength = <2>; 790 bias-pull-up; 791 }; 792 793 i2c2_default: i2c2-default { 794 pins = "gpio6", "gpio7"; 795 function = "blsp_i2c2"; 796 drive-strength = <2>; 797 bias-disable; 798 }; 799 800 i2c2_sleep: i2c2-sleep { 801 pins = "gpio6", "gpio7"; 802 function = "blsp_i2c2"; 803 drive-strength = <2>; 804 bias-pull-up; 805 }; 806 807 i2c3_default: i2c3-default { 808 pins = "gpio10", "gpio11"; 809 function = "blsp_i2c3"; 810 drive-strength = <2>; 811 bias-disable; 812 }; 813 814 i2c3_sleep: i2c3-sleep { 815 pins = "gpio10", "gpio11"; 816 function = "blsp_i2c3"; 817 drive-strength = <2>; 818 bias-pull-up; 819 }; 820 821 i2c4_default: i2c4-default { 822 pins = "gpio14", "gpio15"; 823 function = "blsp_i2c4"; 824 drive-strength = <2>; 825 bias-disable; 826 }; 827 828 i2c4_sleep: i2c4-sleep { 829 pins = "gpio14", "gpio15"; 830 function = "blsp_i2c4"; 831 drive-strength = <2>; 832 bias-pull-up; 833 }; 834 835 i2c5_default: i2c5-default { 836 pins = "gpio18", "gpio19"; 837 function = "blsp_i2c5"; 838 drive-strength = <2>; 839 bias-disable; 840 }; 841 842 i2c5_sleep: i2c5-sleep { 843 pins = "gpio18", "gpio19"; 844 function = "blsp_i2c5"; 845 drive-strength = <2>; 846 bias-pull-up; 847 }; 848 849 i2c6_default: i2c6-default { 850 pins = "gpio22", "gpio23"; 851 function = "blsp_i2c6"; 852 drive-strength = <2>; 853 bias-disable; 854 }; 855 856 i2c6_sleep: i2c6-sleep { 857 pins = "gpio22", "gpio23"; 858 function = "blsp_i2c6"; 859 drive-strength = <2>; 860 bias-pull-up; 861 }; 862 863 i2c7_default: i2c7-default { 864 pins = "gpio26", "gpio27"; 865 function = "blsp_i2c7"; 866 drive-strength = <2>; 867 bias-disable; 868 }; 869 870 i2c7_sleep: i2c7-sleep { 871 pins = "gpio26", "gpio27"; 872 function = "blsp_i2c7"; 873 drive-strength = <2>; 874 bias-pull-up; 875 }; 876 877 i2c8_default: i2c8-default { 878 pins = "gpio30", "gpio31"; 879 function = "blsp_i2c8"; 880 drive-strength = <2>; 881 bias-disable; 882 }; 883 884 i2c8_sleep: i2c8-sleep { 885 pins = "gpio30", "gpio31"; 886 function = "blsp_i2c8"; 887 drive-strength = <2>; 888 bias-pull-up; 889 }; 890 891 cci0_default: cci0_default { 892 pinmux { 893 pins = "gpio36","gpio37"; 894 function = "cci_i2c"; 895 }; 896 897 pinconf { 898 pins = "gpio36","gpio37"; 899 bias-pull-up; 900 drive-strength = <2>; 901 }; 902 }; 903 904 cci1_default: cci1_default { 905 pinmux { 906 pins = "gpio38","gpio39"; 907 function = "cci_i2c"; 908 }; 909 910 pinconf { 911 pins = "gpio38","gpio39"; 912 bias-pull-up; 913 drive-strength = <2>; 914 }; 915 }; 916 917 sdc1_state_on: sdc1-on { 918 clk { 919 pins = "sdc1_clk"; 920 bias-disable; 921 drive-strength = <16>; 922 }; 923 924 cmd { 925 pins = "sdc1_cmd"; 926 bias-pull-up; 927 drive-strength = <10>; 928 }; 929 930 data { 931 pins = "sdc1_data"; 932 bias-pull-up; 933 drive-strength = <10>; 934 }; 935 936 rclk { 937 pins = "sdc1_rclk"; 938 bias-pull-down; 939 }; 940 }; 941 942 sdc1_state_off: sdc1-off { 943 clk { 944 pins = "sdc1_clk"; 945 bias-disable; 946 drive-strength = <2>; 947 }; 948 949 cmd { 950 pins = "sdc1_cmd"; 951 bias-pull-up; 952 drive-strength = <2>; 953 }; 954 955 data { 956 pins = "sdc1_data"; 957 bias-pull-up; 958 drive-strength = <2>; 959 }; 960 961 rclk { 962 pins = "sdc1_rclk"; 963 bias-pull-down; 964 }; 965 }; 966 967 sdc2_state_on: sdc2-on { 968 clk { 969 pins = "sdc2_clk"; 970 bias-disable; 971 drive-strength = <16>; 972 }; 973 974 cmd { 975 pins = "sdc2_cmd"; 976 bias-pull-up; 977 drive-strength = <10>; 978 }; 979 980 data { 981 pins = "sdc2_data"; 982 bias-pull-up; 983 drive-strength = <10>; 984 }; 985 986 sd-cd { 987 pins = "gpio54"; 988 bias-pull-up; 989 drive-strength = <2>; 990 }; 991 }; 992 993 sdc2_state_off: sdc2-off { 994 clk { 995 pins = "sdc2_clk"; 996 bias-disable; 997 drive-strength = <2>; 998 }; 999 1000 cmd { 1001 pins = "sdc2_cmd"; 1002 bias-pull-up; 1003 drive-strength = <2>; 1004 }; 1005 1006 data { 1007 pins = "sdc2_data"; 1008 bias-pull-up; 1009 drive-strength = <2>; 1010 }; 1011 1012 sd-cd { 1013 pins = "gpio54"; 1014 bias-disable; 1015 drive-strength = <2>; 1016 }; 1017 }; 1018 }; 1019 1020 adreno_gpu: gpu@5000000 { 1021 compatible = "qcom,adreno-508.0", "qcom,adreno"; 1022 1023 reg = <0x05000000 0x40000>; 1024 reg-names = "kgsl_3d0_reg_memory"; 1025 1026 interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; 1027 1028 clocks = <&gcc GCC_GPU_CFG_AHB_CLK>, 1029 <&gpucc GPUCC_RBBMTIMER_CLK>, 1030 <&gcc GCC_BIMC_GFX_CLK>, 1031 <&gcc GCC_GPU_BIMC_GFX_CLK>, 1032 <&gpucc GPUCC_RBCPR_CLK>, 1033 <&gpucc GPUCC_GFX3D_CLK>; 1034 1035 clock-names = "iface", 1036 "rbbmtimer", 1037 "mem", 1038 "mem_iface", 1039 "rbcpr", 1040 "core"; 1041 1042 power-domains = <&rpmpd SDM660_VDDMX>; 1043 iommus = <&kgsl_smmu 0>; 1044 1045 nvmem-cells = <&gpu_speed_bin>; 1046 nvmem-cell-names = "speed_bin"; 1047 1048 interconnects = <&gnoc 1 &bimc 5>; 1049 interconnect-names = "gfx-mem"; 1050 1051 operating-points-v2 = <&gpu_sdm630_opp_table>; 1052 1053 gpu_sdm630_opp_table: opp-table { 1054 compatible = "operating-points-v2"; 1055 opp-775000000 { 1056 opp-hz = /bits/ 64 <775000000>; 1057 opp-level = <RPM_SMD_LEVEL_TURBO>; 1058 opp-peak-kBps = <5412000>; 1059 opp-supported-hw = <0xA2>; 1060 }; 1061 opp-647000000 { 1062 opp-hz = /bits/ 64 <647000000>; 1063 opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; 1064 opp-peak-kBps = <4068000>; 1065 opp-supported-hw = <0xFF>; 1066 }; 1067 opp-588000000 { 1068 opp-hz = /bits/ 64 <588000000>; 1069 opp-level = <RPM_SMD_LEVEL_NOM>; 1070 opp-peak-kBps = <3072000>; 1071 opp-supported-hw = <0xFF>; 1072 }; 1073 opp-465000000 { 1074 opp-hz = /bits/ 64 <465000000>; 1075 opp-level = <RPM_SMD_LEVEL_SVS_PLUS>; 1076 opp-peak-kBps = <2724000>; 1077 opp-supported-hw = <0xFF>; 1078 }; 1079 opp-370000000 { 1080 opp-hz = /bits/ 64 <370000000>; 1081 opp-level = <RPM_SMD_LEVEL_SVS>; 1082 opp-peak-kBps = <2188000>; 1083 opp-supported-hw = <0xFF>; 1084 }; 1085 opp-240000000 { 1086 opp-hz = /bits/ 64 <240000000>; 1087 opp-level = <RPM_SMD_LEVEL_LOW_SVS>; 1088 opp-peak-kBps = <1648000>; 1089 opp-supported-hw = <0xFF>; 1090 }; 1091 opp-160000000 { 1092 opp-hz = /bits/ 64 <160000000>; 1093 opp-level = <RPM_SMD_LEVEL_MIN_SVS>; 1094 opp-peak-kBps = <1200000>; 1095 opp-supported-hw = <0xFF>; 1096 }; 1097 }; 1098 }; 1099 1100 kgsl_smmu: iommu@5040000 { 1101 compatible = "qcom,sdm630-smmu-v2", 1102 "qcom,adreno-smmu", "qcom,smmu-v2"; 1103 reg = <0x05040000 0x10000>; 1104 1105 /* 1106 * GX GDSC parent is CX. We need to bring up CX for SMMU 1107 * but we need both up for Adreno. On the other hand, we 1108 * need to manage the GX rpmpd domain in the adreno driver. 1109 * Enable CX/GX GDSCs here so that we can manage just the GX 1110 * RPM Power Domain in the Adreno driver. 1111 */ 1112 power-domains = <&gpucc GPU_GX_GDSC>; 1113 clocks = <&gcc GCC_GPU_CFG_AHB_CLK>, 1114 <&gcc GCC_BIMC_GFX_CLK>, 1115 <&gcc GCC_GPU_BIMC_GFX_CLK>; 1116 clock-names = "iface", "mem", "mem_iface"; 1117 #global-interrupts = <2>; 1118 #iommu-cells = <1>; 1119 1120 interrupts = 1121 <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, 1122 <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, 1123 1124 <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>, 1125 <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>, 1126 <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>, 1127 <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>, 1128 <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 1129 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 1130 <GIC_SPI 349 IRQ_TYPE_LEVEL_HIGH>, 1131 <GIC_SPI 350 IRQ_TYPE_LEVEL_HIGH>; 1132 1133 status = "disabled"; 1134 }; 1135 1136 gpucc: clock-controller@5065000 { 1137 compatible = "qcom,gpucc-sdm630"; 1138 #clock-cells = <1>; 1139 #reset-cells = <1>; 1140 #power-domain-cells = <1>; 1141 reg = <0x05065000 0x9038>; 1142 1143 clocks = <&xo_board>, 1144 <&gcc GCC_GPU_GPLL0_CLK>, 1145 <&gcc GCC_GPU_GPLL0_DIV_CLK>; 1146 clock-names = "xo", 1147 "gcc_gpu_gpll0_clk", 1148 "gcc_gpu_gpll0_div_clk"; 1149 status = "disabled"; 1150 }; 1151 1152 lpass_smmu: iommu@5100000 { 1153 compatible = "qcom,sdm630-smmu-v2", "qcom,smmu-v2"; 1154 reg = <0x05100000 0x40000>; 1155 #iommu-cells = <1>; 1156 1157 #global-interrupts = <2>; 1158 interrupts = 1159 <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, 1160 <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, 1161 1162 <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, 1163 <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>, 1164 <GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>, 1165 <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>, 1166 <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>, 1167 <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>, 1168 <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH>, 1169 <GIC_SPI 399 IRQ_TYPE_LEVEL_HIGH>, 1170 <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH>, 1171 <GIC_SPI 401 IRQ_TYPE_LEVEL_HIGH>, 1172 <GIC_SPI 402 IRQ_TYPE_LEVEL_HIGH>, 1173 <GIC_SPI 403 IRQ_TYPE_LEVEL_HIGH>, 1174 <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, 1175 <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>, 1176 <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>, 1177 <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, 1178 <GIC_SPI 404 IRQ_TYPE_LEVEL_HIGH>; 1179 1180 status = "disabled"; 1181 }; 1182 1183 sram@290000 { 1184 compatible = "qcom,rpm-stats"; 1185 reg = <0x00290000 0x10000>; 1186 }; 1187 1188 spmi_bus: spmi@800f000 { 1189 compatible = "qcom,spmi-pmic-arb"; 1190 reg = <0x0800f000 0x1000>, 1191 <0x08400000 0x1000000>, 1192 <0x09400000 0x1000000>, 1193 <0x0a400000 0x220000>, 1194 <0x0800a000 0x3000>; 1195 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; 1196 interrupt-names = "periph_irq"; 1197 interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>; 1198 qcom,ee = <0>; 1199 qcom,channel = <0>; 1200 #address-cells = <2>; 1201 #size-cells = <0>; 1202 interrupt-controller; 1203 #interrupt-cells = <4>; 1204 cell-index = <0>; 1205 }; 1206 1207 usb3: usb@a8f8800 { 1208 compatible = "qcom,sdm660-dwc3", "qcom,dwc3"; 1209 reg = <0x0a8f8800 0x400>; 1210 status = "disabled"; 1211 #address-cells = <1>; 1212 #size-cells = <1>; 1213 ranges; 1214 1215 clocks = <&gcc GCC_CFG_NOC_USB3_AXI_CLK>, 1216 <&gcc GCC_USB30_MASTER_CLK>, 1217 <&gcc GCC_AGGRE2_USB3_AXI_CLK>, 1218 <&rpmcc RPM_SMD_AGGR2_NOC_CLK>, 1219 <&gcc GCC_USB30_MOCK_UTMI_CLK>, 1220 <&gcc GCC_USB30_SLEEP_CLK>; 1221 clock-names = "cfg_noc", "core", "iface", "bus", 1222 "mock_utmi", "sleep"; 1223 1224 assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>, 1225 <&gcc GCC_USB30_MASTER_CLK>, 1226 <&rpmcc RPM_SMD_AGGR2_NOC_CLK>; 1227 assigned-clock-rates = <19200000>, <120000000>, 1228 <19200000>; 1229 1230 interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>, 1231 <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>; 1232 interrupt-names = "hs_phy_irq", "ss_phy_irq"; 1233 1234 power-domains = <&gcc USB_30_GDSC>; 1235 qcom,select-utmi-as-pipe-clk; 1236 1237 resets = <&gcc GCC_USB_30_BCR>; 1238 1239 usb3_dwc3: usb@a800000 { 1240 compatible = "snps,dwc3"; 1241 reg = <0x0a800000 0xc8d0>; 1242 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; 1243 snps,dis_u2_susphy_quirk; 1244 snps,dis_enblslpm_quirk; 1245 1246 /* 1247 * SDM630 technically supports USB3 but I 1248 * haven't seen any devices making use of it. 1249 */ 1250 maximum-speed = "high-speed"; 1251 phys = <&qusb2phy>; 1252 phy-names = "usb2-phy"; 1253 snps,hird-threshold = /bits/ 8 <0>; 1254 }; 1255 }; 1256 1257 qusb2phy: phy@c012000 { 1258 compatible = "qcom,sdm660-qusb2-phy"; 1259 reg = <0x0c012000 0x180>; 1260 #phy-cells = <0>; 1261 1262 clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, 1263 <&gcc GCC_RX1_USB2_CLKREF_CLK>; 1264 clock-names = "cfg_ahb", "ref"; 1265 1266 resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; 1267 nvmem-cells = <&qusb2_hstx_trim>; 1268 status = "disabled"; 1269 }; 1270 1271 sdhc_2: sdhci@c084000 { 1272 compatible = "qcom,sdm630-sdhci", "qcom,sdhci-msm-v5"; 1273 reg = <0x0c084000 0x1000>; 1274 reg-names = "hc"; 1275 1276 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, 1277 <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; 1278 interrupt-names = "hc_irq", "pwr_irq"; 1279 1280 bus-width = <4>; 1281 clocks = <&gcc GCC_SDCC2_APPS_CLK>, 1282 <&gcc GCC_SDCC2_AHB_CLK>, 1283 <&xo_board>; 1284 clock-names = "core", "iface", "xo"; 1285 1286 interconnects = <&a2noc 3 &a2noc 10>, 1287 <&gnoc 0 &cnoc 28>; 1288 operating-points-v2 = <&sdhc2_opp_table>; 1289 1290 pinctrl-names = "default", "sleep"; 1291 pinctrl-0 = <&sdc2_state_on>; 1292 pinctrl-1 = <&sdc2_state_off>; 1293 power-domains = <&rpmpd SDM660_VDDCX>; 1294 1295 status = "disabled"; 1296 1297 sdhc2_opp_table: opp-table { 1298 compatible = "operating-points-v2"; 1299 1300 opp-50000000 { 1301 opp-hz = /bits/ 64 <50000000>; 1302 required-opps = <&rpmpd_opp_low_svs>; 1303 opp-peak-kBps = <200000 140000>; 1304 opp-avg-kBps = <130718 133320>; 1305 }; 1306 opp-100000000 { 1307 opp-hz = /bits/ 64 <100000000>; 1308 required-opps = <&rpmpd_opp_svs>; 1309 opp-peak-kBps = <250000 160000>; 1310 opp-avg-kBps = <196078 150000>; 1311 }; 1312 opp-200000000 { 1313 opp-hz = /bits/ 64 <200000000>; 1314 required-opps = <&rpmpd_opp_nom>; 1315 opp-peak-kBps = <4096000 4096000>; 1316 opp-avg-kBps = <1338562 1338562>; 1317 }; 1318 }; 1319 }; 1320 1321 sdhc_1: sdhci@c0c4000 { 1322 compatible = "qcom,sdm630-sdhci", "qcom,sdhci-msm-v5"; 1323 reg = <0x0c0c4000 0x1000>, 1324 <0x0c0c5000 0x1000>, 1325 <0x0c0c8000 0x8000>; 1326 reg-names = "hc", "cqhci", "ice"; 1327 1328 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>, 1329 <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; 1330 interrupt-names = "hc_irq", "pwr_irq"; 1331 1332 clocks = <&gcc GCC_SDCC1_APPS_CLK>, 1333 <&gcc GCC_SDCC1_AHB_CLK>, 1334 <&xo_board>, 1335 <&gcc GCC_SDCC1_ICE_CORE_CLK>; 1336 clock-names = "core", "iface", "xo", "ice"; 1337 1338 interconnects = <&a2noc 2 &a2noc 10>, 1339 <&gnoc 0 &cnoc 27>; 1340 interconnect-names = "sdhc1-ddr", "cpu-sdhc1"; 1341 operating-points-v2 = <&sdhc1_opp_table>; 1342 pinctrl-names = "default", "sleep"; 1343 pinctrl-0 = <&sdc1_state_on>; 1344 pinctrl-1 = <&sdc1_state_off>; 1345 power-domains = <&rpmpd SDM660_VDDCX>; 1346 1347 bus-width = <8>; 1348 non-removable; 1349 1350 status = "disabled"; 1351 1352 sdhc1_opp_table: opp-table { 1353 compatible = "operating-points-v2"; 1354 1355 opp-50000000 { 1356 opp-hz = /bits/ 64 <50000000>; 1357 required-opps = <&rpmpd_opp_low_svs>; 1358 opp-peak-kBps = <200000 140000>; 1359 opp-avg-kBps = <130718 133320>; 1360 }; 1361 opp-100000000 { 1362 opp-hz = /bits/ 64 <100000000>; 1363 required-opps = <&rpmpd_opp_svs>; 1364 opp-peak-kBps = <250000 160000>; 1365 opp-avg-kBps = <196078 150000>; 1366 }; 1367 opp-384000000 { 1368 opp-hz = /bits/ 64 <384000000>; 1369 required-opps = <&rpmpd_opp_nom>; 1370 opp-peak-kBps = <4096000 4096000>; 1371 opp-avg-kBps = <1338562 1338562>; 1372 }; 1373 }; 1374 }; 1375 1376 mmcc: clock-controller@c8c0000 { 1377 compatible = "qcom,mmcc-sdm630"; 1378 reg = <0x0c8c0000 0x40000>; 1379 #clock-cells = <1>; 1380 #reset-cells = <1>; 1381 #power-domain-cells = <1>; 1382 clock-names = "xo", 1383 "sleep_clk", 1384 "gpll0", 1385 "gpll0_div", 1386 "dsi0pll", 1387 "dsi0pllbyte", 1388 "dsi1pll", 1389 "dsi1pllbyte", 1390 "dp_link_2x_clk_divsel_five", 1391 "dp_vco_divided_clk_src_mux"; 1392 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, 1393 <&sleep_clk>, 1394 <&gcc GCC_MMSS_GPLL0_CLK>, 1395 <&gcc GCC_MMSS_GPLL0_DIV_CLK>, 1396 <&dsi0_phy 1>, 1397 <&dsi0_phy 0>, 1398 <0>, 1399 <0>, 1400 <0>, 1401 <0>; 1402 }; 1403 1404 dsi_opp_table: dsi-opp-table { 1405 compatible = "operating-points-v2"; 1406 1407 opp-131250000 { 1408 opp-hz = /bits/ 64 <131250000>; 1409 required-opps = <&rpmpd_opp_svs>; 1410 }; 1411 1412 opp-210000000 { 1413 opp-hz = /bits/ 64 <210000000>; 1414 required-opps = <&rpmpd_opp_svs_plus>; 1415 }; 1416 1417 opp-262500000 { 1418 opp-hz = /bits/ 64 <262500000>; 1419 required-opps = <&rpmpd_opp_nom>; 1420 }; 1421 }; 1422 1423 mdss: mdss@c900000 { 1424 compatible = "qcom,mdss"; 1425 reg = <0x0c900000 0x1000>, 1426 <0x0c9b0000 0x1040>; 1427 reg-names = "mdss_phys", "vbif_phys"; 1428 1429 power-domains = <&mmcc MDSS_GDSC>; 1430 1431 clocks = <&mmcc MDSS_AHB_CLK>, 1432 <&mmcc MDSS_AXI_CLK>, 1433 <&mmcc MDSS_VSYNC_CLK>, 1434 <&mmcc MDSS_MDP_CLK>; 1435 clock-names = "iface", 1436 "bus", 1437 "vsync", 1438 "core"; 1439 1440 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; 1441 1442 interrupt-controller; 1443 #interrupt-cells = <1>; 1444 1445 #address-cells = <1>; 1446 #size-cells = <1>; 1447 ranges; 1448 status = "disabled"; 1449 1450 mdp: mdp@c901000 { 1451 compatible = "qcom,mdp5"; 1452 reg = <0x0c901000 0x89000>; 1453 reg-names = "mdp_phys"; 1454 1455 interrupt-parent = <&mdss>; 1456 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 1457 1458 assigned-clocks = <&mmcc MDSS_MDP_CLK>, 1459 <&mmcc MDSS_VSYNC_CLK>; 1460 assigned-clock-rates = <300000000>, 1461 <19200000>; 1462 clocks = <&mmcc MDSS_AHB_CLK>, 1463 <&mmcc MDSS_AXI_CLK>, 1464 <&mmcc MDSS_MDP_CLK>, 1465 <&mmcc MDSS_VSYNC_CLK>; 1466 clock-names = "iface", 1467 "bus", 1468 "core", 1469 "vsync"; 1470 1471 interconnects = <&mnoc 2 &bimc 5>, 1472 <&mnoc 3 &bimc 5>, 1473 <&gnoc 0 &mnoc 17>; 1474 interconnect-names = "mdp0-mem", 1475 "mdp1-mem", 1476 "rotator-mem"; 1477 iommus = <&mmss_smmu 0>; 1478 operating-points-v2 = <&mdp_opp_table>; 1479 power-domains = <&rpmpd SDM660_VDDCX>; 1480 1481 ports { 1482 #address-cells = <1>; 1483 #size-cells = <0>; 1484 1485 port@0 { 1486 reg = <0>; 1487 mdp5_intf1_out: endpoint { 1488 remote-endpoint = <&dsi0_in>; 1489 }; 1490 }; 1491 }; 1492 1493 mdp_opp_table: mdp-opp { 1494 compatible = "operating-points-v2"; 1495 1496 opp-150000000 { 1497 opp-hz = /bits/ 64 <150000000>; 1498 opp-peak-kBps = <320000 320000 76800>; 1499 required-opps = <&rpmpd_opp_low_svs>; 1500 }; 1501 opp-275000000 { 1502 opp-hz = /bits/ 64 <275000000>; 1503 opp-peak-kBps = <6400000 6400000 160000>; 1504 required-opps = <&rpmpd_opp_svs>; 1505 }; 1506 opp-300000000 { 1507 opp-hz = /bits/ 64 <300000000>; 1508 opp-peak-kBps = <6400000 6400000 190000>; 1509 required-opps = <&rpmpd_opp_svs_plus>; 1510 }; 1511 opp-330000000 { 1512 opp-hz = /bits/ 64 <330000000>; 1513 opp-peak-kBps = <6400000 6400000 240000>; 1514 required-opps = <&rpmpd_opp_nom>; 1515 }; 1516 opp-412500000 { 1517 opp-hz = /bits/ 64 <412500000>; 1518 opp-peak-kBps = <6400000 6400000 320000>; 1519 required-opps = <&rpmpd_opp_turbo>; 1520 }; 1521 }; 1522 }; 1523 1524 dsi0: dsi@c994000 { 1525 compatible = "qcom,mdss-dsi-ctrl"; 1526 reg = <0x0c994000 0x400>; 1527 reg-names = "dsi_ctrl"; 1528 1529 operating-points-v2 = <&dsi_opp_table>; 1530 power-domains = <&rpmpd SDM660_VDDCX>; 1531 1532 interrupt-parent = <&mdss>; 1533 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; 1534 1535 assigned-clocks = <&mmcc BYTE0_CLK_SRC>, 1536 <&mmcc PCLK0_CLK_SRC>; 1537 assigned-clock-parents = <&dsi0_phy 0>, 1538 <&dsi0_phy 1>; 1539 1540 clocks = <&mmcc MDSS_MDP_CLK>, 1541 <&mmcc MDSS_BYTE0_CLK>, 1542 <&mmcc MDSS_BYTE0_INTF_CLK>, 1543 <&mmcc MNOC_AHB_CLK>, 1544 <&mmcc MDSS_AHB_CLK>, 1545 <&mmcc MDSS_AXI_CLK>, 1546 <&mmcc MISC_AHB_CLK>, 1547 <&mmcc MDSS_PCLK0_CLK>, 1548 <&mmcc MDSS_ESC0_CLK>; 1549 clock-names = "mdp_core", 1550 "byte", 1551 "byte_intf", 1552 "mnoc", 1553 "iface", 1554 "bus", 1555 "core_mmss", 1556 "pixel", 1557 "core"; 1558 1559 phys = <&dsi0_phy>; 1560 phy-names = "dsi"; 1561 1562 ports { 1563 #address-cells = <1>; 1564 #size-cells = <0>; 1565 1566 port@0 { 1567 reg = <0>; 1568 dsi0_in: endpoint { 1569 remote-endpoint = <&mdp5_intf1_out>; 1570 }; 1571 }; 1572 1573 port@1 { 1574 reg = <1>; 1575 dsi0_out: endpoint { 1576 }; 1577 }; 1578 }; 1579 }; 1580 1581 dsi0_phy: dsi-phy@c994400 { 1582 compatible = "qcom,dsi-phy-14nm-660"; 1583 reg = <0x0c994400 0x100>, 1584 <0x0c994500 0x300>, 1585 <0x0c994800 0x188>; 1586 reg-names = "dsi_phy", 1587 "dsi_phy_lane", 1588 "dsi_pll"; 1589 1590 #clock-cells = <1>; 1591 #phy-cells = <0>; 1592 1593 clocks = <&mmcc MDSS_AHB_CLK>, <&xo_board>; 1594 clock-names = "iface", "ref"; 1595 }; 1596 }; 1597 1598 blsp1_dma: dma-controller@c144000 { 1599 compatible = "qcom,bam-v1.7.0"; 1600 reg = <0x0c144000 0x1f000>; 1601 interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; 1602 clocks = <&gcc GCC_BLSP1_AHB_CLK>; 1603 clock-names = "bam_clk"; 1604 #dma-cells = <1>; 1605 qcom,ee = <0>; 1606 qcom,controlled-remotely; 1607 num-channels = <18>; 1608 qcom,num-ees = <4>; 1609 }; 1610 1611 blsp1_uart1: serial@c16f000 { 1612 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; 1613 reg = <0x0c16f000 0x200>; 1614 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; 1615 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, 1616 <&gcc GCC_BLSP1_AHB_CLK>; 1617 clock-names = "core", "iface"; 1618 dmas = <&blsp1_dma 0>, <&blsp1_dma 1>; 1619 dma-names = "tx", "rx"; 1620 pinctrl-names = "default", "sleep"; 1621 pinctrl-0 = <&blsp1_uart1_default>; 1622 pinctrl-1 = <&blsp1_uart1_sleep>; 1623 status = "disabled"; 1624 }; 1625 1626 blsp1_uart2: serial@c170000 { 1627 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; 1628 reg = <0x0c170000 0x1000>; 1629 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; 1630 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, 1631 <&gcc GCC_BLSP1_AHB_CLK>; 1632 clock-names = "core", "iface"; 1633 dmas = <&blsp1_dma 2>, <&blsp1_dma 3>; 1634 dma-names = "tx", "rx"; 1635 pinctrl-names = "default"; 1636 pinctrl-0 = <&blsp1_uart2_default>; 1637 status = "disabled"; 1638 }; 1639 1640 blsp_i2c1: i2c@c175000 { 1641 compatible = "qcom,i2c-qup-v2.2.1"; 1642 reg = <0x0c175000 0x600>; 1643 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; 1644 1645 clocks = <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>, 1646 <&gcc GCC_BLSP1_AHB_CLK>; 1647 clock-names = "core", "iface"; 1648 clock-frequency = <400000>; 1649 dmas = <&blsp1_dma 4>, <&blsp1_dma 5>; 1650 dma-names = "tx", "rx"; 1651 1652 pinctrl-names = "default", "sleep"; 1653 pinctrl-0 = <&i2c1_default>; 1654 pinctrl-1 = <&i2c1_sleep>; 1655 #address-cells = <1>; 1656 #size-cells = <0>; 1657 status = "disabled"; 1658 }; 1659 1660 blsp_i2c2: i2c@c176000 { 1661 compatible = "qcom,i2c-qup-v2.2.1"; 1662 reg = <0x0c176000 0x600>; 1663 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; 1664 1665 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, 1666 <&gcc GCC_BLSP1_AHB_CLK>; 1667 clock-names = "core", "iface"; 1668 clock-frequency = <400000>; 1669 dmas = <&blsp1_dma 6>, <&blsp1_dma 7>; 1670 dma-names = "tx", "rx"; 1671 1672 pinctrl-names = "default", "sleep"; 1673 pinctrl-0 = <&i2c2_default>; 1674 pinctrl-1 = <&i2c2_sleep>; 1675 #address-cells = <1>; 1676 #size-cells = <0>; 1677 status = "disabled"; 1678 }; 1679 1680 blsp_i2c3: i2c@c177000 { 1681 compatible = "qcom,i2c-qup-v2.2.1"; 1682 reg = <0x0c177000 0x600>; 1683 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; 1684 1685 clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, 1686 <&gcc GCC_BLSP1_AHB_CLK>; 1687 clock-names = "core", "iface"; 1688 clock-frequency = <400000>; 1689 dmas = <&blsp1_dma 8>, <&blsp1_dma 9>; 1690 dma-names = "tx", "rx"; 1691 1692 pinctrl-names = "default", "sleep"; 1693 pinctrl-0 = <&i2c3_default>; 1694 pinctrl-1 = <&i2c3_sleep>; 1695 #address-cells = <1>; 1696 #size-cells = <0>; 1697 status = "disabled"; 1698 }; 1699 1700 blsp_i2c4: i2c@c178000 { 1701 compatible = "qcom,i2c-qup-v2.2.1"; 1702 reg = <0x0c178000 0x600>; 1703 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; 1704 1705 clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, 1706 <&gcc GCC_BLSP1_AHB_CLK>; 1707 clock-names = "core", "iface"; 1708 clock-frequency = <400000>; 1709 dmas = <&blsp1_dma 10>, <&blsp1_dma 11>; 1710 dma-names = "tx", "rx"; 1711 1712 pinctrl-names = "default", "sleep"; 1713 pinctrl-0 = <&i2c4_default>; 1714 pinctrl-1 = <&i2c4_sleep>; 1715 #address-cells = <1>; 1716 #size-cells = <0>; 1717 status = "disabled"; 1718 }; 1719 1720 blsp2_dma: dma-controller@c184000 { 1721 compatible = "qcom,bam-v1.7.0"; 1722 reg = <0x0c184000 0x1f000>; 1723 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>; 1724 clocks = <&gcc GCC_BLSP2_AHB_CLK>; 1725 clock-names = "bam_clk"; 1726 #dma-cells = <1>; 1727 qcom,ee = <0>; 1728 qcom,controlled-remotely; 1729 num-channels = <18>; 1730 qcom,num-ees = <4>; 1731 }; 1732 1733 blsp2_uart1: serial@c1af000 { 1734 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; 1735 reg = <0x0c1af000 0x200>; 1736 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; 1737 clocks = <&gcc GCC_BLSP2_UART1_APPS_CLK>, 1738 <&gcc GCC_BLSP2_AHB_CLK>; 1739 clock-names = "core", "iface"; 1740 dmas = <&blsp2_dma 0>, <&blsp2_dma 1>; 1741 dma-names = "tx", "rx"; 1742 pinctrl-names = "default", "sleep"; 1743 pinctrl-0 = <&blsp2_uart1_default>; 1744 pinctrl-1 = <&blsp2_uart1_sleep>; 1745 status = "disabled"; 1746 }; 1747 1748 blsp_i2c5: i2c@c1b5000 { 1749 compatible = "qcom,i2c-qup-v2.2.1"; 1750 reg = <0x0c1b5000 0x600>; 1751 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 1752 1753 clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>, 1754 <&gcc GCC_BLSP2_AHB_CLK>; 1755 clock-names = "core", "iface"; 1756 clock-frequency = <400000>; 1757 dmas = <&blsp2_dma 4>, <&blsp2_dma 5>; 1758 dma-names = "tx", "rx"; 1759 1760 pinctrl-names = "default", "sleep"; 1761 pinctrl-0 = <&i2c5_default>; 1762 pinctrl-1 = <&i2c5_sleep>; 1763 #address-cells = <1>; 1764 #size-cells = <0>; 1765 status = "disabled"; 1766 }; 1767 1768 blsp_i2c6: i2c@c1b6000 { 1769 compatible = "qcom,i2c-qup-v2.2.1"; 1770 reg = <0x0c1b6000 0x600>; 1771 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; 1772 1773 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, 1774 <&gcc GCC_BLSP2_AHB_CLK>; 1775 clock-names = "core", "iface"; 1776 clock-frequency = <400000>; 1777 dmas = <&blsp2_dma 6>, <&blsp2_dma 7>; 1778 dma-names = "tx", "rx"; 1779 1780 pinctrl-names = "default", "sleep"; 1781 pinctrl-0 = <&i2c6_default>; 1782 pinctrl-1 = <&i2c6_sleep>; 1783 #address-cells = <1>; 1784 #size-cells = <0>; 1785 status = "disabled"; 1786 }; 1787 1788 blsp_i2c7: i2c@c1b7000 { 1789 compatible = "qcom,i2c-qup-v2.2.1"; 1790 reg = <0x0c1b7000 0x600>; 1791 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; 1792 1793 clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>, 1794 <&gcc GCC_BLSP2_AHB_CLK>; 1795 clock-names = "core", "iface"; 1796 clock-frequency = <400000>; 1797 dmas = <&blsp2_dma 8>, <&blsp2_dma 9>; 1798 dma-names = "tx", "rx"; 1799 1800 pinctrl-names = "default", "sleep"; 1801 pinctrl-0 = <&i2c7_default>; 1802 pinctrl-1 = <&i2c7_sleep>; 1803 #address-cells = <1>; 1804 #size-cells = <0>; 1805 status = "disabled"; 1806 }; 1807 1808 blsp_i2c8: i2c@c1b8000 { 1809 compatible = "qcom,i2c-qup-v2.2.1"; 1810 reg = <0x0c1b8000 0x600>; 1811 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 1812 1813 clocks = <&gcc GCC_BLSP2_QUP4_I2C_APPS_CLK>, 1814 <&gcc GCC_BLSP2_AHB_CLK>; 1815 clock-names = "core", "iface"; 1816 clock-frequency = <400000>; 1817 dmas = <&blsp2_dma 10>, <&blsp2_dma 11>; 1818 dma-names = "tx", "rx"; 1819 1820 pinctrl-names = "default", "sleep"; 1821 pinctrl-0 = <&i2c8_default>; 1822 pinctrl-1 = <&i2c8_sleep>; 1823 #address-cells = <1>; 1824 #size-cells = <0>; 1825 status = "disabled"; 1826 }; 1827 1828 imem@146bf000 { 1829 compatible = "simple-mfd"; 1830 reg = <0x146bf000 0x1000>; 1831 1832 #address-cells = <1>; 1833 #size-cells = <1>; 1834 1835 ranges = <0 0x146bf000 0x1000>; 1836 1837 pil-reloc@94c { 1838 compatible = "qcom,pil-reloc-info"; 1839 reg = <0x94c 0xc8>; 1840 }; 1841 }; 1842 1843 camss: camss@ca00000 { 1844 compatible = "qcom,sdm660-camss"; 1845 reg = <0x0c824000 0x1000>, 1846 <0x0ca00120 0x4>, 1847 <0x0c825000 0x1000>, 1848 <0x0ca00124 0x4>, 1849 <0x0c826000 0x1000>, 1850 <0x0ca00128 0x4>, 1851 <0x0ca30000 0x100>, 1852 <0x0ca30400 0x100>, 1853 <0x0ca30800 0x100>, 1854 <0x0ca30c00 0x100>, 1855 <0x0ca31000 0x500>, 1856 <0x0ca00020 0x10>, 1857 <0x0ca10000 0x1000>, 1858 <0x0ca14000 0x1000>; 1859 reg-names = "csiphy0", 1860 "csiphy0_clk_mux", 1861 "csiphy1", 1862 "csiphy1_clk_mux", 1863 "csiphy2", 1864 "csiphy2_clk_mux", 1865 "csid0", 1866 "csid1", 1867 "csid2", 1868 "csid3", 1869 "ispif", 1870 "csi_clk_mux", 1871 "vfe0", 1872 "vfe1"; 1873 interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>, 1874 <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>, 1875 <GIC_SPI 80 IRQ_TYPE_EDGE_RISING>, 1876 <GIC_SPI 296 IRQ_TYPE_EDGE_RISING>, 1877 <GIC_SPI 297 IRQ_TYPE_EDGE_RISING>, 1878 <GIC_SPI 298 IRQ_TYPE_EDGE_RISING>, 1879 <GIC_SPI 299 IRQ_TYPE_EDGE_RISING>, 1880 <GIC_SPI 309 IRQ_TYPE_EDGE_RISING>, 1881 <GIC_SPI 314 IRQ_TYPE_EDGE_RISING>, 1882 <GIC_SPI 315 IRQ_TYPE_EDGE_RISING>; 1883 interrupt-names = "csiphy0", 1884 "csiphy1", 1885 "csiphy2", 1886 "csid0", 1887 "csid1", 1888 "csid2", 1889 "csid3", 1890 "ispif", 1891 "vfe0", 1892 "vfe1"; 1893 clocks = <&mmcc CAMSS_TOP_AHB_CLK>, 1894 <&mmcc THROTTLE_CAMSS_AXI_CLK>, 1895 <&mmcc CAMSS_ISPIF_AHB_CLK>, 1896 <&mmcc CAMSS_CSI0PHYTIMER_CLK>, 1897 <&mmcc CAMSS_CSI1PHYTIMER_CLK>, 1898 <&mmcc CAMSS_CSI2PHYTIMER_CLK>, 1899 <&mmcc CAMSS_CSI0_AHB_CLK>, 1900 <&mmcc CAMSS_CSI0_CLK>, 1901 <&mmcc CAMSS_CPHY_CSID0_CLK>, 1902 <&mmcc CAMSS_CSI0PIX_CLK>, 1903 <&mmcc CAMSS_CSI0RDI_CLK>, 1904 <&mmcc CAMSS_CSI1_AHB_CLK>, 1905 <&mmcc CAMSS_CSI1_CLK>, 1906 <&mmcc CAMSS_CPHY_CSID1_CLK>, 1907 <&mmcc CAMSS_CSI1PIX_CLK>, 1908 <&mmcc CAMSS_CSI1RDI_CLK>, 1909 <&mmcc CAMSS_CSI2_AHB_CLK>, 1910 <&mmcc CAMSS_CSI2_CLK>, 1911 <&mmcc CAMSS_CPHY_CSID2_CLK>, 1912 <&mmcc CAMSS_CSI2PIX_CLK>, 1913 <&mmcc CAMSS_CSI2RDI_CLK>, 1914 <&mmcc CAMSS_CSI3_AHB_CLK>, 1915 <&mmcc CAMSS_CSI3_CLK>, 1916 <&mmcc CAMSS_CPHY_CSID3_CLK>, 1917 <&mmcc CAMSS_CSI3PIX_CLK>, 1918 <&mmcc CAMSS_CSI3RDI_CLK>, 1919 <&mmcc CAMSS_AHB_CLK>, 1920 <&mmcc CAMSS_VFE0_CLK>, 1921 <&mmcc CAMSS_CSI_VFE0_CLK>, 1922 <&mmcc CAMSS_VFE0_AHB_CLK>, 1923 <&mmcc CAMSS_VFE0_STREAM_CLK>, 1924 <&mmcc CAMSS_VFE1_CLK>, 1925 <&mmcc CAMSS_CSI_VFE1_CLK>, 1926 <&mmcc CAMSS_VFE1_AHB_CLK>, 1927 <&mmcc CAMSS_VFE1_STREAM_CLK>, 1928 <&mmcc CAMSS_VFE_VBIF_AHB_CLK>, 1929 <&mmcc CAMSS_VFE_VBIF_AXI_CLK>, 1930 <&mmcc CSIPHY_AHB2CRIF_CLK>, 1931 <&mmcc CAMSS_CPHY_CSID0_CLK>, 1932 <&mmcc CAMSS_CPHY_CSID1_CLK>, 1933 <&mmcc CAMSS_CPHY_CSID2_CLK>, 1934 <&mmcc CAMSS_CPHY_CSID3_CLK>; 1935 clock-names = "top_ahb", 1936 "throttle_axi", 1937 "ispif_ahb", 1938 "csiphy0_timer", 1939 "csiphy1_timer", 1940 "csiphy2_timer", 1941 "csi0_ahb", 1942 "csi0", 1943 "csi0_phy", 1944 "csi0_pix", 1945 "csi0_rdi", 1946 "csi1_ahb", 1947 "csi1", 1948 "csi1_phy", 1949 "csi1_pix", 1950 "csi1_rdi", 1951 "csi2_ahb", 1952 "csi2", 1953 "csi2_phy", 1954 "csi2_pix", 1955 "csi2_rdi", 1956 "csi3_ahb", 1957 "csi3", 1958 "csi3_phy", 1959 "csi3_pix", 1960 "csi3_rdi", 1961 "ahb", 1962 "vfe0", 1963 "csi_vfe0", 1964 "vfe0_ahb", 1965 "vfe0_stream", 1966 "vfe1", 1967 "csi_vfe1", 1968 "vfe1_ahb", 1969 "vfe1_stream", 1970 "vfe_ahb", 1971 "vfe_axi", 1972 "csiphy_ahb2crif", 1973 "cphy_csid0", 1974 "cphy_csid1", 1975 "cphy_csid2", 1976 "cphy_csid3"; 1977 interconnects = <&mnoc 5 &bimc 5>; 1978 interconnect-names = "vfe-mem"; 1979 iommus = <&mmss_smmu 0xc00>, 1980 <&mmss_smmu 0xc01>, 1981 <&mmss_smmu 0xc02>, 1982 <&mmss_smmu 0xc03>; 1983 power-domains = <&mmcc CAMSS_VFE0_GDSC>, 1984 <&mmcc CAMSS_VFE1_GDSC>; 1985 status = "disabled"; 1986 1987 ports { 1988 #address-cells = <1>; 1989 #size-cells = <0>; 1990 }; 1991 }; 1992 1993 cci: cci@ca0c000 { 1994 compatible = "qcom,msm8996-cci"; 1995 #address-cells = <1>; 1996 #size-cells = <0>; 1997 reg = <0x0ca0c000 0x1000>; 1998 interrupts = <GIC_SPI 295 IRQ_TYPE_EDGE_RISING>; 1999 2000 assigned-clocks = <&mmcc CAMSS_CCI_AHB_CLK>, 2001 <&mmcc CAMSS_CCI_CLK>; 2002 assigned-clock-rates = <80800000>, <37500000>; 2003 clocks = <&mmcc CAMSS_TOP_AHB_CLK>, 2004 <&mmcc CAMSS_CCI_AHB_CLK>, 2005 <&mmcc CAMSS_CCI_CLK>, 2006 <&mmcc CAMSS_AHB_CLK>; 2007 clock-names = "camss_top_ahb", 2008 "cci_ahb", 2009 "cci", 2010 "camss_ahb"; 2011 2012 pinctrl-names = "default"; 2013 pinctrl-0 = <&cci0_default &cci1_default>; 2014 power-domains = <&mmcc CAMSS_TOP_GDSC>; 2015 status = "disabled"; 2016 2017 cci_i2c0: i2c-bus@0 { 2018 reg = <0>; 2019 clock-frequency = <400000>; 2020 #address-cells = <1>; 2021 #size-cells = <0>; 2022 }; 2023 2024 cci_i2c1: i2c-bus@1 { 2025 reg = <1>; 2026 clock-frequency = <400000>; 2027 #address-cells = <1>; 2028 #size-cells = <0>; 2029 }; 2030 }; 2031 2032 venus: video-codec@cc00000 { 2033 compatible = "qcom,sdm660-venus"; 2034 reg = <0x0cc00000 0xff000>; 2035 clocks = <&mmcc VIDEO_CORE_CLK>, 2036 <&mmcc VIDEO_AHB_CLK>, 2037 <&mmcc VIDEO_AXI_CLK>, 2038 <&mmcc THROTTLE_VIDEO_AXI_CLK>; 2039 clock-names = "core", "iface", "bus", "bus_throttle"; 2040 interconnects = <&gnoc 0 &mnoc 13>, 2041 <&mnoc 4 &bimc 5>; 2042 interconnect-names = "cpu-cfg", "video-mem"; 2043 interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; 2044 iommus = <&mmss_smmu 0x400>, 2045 <&mmss_smmu 0x401>, 2046 <&mmss_smmu 0x40a>, 2047 <&mmss_smmu 0x407>, 2048 <&mmss_smmu 0x40e>, 2049 <&mmss_smmu 0x40f>, 2050 <&mmss_smmu 0x408>, 2051 <&mmss_smmu 0x409>, 2052 <&mmss_smmu 0x40b>, 2053 <&mmss_smmu 0x40c>, 2054 <&mmss_smmu 0x40d>, 2055 <&mmss_smmu 0x410>, 2056 <&mmss_smmu 0x421>, 2057 <&mmss_smmu 0x428>, 2058 <&mmss_smmu 0x429>, 2059 <&mmss_smmu 0x42b>, 2060 <&mmss_smmu 0x42c>, 2061 <&mmss_smmu 0x42d>, 2062 <&mmss_smmu 0x411>, 2063 <&mmss_smmu 0x431>; 2064 memory-region = <&venus_region>; 2065 power-domains = <&mmcc VENUS_GDSC>; 2066 status = "disabled"; 2067 2068 video-decoder { 2069 compatible = "venus-decoder"; 2070 clocks = <&mmcc VIDEO_SUBCORE0_CLK>; 2071 clock-names = "vcodec0_core"; 2072 power-domains = <&mmcc VENUS_CORE0_GDSC>; 2073 }; 2074 2075 video-encoder { 2076 compatible = "venus-encoder"; 2077 clocks = <&mmcc VIDEO_SUBCORE0_CLK>; 2078 clock-names = "vcodec0_core"; 2079 power-domains = <&mmcc VENUS_CORE0_GDSC>; 2080 }; 2081 }; 2082 2083 mmss_smmu: iommu@cd00000 { 2084 compatible = "qcom,sdm630-smmu-v2", "qcom,smmu-v2"; 2085 reg = <0x0cd00000 0x40000>; 2086 2087 clocks = <&mmcc MNOC_AHB_CLK>, 2088 <&mmcc BIMC_SMMU_AHB_CLK>, 2089 <&rpmcc RPM_SMD_MMSSNOC_AXI_CLK>, 2090 <&mmcc BIMC_SMMU_AXI_CLK>; 2091 clock-names = "iface-mm", "iface-smmu", 2092 "bus-mm", "bus-smmu"; 2093 #global-interrupts = <2>; 2094 #iommu-cells = <1>; 2095 2096 interrupts = 2097 <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>, 2098 <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>, 2099 2100 <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>, 2101 <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>, 2102 <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>, 2103 <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>, 2104 <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>, 2105 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>, 2106 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>, 2107 <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>, 2108 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>, 2109 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>, 2110 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>, 2111 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>, 2112 <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>, 2113 <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>, 2114 <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>, 2115 <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>, 2116 <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>, 2117 <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>, 2118 <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, 2119 <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>, 2120 <GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>, 2121 <GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>, 2122 <GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>, 2123 <GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>; 2124 2125 status = "disabled"; 2126 }; 2127 2128 adsp_pil: remoteproc@15700000 { 2129 compatible = "qcom,sdm660-adsp-pas"; 2130 reg = <0x15700000 0x4040>; 2131 2132 interrupts-extended = 2133 <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>, 2134 <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, 2135 <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, 2136 <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, 2137 <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; 2138 interrupt-names = "wdog", "fatal", "ready", 2139 "handover", "stop-ack"; 2140 2141 clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; 2142 clock-names = "xo"; 2143 2144 memory-region = <&adsp_region>; 2145 power-domains = <&rpmpd SDM660_VDDCX>; 2146 power-domain-names = "cx"; 2147 2148 qcom,smem-states = <&adsp_smp2p_out 0>; 2149 qcom,smem-state-names = "stop"; 2150 2151 glink-edge { 2152 interrupts = <GIC_SPI 157 IRQ_TYPE_EDGE_RISING>; 2153 2154 label = "lpass"; 2155 mboxes = <&apcs_glb 9>; 2156 qcom,remote-pid = <2>; 2157 #address-cells = <1>; 2158 #size-cells = <0>; 2159 2160 apr { 2161 compatible = "qcom,apr-v2"; 2162 qcom,glink-channels = "apr_audio_svc"; 2163 qcom,domain = <APR_DOMAIN_ADSP>; 2164 #address-cells = <1>; 2165 #size-cells = <0>; 2166 2167 q6core { 2168 reg = <APR_SVC_ADSP_CORE>; 2169 compatible = "qcom,q6core"; 2170 }; 2171 2172 q6afe: apr-service@4 { 2173 compatible = "qcom,q6afe"; 2174 reg = <APR_SVC_AFE>; 2175 q6afedai: dais { 2176 compatible = "qcom,q6afe-dais"; 2177 #address-cells = <1>; 2178 #size-cells = <0>; 2179 #sound-dai-cells = <1>; 2180 }; 2181 }; 2182 2183 q6asm: apr-service@7 { 2184 compatible = "qcom,q6asm"; 2185 reg = <APR_SVC_ASM>; 2186 q6asmdai: dais { 2187 compatible = "qcom,q6asm-dais"; 2188 #address-cells = <1>; 2189 #size-cells = <0>; 2190 #sound-dai-cells = <1>; 2191 iommus = <&lpass_smmu 1>; 2192 }; 2193 }; 2194 2195 q6adm: apr-service@8 { 2196 compatible = "qcom,q6adm"; 2197 reg = <APR_SVC_ADM>; 2198 q6routing: routing { 2199 compatible = "qcom,q6adm-routing"; 2200 #sound-dai-cells = <0>; 2201 }; 2202 }; 2203 }; 2204 }; 2205 }; 2206 2207 gnoc: interconnect@17900000 { 2208 compatible = "qcom,sdm660-gnoc"; 2209 reg = <0x17900000 0xe000>; 2210 #interconnect-cells = <1>; 2211 /* 2212 * This one apparently features no clocks, 2213 * so let's not mess with the driver needlessly 2214 */ 2215 clock-names = "bus", "bus_a"; 2216 clocks = <&xo_board>, <&xo_board>; 2217 }; 2218 2219 apcs_glb: mailbox@17911000 { 2220 compatible = "qcom,sdm660-apcs-hmss-global"; 2221 reg = <0x17911000 0x1000>; 2222 2223 #mbox-cells = <1>; 2224 }; 2225 2226 timer@17920000 { 2227 #address-cells = <1>; 2228 #size-cells = <1>; 2229 ranges; 2230 compatible = "arm,armv7-timer-mem"; 2231 reg = <0x17920000 0x1000>; 2232 clock-frequency = <19200000>; 2233 2234 frame@17921000 { 2235 frame-number = <0>; 2236 interrupts = <0 8 0x4>, 2237 <0 7 0x4>; 2238 reg = <0x17921000 0x1000>, 2239 <0x17922000 0x1000>; 2240 }; 2241 2242 frame@17923000 { 2243 frame-number = <1>; 2244 interrupts = <0 9 0x4>; 2245 reg = <0x17923000 0x1000>; 2246 status = "disabled"; 2247 }; 2248 2249 frame@17924000 { 2250 frame-number = <2>; 2251 interrupts = <0 10 0x4>; 2252 reg = <0x17924000 0x1000>; 2253 status = "disabled"; 2254 }; 2255 2256 frame@17925000 { 2257 frame-number = <3>; 2258 interrupts = <0 11 0x4>; 2259 reg = <0x17925000 0x1000>; 2260 status = "disabled"; 2261 }; 2262 2263 frame@17926000 { 2264 frame-number = <4>; 2265 interrupts = <0 12 0x4>; 2266 reg = <0x17926000 0x1000>; 2267 status = "disabled"; 2268 }; 2269 2270 frame@17927000 { 2271 frame-number = <5>; 2272 interrupts = <0 13 0x4>; 2273 reg = <0x17927000 0x1000>; 2274 status = "disabled"; 2275 }; 2276 2277 frame@17928000 { 2278 frame-number = <6>; 2279 interrupts = <0 14 0x4>; 2280 reg = <0x17928000 0x1000>; 2281 status = "disabled"; 2282 }; 2283 }; 2284 2285 intc: interrupt-controller@17a00000 { 2286 compatible = "arm,gic-v3"; 2287 reg = <0x17a00000 0x10000>, /* GICD */ 2288 <0x17b00000 0x100000>; /* GICR * 8 */ 2289 #interrupt-cells = <3>; 2290 #address-cells = <1>; 2291 #size-cells = <1>; 2292 ranges; 2293 interrupt-controller; 2294 #redistributor-regions = <1>; 2295 redistributor-stride = <0x0 0x20000>; 2296 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; 2297 }; 2298 }; 2299 2300 tcsr_mutex: hwlock { 2301 compatible = "qcom,tcsr-mutex"; 2302 syscon = <&tcsr_mutex_regs 0 0x1000>; 2303 #hwlock-cells = <1>; 2304 }; 2305 2306 sound: sound { 2307 }; 2308 2309 thermal-zones { 2310 aoss-thermal { 2311 polling-delay-passive = <250>; 2312 polling-delay = <1000>; 2313 2314 thermal-sensors = <&tsens 0>; 2315 2316 trips { 2317 aoss_alert0: trip-point0 { 2318 temperature = <105000>; 2319 hysteresis = <1000>; 2320 type = "hot"; 2321 }; 2322 }; 2323 }; 2324 2325 cpuss0-thermal { 2326 polling-delay-passive = <250>; 2327 polling-delay = <1000>; 2328 2329 thermal-sensors = <&tsens 1>; 2330 2331 trips { 2332 cpuss0_alert0: trip-point0 { 2333 temperature = <125000>; 2334 hysteresis = <1000>; 2335 type = "hot"; 2336 }; 2337 }; 2338 }; 2339 2340 cpuss1-thermal { 2341 polling-delay-passive = <250>; 2342 polling-delay = <1000>; 2343 2344 thermal-sensors = <&tsens 2>; 2345 2346 trips { 2347 cpuss1_alert0: trip-point0 { 2348 temperature = <125000>; 2349 hysteresis = <1000>; 2350 type = "hot"; 2351 }; 2352 }; 2353 }; 2354 2355 cpu0-thermal { 2356 polling-delay-passive = <250>; 2357 polling-delay = <1000>; 2358 2359 thermal-sensors = <&tsens 3>; 2360 2361 trips { 2362 cpu0_alert0: trip-point0 { 2363 temperature = <70000>; 2364 hysteresis = <1000>; 2365 type = "passive"; 2366 }; 2367 2368 cpu0_crit: cpu_crit { 2369 temperature = <110000>; 2370 hysteresis = <1000>; 2371 type = "critical"; 2372 }; 2373 }; 2374 }; 2375 2376 cpu1-thermal { 2377 polling-delay-passive = <250>; 2378 polling-delay = <1000>; 2379 2380 thermal-sensors = <&tsens 4>; 2381 2382 trips { 2383 cpu1_alert0: trip-point0 { 2384 temperature = <70000>; 2385 hysteresis = <1000>; 2386 type = "passive"; 2387 }; 2388 2389 cpu1_crit: cpu_crit { 2390 temperature = <110000>; 2391 hysteresis = <1000>; 2392 type = "critical"; 2393 }; 2394 }; 2395 }; 2396 2397 cpu2-thermal { 2398 polling-delay-passive = <250>; 2399 polling-delay = <1000>; 2400 2401 thermal-sensors = <&tsens 5>; 2402 2403 trips { 2404 cpu2_alert0: trip-point0 { 2405 temperature = <70000>; 2406 hysteresis = <1000>; 2407 type = "passive"; 2408 }; 2409 2410 cpu2_crit: cpu_crit { 2411 temperature = <110000>; 2412 hysteresis = <1000>; 2413 type = "critical"; 2414 }; 2415 }; 2416 }; 2417 2418 cpu3-thermal { 2419 polling-delay-passive = <250>; 2420 polling-delay = <1000>; 2421 2422 thermal-sensors = <&tsens 6>; 2423 2424 trips { 2425 cpu3_alert0: trip-point0 { 2426 temperature = <70000>; 2427 hysteresis = <1000>; 2428 type = "passive"; 2429 }; 2430 2431 cpu3_crit: cpu_crit { 2432 temperature = <110000>; 2433 hysteresis = <1000>; 2434 type = "critical"; 2435 }; 2436 }; 2437 }; 2438 2439 /* 2440 * According to what downstream DTS says, 2441 * the entire power efficient cluster has 2442 * only a single thermal sensor. 2443 */ 2444 2445 pwr-cluster-thermal { 2446 polling-delay-passive = <250>; 2447 polling-delay = <1000>; 2448 2449 thermal-sensors = <&tsens 7>; 2450 2451 trips { 2452 pwr_cluster_alert0: trip-point0 { 2453 temperature = <70000>; 2454 hysteresis = <1000>; 2455 type = "passive"; 2456 }; 2457 2458 pwr_cluster_crit: cpu_crit { 2459 temperature = <110000>; 2460 hysteresis = <1000>; 2461 type = "critical"; 2462 }; 2463 }; 2464 }; 2465 2466 gpu-thermal { 2467 polling-delay-passive = <250>; 2468 polling-delay = <1000>; 2469 2470 thermal-sensors = <&tsens 8>; 2471 2472 trips { 2473 gpu_alert0: trip-point0 { 2474 temperature = <90000>; 2475 hysteresis = <1000>; 2476 type = "hot"; 2477 }; 2478 }; 2479 }; 2480 }; 2481 2482 timer { 2483 compatible = "arm,armv8-timer"; 2484 interrupts = <GIC_PPI 1 0xf08>, 2485 <GIC_PPI 2 0xf08>, 2486 <GIC_PPI 3 0xf08>, 2487 <GIC_PPI 0 0xf08>; 2488 }; 2489}; 2490 2491