3 #include <dt-bindings/interrupt-controller/arm-gic.h>
4 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/reset/qcom,gcc-msm8974.h>
7 #include "skeleton.dtsi"
10 model = "Qualcomm MSM8974";
11 compatible = "qcom,msm8974";
12 interrupt-parent = <&intc>;
20 reg = <0x08000000 0x5100000>;
25 reg = <0x0d100000 0x100000>;
30 reg = <0x0d200000 0xa00000>;
34 adsp_region: adsp@0dc00000 {
35 reg = <0x0dc00000 0x1900000>;
40 reg = <0x0f500000 0x500000>;
44 smem_region: smem@fa00000 {
45 reg = <0xfa00000 0x200000>;
50 reg = <0x0fc00000 0x160000>;
55 reg = <0x0fd60000 0x20000>;
60 reg = <0x0fd80000 0x180000>;
68 interrupts = <1 9 0xf04>;
71 compatible = "qcom,krait";
72 enable-method = "qcom,kpss-acc-v2";
75 next-level-cache = <&L2>;
78 cpu-idle-states = <&CPU_SPC>;
82 compatible = "qcom,krait";
83 enable-method = "qcom,kpss-acc-v2";
86 next-level-cache = <&L2>;
89 cpu-idle-states = <&CPU_SPC>;
93 compatible = "qcom,krait";
94 enable-method = "qcom,kpss-acc-v2";
97 next-level-cache = <&L2>;
100 cpu-idle-states = <&CPU_SPC>;
104 compatible = "qcom,krait";
105 enable-method = "qcom,kpss-acc-v2";
108 next-level-cache = <&L2>;
111 cpu-idle-states = <&CPU_SPC>;
115 compatible = "cache";
117 qcom,saw = <&saw_l2>;
122 compatible = "qcom,idle-state-spc",
124 entry-latency-us = <150>;
125 exit-latency-us = <200>;
126 min-residency-us = <2000>;
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
136 thermal-sensors = <&tsens 5>;
140 temperature = <75000>;
145 temperature = <110000>;
153 polling-delay-passive = <250>;
154 polling-delay = <1000>;
156 thermal-sensors = <&tsens 6>;
160 temperature = <75000>;
165 temperature = <110000>;
173 polling-delay-passive = <250>;
174 polling-delay = <1000>;
176 thermal-sensors = <&tsens 7>;
180 temperature = <75000>;
185 temperature = <110000>;
193 polling-delay-passive = <250>;
194 polling-delay = <1000>;
196 thermal-sensors = <&tsens 8>;
200 temperature = <75000>;
205 temperature = <110000>;
214 compatible = "qcom,krait-pmu";
215 interrupts = <1 7 0xf04>;
220 compatible = "fixed-clock";
222 clock-frequency = <19200000>;
225 sleep_clk: sleep_clk {
226 compatible = "fixed-clock";
228 clock-frequency = <32768>;
233 compatible = "arm,armv7-timer";
234 interrupts = <1 2 0xf08>,
238 clock-frequency = <19200000>;
242 compatible = "qcom,msm8974-adsp-pil";
244 interrupts-extended = <&intc 0 162 IRQ_TYPE_EDGE_RISING>,
245 <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
246 <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
247 <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
248 <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
249 interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
251 cx-supply = <&pm8841_s2>;
253 memory-region = <&adsp_region>;
255 qcom,smem-states = <&adsp_smp2p_out 0>;
256 qcom,smem-state-names = "stop";
260 compatible = "qcom,smem";
262 memory-region = <&smem_region>;
263 qcom,rpm-msg-ram = <&rpm_msg_ram>;
265 hwlocks = <&tcsr_mutex 3>;
269 compatible = "qcom,smp2p";
270 qcom,smem = <443>, <429>;
272 interrupt-parent = <&intc>;
273 interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
275 qcom,ipc = <&apcs 8 10>;
277 qcom,local-pid = <0>;
278 qcom,remote-pid = <2>;
280 adsp_smp2p_out: master-kernel {
281 qcom,entry-name = "master-kernel";
282 #qcom,smem-state-cells = <1>;
285 adsp_smp2p_in: slave-kernel {
286 qcom,entry-name = "slave-kernel";
288 interrupt-controller;
289 #interrupt-cells = <2>;
294 compatible = "qcom,smp2p";
295 qcom,smem = <435>, <428>;
297 interrupt-parent = <&intc>;
298 interrupts = <0 27 IRQ_TYPE_EDGE_RISING>;
300 qcom,ipc = <&apcs 8 14>;
302 qcom,local-pid = <0>;
303 qcom,remote-pid = <1>;
305 modem_smp2p_out: master-kernel {
306 qcom,entry-name = "master-kernel";
307 #qcom,smem-state-cells = <1>;
310 modem_smp2p_in: slave-kernel {
311 qcom,entry-name = "slave-kernel";
313 interrupt-controller;
314 #interrupt-cells = <2>;
319 compatible = "qcom,smp2p";
320 qcom,smem = <451>, <431>;
322 interrupt-parent = <&intc>;
323 interrupts = <0 143 IRQ_TYPE_EDGE_RISING>;
325 qcom,ipc = <&apcs 8 18>;
327 qcom,local-pid = <0>;
328 qcom,remote-pid = <4>;
330 wcnss_smp2p_out: master-kernel {
331 qcom,entry-name = "master-kernel";
333 #qcom,smem-state-cells = <1>;
336 wcnss_smp2p_in: slave-kernel {
337 qcom,entry-name = "slave-kernel";
339 interrupt-controller;
340 #interrupt-cells = <2>;
345 compatible = "qcom,smsm";
347 #address-cells = <1>;
350 qcom,ipc-1 = <&apcs 8 13>;
351 qcom,ipc-2 = <&apcs 8 9>;
352 qcom,ipc-3 = <&apcs 8 19>;
357 #qcom,smem-state-cells = <1>;
360 modem_smsm: modem@1 {
362 interrupts = <0 26 IRQ_TYPE_EDGE_RISING>;
364 interrupt-controller;
365 #interrupt-cells = <2>;
370 interrupts = <0 157 IRQ_TYPE_EDGE_RISING>;
372 interrupt-controller;
373 #interrupt-cells = <2>;
376 wcnss_smsm: wcnss@7 {
378 interrupts = <0 144 IRQ_TYPE_EDGE_RISING>;
380 interrupt-controller;
381 #interrupt-cells = <2>;
387 compatible = "qcom,scm";
388 clocks = <&gcc GCC_CE1_CLK>, <&gcc GCC_CE1_AXI_CLK>, <&gcc GCC_CE1_AHB_CLK>;
389 clock-names = "core", "bus", "iface";
394 #address-cells = <1>;
397 compatible = "simple-bus";
399 intc: interrupt-controller@f9000000 {
400 compatible = "qcom,msm-qgic2";
401 interrupt-controller;
402 #interrupt-cells = <3>;
403 reg = <0xf9000000 0x1000>,
407 apcs: syscon@f9011000 {
408 compatible = "syscon";
409 reg = <0xf9011000 0x1000>;
412 qfprom: qfprom@fc4bc000 {
413 #address-cells = <1>;
415 compatible = "qcom,qfprom";
416 reg = <0xfc4bc000 0x1000>;
417 tsens_calib: calib@d0 {
420 tsens_backup: backup@440 {
425 tsens: thermal-sensor@fc4a8000 {
426 compatible = "qcom,msm8974-tsens";
427 reg = <0xfc4a8000 0x2000>;
428 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
429 nvmem-cell-names = "calib", "calib_backup";
430 #thermal-sensor-cells = <1>;
434 #address-cells = <1>;
437 compatible = "arm,armv7-timer-mem";
438 reg = <0xf9020000 0x1000>;
439 clock-frequency = <19200000>;
443 interrupts = <0 8 0x4>,
445 reg = <0xf9021000 0x1000>,
451 interrupts = <0 9 0x4>;
452 reg = <0xf9023000 0x1000>;
458 interrupts = <0 10 0x4>;
459 reg = <0xf9024000 0x1000>;
465 interrupts = <0 11 0x4>;
466 reg = <0xf9025000 0x1000>;
472 interrupts = <0 12 0x4>;
473 reg = <0xf9026000 0x1000>;
479 interrupts = <0 13 0x4>;
480 reg = <0xf9027000 0x1000>;
486 interrupts = <0 14 0x4>;
487 reg = <0xf9028000 0x1000>;
492 saw0: power-controller@f9089000 {
493 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
494 reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
497 saw1: power-controller@f9099000 {
498 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
499 reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
502 saw2: power-controller@f90a9000 {
503 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
504 reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
507 saw3: power-controller@f90b9000 {
508 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
509 reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
512 saw_l2: power-controller@f9012000 {
513 compatible = "qcom,saw2";
514 reg = <0xf9012000 0x1000>;
518 acc0: clock-controller@f9088000 {
519 compatible = "qcom,kpss-acc-v2";
520 reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
523 acc1: clock-controller@f9098000 {
524 compatible = "qcom,kpss-acc-v2";
525 reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
528 acc2: clock-controller@f90a8000 {
529 compatible = "qcom,kpss-acc-v2";
530 reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
533 acc3: clock-controller@f90b8000 {
534 compatible = "qcom,kpss-acc-v2";
535 reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
539 compatible = "qcom,pshold";
540 reg = <0xfc4ab000 0x4>;
543 gcc: clock-controller@fc400000 {
544 compatible = "qcom,gcc-msm8974";
547 #power-domain-cells = <1>;
548 reg = <0xfc400000 0x4000>;
551 tcsr_mutex_block: syscon@fd484000 {
552 compatible = "syscon";
553 reg = <0xfd484000 0x2000>;
556 mmcc: clock-controller@fd8c0000 {
557 compatible = "qcom,mmcc-msm8974";
560 #power-domain-cells = <1>;
561 reg = <0xfd8c0000 0x6000>;
564 tcsr_mutex: tcsr-mutex {
565 compatible = "qcom,tcsr-mutex";
566 syscon = <&tcsr_mutex_block 0 0x80>;
571 rpm_msg_ram: memory@fc428000 {
572 compatible = "qcom,rpm-msg-ram";
573 reg = <0xfc428000 0x4000>;
576 blsp1_uart1: serial@f991d000 {
577 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
578 reg = <0xf991d000 0x1000>;
579 interrupts = <0 107 0x0>;
580 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
581 clock-names = "core", "iface";
585 blsp1_uart2: serial@f991e000 {
586 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
587 reg = <0xf991e000 0x1000>;
588 interrupts = <0 108 0x0>;
589 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
590 clock-names = "core", "iface";
595 compatible = "qcom,sdhci-msm-v4";
596 reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
597 reg-names = "hc_mem", "core_mem";
598 interrupts = <0 123 0>, <0 138 0>;
599 interrupt-names = "hc_irq", "pwr_irq";
600 clocks = <&gcc GCC_SDCC1_APPS_CLK>,
601 <&gcc GCC_SDCC1_AHB_CLK>,
603 clock-names = "core", "iface", "xo";
608 compatible = "qcom,sdhci-msm-v4";
609 reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>;
610 reg-names = "hc_mem", "core_mem";
611 interrupts = <0 125 0>, <0 221 0>;
612 interrupt-names = "hc_irq", "pwr_irq";
613 clocks = <&gcc GCC_SDCC2_APPS_CLK>,
614 <&gcc GCC_SDCC2_AHB_CLK>,
616 clock-names = "core", "iface", "xo";
621 compatible = "qcom,prng";
622 reg = <0xf9bff000 0x200>;
623 clocks = <&gcc GCC_PRNG_AHB_CLK>;
624 clock-names = "core";
627 msmgpio: pinctrl@fd510000 {
628 compatible = "qcom,msm8974-pinctrl";
629 reg = <0xfd510000 0x4000>;
632 interrupt-controller;
633 #interrupt-cells = <2>;
634 interrupts = <0 208 0>;
639 compatible = "qcom,i2c-qup-v2.1.1";
640 reg = <0xf9924000 0x1000>;
641 interrupts = <0 96 IRQ_TYPE_NONE>;
642 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
643 clock-names = "core", "iface";
644 #address-cells = <1>;
648 blsp_i2c8: i2c@f9964000 {
650 compatible = "qcom,i2c-qup-v2.1.1";
651 reg = <0xf9964000 0x1000>;
652 interrupts = <0 102 IRQ_TYPE_NONE>;
653 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
654 clock-names = "core", "iface";
655 #address-cells = <1>;
659 blsp_i2c11: i2c@f9967000 {
661 compatible = "qcom,i2c-qup-v2.1.1";
662 reg = <0xf9967000 0x1000>;
663 interrupts = <0 105 IRQ_TYPE_NONE>;
664 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
665 clock-names = "core", "iface";
666 #address-cells = <1>;
668 dmas = <&blsp2_dma 20>, <&blsp2_dma 21>;
669 dma-names = "tx", "rx";
672 spmi_bus: spmi@fc4cf000 {
673 compatible = "qcom,spmi-pmic-arb";
674 reg-names = "core", "intr", "cnfg";
675 reg = <0xfc4cf000 0x1000>,
678 interrupt-names = "periph_irq";
679 interrupts = <0 190 0>;
682 #address-cells = <2>;
684 interrupt-controller;
685 #interrupt-cells = <4>;
688 blsp2_dma: dma-controller@f9944000 {
689 compatible = "qcom,bam-v1.4.0";
690 reg = <0xf9944000 0x19000>;
691 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&gcc GCC_BLSP2_AHB_CLK>;
693 clock-names = "bam_clk";
698 usb1_phy: usb-phy@f9a55000 {
699 compatible = "qcom,usb-otg-snps";
701 reg = <0xf9a55000 0x400>;
702 interrupts-extended = <&intc 0 134 0>, <&intc 0 140 0>,
703 <&spmi_bus 0 0x9 0 0>;
704 interrupt-names = "core_irq", "async_irq", "pmic_id_irq";
706 vddcx-supply = <&pm8841_s2>;
707 v3p3-supply = <&pm8941_l24>;
708 v1p8-supply = <&pm8941_l6>;
711 qcom,phy-init-sequence = <0x63 0x81 0xfffffff>;
712 qcom,otg-control = <1>;
715 resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>;
716 reset-names = "phy", "link";
718 clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>,
719 <&gcc GCC_USB_HS_AHB_CLK>;
720 clock-names = "phy", "core", "iface";
726 compatible = "qcom,ci-hdrc";
727 reg = <0xf9a55000 0x400>;
729 interrupts = <0 134 0>, <0 140 0>;
730 interrupt-names = "core_irq", "async_irq";
731 usb-phy = <&usb1_phy>;
738 compatible = "qcom,smd";
741 interrupts = <0 156 IRQ_TYPE_EDGE_RISING>;
743 qcom,ipc = <&apcs 8 8>;
748 interrupts = <0 25 IRQ_TYPE_EDGE_RISING>;
750 qcom,ipc = <&apcs 8 12>;
755 interrupts = <0 168 1>;
756 qcom,ipc = <&apcs 8 0>;
757 qcom,smd-edge = <15>;
760 compatible = "qcom,rpm-msm8974";
761 qcom,smd-channels = "rpm_requests";
764 compatible = "qcom,rpm-pm8841-regulators";
777 compatible = "qcom,rpm-pm8941-regulators";
809 pm8941_lvs1: lvs1 {};
810 pm8941_lvs2: lvs2 {};
811 pm8941_lvs3: lvs3 {};
813 pm8941_5vs1: 5vs1 {};
814 pm8941_5vs2: 5vs2 {};
820 vreg_boost: vreg-boost {
821 compatible = "regulator-fixed";
823 regulator-name = "vreg-boost";
824 regulator-min-microvolt = <3150000>;
825 regulator-max-microvolt = <3150000>;
830 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
833 pinctrl-names = "default";
834 pinctrl-0 = <&boost_bypass_n_pin>;
836 vreg_vph_pwr: vreg-vph-pwr {
837 compatible = "regulator-fixed";
838 regulator-name = "vph-pwr";
840 regulator-min-microvolt = <3600000>;
841 regulator-max-microvolt = <3600000>;