3 #include "skeleton.dtsi"
4 #include <dt-bindings/clock/qcom,gcc-msm8960.h>
5 #include <dt-bindings/reset/qcom,gcc-msm8960.h>
6 #include <dt-bindings/clock/qcom,mmcc-msm8960.h>
7 #include <dt-bindings/soc/qcom,gsbi.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 model = "Qualcomm APQ8064";
11 compatible = "qcom,apq8064";
12 interrupt-parent = <&intc>;
19 smem_region: smem@80000000 {
20 reg = <0x80000000 0x200000>;
30 compatible = "qcom,krait";
31 enable-method = "qcom,kpss-acc-v1";
34 next-level-cache = <&L2>;
37 cpu-idle-states = <&CPU_SPC>;
41 compatible = "qcom,krait";
42 enable-method = "qcom,kpss-acc-v1";
45 next-level-cache = <&L2>;
48 cpu-idle-states = <&CPU_SPC>;
52 compatible = "qcom,krait";
53 enable-method = "qcom,kpss-acc-v1";
56 next-level-cache = <&L2>;
59 cpu-idle-states = <&CPU_SPC>;
63 compatible = "qcom,krait";
64 enable-method = "qcom,kpss-acc-v1";
67 next-level-cache = <&L2>;
70 cpu-idle-states = <&CPU_SPC>;
80 compatible = "qcom,idle-state-spc",
82 entry-latency-us = <400>;
83 exit-latency-us = <900>;
84 min-residency-us = <3000>;
90 compatible = "qcom,krait-pmu";
91 interrupts = <1 10 0x304>;
96 compatible = "fixed-clock";
98 clock-frequency = <19200000>;
102 compatible = "fixed-clock";
104 clock-frequency = <27000000>;
108 compatible = "fixed-clock";
110 clock-frequency = <32768>;
114 sfpb_mutex: hwmutex {
115 compatible = "qcom,sfpb-mutex";
116 syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
121 compatible = "qcom,smem";
122 memory-region = <&smem_region>;
124 hwlocks = <&sfpb_mutex 3>;
128 compatible = "qcom,smsm";
130 #address-cells = <1>;
133 qcom,ipc-1 = <&l2cc 8 4>;
134 qcom,ipc-2 = <&l2cc 8 14>;
135 qcom,ipc-3 = <&l2cc 8 23>;
136 qcom,ipc-4 = <&sps_sic_non_secure 0x4094 0>;
140 #qcom,state-cells = <1>;
143 modem_smsm: modem@1 {
145 interrupts = <0 38 IRQ_TYPE_EDGE_RISING>;
147 interrupt-controller;
148 #interrupt-cells = <2>;
153 interrupts = <0 89 IRQ_TYPE_EDGE_RISING>;
155 interrupt-controller;
156 #interrupt-cells = <2>;
159 wcnss_smsm: wcnss@3 {
161 interrupts = <0 204 IRQ_TYPE_EDGE_RISING>;
163 interrupt-controller;
164 #interrupt-cells = <2>;
169 interrupts = <0 137 IRQ_TYPE_EDGE_RISING>;
171 interrupt-controller;
172 #interrupt-cells = <2>;
177 #address-cells = <1>;
180 compatible = "simple-bus";
182 tlmm_pinmux: pinctrl@800000 {
183 compatible = "qcom,apq8064-pinctrl";
184 reg = <0x800000 0x4000>;
188 interrupt-controller;
189 #interrupt-cells = <2>;
190 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&ps_hold>;
196 sfpb_wrapper_mutex: syscon@1200000 {
197 compatible = "syscon";
198 reg = <0x01200000 0x8000>;
201 intc: interrupt-controller@2000000 {
202 compatible = "qcom,msm-qgic2";
203 interrupt-controller;
204 #interrupt-cells = <3>;
205 reg = <0x02000000 0x1000>,
210 compatible = "qcom,kpss-timer", "qcom,msm-timer";
211 interrupts = <1 1 0x301>,
214 reg = <0x0200a000 0x100>;
215 clock-frequency = <27000000>,
217 cpu-offset = <0x80000>;
220 acc0: clock-controller@2088000 {
221 compatible = "qcom,kpss-acc-v1";
222 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
225 acc1: clock-controller@2098000 {
226 compatible = "qcom,kpss-acc-v1";
227 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
230 acc2: clock-controller@20a8000 {
231 compatible = "qcom,kpss-acc-v1";
232 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
235 acc3: clock-controller@20b8000 {
236 compatible = "qcom,kpss-acc-v1";
237 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
240 saw0: power-controller@2089000 {
241 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
242 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
246 saw1: power-controller@2099000 {
247 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
248 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
252 saw2: power-controller@20a9000 {
253 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
254 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
258 saw3: power-controller@20b9000 {
259 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
260 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
264 sps_sic_non_secure: sps-sic-non-secure@12100000 {
265 compatible = "syscon";
266 reg = <0x12100000 0x10000>;
269 gsbi1: gsbi@12440000 {
271 compatible = "qcom,gsbi-v1.0.0";
273 reg = <0x12440000 0x100>;
274 clocks = <&gcc GSBI1_H_CLK>;
275 clock-names = "iface";
276 #address-cells = <1>;
280 syscon-tcsr = <&tcsr>;
282 gsbi1_i2c: i2c@12460000 {
283 compatible = "qcom,i2c-qup-v1.1.1";
284 pinctrl-0 = <&i2c1_pins &i2c1_pins_sleep>;
285 pinctrl-names = "default", "sleep";
286 reg = <0x12460000 0x1000>;
287 interrupts = <0 194 IRQ_TYPE_NONE>;
288 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
289 clock-names = "core", "iface";
290 #address-cells = <1>;
296 gsbi2: gsbi@12480000 {
298 compatible = "qcom,gsbi-v1.0.0";
300 reg = <0x12480000 0x100>;
301 clocks = <&gcc GSBI2_H_CLK>;
302 clock-names = "iface";
303 #address-cells = <1>;
307 syscon-tcsr = <&tcsr>;
309 gsbi2_i2c: i2c@124a0000 {
310 compatible = "qcom,i2c-qup-v1.1.1";
311 reg = <0x124a0000 0x1000>;
312 pinctrl-0 = <&i2c2_pins &i2c2_pins_sleep>;
313 pinctrl-names = "default", "sleep";
314 interrupts = <0 196 IRQ_TYPE_NONE>;
315 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
316 clock-names = "core", "iface";
317 #address-cells = <1>;
322 gsbi3: gsbi@16200000 {
324 compatible = "qcom,gsbi-v1.0.0";
326 reg = <0x16200000 0x100>;
327 clocks = <&gcc GSBI3_H_CLK>;
328 clock-names = "iface";
329 #address-cells = <1>;
332 gsbi3_i2c: i2c@16280000 {
333 compatible = "qcom,i2c-qup-v1.1.1";
334 pinctrl-0 = <&i2c3_pins &i2c3_pins_sleep>;
335 pinctrl-names = "default", "sleep";
336 reg = <0x16280000 0x1000>;
337 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
338 clocks = <&gcc GSBI3_QUP_CLK>,
340 clock-names = "core", "iface";
341 #address-cells = <1>;
346 gsbi4: gsbi@16300000 {
348 compatible = "qcom,gsbi-v1.0.0";
350 reg = <0x16300000 0x03>;
351 clocks = <&gcc GSBI4_H_CLK>;
352 clock-names = "iface";
353 #address-cells = <1>;
357 gsbi4_i2c: i2c@16380000 {
358 compatible = "qcom,i2c-qup-v1.1.1";
359 pinctrl-0 = <&i2c4_pins &i2c4_pins_sleep>;
360 pinctrl-names = "default", "sleep";
361 reg = <0x16380000 0x1000>;
362 interrupts = <GIC_SPI 153 IRQ_TYPE_NONE>;
363 clocks = <&gcc GSBI4_QUP_CLK>,
365 clock-names = "core", "iface";
369 gsbi5: gsbi@1a200000 {
371 compatible = "qcom,gsbi-v1.0.0";
373 reg = <0x1a200000 0x03>;
374 clocks = <&gcc GSBI5_H_CLK>;
375 clock-names = "iface";
376 #address-cells = <1>;
380 gsbi5_serial: serial@1a240000 {
381 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
382 reg = <0x1a240000 0x100>,
384 interrupts = <0 154 0x0>;
385 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
386 clock-names = "core", "iface";
390 gsbi5_spi: spi@1a280000 {
391 compatible = "qcom,spi-qup-v1.1.1";
392 reg = <0x1a280000 0x1000>;
393 interrupts = <0 155 0>;
394 pinctrl-0 = <&spi5_default &spi5_sleep>;
395 pinctrl-names = "default", "sleep";
396 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
397 clock-names = "core", "iface";
399 #address-cells = <1>;
404 gsbi6: gsbi@16500000 {
406 compatible = "qcom,gsbi-v1.0.0";
408 reg = <0x16500000 0x03>;
409 clocks = <&gcc GSBI6_H_CLK>;
410 clock-names = "iface";
411 #address-cells = <1>;
415 gsbi6_serial: serial@16540000 {
416 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
417 reg = <0x16540000 0x100>,
419 interrupts = <0 156 0x0>;
420 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
421 clock-names = "core", "iface";
425 gsbi6_i2c: i2c@16580000 {
426 compatible = "qcom,i2c-qup-v1.1.1";
427 pinctrl-0 = <&i2c6_pins &i2c6_pins_sleep>;
428 pinctrl-names = "default", "sleep";
429 reg = <0x16580000 0x1000>;
430 interrupts = <GIC_SPI 157 IRQ_TYPE_NONE>;
431 clocks = <&gcc GSBI6_QUP_CLK>,
433 clock-names = "core", "iface";
437 gsbi7: gsbi@16600000 {
439 compatible = "qcom,gsbi-v1.0.0";
441 reg = <0x16600000 0x100>;
442 clocks = <&gcc GSBI7_H_CLK>;
443 clock-names = "iface";
444 #address-cells = <1>;
447 syscon-tcsr = <&tcsr>;
449 gsbi7_serial: serial@16640000 {
450 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
451 reg = <0x16640000 0x1000>,
453 interrupts = <0 158 0x0>;
454 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
455 clock-names = "core", "iface";
461 compatible = "qcom,prng";
462 reg = <0x1a500000 0x200>;
463 clocks = <&gcc PRNG_CLK>;
464 clock-names = "core";
468 compatible = "qcom,ssbi";
469 reg = <0x00500000 0x1000>;
470 qcom,controller-type = "pmic-arbiter";
473 compatible = "qcom,pm8921";
474 interrupt-parent = <&tlmm_pinmux>;
476 #interrupt-cells = <2>;
477 interrupt-controller;
478 #address-cells = <1>;
481 pm8921_gpio: gpio@150 {
483 compatible = "qcom,pm8921-gpio",
486 interrupts = <192 1>, <193 1>, <194 1>,
487 <195 1>, <196 1>, <197 1>,
488 <198 1>, <199 1>, <200 1>,
489 <201 1>, <202 1>, <203 1>,
490 <204 1>, <205 1>, <206 1>,
491 <207 1>, <208 1>, <209 1>,
492 <210 1>, <211 1>, <212 1>,
493 <213 1>, <214 1>, <215 1>,
494 <216 1>, <217 1>, <218 1>,
495 <219 1>, <220 1>, <221 1>,
496 <222 1>, <223 1>, <224 1>,
497 <225 1>, <226 1>, <227 1>,
498 <228 1>, <229 1>, <230 1>,
499 <231 1>, <232 1>, <233 1>,
507 pm8921_mpps: mpps@50 {
508 compatible = "qcom,pm8921-mpp",
514 <128 1>, <129 1>, <130 1>, <131 1>,
515 <132 1>, <133 1>, <134 1>, <135 1>,
516 <136 1>, <137 1>, <138 1>, <139 1>;
520 compatible = "qcom,pm8921-rtc";
521 interrupt-parent = <&pmicintc>;
528 compatible = "qcom,pm8921-pwrkey";
530 interrupt-parent = <&pmicintc>;
531 interrupts = <50 1>, <51 1>;
538 gcc: clock-controller@900000 {
539 compatible = "qcom,gcc-apq8064";
540 reg = <0x00900000 0x4000>;
545 lcc: clock-controller@28000000 {
546 compatible = "qcom,lcc-apq8064";
547 reg = <0x28000000 0x1000>;
552 mmcc: clock-controller@4000000 {
553 compatible = "qcom,mmcc-apq8064";
554 reg = <0x4000000 0x1000>;
559 l2cc: clock-controller@2011000 {
560 compatible = "syscon";
561 reg = <0x2011000 0x1000>;
565 compatible = "qcom,rpm-apq8064";
566 reg = <0x108000 0x1000>;
567 qcom,ipc = <&l2cc 0x8 2>;
569 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
570 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
571 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
572 interrupt-names = "ack", "err", "wakeup";
574 rpmcc: clock-controller {
575 compatible = "qcom,rpmcc-apq8064", "qcom,rpmcc";
580 compatible = "qcom,rpm-pm8921-regulators";
616 pm8921_lvs1: lvs1 {};
617 pm8921_lvs2: lvs2 {};
618 pm8921_lvs3: lvs3 {};
619 pm8921_lvs4: lvs4 {};
620 pm8921_lvs5: lvs5 {};
621 pm8921_lvs6: lvs6 {};
622 pm8921_lvs7: lvs7 {};
624 pm8921_usb_switch: usb-switch {};
626 pm8921_hdmi_switch: hdmi-switch {
634 usb1_phy: phy@12500000 {
635 compatible = "qcom,usb-otg-ci";
636 reg = <0x12500000 0x400>;
637 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
641 clocks = <&gcc USB_HS1_XCVR_CLK>,
642 <&gcc USB_HS1_H_CLK>;
643 clock-names = "core", "iface";
645 resets = <&gcc USB_HS1_RESET>;
646 reset-names = "link";
649 usb3_phy: phy@12520000 {
650 compatible = "qcom,usb-otg-ci";
651 reg = <0x12520000 0x400>;
652 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
656 clocks = <&gcc USB_HS3_XCVR_CLK>,
657 <&gcc USB_HS3_H_CLK>;
658 clock-names = "core", "iface";
660 resets = <&gcc USB_HS3_RESET>;
661 reset-names = "link";
664 usb4_phy: phy@12530000 {
665 compatible = "qcom,usb-otg-ci";
666 reg = <0x12530000 0x400>;
667 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
671 clocks = <&gcc USB_HS4_XCVR_CLK>,
672 <&gcc USB_HS4_H_CLK>;
673 clock-names = "core", "iface";
675 resets = <&gcc USB_HS4_RESET>;
676 reset-names = "link";
679 gadget1: gadget@12500000 {
680 compatible = "qcom,ci-hdrc";
681 reg = <0x12500000 0x400>;
683 dr_mode = "peripheral";
684 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
685 usb-phy = <&usb1_phy>;
689 compatible = "qcom,ehci-host";
690 reg = <0x12500000 0x400>;
691 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
693 usb-phy = <&usb1_phy>;
697 compatible = "qcom,ehci-host";
698 reg = <0x12520000 0x400>;
699 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
701 usb-phy = <&usb3_phy>;
705 compatible = "qcom,ehci-host";
706 reg = <0x12530000 0x400>;
707 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
709 usb-phy = <&usb4_phy>;
712 sata_phy0: phy@1b400000 {
713 compatible = "qcom,apq8064-sata-phy";
715 reg = <0x1b400000 0x200>;
716 reg-names = "phy_mem";
717 clocks = <&gcc SATA_PHY_CFG_CLK>;
722 sata0: sata@29000000 {
723 compatible = "generic-ahci";
725 reg = <0x29000000 0x180>;
726 interrupts = <GIC_SPI 209 IRQ_TYPE_NONE>;
728 clocks = <&gcc SFAB_SATA_S_H_CLK>,
731 <&gcc SATA_RXOOB_CLK>,
732 <&gcc SATA_PMALIVE_CLK>;
733 clock-names = "slave_iface",
739 assigned-clocks = <&gcc SATA_RXOOB_CLK>,
740 <&gcc SATA_PMALIVE_CLK>;
741 assigned-clock-rates = <100000000>, <100000000>;
744 phy-names = "sata-phy";
747 /* Temporary fixed regulator */
748 sdcc1bam:dma@12402000{
749 compatible = "qcom,bam-v1.3.0";
750 reg = <0x12402000 0x8000>;
751 interrupts = <0 98 0>;
752 clocks = <&gcc SDC1_H_CLK>;
753 clock-names = "bam_clk";
758 sdcc3bam:dma@12182000{
759 compatible = "qcom,bam-v1.3.0";
760 reg = <0x12182000 0x8000>;
761 interrupts = <0 96 0>;
762 clocks = <&gcc SDC3_H_CLK>;
763 clock-names = "bam_clk";
768 sdcc4bam:dma@121c2000{
769 compatible = "qcom,bam-v1.3.0";
770 reg = <0x121c2000 0x8000>;
771 interrupts = <0 95 0>;
772 clocks = <&gcc SDC4_H_CLK>;
773 clock-names = "bam_clk";
779 compatible = "simple-bus";
780 #address-cells = <1>;
783 sdcc1: sdcc@12400000 {
785 compatible = "arm,pl18x", "arm,primecell";
786 arm,primecell-periphid = <0x00051180>;
787 reg = <0x12400000 0x2000>;
788 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
789 interrupt-names = "cmd_irq";
790 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
791 clock-names = "mclk", "apb_pclk";
793 max-frequency = <96000000>;
797 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
798 dma-names = "tx", "rx";
801 sdcc3: sdcc@12180000 {
802 compatible = "arm,pl18x", "arm,primecell";
803 arm,primecell-periphid = <0x00051180>;
805 reg = <0x12180000 0x2000>;
806 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
807 interrupt-names = "cmd_irq";
808 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
809 clock-names = "mclk", "apb_pclk";
813 max-frequency = <192000000>;
815 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
816 dma-names = "tx", "rx";
819 sdcc4: sdcc@121c0000 {
820 compatible = "arm,pl18x", "arm,primecell";
821 arm,primecell-periphid = <0x00051180>;
823 reg = <0x121c0000 0x2000>;
824 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
825 interrupt-names = "cmd_irq";
826 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
827 clock-names = "mclk", "apb_pclk";
831 max-frequency = <48000000>;
832 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
833 dma-names = "tx", "rx";
834 pinctrl-names = "default";
835 pinctrl-0 = <&sdc4_gpios>;
839 tcsr: syscon@1a400000 {
840 compatible = "qcom,tcsr-apq8064", "syscon";
841 reg = <0x1a400000 0x100>;
845 compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
846 reg = <0x1b500000 0x1000
849 0x0ff00000 0x100000>;
850 reg-names = "dbi", "elbi", "parf", "config";
852 linux,pci-domain = <0>;
853 bus-range = <0x00 0xff>;
855 #address-cells = <3>;
857 ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000 /* I/O */
858 0x82000000 0 0 0x08000000 0 0x07e00000>; /* memory */
859 interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
860 interrupt-names = "msi";
861 #interrupt-cells = <1>;
862 interrupt-map-mask = <0 0 0 0x7>;
863 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
864 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
865 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
866 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
867 clocks = <&gcc PCIE_A_CLK>,
869 <&gcc PCIE_PHY_REF_CLK>;
870 clock-names = "core", "iface", "phy";
871 resets = <&gcc PCIE_ACLK_RESET>,
872 <&gcc PCIE_HCLK_RESET>,
873 <&gcc PCIE_POR_RESET>,
874 <&gcc PCIE_PCI_RESET>,
875 <&gcc PCIE_PHY_RESET>;
876 reset-names = "axi", "ahb", "por", "pci", "phy";
881 #include "qcom-apq8064-pins.dtsi"