1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3 4#include <dt-bindings/clock/qcom,gcc-msm8960.h> 5#include <dt-bindings/clock/qcom,lcc-msm8960.h> 6#include <dt-bindings/reset/qcom,gcc-msm8960.h> 7#include <dt-bindings/clock/qcom,mmcc-msm8960.h> 8#include <dt-bindings/clock/qcom,rpmcc.h> 9#include <dt-bindings/soc/qcom,gsbi.h> 10#include <dt-bindings/interrupt-controller/irq.h> 11#include <dt-bindings/interrupt-controller/arm-gic.h> 12/ { 13 #address-cells = <1>; 14 #size-cells = <1>; 15 model = "Qualcomm APQ8064"; 16 compatible = "qcom,apq8064"; 17 interrupt-parent = <&intc>; 18 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 22 ranges; 23 24 smem_region: smem@80000000 { 25 reg = <0x80000000 0x200000>; 26 no-map; 27 }; 28 29 wcnss_mem: wcnss@8f000000 { 30 reg = <0x8f000000 0x700000>; 31 no-map; 32 }; 33 }; 34 35 cpus { 36 #address-cells = <1>; 37 #size-cells = <0>; 38 39 CPU0: cpu@0 { 40 compatible = "qcom,krait"; 41 enable-method = "qcom,kpss-acc-v1"; 42 device_type = "cpu"; 43 reg = <0>; 44 next-level-cache = <&L2>; 45 qcom,acc = <&acc0>; 46 qcom,saw = <&saw0>; 47 cpu-idle-states = <&CPU_SPC>; 48 }; 49 50 CPU1: cpu@1 { 51 compatible = "qcom,krait"; 52 enable-method = "qcom,kpss-acc-v1"; 53 device_type = "cpu"; 54 reg = <1>; 55 next-level-cache = <&L2>; 56 qcom,acc = <&acc1>; 57 qcom,saw = <&saw1>; 58 cpu-idle-states = <&CPU_SPC>; 59 }; 60 61 CPU2: cpu@2 { 62 compatible = "qcom,krait"; 63 enable-method = "qcom,kpss-acc-v1"; 64 device_type = "cpu"; 65 reg = <2>; 66 next-level-cache = <&L2>; 67 qcom,acc = <&acc2>; 68 qcom,saw = <&saw2>; 69 cpu-idle-states = <&CPU_SPC>; 70 }; 71 72 CPU3: cpu@3 { 73 compatible = "qcom,krait"; 74 enable-method = "qcom,kpss-acc-v1"; 75 device_type = "cpu"; 76 reg = <3>; 77 next-level-cache = <&L2>; 78 qcom,acc = <&acc3>; 79 qcom,saw = <&saw3>; 80 cpu-idle-states = <&CPU_SPC>; 81 }; 82 83 L2: l2-cache { 84 compatible = "cache"; 85 cache-level = <2>; 86 cache-unified; 87 }; 88 89 idle-states { 90 CPU_SPC: spc { 91 compatible = "qcom,idle-state-spc", 92 "arm,idle-state"; 93 entry-latency-us = <400>; 94 exit-latency-us = <900>; 95 min-residency-us = <3000>; 96 }; 97 }; 98 }; 99 100 memory@0 { 101 device_type = "memory"; 102 reg = <0x0 0x0>; 103 }; 104 105 thermal-zones { 106 cpu0-thermal { 107 polling-delay-passive = <250>; 108 polling-delay = <1000>; 109 110 thermal-sensors = <&tsens 7>; 111 coefficients = <1199 0>; 112 113 trips { 114 cpu_alert0: trip0 { 115 temperature = <75000>; 116 hysteresis = <2000>; 117 type = "passive"; 118 }; 119 cpu_crit0: trip1 { 120 temperature = <110000>; 121 hysteresis = <2000>; 122 type = "critical"; 123 }; 124 }; 125 }; 126 127 cpu1-thermal { 128 polling-delay-passive = <250>; 129 polling-delay = <1000>; 130 131 thermal-sensors = <&tsens 8>; 132 coefficients = <1132 0>; 133 134 trips { 135 cpu_alert1: trip0 { 136 temperature = <75000>; 137 hysteresis = <2000>; 138 type = "passive"; 139 }; 140 cpu_crit1: trip1 { 141 temperature = <110000>; 142 hysteresis = <2000>; 143 type = "critical"; 144 }; 145 }; 146 }; 147 148 cpu2-thermal { 149 polling-delay-passive = <250>; 150 polling-delay = <1000>; 151 152 thermal-sensors = <&tsens 9>; 153 coefficients = <1199 0>; 154 155 trips { 156 cpu_alert2: trip0 { 157 temperature = <75000>; 158 hysteresis = <2000>; 159 type = "passive"; 160 }; 161 cpu_crit2: trip1 { 162 temperature = <110000>; 163 hysteresis = <2000>; 164 type = "critical"; 165 }; 166 }; 167 }; 168 169 cpu3-thermal { 170 polling-delay-passive = <250>; 171 polling-delay = <1000>; 172 173 thermal-sensors = <&tsens 10>; 174 coefficients = <1132 0>; 175 176 trips { 177 cpu_alert3: trip0 { 178 temperature = <75000>; 179 hysteresis = <2000>; 180 type = "passive"; 181 }; 182 cpu_crit3: trip1 { 183 temperature = <110000>; 184 hysteresis = <2000>; 185 type = "critical"; 186 }; 187 }; 188 }; 189 }; 190 191 cpu-pmu { 192 compatible = "qcom,krait-pmu"; 193 interrupts = <1 10 0x304>; 194 }; 195 196 clocks { 197 cxo_board: cxo_board { 198 compatible = "fixed-clock"; 199 #clock-cells = <0>; 200 clock-frequency = <19200000>; 201 }; 202 203 pxo_board: pxo_board { 204 compatible = "fixed-clock"; 205 #clock-cells = <0>; 206 clock-frequency = <27000000>; 207 }; 208 209 sleep_clk: sleep_clk { 210 compatible = "fixed-clock"; 211 #clock-cells = <0>; 212 clock-frequency = <32768>; 213 }; 214 }; 215 216 sfpb_mutex: hwmutex { 217 compatible = "qcom,sfpb-mutex"; 218 syscon = <&sfpb_wrapper_mutex 0x604 0x4>; 219 #hwlock-cells = <1>; 220 }; 221 222 smem { 223 compatible = "qcom,smem"; 224 memory-region = <&smem_region>; 225 226 hwlocks = <&sfpb_mutex 3>; 227 }; 228 229 smsm { 230 compatible = "qcom,smsm"; 231 232 #address-cells = <1>; 233 #size-cells = <0>; 234 235 qcom,ipc-1 = <&l2cc 8 4>; 236 qcom,ipc-2 = <&l2cc 8 14>; 237 qcom,ipc-3 = <&l2cc 8 23>; 238 qcom,ipc-4 = <&sps_sic_non_secure 0x4094 0>; 239 240 apps_smsm: apps@0 { 241 reg = <0>; 242 #qcom,smem-state-cells = <1>; 243 }; 244 245 modem_smsm: modem@1 { 246 reg = <1>; 247 interrupts = <0 38 IRQ_TYPE_EDGE_RISING>; 248 249 interrupt-controller; 250 #interrupt-cells = <2>; 251 }; 252 253 q6_smsm: q6@2 { 254 reg = <2>; 255 interrupts = <0 89 IRQ_TYPE_EDGE_RISING>; 256 257 interrupt-controller; 258 #interrupt-cells = <2>; 259 }; 260 261 wcnss_smsm: wcnss@3 { 262 reg = <3>; 263 interrupts = <0 204 IRQ_TYPE_EDGE_RISING>; 264 265 interrupt-controller; 266 #interrupt-cells = <2>; 267 }; 268 269 dsps_smsm: dsps@4 { 270 reg = <4>; 271 interrupts = <0 137 IRQ_TYPE_EDGE_RISING>; 272 273 interrupt-controller; 274 #interrupt-cells = <2>; 275 }; 276 }; 277 278 firmware { 279 scm { 280 compatible = "qcom,scm-apq8064", "qcom,scm"; 281 282 clocks = <&rpmcc RPM_DAYTONA_FABRIC_CLK>; 283 clock-names = "core"; 284 }; 285 }; 286 287 288 /* 289 * These channels from the ADC are simply hardware monitors. 290 * That is why the ADC is referred to as "HKADC" - HouseKeeping 291 * ADC. 292 */ 293 iio-hwmon { 294 compatible = "iio-hwmon"; 295 io-channels = <&xoadc 0x00 0x01>, /* Battery */ 296 <&xoadc 0x00 0x02>, /* DC in (charger) */ 297 <&xoadc 0x00 0x04>, /* VPH the main system voltage */ 298 <&xoadc 0x00 0x0b>, /* Die temperature */ 299 <&xoadc 0x00 0x0c>, /* Reference voltage 1.25V */ 300 <&xoadc 0x00 0x0d>, /* Reference voltage 0.625V */ 301 <&xoadc 0x00 0x0e>; /* Charger temperature */ 302 }; 303 304 soc: soc { 305 #address-cells = <1>; 306 #size-cells = <1>; 307 ranges; 308 compatible = "simple-bus"; 309 310 tlmm_pinmux: pinctrl@800000 { 311 compatible = "qcom,apq8064-pinctrl"; 312 reg = <0x800000 0x4000>; 313 314 gpio-controller; 315 gpio-ranges = <&tlmm_pinmux 0 0 90>; 316 #gpio-cells = <2>; 317 interrupt-controller; 318 #interrupt-cells = <2>; 319 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>; 320 321 pinctrl-names = "default"; 322 pinctrl-0 = <&ps_hold>; 323 }; 324 325 sfpb_wrapper_mutex: syscon@1200000 { 326 compatible = "syscon"; 327 reg = <0x01200000 0x8000>; 328 }; 329 330 intc: interrupt-controller@2000000 { 331 compatible = "qcom,msm-qgic2"; 332 interrupt-controller; 333 #interrupt-cells = <3>; 334 reg = <0x02000000 0x1000>, 335 <0x02002000 0x1000>; 336 }; 337 338 timer@200a000 { 339 compatible = "qcom,kpss-wdt-apq8064", "qcom,kpss-timer", 340 "qcom,msm-timer"; 341 interrupts = <1 1 0x301>, 342 <1 2 0x301>, 343 <1 3 0x301>; 344 reg = <0x0200a000 0x100>; 345 clock-frequency = <27000000>; 346 cpu-offset = <0x80000>; 347 }; 348 349 acc0: clock-controller@2088000 { 350 compatible = "qcom,kpss-acc-v1"; 351 reg = <0x02088000 0x1000>, <0x02008000 0x1000>; 352 clocks = <&gcc PLL8_VOTE>, <&pxo_board>; 353 clock-names = "pll8_vote", "pxo"; 354 clock-output-names = "acpu0_aux"; 355 #clock-cells = <0>; 356 }; 357 358 acc1: clock-controller@2098000 { 359 compatible = "qcom,kpss-acc-v1"; 360 reg = <0x02098000 0x1000>, <0x02008000 0x1000>; 361 clocks = <&gcc PLL8_VOTE>, <&pxo_board>; 362 clock-names = "pll8_vote", "pxo"; 363 clock-output-names = "acpu1_aux"; 364 #clock-cells = <0>; 365 }; 366 367 acc2: clock-controller@20a8000 { 368 compatible = "qcom,kpss-acc-v1"; 369 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>; 370 clocks = <&gcc PLL8_VOTE>, <&pxo_board>; 371 clock-names = "pll8_vote", "pxo"; 372 clock-output-names = "acpu2_aux"; 373 #clock-cells = <0>; 374 }; 375 376 acc3: clock-controller@20b8000 { 377 compatible = "qcom,kpss-acc-v1"; 378 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>; 379 clocks = <&gcc PLL8_VOTE>, <&pxo_board>; 380 clock-names = "pll8_vote", "pxo"; 381 clock-output-names = "acpu3_aux"; 382 #clock-cells = <0>; 383 }; 384 385 saw0: power-controller@2089000 { 386 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; 387 reg = <0x02089000 0x1000>, <0x02009000 0x1000>; 388 regulator; 389 }; 390 391 saw1: power-controller@2099000 { 392 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; 393 reg = <0x02099000 0x1000>, <0x02009000 0x1000>; 394 regulator; 395 }; 396 397 saw2: power-controller@20a9000 { 398 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; 399 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>; 400 regulator; 401 }; 402 403 saw3: power-controller@20b9000 { 404 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2"; 405 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>; 406 regulator; 407 }; 408 409 sps_sic_non_secure: sps-sic-non-secure@12100000 { 410 compatible = "syscon"; 411 reg = <0x12100000 0x10000>; 412 }; 413 414 gsbi1: gsbi@12440000 { 415 status = "disabled"; 416 compatible = "qcom,gsbi-v1.0.0"; 417 cell-index = <1>; 418 reg = <0x12440000 0x100>; 419 clocks = <&gcc GSBI1_H_CLK>; 420 clock-names = "iface"; 421 #address-cells = <1>; 422 #size-cells = <1>; 423 ranges; 424 425 syscon-tcsr = <&tcsr>; 426 427 gsbi1_serial: serial@12450000 { 428 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; 429 reg = <0x12450000 0x100>, 430 <0x12400000 0x03>; 431 interrupts = <0 193 IRQ_TYPE_LEVEL_HIGH>; 432 clocks = <&gcc GSBI1_UART_CLK>, <&gcc GSBI1_H_CLK>; 433 clock-names = "core", "iface"; 434 status = "disabled"; 435 }; 436 437 gsbi1_i2c: i2c@12460000 { 438 compatible = "qcom,i2c-qup-v1.1.1"; 439 pinctrl-0 = <&i2c1_pins>; 440 pinctrl-1 = <&i2c1_pins_sleep>; 441 pinctrl-names = "default", "sleep"; 442 reg = <0x12460000 0x1000>; 443 interrupts = <0 194 IRQ_TYPE_LEVEL_HIGH>; 444 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>; 445 clock-names = "core", "iface"; 446 #address-cells = <1>; 447 #size-cells = <0>; 448 status = "disabled"; 449 }; 450 451 }; 452 453 gsbi2: gsbi@12480000 { 454 status = "disabled"; 455 compatible = "qcom,gsbi-v1.0.0"; 456 cell-index = <2>; 457 reg = <0x12480000 0x100>; 458 clocks = <&gcc GSBI2_H_CLK>; 459 clock-names = "iface"; 460 #address-cells = <1>; 461 #size-cells = <1>; 462 ranges; 463 464 syscon-tcsr = <&tcsr>; 465 466 gsbi2_i2c: i2c@124a0000 { 467 compatible = "qcom,i2c-qup-v1.1.1"; 468 reg = <0x124a0000 0x1000>; 469 pinctrl-0 = <&i2c2_pins>; 470 pinctrl-1 = <&i2c2_pins_sleep>; 471 pinctrl-names = "default", "sleep"; 472 interrupts = <0 196 IRQ_TYPE_LEVEL_HIGH>; 473 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>; 474 clock-names = "core", "iface"; 475 #address-cells = <1>; 476 #size-cells = <0>; 477 status = "disabled"; 478 }; 479 }; 480 481 gsbi3: gsbi@16200000 { 482 status = "disabled"; 483 compatible = "qcom,gsbi-v1.0.0"; 484 cell-index = <3>; 485 reg = <0x16200000 0x100>; 486 clocks = <&gcc GSBI3_H_CLK>; 487 clock-names = "iface"; 488 #address-cells = <1>; 489 #size-cells = <1>; 490 ranges; 491 gsbi3_i2c: i2c@16280000 { 492 compatible = "qcom,i2c-qup-v1.1.1"; 493 pinctrl-0 = <&i2c3_pins>; 494 pinctrl-1 = <&i2c3_pins_sleep>; 495 pinctrl-names = "default", "sleep"; 496 reg = <0x16280000 0x1000>; 497 interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>; 498 clocks = <&gcc GSBI3_QUP_CLK>, 499 <&gcc GSBI3_H_CLK>; 500 clock-names = "core", "iface"; 501 #address-cells = <1>; 502 #size-cells = <0>; 503 status = "disabled"; 504 }; 505 }; 506 507 gsbi4: gsbi@16300000 { 508 status = "disabled"; 509 compatible = "qcom,gsbi-v1.0.0"; 510 cell-index = <4>; 511 reg = <0x16300000 0x03>; 512 clocks = <&gcc GSBI4_H_CLK>; 513 clock-names = "iface"; 514 #address-cells = <1>; 515 #size-cells = <1>; 516 ranges; 517 518 gsbi4_serial: serial@16340000 { 519 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; 520 reg = <0x16340000 0x100>, 521 <0x16300000 0x3>; 522 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; 523 pinctrl-0 = <&gsbi4_uart_pin_a>; 524 pinctrl-names = "default"; 525 clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>; 526 clock-names = "core", "iface"; 527 status = "disabled"; 528 }; 529 530 gsbi4_i2c: i2c@16380000 { 531 compatible = "qcom,i2c-qup-v1.1.1"; 532 pinctrl-0 = <&i2c4_pins>; 533 pinctrl-1 = <&i2c4_pins_sleep>; 534 pinctrl-names = "default", "sleep"; 535 reg = <0x16380000 0x1000>; 536 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; 537 clocks = <&gcc GSBI4_QUP_CLK>, 538 <&gcc GSBI4_H_CLK>; 539 clock-names = "core", "iface"; 540 status = "disabled"; 541 }; 542 }; 543 544 gsbi5: gsbi@1a200000 { 545 status = "disabled"; 546 compatible = "qcom,gsbi-v1.0.0"; 547 cell-index = <5>; 548 reg = <0x1a200000 0x03>; 549 clocks = <&gcc GSBI5_H_CLK>; 550 clock-names = "iface"; 551 #address-cells = <1>; 552 #size-cells = <1>; 553 ranges; 554 555 gsbi5_serial: serial@1a240000 { 556 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; 557 reg = <0x1a240000 0x100>, 558 <0x1a200000 0x03>; 559 interrupts = <0 154 IRQ_TYPE_LEVEL_HIGH>; 560 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>; 561 clock-names = "core", "iface"; 562 status = "disabled"; 563 }; 564 565 gsbi5_spi: spi@1a280000 { 566 compatible = "qcom,spi-qup-v1.1.1"; 567 reg = <0x1a280000 0x1000>; 568 interrupts = <0 155 IRQ_TYPE_LEVEL_HIGH>; 569 pinctrl-0 = <&spi5_default>; 570 pinctrl-1 = <&spi5_sleep>; 571 pinctrl-names = "default", "sleep"; 572 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>; 573 clock-names = "core", "iface"; 574 status = "disabled"; 575 #address-cells = <1>; 576 #size-cells = <0>; 577 }; 578 }; 579 580 gsbi6: gsbi@16500000 { 581 status = "disabled"; 582 compatible = "qcom,gsbi-v1.0.0"; 583 cell-index = <6>; 584 reg = <0x16500000 0x03>; 585 clocks = <&gcc GSBI6_H_CLK>; 586 clock-names = "iface"; 587 #address-cells = <1>; 588 #size-cells = <1>; 589 ranges; 590 591 gsbi6_serial: serial@16540000 { 592 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; 593 reg = <0x16540000 0x100>, 594 <0x16500000 0x03>; 595 interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; 596 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>; 597 clock-names = "core", "iface"; 598 status = "disabled"; 599 }; 600 601 gsbi6_i2c: i2c@16580000 { 602 compatible = "qcom,i2c-qup-v1.1.1"; 603 pinctrl-0 = <&i2c6_pins>; 604 pinctrl-1 = <&i2c6_pins_sleep>; 605 pinctrl-names = "default", "sleep"; 606 reg = <0x16580000 0x1000>; 607 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; 608 clocks = <&gcc GSBI6_QUP_CLK>, 609 <&gcc GSBI6_H_CLK>; 610 clock-names = "core", "iface"; 611 status = "disabled"; 612 }; 613 }; 614 615 gsbi7: gsbi@16600000 { 616 status = "disabled"; 617 compatible = "qcom,gsbi-v1.0.0"; 618 cell-index = <7>; 619 reg = <0x16600000 0x100>; 620 clocks = <&gcc GSBI7_H_CLK>; 621 clock-names = "iface"; 622 #address-cells = <1>; 623 #size-cells = <1>; 624 ranges; 625 syscon-tcsr = <&tcsr>; 626 627 gsbi7_serial: serial@16640000 { 628 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; 629 reg = <0x16640000 0x1000>, 630 <0x16600000 0x1000>; 631 interrupts = <0 158 IRQ_TYPE_LEVEL_HIGH>; 632 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>; 633 clock-names = "core", "iface"; 634 status = "disabled"; 635 }; 636 637 gsbi7_i2c: i2c@16680000 { 638 compatible = "qcom,i2c-qup-v1.1.1"; 639 pinctrl-0 = <&i2c7_pins>; 640 pinctrl-1 = <&i2c7_pins_sleep>; 641 pinctrl-names = "default", "sleep"; 642 reg = <0x16680000 0x1000>; 643 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; 644 clocks = <&gcc GSBI7_QUP_CLK>, 645 <&gcc GSBI7_H_CLK>; 646 clock-names = "core", "iface"; 647 status = "disabled"; 648 }; 649 }; 650 651 rng@1a500000 { 652 compatible = "qcom,prng"; 653 reg = <0x1a500000 0x200>; 654 clocks = <&gcc PRNG_CLK>; 655 clock-names = "core"; 656 }; 657 658 ssbi@c00000 { 659 compatible = "qcom,ssbi"; 660 reg = <0x00c00000 0x1000>; 661 qcom,controller-type = "pmic-arbiter"; 662 663 pm8821: pmic { 664 compatible = "qcom,pm8821"; 665 interrupt-parent = <&tlmm_pinmux>; 666 interrupts = <76 IRQ_TYPE_LEVEL_LOW>; 667 #interrupt-cells = <2>; 668 interrupt-controller; 669 #address-cells = <1>; 670 #size-cells = <0>; 671 672 pm8821_mpps: mpps@50 { 673 compatible = "qcom,pm8821-mpp", "qcom,ssbi-mpp"; 674 reg = <0x50>; 675 interrupt-controller; 676 #interrupt-cells = <2>; 677 gpio-controller; 678 #gpio-cells = <2>; 679 gpio-ranges = <&pm8821_mpps 0 0 4>; 680 }; 681 }; 682 }; 683 684 ssbi@500000 { 685 compatible = "qcom,ssbi"; 686 reg = <0x00500000 0x1000>; 687 qcom,controller-type = "pmic-arbiter"; 688 689 pmicintc: pmic { 690 compatible = "qcom,pm8921"; 691 interrupt-parent = <&tlmm_pinmux>; 692 interrupts = <74 8>; 693 #interrupt-cells = <2>; 694 interrupt-controller; 695 #address-cells = <1>; 696 #size-cells = <0>; 697 698 pm8921_gpio: gpio@150 { 699 700 compatible = "qcom,pm8921-gpio", 701 "qcom,ssbi-gpio"; 702 reg = <0x150>; 703 interrupt-controller; 704 #interrupt-cells = <2>; 705 gpio-controller; 706 gpio-ranges = <&pm8921_gpio 0 0 44>; 707 #gpio-cells = <2>; 708 709 }; 710 711 pm8921_mpps: mpps@50 { 712 compatible = "qcom,pm8921-mpp", 713 "qcom,ssbi-mpp"; 714 reg = <0x50>; 715 gpio-controller; 716 #gpio-cells = <2>; 717 gpio-ranges = <&pm8921_mpps 0 0 12>; 718 interrupt-controller; 719 #interrupt-cells = <2>; 720 }; 721 722 rtc@11d { 723 compatible = "qcom,pm8921-rtc"; 724 interrupt-parent = <&pmicintc>; 725 interrupts = <39 1>; 726 reg = <0x11d>; 727 allow-set-time; 728 }; 729 730 pwrkey@1c { 731 compatible = "qcom,pm8921-pwrkey"; 732 reg = <0x1c>; 733 interrupt-parent = <&pmicintc>; 734 interrupts = <50 1>, <51 1>; 735 debounce = <15625>; 736 pull-up; 737 }; 738 739 xoadc: xoadc@197 { 740 compatible = "qcom,pm8921-adc"; 741 reg = <0x197>; 742 interrupts-extended = <&pmicintc 78 IRQ_TYPE_EDGE_RISING>; 743 #address-cells = <2>; 744 #size-cells = <0>; 745 #io-channel-cells = <2>; 746 747 vcoin: adc-channel@0 { 748 reg = <0x00 0x00>; 749 }; 750 vbat: adc-channel@1 { 751 reg = <0x00 0x01>; 752 }; 753 dcin: adc-channel@2 { 754 reg = <0x00 0x02>; 755 }; 756 vph_pwr: adc-channel@4 { 757 reg = <0x00 0x04>; 758 }; 759 batt_therm: adc-channel@8 { 760 reg = <0x00 0x08>; 761 }; 762 batt_id: adc-channel@9 { 763 reg = <0x00 0x09>; 764 }; 765 usb_vbus: adc-channel@a { 766 reg = <0x00 0x0a>; 767 }; 768 die_temp: adc-channel@b { 769 reg = <0x00 0x0b>; 770 }; 771 ref_625mv: adc-channel@c { 772 reg = <0x00 0x0c>; 773 }; 774 ref_1250mv: adc-channel@d { 775 reg = <0x00 0x0d>; 776 }; 777 chg_temp: adc-channel@e { 778 reg = <0x00 0x0e>; 779 }; 780 ref_muxoff: adc-channel@f { 781 reg = <0x00 0x0f>; 782 }; 783 }; 784 }; 785 }; 786 787 qfprom: qfprom@700000 { 788 compatible = "qcom,apq8064-qfprom", "qcom,qfprom"; 789 reg = <0x00700000 0x1000>; 790 #address-cells = <1>; 791 #size-cells = <1>; 792 ranges; 793 tsens_calib: calib@404 { 794 reg = <0x404 0x10>; 795 }; 796 tsens_backup: backup_calib@414 { 797 reg = <0x414 0x10>; 798 }; 799 }; 800 801 gcc: clock-controller@900000 { 802 compatible = "qcom,gcc-apq8064", "syscon"; 803 reg = <0x00900000 0x4000>; 804 #clock-cells = <1>; 805 #power-domain-cells = <1>; 806 #reset-cells = <1>; 807 clocks = <&cxo_board>, 808 <&pxo_board>, 809 <&lcc PLL4>; 810 clock-names = "cxo", "pxo", "pll4"; 811 812 tsens: thermal-sensor { 813 compatible = "qcom,msm8960-tsens"; 814 815 nvmem-cells = <&tsens_calib>, <&tsens_backup>; 816 nvmem-cell-names = "calib", "calib_backup"; 817 interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>; 818 interrupt-names = "uplow"; 819 820 #qcom,sensors = <11>; 821 #thermal-sensor-cells = <1>; 822 }; 823 }; 824 825 lcc: clock-controller@28000000 { 826 compatible = "qcom,lcc-apq8064"; 827 reg = <0x28000000 0x1000>; 828 #clock-cells = <1>; 829 #reset-cells = <1>; 830 clocks = <&pxo_board>, 831 <&gcc PLL4_VOTE>, 832 <0>, 833 <0>, <0>, 834 <0>, <0>, 835 <0>; 836 clock-names = "pxo", 837 "pll4_vote", 838 "mi2s_codec_clk", 839 "codec_i2s_mic_codec_clk", 840 "spare_i2s_mic_codec_clk", 841 "codec_i2s_spkr_codec_clk", 842 "spare_i2s_spkr_codec_clk", 843 "pcm_codec_clk"; 844 }; 845 846 mmcc: clock-controller@4000000 { 847 compatible = "qcom,mmcc-apq8064"; 848 reg = <0x4000000 0x1000>; 849 #clock-cells = <1>; 850 #power-domain-cells = <1>; 851 #reset-cells = <1>; 852 clocks = <&pxo_board>, 853 <&gcc PLL3>, 854 <&gcc PLL8_VOTE>, 855 <&dsi0_phy 1>, 856 <&dsi0_phy 0>, 857 <&dsi1_phy 1>, 858 <&dsi1_phy 0>, 859 <&hdmi_phy>; 860 clock-names = "pxo", 861 "pll3", 862 "pll8_vote", 863 "dsi1pll", 864 "dsi1pllbyte", 865 "dsi2pll", 866 "dsi2pllbyte", 867 "hdmipll"; 868 }; 869 870 l2cc: clock-controller@2011000 { 871 compatible = "qcom,kpss-gcc-apq8064", "qcom,kpss-gcc", "syscon"; 872 reg = <0x2011000 0x1000>; 873 clocks = <&gcc PLL8_VOTE>, <&pxo_board>; 874 clock-names = "pll8_vote", "pxo"; 875 #clock-cells = <0>; 876 }; 877 878 rpm: rpm@108000 { 879 compatible = "qcom,rpm-apq8064"; 880 reg = <0x108000 0x1000>; 881 qcom,ipc = <&l2cc 0x8 2>; 882 883 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>, 884 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>, 885 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>; 886 interrupt-names = "ack", "err", "wakeup"; 887 888 rpmcc: clock-controller { 889 compatible = "qcom,rpmcc-apq8064", "qcom,rpmcc"; 890 #clock-cells = <1>; 891 clocks = <&pxo_board>, <&cxo_board>; 892 clock-names = "pxo", "cxo"; 893 }; 894 895 regulators { 896 compatible = "qcom,rpm-pm8921-regulators"; 897 898 pm8921_s1: s1 {}; 899 pm8921_s2: s2 {}; 900 pm8921_s3: s3 {}; 901 pm8921_s4: s4 {}; 902 pm8921_s7: s7 {}; 903 pm8921_s8: s8 {}; 904 905 pm8921_l1: l1 {}; 906 pm8921_l2: l2 {}; 907 pm8921_l3: l3 {}; 908 pm8921_l4: l4 {}; 909 pm8921_l5: l5 {}; 910 pm8921_l6: l6 {}; 911 pm8921_l7: l7 {}; 912 pm8921_l8: l8 {}; 913 pm8921_l9: l9 {}; 914 pm8921_l10: l10 {}; 915 pm8921_l11: l11 {}; 916 pm8921_l12: l12 {}; 917 pm8921_l14: l14 {}; 918 pm8921_l15: l15 {}; 919 pm8921_l16: l16 {}; 920 pm8921_l17: l17 {}; 921 pm8921_l18: l18 {}; 922 pm8921_l21: l21 {}; 923 pm8921_l22: l22 {}; 924 pm8921_l23: l23 {}; 925 pm8921_l24: l24 {}; 926 pm8921_l25: l25 {}; 927 pm8921_l26: l26 {}; 928 pm8921_l27: l27 {}; 929 pm8921_l28: l28 {}; 930 pm8921_l29: l29 {}; 931 932 pm8921_lvs1: lvs1 {}; 933 pm8921_lvs2: lvs2 {}; 934 pm8921_lvs3: lvs3 {}; 935 pm8921_lvs4: lvs4 {}; 936 pm8921_lvs5: lvs5 {}; 937 pm8921_lvs6: lvs6 {}; 938 pm8921_lvs7: lvs7 {}; 939 940 pm8921_usb_switch: usb-switch {}; 941 942 pm8921_hdmi_switch: hdmi-switch { 943 bias-pull-down; 944 }; 945 946 pm8921_ncp: ncp {}; 947 }; 948 }; 949 950 usb1: usb@12500000 { 951 compatible = "qcom,ci-hdrc"; 952 reg = <0x12500000 0x200>, 953 <0x12500200 0x200>; 954 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; 955 clocks = <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>; 956 clock-names = "core", "iface"; 957 assigned-clocks = <&gcc USB_HS1_XCVR_CLK>; 958 assigned-clock-rates = <60000000>; 959 resets = <&gcc USB_HS1_RESET>; 960 reset-names = "core"; 961 phy_type = "ulpi"; 962 ahb-burst-config = <0>; 963 phys = <&usb_hs1_phy>; 964 phy-names = "usb-phy"; 965 status = "disabled"; 966 #reset-cells = <1>; 967 968 ulpi { 969 usb_hs1_phy: phy { 970 compatible = "qcom,usb-hs-phy-apq8064", 971 "qcom,usb-hs-phy"; 972 clocks = <&sleep_clk>, <&cxo_board>; 973 clock-names = "sleep", "ref"; 974 resets = <&usb1 0>; 975 reset-names = "por"; 976 #phy-cells = <0>; 977 }; 978 }; 979 }; 980 981 usb3: usb@12520000 { 982 compatible = "qcom,ci-hdrc"; 983 reg = <0x12520000 0x200>, 984 <0x12520200 0x200>; 985 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; 986 clocks = <&gcc USB_HS3_XCVR_CLK>, <&gcc USB_HS3_H_CLK>; 987 clock-names = "core", "iface"; 988 assigned-clocks = <&gcc USB_HS3_XCVR_CLK>; 989 assigned-clock-rates = <60000000>; 990 resets = <&gcc USB_HS3_RESET>; 991 reset-names = "core"; 992 phy_type = "ulpi"; 993 ahb-burst-config = <0>; 994 phys = <&usb_hs3_phy>; 995 phy-names = "usb-phy"; 996 status = "disabled"; 997 #reset-cells = <1>; 998 999 ulpi { 1000 usb_hs3_phy: phy { 1001 compatible = "qcom,usb-hs-phy-apq8064", 1002 "qcom,usb-hs-phy"; 1003 #phy-cells = <0>; 1004 clocks = <&sleep_clk>, <&cxo_board>; 1005 clock-names = "sleep", "ref"; 1006 resets = <&usb3 0>; 1007 reset-names = "por"; 1008 }; 1009 }; 1010 }; 1011 1012 usb4: usb@12530000 { 1013 compatible = "qcom,ci-hdrc"; 1014 reg = <0x12530000 0x200>, 1015 <0x12530200 0x200>; 1016 interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>; 1017 clocks = <&gcc USB_HS4_XCVR_CLK>, <&gcc USB_HS4_H_CLK>; 1018 clock-names = "core", "iface"; 1019 assigned-clocks = <&gcc USB_HS4_XCVR_CLK>; 1020 assigned-clock-rates = <60000000>; 1021 resets = <&gcc USB_HS4_RESET>; 1022 reset-names = "core"; 1023 phy_type = "ulpi"; 1024 ahb-burst-config = <0>; 1025 phys = <&usb_hs4_phy>; 1026 phy-names = "usb-phy"; 1027 status = "disabled"; 1028 #reset-cells = <1>; 1029 1030 ulpi { 1031 usb_hs4_phy: phy { 1032 compatible = "qcom,usb-hs-phy-apq8064", 1033 "qcom,usb-hs-phy"; 1034 #phy-cells = <0>; 1035 clocks = <&sleep_clk>, <&cxo_board>; 1036 clock-names = "sleep", "ref"; 1037 resets = <&usb4 0>; 1038 reset-names = "por"; 1039 }; 1040 }; 1041 }; 1042 1043 sata_phy0: phy@1b400000 { 1044 compatible = "qcom,apq8064-sata-phy"; 1045 status = "disabled"; 1046 reg = <0x1b400000 0x200>; 1047 reg-names = "phy_mem"; 1048 clocks = <&gcc SATA_PHY_CFG_CLK>; 1049 clock-names = "cfg"; 1050 #phy-cells = <0>; 1051 }; 1052 1053 sata0: sata@29000000 { 1054 compatible = "qcom,apq8064-ahci", "generic-ahci"; 1055 status = "disabled"; 1056 reg = <0x29000000 0x180>; 1057 interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>; 1058 1059 clocks = <&gcc SFAB_SATA_S_H_CLK>, 1060 <&gcc SATA_H_CLK>, 1061 <&gcc SATA_A_CLK>, 1062 <&gcc SATA_RXOOB_CLK>, 1063 <&gcc SATA_PMALIVE_CLK>; 1064 clock-names = "slave_iface", 1065 "iface", 1066 "bus", 1067 "rxoob", 1068 "core_pmalive"; 1069 1070 assigned-clocks = <&gcc SATA_RXOOB_CLK>, 1071 <&gcc SATA_PMALIVE_CLK>; 1072 assigned-clock-rates = <100000000>, <100000000>; 1073 1074 phys = <&sata_phy0>; 1075 phy-names = "sata-phy"; 1076 ports-implemented = <0x1>; 1077 }; 1078 1079 sdcc3: mmc@12180000 { 1080 compatible = "arm,pl18x", "arm,primecell"; 1081 arm,primecell-periphid = <0x00051180>; 1082 status = "disabled"; 1083 reg = <0x12180000 0x2000>; 1084 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; 1085 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>; 1086 clock-names = "mclk", "apb_pclk"; 1087 bus-width = <4>; 1088 cap-sd-highspeed; 1089 cap-mmc-highspeed; 1090 max-frequency = <192000000>; 1091 no-1-8-v; 1092 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>; 1093 dma-names = "tx", "rx"; 1094 }; 1095 1096 sdcc3bam: dma-controller@12182000 { 1097 compatible = "qcom,bam-v1.3.0"; 1098 reg = <0x12182000 0x8000>; 1099 interrupts = <0 96 IRQ_TYPE_LEVEL_HIGH>; 1100 clocks = <&gcc SDC3_H_CLK>; 1101 clock-names = "bam_clk"; 1102 #dma-cells = <1>; 1103 qcom,ee = <0>; 1104 }; 1105 1106 sdcc4: mmc@121c0000 { 1107 compatible = "arm,pl18x", "arm,primecell"; 1108 arm,primecell-periphid = <0x00051180>; 1109 status = "disabled"; 1110 reg = <0x121c0000 0x2000>; 1111 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 1112 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>; 1113 clock-names = "mclk", "apb_pclk"; 1114 bus-width = <4>; 1115 cap-sd-highspeed; 1116 cap-mmc-highspeed; 1117 max-frequency = <48000000>; 1118 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>; 1119 dma-names = "tx", "rx"; 1120 pinctrl-names = "default"; 1121 pinctrl-0 = <&sdc4_gpios>; 1122 }; 1123 1124 sdcc4bam: dma-controller@121c2000 { 1125 compatible = "qcom,bam-v1.3.0"; 1126 reg = <0x121c2000 0x8000>; 1127 interrupts = <0 95 IRQ_TYPE_LEVEL_HIGH>; 1128 clocks = <&gcc SDC4_H_CLK>; 1129 clock-names = "bam_clk"; 1130 #dma-cells = <1>; 1131 qcom,ee = <0>; 1132 }; 1133 1134 sdcc1: mmc@12400000 { 1135 status = "disabled"; 1136 compatible = "arm,pl18x", "arm,primecell"; 1137 pinctrl-names = "default"; 1138 pinctrl-0 = <&sdcc1_pins>; 1139 arm,primecell-periphid = <0x00051180>; 1140 reg = <0x12400000 0x2000>; 1141 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 1142 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>; 1143 clock-names = "mclk", "apb_pclk"; 1144 bus-width = <8>; 1145 max-frequency = <96000000>; 1146 non-removable; 1147 cap-sd-highspeed; 1148 cap-mmc-highspeed; 1149 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>; 1150 dma-names = "tx", "rx"; 1151 }; 1152 1153 sdcc1bam: dma-controller@12402000 { 1154 compatible = "qcom,bam-v1.3.0"; 1155 reg = <0x12402000 0x8000>; 1156 interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>; 1157 clocks = <&gcc SDC1_H_CLK>; 1158 clock-names = "bam_clk"; 1159 #dma-cells = <1>; 1160 qcom,ee = <0>; 1161 }; 1162 1163 tcsr: syscon@1a400000 { 1164 compatible = "qcom,tcsr-apq8064", "syscon"; 1165 reg = <0x1a400000 0x100>; 1166 }; 1167 1168 gpu: adreno-3xx@4300000 { 1169 compatible = "qcom,adreno-320.2", "qcom,adreno"; 1170 reg = <0x04300000 0x20000>; 1171 reg-names = "kgsl_3d0_reg_memory"; 1172 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; 1173 interrupt-names = "kgsl_3d0_irq"; 1174 clock-names = 1175 "core", 1176 "iface", 1177 "mem", 1178 "mem_iface"; 1179 clocks = 1180 <&mmcc GFX3D_CLK>, 1181 <&mmcc GFX3D_AHB_CLK>, 1182 <&mmcc GFX3D_AXI_CLK>, 1183 <&mmcc MMSS_IMEM_AHB_CLK>; 1184 1185 iommus = <&gfx3d 0 1186 &gfx3d 1 1187 &gfx3d 2 1188 &gfx3d 3 1189 &gfx3d 4 1190 &gfx3d 5 1191 &gfx3d 6 1192 &gfx3d 7 1193 &gfx3d 8 1194 &gfx3d 9 1195 &gfx3d 10 1196 &gfx3d 11 1197 &gfx3d 12 1198 &gfx3d 13 1199 &gfx3d 14 1200 &gfx3d 15 1201 &gfx3d 16 1202 &gfx3d 17 1203 &gfx3d 18 1204 &gfx3d 19 1205 &gfx3d 20 1206 &gfx3d 21 1207 &gfx3d 22 1208 &gfx3d 23 1209 &gfx3d 24 1210 &gfx3d 25 1211 &gfx3d 26 1212 &gfx3d 27 1213 &gfx3d 28 1214 &gfx3d 29 1215 &gfx3d 30 1216 &gfx3d 31 1217 &gfx3d1 0 1218 &gfx3d1 1 1219 &gfx3d1 2 1220 &gfx3d1 3 1221 &gfx3d1 4 1222 &gfx3d1 5 1223 &gfx3d1 6 1224 &gfx3d1 7 1225 &gfx3d1 8 1226 &gfx3d1 9 1227 &gfx3d1 10 1228 &gfx3d1 11 1229 &gfx3d1 12 1230 &gfx3d1 13 1231 &gfx3d1 14 1232 &gfx3d1 15 1233 &gfx3d1 16 1234 &gfx3d1 17 1235 &gfx3d1 18 1236 &gfx3d1 19 1237 &gfx3d1 20 1238 &gfx3d1 21 1239 &gfx3d1 22 1240 &gfx3d1 23 1241 &gfx3d1 24 1242 &gfx3d1 25 1243 &gfx3d1 26 1244 &gfx3d1 27 1245 &gfx3d1 28 1246 &gfx3d1 29 1247 &gfx3d1 30 1248 &gfx3d1 31>; 1249 1250 operating-points-v2 = <&gpu_opp_table>; 1251 1252 gpu_opp_table: opp-table { 1253 compatible = "operating-points-v2"; 1254 1255 opp-450000000 { 1256 opp-hz = /bits/ 64 <450000000>; 1257 }; 1258 1259 opp-27000000 { 1260 opp-hz = /bits/ 64 <27000000>; 1261 }; 1262 }; 1263 }; 1264 1265 mmss_sfpb: syscon@5700000 { 1266 compatible = "syscon"; 1267 reg = <0x5700000 0x70>; 1268 }; 1269 1270 dsi0: dsi@4700000 { 1271 compatible = "qcom,apq8064-dsi-ctrl", 1272 "qcom,mdss-dsi-ctrl"; 1273 #address-cells = <1>; 1274 #size-cells = <0>; 1275 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 1276 reg = <0x04700000 0x200>; 1277 reg-names = "dsi_ctrl"; 1278 1279 clocks = <&mmcc DSI_M_AHB_CLK>, 1280 <&mmcc DSI_S_AHB_CLK>, 1281 <&mmcc AMP_AHB_CLK>, 1282 <&mmcc DSI_CLK>, 1283 <&mmcc DSI1_BYTE_CLK>, 1284 <&mmcc DSI_PIXEL_CLK>, 1285 <&mmcc DSI1_ESC_CLK>; 1286 clock-names = "iface", "bus", "core_mmss", 1287 "src", "byte", "pixel", 1288 "core"; 1289 1290 assigned-clocks = <&mmcc DSI1_BYTE_SRC>, 1291 <&mmcc DSI1_ESC_SRC>, 1292 <&mmcc DSI_SRC>, 1293 <&mmcc DSI_PIXEL_SRC>; 1294 assigned-clock-parents = <&dsi0_phy 0>, 1295 <&dsi0_phy 0>, 1296 <&dsi0_phy 1>, 1297 <&dsi0_phy 1>; 1298 syscon-sfpb = <&mmss_sfpb>; 1299 phys = <&dsi0_phy>; 1300 status = "disabled"; 1301 1302 ports { 1303 #address-cells = <1>; 1304 #size-cells = <0>; 1305 1306 port@0 { 1307 reg = <0>; 1308 dsi0_in: endpoint { 1309 }; 1310 }; 1311 1312 port@1 { 1313 reg = <1>; 1314 dsi0_out: endpoint { 1315 }; 1316 }; 1317 }; 1318 }; 1319 1320 1321 dsi0_phy: phy@4700200 { 1322 compatible = "qcom,dsi-phy-28nm-8960"; 1323 #clock-cells = <1>; 1324 #phy-cells = <0>; 1325 1326 reg = <0x04700200 0x100>, 1327 <0x04700300 0x200>, 1328 <0x04700500 0x5c>; 1329 reg-names = "dsi_pll", "dsi_phy", "dsi_phy_regulator"; 1330 clock-names = "iface", "ref"; 1331 clocks = <&mmcc DSI_M_AHB_CLK>, 1332 <&pxo_board>; 1333 status = "disabled"; 1334 }; 1335 1336 dsi1: dsi@5800000 { 1337 compatible = "qcom,mdss-dsi-ctrl"; 1338 interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>; 1339 reg = <0x05800000 0x200>; 1340 reg-names = "dsi_ctrl"; 1341 1342 clocks = <&mmcc DSI2_M_AHB_CLK>, 1343 <&mmcc DSI2_S_AHB_CLK>, 1344 <&mmcc AMP_AHB_CLK>, 1345 <&mmcc DSI2_CLK>, 1346 <&mmcc DSI2_BYTE_CLK>, 1347 <&mmcc DSI2_PIXEL_CLK>, 1348 <&mmcc DSI2_ESC_CLK>; 1349 clock-names = "iface", 1350 "bus", 1351 "core_mmss", 1352 "src", 1353 "byte", 1354 "pixel", 1355 "core"; 1356 1357 assigned-clocks = <&mmcc DSI2_BYTE_SRC>, 1358 <&mmcc DSI2_ESC_SRC>, 1359 <&mmcc DSI2_SRC>, 1360 <&mmcc DSI2_PIXEL_SRC>; 1361 assigned-clock-parents = <&dsi1_phy 0>, 1362 <&dsi1_phy 0>, 1363 <&dsi1_phy 1>, 1364 <&dsi1_phy 1>; 1365 1366 syscon-sfpb = <&mmss_sfpb>; 1367 phys = <&dsi1_phy>; 1368 1369 #address-cells = <1>; 1370 #size-cells = <0>; 1371 1372 status = "disabled"; 1373 1374 ports { 1375 #address-cells = <1>; 1376 #size-cells = <0>; 1377 1378 port@0 { 1379 reg = <0>; 1380 dsi1_in: endpoint { 1381 }; 1382 }; 1383 1384 port@1 { 1385 reg = <1>; 1386 dsi1_out: endpoint { 1387 }; 1388 }; 1389 }; 1390 }; 1391 1392 1393 dsi1_phy: dsi-phy@5800200 { 1394 compatible = "qcom,dsi-phy-28nm-8960"; 1395 reg = <0x05800200 0x100>, 1396 <0x05800300 0x200>, 1397 <0x05800500 0x5c>; 1398 reg-names = "dsi_pll", 1399 "dsi_phy", 1400 "dsi_phy_regulator"; 1401 clock-names = "iface", 1402 "ref"; 1403 clocks = <&mmcc DSI2_M_AHB_CLK>, 1404 <&pxo_board>; 1405 #clock-cells = <1>; 1406 #phy-cells = <0>; 1407 1408 status = "disabled"; 1409 }; 1410 1411 mdp_port0: iommu@7500000 { 1412 compatible = "qcom,apq8064-iommu"; 1413 #iommu-cells = <1>; 1414 clock-names = 1415 "smmu_pclk", 1416 "iommu_clk"; 1417 clocks = 1418 <&mmcc SMMU_AHB_CLK>, 1419 <&mmcc MDP_AXI_CLK>; 1420 reg = <0x07500000 0x100000>; 1421 interrupts = 1422 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>, 1423 <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; 1424 qcom,ncb = <2>; 1425 }; 1426 1427 mdp_port1: iommu@7600000 { 1428 compatible = "qcom,apq8064-iommu"; 1429 #iommu-cells = <1>; 1430 clock-names = 1431 "smmu_pclk", 1432 "iommu_clk"; 1433 clocks = 1434 <&mmcc SMMU_AHB_CLK>, 1435 <&mmcc MDP_AXI_CLK>; 1436 reg = <0x07600000 0x100000>; 1437 interrupts = 1438 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, 1439 <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 1440 qcom,ncb = <2>; 1441 }; 1442 1443 gfx3d: iommu@7c00000 { 1444 compatible = "qcom,apq8064-iommu"; 1445 #iommu-cells = <1>; 1446 clock-names = 1447 "smmu_pclk", 1448 "iommu_clk"; 1449 clocks = 1450 <&mmcc SMMU_AHB_CLK>, 1451 <&mmcc GFX3D_AXI_CLK>; 1452 reg = <0x07c00000 0x100000>; 1453 interrupts = 1454 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, 1455 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; 1456 qcom,ncb = <3>; 1457 }; 1458 1459 gfx3d1: iommu@7d00000 { 1460 compatible = "qcom,apq8064-iommu"; 1461 #iommu-cells = <1>; 1462 clock-names = 1463 "smmu_pclk", 1464 "iommu_clk"; 1465 clocks = 1466 <&mmcc SMMU_AHB_CLK>, 1467 <&mmcc GFX3D_AXI_CLK>; 1468 reg = <0x07d00000 0x100000>; 1469 interrupts = 1470 <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>, 1471 <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>; 1472 qcom,ncb = <3>; 1473 }; 1474 1475 pcie: pci@1b500000 { 1476 compatible = "qcom,pcie-apq8064"; 1477 reg = <0x1b500000 0x1000>, 1478 <0x1b502000 0x80>, 1479 <0x1b600000 0x100>, 1480 <0x0ff00000 0x100000>; 1481 reg-names = "dbi", "elbi", "parf", "config"; 1482 device_type = "pci"; 1483 linux,pci-domain = <0>; 1484 bus-range = <0x00 0xff>; 1485 num-lanes = <1>; 1486 #address-cells = <3>; 1487 #size-cells = <2>; 1488 ranges = <0x81000000 0x0 0x00000000 0x0fe00000 0x0 0x00100000>, /* I/O */ 1489 <0x82000000 0x0 0x08000000 0x08000000 0x0 0x07e00000>; /* mem */ 1490 interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; 1491 interrupt-names = "msi"; 1492 #interrupt-cells = <1>; 1493 interrupt-map-mask = <0 0 0 0x7>; 1494 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ 1495 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ 1496 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ 1497 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ 1498 clocks = <&gcc PCIE_A_CLK>, 1499 <&gcc PCIE_H_CLK>, 1500 <&gcc PCIE_PHY_REF_CLK>; 1501 clock-names = "core", "iface", "phy"; 1502 resets = <&gcc PCIE_ACLK_RESET>, 1503 <&gcc PCIE_HCLK_RESET>, 1504 <&gcc PCIE_POR_RESET>, 1505 <&gcc PCIE_PCI_RESET>, 1506 <&gcc PCIE_PHY_RESET>; 1507 reset-names = "axi", "ahb", "por", "pci", "phy"; 1508 status = "disabled"; 1509 }; 1510 1511 hdmi: hdmi-tx@4a00000 { 1512 compatible = "qcom,hdmi-tx-8960"; 1513 pinctrl-names = "default"; 1514 pinctrl-0 = <&hdmi_pinctrl>; 1515 reg = <0x04a00000 0x2f0>; 1516 reg-names = "core_physical"; 1517 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; 1518 clocks = <&mmcc HDMI_APP_CLK>, 1519 <&mmcc HDMI_M_AHB_CLK>, 1520 <&mmcc HDMI_S_AHB_CLK>; 1521 clock-names = "core", 1522 "master_iface", 1523 "slave_iface"; 1524 1525 phys = <&hdmi_phy>; 1526 1527 status = "disabled"; 1528 1529 ports { 1530 #address-cells = <1>; 1531 #size-cells = <0>; 1532 1533 port@0 { 1534 reg = <0>; 1535 hdmi_in: endpoint { 1536 }; 1537 }; 1538 1539 port@1 { 1540 reg = <1>; 1541 hdmi_out: endpoint { 1542 }; 1543 }; 1544 }; 1545 }; 1546 1547 hdmi_phy: phy@4a00400 { 1548 compatible = "qcom,hdmi-phy-8960"; 1549 reg = <0x4a00400 0x60>, 1550 <0x4a00500 0x100>; 1551 reg-names = "hdmi_phy", 1552 "hdmi_pll"; 1553 1554 clocks = <&mmcc HDMI_S_AHB_CLK>; 1555 clock-names = "slave_iface"; 1556 #phy-cells = <0>; 1557 #clock-cells = <0>; 1558 1559 status = "disabled"; 1560 }; 1561 1562 mdp: display-controller@5100000 { 1563 compatible = "qcom,mdp4"; 1564 reg = <0x05100000 0xf0000>; 1565 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 1566 clocks = <&mmcc MDP_CLK>, 1567 <&mmcc MDP_AHB_CLK>, 1568 <&mmcc MDP_AXI_CLK>, 1569 <&mmcc MDP_LUT_CLK>, 1570 <&mmcc HDMI_TV_CLK>, 1571 <&mmcc MDP_TV_CLK>; 1572 clock-names = "core_clk", 1573 "iface_clk", 1574 "bus_clk", 1575 "lut_clk", 1576 "hdmi_clk", 1577 "tv_clk"; 1578 1579 iommus = <&mdp_port0 0 1580 &mdp_port0 2 1581 &mdp_port1 0 1582 &mdp_port1 2>; 1583 1584 ports { 1585 #address-cells = <1>; 1586 #size-cells = <0>; 1587 1588 port@0 { 1589 reg = <0>; 1590 mdp_lvds_out: endpoint { 1591 }; 1592 }; 1593 1594 port@1 { 1595 reg = <1>; 1596 mdp_dsi1_out: endpoint { 1597 }; 1598 }; 1599 1600 port@2 { 1601 reg = <2>; 1602 mdp_dsi2_out: endpoint { 1603 }; 1604 }; 1605 1606 port@3 { 1607 reg = <3>; 1608 mdp_dtv_out: endpoint { 1609 }; 1610 }; 1611 }; 1612 }; 1613 1614 riva: riva-pil@3200800 { 1615 compatible = "qcom,riva-pil"; 1616 1617 reg = <0x03200800 0x1000>, <0x03202000 0x2000>, <0x03204000 0x100>; 1618 reg-names = "ccu", "dxe", "pmu"; 1619 1620 interrupts-extended = <&intc GIC_SPI 199 IRQ_TYPE_EDGE_RISING>, 1621 <&wcnss_smsm 6 IRQ_TYPE_EDGE_RISING>; 1622 interrupt-names = "wdog", "fatal"; 1623 1624 memory-region = <&wcnss_mem>; 1625 1626 vddcx-supply = <&pm8921_s3>; 1627 vddmx-supply = <&pm8921_l24>; 1628 vddpx-supply = <&pm8921_s4>; 1629 1630 status = "disabled"; 1631 1632 iris { 1633 compatible = "qcom,wcn3660"; 1634 1635 clocks = <&cxo_board>; 1636 clock-names = "xo"; 1637 1638 vddxo-supply = <&pm8921_l4>; 1639 vddrfa-supply = <&pm8921_s2>; 1640 vddpa-supply = <&pm8921_l10>; 1641 vdddig-supply = <&pm8921_lvs2>; 1642 }; 1643 1644 smd-edge { 1645 interrupts = <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>; 1646 1647 qcom,ipc = <&l2cc 8 25>; 1648 qcom,smd-edge = <6>; 1649 1650 label = "riva"; 1651 1652 wcnss { 1653 compatible = "qcom,wcnss"; 1654 qcom,smd-channels = "WCNSS_CTRL"; 1655 1656 qcom,mmio = <&riva>; 1657 1658 bluetooth { 1659 compatible = "qcom,wcnss-bt"; 1660 }; 1661 1662 wifi { 1663 compatible = "qcom,wcnss-wlan"; 1664 1665 interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>, 1666 <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; 1667 interrupt-names = "tx", "rx"; 1668 1669 qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; 1670 qcom,smem-state-names = "tx-enable", "tx-rings-empty"; 1671 }; 1672 }; 1673 }; 1674 }; 1675 1676 etb@1a01000 { 1677 compatible = "arm,coresight-etb10", "arm,primecell"; 1678 reg = <0x1a01000 0x1000>; 1679 1680 clocks = <&rpmcc RPM_QDSS_CLK>; 1681 clock-names = "apb_pclk"; 1682 1683 in-ports { 1684 port { 1685 etb_in: endpoint { 1686 remote-endpoint = <&replicator_out0>; 1687 }; 1688 }; 1689 }; 1690 }; 1691 1692 tpiu@1a03000 { 1693 compatible = "arm,coresight-tpiu", "arm,primecell"; 1694 reg = <0x1a03000 0x1000>; 1695 1696 clocks = <&rpmcc RPM_QDSS_CLK>; 1697 clock-names = "apb_pclk"; 1698 1699 in-ports { 1700 port { 1701 tpiu_in: endpoint { 1702 remote-endpoint = <&replicator_out1>; 1703 }; 1704 }; 1705 }; 1706 }; 1707 1708 replicator { 1709 compatible = "arm,coresight-static-replicator"; 1710 1711 clocks = <&rpmcc RPM_QDSS_CLK>; 1712 clock-names = "apb_pclk"; 1713 1714 out-ports { 1715 #address-cells = <1>; 1716 #size-cells = <0>; 1717 1718 port@0 { 1719 reg = <0>; 1720 replicator_out0: endpoint { 1721 remote-endpoint = <&etb_in>; 1722 }; 1723 }; 1724 port@1 { 1725 reg = <1>; 1726 replicator_out1: endpoint { 1727 remote-endpoint = <&tpiu_in>; 1728 }; 1729 }; 1730 }; 1731 1732 in-ports { 1733 port { 1734 replicator_in: endpoint { 1735 remote-endpoint = <&funnel_out>; 1736 }; 1737 }; 1738 }; 1739 }; 1740 1741 funnel@1a04000 { 1742 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 1743 reg = <0x1a04000 0x1000>; 1744 1745 clocks = <&rpmcc RPM_QDSS_CLK>; 1746 clock-names = "apb_pclk"; 1747 1748 in-ports { 1749 #address-cells = <1>; 1750 #size-cells = <0>; 1751 1752 /* 1753 * Not described input ports: 1754 * 2 - connected to STM component 1755 * 3 - not-connected 1756 * 6 - not-connected 1757 * 7 - not-connected 1758 */ 1759 port@0 { 1760 reg = <0>; 1761 funnel_in0: endpoint { 1762 remote-endpoint = <&etm0_out>; 1763 }; 1764 }; 1765 port@1 { 1766 reg = <1>; 1767 funnel_in1: endpoint { 1768 remote-endpoint = <&etm1_out>; 1769 }; 1770 }; 1771 port@4 { 1772 reg = <4>; 1773 funnel_in4: endpoint { 1774 remote-endpoint = <&etm2_out>; 1775 }; 1776 }; 1777 port@5 { 1778 reg = <5>; 1779 funnel_in5: endpoint { 1780 remote-endpoint = <&etm3_out>; 1781 }; 1782 }; 1783 }; 1784 1785 out-ports { 1786 port { 1787 funnel_out: endpoint { 1788 remote-endpoint = <&replicator_in>; 1789 }; 1790 }; 1791 }; 1792 }; 1793 1794 etm@1a1c000 { 1795 compatible = "arm,coresight-etm3x", "arm,primecell"; 1796 reg = <0x1a1c000 0x1000>; 1797 1798 clocks = <&rpmcc RPM_QDSS_CLK>; 1799 clock-names = "apb_pclk"; 1800 1801 cpu = <&CPU0>; 1802 1803 out-ports { 1804 port { 1805 etm0_out: endpoint { 1806 remote-endpoint = <&funnel_in0>; 1807 }; 1808 }; 1809 }; 1810 }; 1811 1812 etm@1a1d000 { 1813 compatible = "arm,coresight-etm3x", "arm,primecell"; 1814 reg = <0x1a1d000 0x1000>; 1815 1816 clocks = <&rpmcc RPM_QDSS_CLK>; 1817 clock-names = "apb_pclk"; 1818 1819 cpu = <&CPU1>; 1820 1821 out-ports { 1822 port { 1823 etm1_out: endpoint { 1824 remote-endpoint = <&funnel_in1>; 1825 }; 1826 }; 1827 }; 1828 }; 1829 1830 etm@1a1e000 { 1831 compatible = "arm,coresight-etm3x", "arm,primecell"; 1832 reg = <0x1a1e000 0x1000>; 1833 1834 clocks = <&rpmcc RPM_QDSS_CLK>; 1835 clock-names = "apb_pclk"; 1836 1837 cpu = <&CPU2>; 1838 1839 out-ports { 1840 port { 1841 etm2_out: endpoint { 1842 remote-endpoint = <&funnel_in4>; 1843 }; 1844 }; 1845 }; 1846 }; 1847 1848 etm@1a1f000 { 1849 compatible = "arm,coresight-etm3x", "arm,primecell"; 1850 reg = <0x1a1f000 0x1000>; 1851 1852 clocks = <&rpmcc RPM_QDSS_CLK>; 1853 clock-names = "apb_pclk"; 1854 1855 cpu = <&CPU3>; 1856 1857 out-ports { 1858 port { 1859 etm3_out: endpoint { 1860 remote-endpoint = <&funnel_in5>; 1861 }; 1862 }; 1863 }; 1864 }; 1865 }; 1866}; 1867#include "qcom-apq8064-pins.dtsi" 1868