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 #address-cells = <1>;
131 compatible = "simple-bus";
133 tlmm_pinmux: pinctrl@800000 {
134 compatible = "qcom,apq8064-pinctrl";
135 reg = <0x800000 0x4000>;
139 interrupt-controller;
140 #interrupt-cells = <2>;
141 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&ps_hold>;
146 sdc4_gpios: sdc4-gpios {
148 pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68";
156 function = "ps_hold";
162 pins = "gpio20", "gpio21";
169 pins = "gpio8", "gpio9";
174 gsbi6_uart_2pins: gsbi6_uart_2pins {
176 pins = "gpio14", "gpio15";
181 gsbi6_uart_4pins: gsbi6_uart_4pins {
183 pins = "gpio14", "gpio15", "gpio16", "gpio17";
188 gsbi7_uart_2pins: gsbi7_uart_2pins {
190 pins = "gpio82", "gpio83";
195 gsbi7_uart_4pins: gsbi7_uart_4pins {
197 pins = "gpio82", "gpio83", "gpio84", "gpio85";
203 sfpb_wrapper_mutex: syscon@1200000 {
204 compatible = "syscon";
205 reg = <0x01200000 0x8000>;
208 intc: interrupt-controller@2000000 {
209 compatible = "qcom,msm-qgic2";
210 interrupt-controller;
211 #interrupt-cells = <3>;
212 reg = <0x02000000 0x1000>,
217 compatible = "qcom,kpss-timer", "qcom,msm-timer";
218 interrupts = <1 1 0x301>,
221 reg = <0x0200a000 0x100>;
222 clock-frequency = <27000000>,
224 cpu-offset = <0x80000>;
227 acc0: clock-controller@2088000 {
228 compatible = "qcom,kpss-acc-v1";
229 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
232 acc1: clock-controller@2098000 {
233 compatible = "qcom,kpss-acc-v1";
234 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
237 acc2: clock-controller@20a8000 {
238 compatible = "qcom,kpss-acc-v1";
239 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
242 acc3: clock-controller@20b8000 {
243 compatible = "qcom,kpss-acc-v1";
244 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
247 saw0: power-controller@2089000 {
248 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
249 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
253 saw1: power-controller@2099000 {
254 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
255 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
259 saw2: power-controller@20a9000 {
260 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
261 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
265 saw3: power-controller@20b9000 {
266 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
267 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
271 gsbi1: gsbi@12440000 {
273 compatible = "qcom,gsbi-v1.0.0";
275 reg = <0x12440000 0x100>;
276 clocks = <&gcc GSBI1_H_CLK>;
277 clock-names = "iface";
278 #address-cells = <1>;
282 syscon-tcsr = <&tcsr>;
285 compatible = "qcom,i2c-qup-v1.1.1";
286 pinctrl-0 = <&i2c1_pins>;
287 pinctrl-names = "default";
288 reg = <0x12460000 0x1000>;
289 interrupts = <0 194 IRQ_TYPE_NONE>;
290 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
291 clock-names = "core", "iface";
292 #address-cells = <1>;
297 gsbi2: gsbi@12480000 {
299 compatible = "qcom,gsbi-v1.0.0";
301 reg = <0x12480000 0x100>;
302 clocks = <&gcc GSBI2_H_CLK>;
303 clock-names = "iface";
304 #address-cells = <1>;
308 syscon-tcsr = <&tcsr>;
311 compatible = "qcom,i2c-qup-v1.1.1";
312 reg = <0x124a0000 0x1000>;
313 interrupts = <0 196 IRQ_TYPE_NONE>;
314 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
315 clock-names = "core", "iface";
316 #address-cells = <1>;
321 gsbi3: gsbi@16200000 {
323 compatible = "qcom,gsbi-v1.0.0";
325 reg = <0x16200000 0x100>;
326 clocks = <&gcc GSBI3_H_CLK>;
327 clock-names = "iface";
328 #address-cells = <1>;
332 compatible = "qcom,i2c-qup-v1.1.1";
333 pinctrl-0 = <&i2c3_pins>;
334 pinctrl-names = "default";
335 reg = <0x16280000 0x1000>;
336 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
337 clocks = <&gcc GSBI3_QUP_CLK>,
339 clock-names = "core", "iface";
340 #address-cells = <1>;
345 gsbi5: gsbi@1a200000 {
347 compatible = "qcom,gsbi-v1.0.0";
349 reg = <0x1a200000 0x03>;
350 clocks = <&gcc GSBI5_H_CLK>;
351 clock-names = "iface";
352 #address-cells = <1>;
356 gsbi5_serial: serial@1a240000 {
357 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
358 reg = <0x1a240000 0x100>,
360 interrupts = <0 154 0x0>;
361 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
362 clock-names = "core", "iface";
367 gsbi6: gsbi@16500000 {
369 compatible = "qcom,gsbi-v1.0.0";
371 reg = <0x16500000 0x03>;
372 clocks = <&gcc GSBI6_H_CLK>;
373 clock-names = "iface";
374 #address-cells = <1>;
378 gsbi6_serial: serial@16540000 {
379 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
380 reg = <0x16540000 0x100>,
382 interrupts = <0 156 0x0>;
383 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
384 clock-names = "core", "iface";
389 gsbi7: gsbi@16600000 {
391 compatible = "qcom,gsbi-v1.0.0";
393 reg = <0x16600000 0x100>;
394 clocks = <&gcc GSBI7_H_CLK>;
395 clock-names = "iface";
396 #address-cells = <1>;
399 syscon-tcsr = <&tcsr>;
401 gsbi7_serial: serial@16640000 {
402 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
403 reg = <0x16640000 0x1000>,
405 interrupts = <0 158 0x0>;
406 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
407 clock-names = "core", "iface";
413 compatible = "qcom,prng";
414 reg = <0x1a500000 0x200>;
415 clocks = <&gcc PRNG_CLK>;
416 clock-names = "core";
420 compatible = "qcom,ssbi";
421 reg = <0x00500000 0x1000>;
422 qcom,controller-type = "pmic-arbiter";
425 compatible = "qcom,pm8921";
426 interrupt-parent = <&tlmm_pinmux>;
428 #interrupt-cells = <2>;
429 interrupt-controller;
430 #address-cells = <1>;
433 pm8921_gpio: gpio@150 {
435 compatible = "qcom,pm8921-gpio",
438 interrupts = <192 1>, <193 1>, <194 1>,
439 <195 1>, <196 1>, <197 1>,
440 <198 1>, <199 1>, <200 1>,
441 <201 1>, <202 1>, <203 1>,
442 <204 1>, <205 1>, <206 1>,
443 <207 1>, <208 1>, <209 1>,
444 <210 1>, <211 1>, <212 1>,
445 <213 1>, <214 1>, <215 1>,
446 <216 1>, <217 1>, <218 1>,
447 <219 1>, <220 1>, <221 1>,
448 <222 1>, <223 1>, <224 1>,
449 <225 1>, <226 1>, <227 1>,
450 <228 1>, <229 1>, <230 1>,
451 <231 1>, <232 1>, <233 1>,
459 pm8921_mpps: mpps@50 {
460 compatible = "qcom,pm8921-mpp",
466 <128 1>, <129 1>, <130 1>, <131 1>,
467 <132 1>, <133 1>, <134 1>, <135 1>,
468 <136 1>, <137 1>, <138 1>, <139 1>;
472 compatible = "qcom,pm8921-rtc";
473 interrupt-parent = <&pmicintc>;
480 compatible = "qcom,pm8921-pwrkey";
482 interrupt-parent = <&pmicintc>;
483 interrupts = <50 1>, <51 1>;
490 gcc: clock-controller@900000 {
491 compatible = "qcom,gcc-apq8064";
492 reg = <0x00900000 0x4000>;
497 lcc: clock-controller@28000000 {
498 compatible = "qcom,lcc-apq8064";
499 reg = <0x28000000 0x1000>;
504 mmcc: clock-controller@4000000 {
505 compatible = "qcom,mmcc-apq8064";
506 reg = <0x4000000 0x1000>;
511 l2cc: clock-controller@2011000 {
512 compatible = "syscon";
513 reg = <0x2011000 0x1000>;
517 compatible = "qcom,rpm-apq8064";
518 reg = <0x108000 0x1000>;
519 qcom,ipc = <&l2cc 0x8 2>;
521 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
522 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
523 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
524 interrupt-names = "ack", "err", "wakeup";
526 rpmcc: clock-controller {
527 compatible = "qcom,rpmcc-apq8064", "qcom,rpmcc";
532 compatible = "qcom,rpm-pm8921-regulators";
568 pm8921_lvs1: lvs1 {};
569 pm8921_lvs2: lvs2 {};
570 pm8921_lvs3: lvs3 {};
571 pm8921_lvs4: lvs4 {};
572 pm8921_lvs5: lvs5 {};
573 pm8921_lvs6: lvs6 {};
574 pm8921_lvs7: lvs7 {};
576 pm8921_usb_switch: usb-switch {};
578 pm8921_hdmi_switch: hdmi-switch {
586 usb1_phy: phy@12500000 {
587 compatible = "qcom,usb-otg-ci";
588 reg = <0x12500000 0x400>;
589 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
593 clocks = <&gcc USB_HS1_XCVR_CLK>,
594 <&gcc USB_HS1_H_CLK>;
595 clock-names = "core", "iface";
597 resets = <&gcc USB_HS1_RESET>;
598 reset-names = "link";
601 usb3_phy: phy@12520000 {
602 compatible = "qcom,usb-otg-ci";
603 reg = <0x12520000 0x400>;
604 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
608 clocks = <&gcc USB_HS3_XCVR_CLK>,
609 <&gcc USB_HS3_H_CLK>;
610 clock-names = "core", "iface";
612 resets = <&gcc USB_HS3_RESET>;
613 reset-names = "link";
616 usb4_phy: phy@12530000 {
617 compatible = "qcom,usb-otg-ci";
618 reg = <0x12530000 0x400>;
619 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
623 clocks = <&gcc USB_HS4_XCVR_CLK>,
624 <&gcc USB_HS4_H_CLK>;
625 clock-names = "core", "iface";
627 resets = <&gcc USB_HS4_RESET>;
628 reset-names = "link";
631 gadget1: gadget@12500000 {
632 compatible = "qcom,ci-hdrc";
633 reg = <0x12500000 0x400>;
635 dr_mode = "peripheral";
636 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
637 usb-phy = <&usb1_phy>;
641 compatible = "qcom,ehci-host";
642 reg = <0x12500000 0x400>;
643 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
645 usb-phy = <&usb1_phy>;
649 compatible = "qcom,ehci-host";
650 reg = <0x12520000 0x400>;
651 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
653 usb-phy = <&usb3_phy>;
657 compatible = "qcom,ehci-host";
658 reg = <0x12530000 0x400>;
659 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
661 usb-phy = <&usb4_phy>;
664 sata_phy0: phy@1b400000 {
665 compatible = "qcom,apq8064-sata-phy";
667 reg = <0x1b400000 0x200>;
668 reg-names = "phy_mem";
669 clocks = <&gcc SATA_PHY_CFG_CLK>;
674 sata0: sata@29000000 {
675 compatible = "generic-ahci";
677 reg = <0x29000000 0x180>;
678 interrupts = <GIC_SPI 209 IRQ_TYPE_NONE>;
680 clocks = <&gcc SFAB_SATA_S_H_CLK>,
683 <&gcc SATA_RXOOB_CLK>,
684 <&gcc SATA_PMALIVE_CLK>;
685 clock-names = "slave_iface",
691 assigned-clocks = <&gcc SATA_RXOOB_CLK>,
692 <&gcc SATA_PMALIVE_CLK>;
693 assigned-clock-rates = <100000000>, <100000000>;
696 phy-names = "sata-phy";
699 /* Temporary fixed regulator */
700 sdcc1bam:dma@12402000{
701 compatible = "qcom,bam-v1.3.0";
702 reg = <0x12402000 0x8000>;
703 interrupts = <0 98 0>;
704 clocks = <&gcc SDC1_H_CLK>;
705 clock-names = "bam_clk";
710 sdcc3bam:dma@12182000{
711 compatible = "qcom,bam-v1.3.0";
712 reg = <0x12182000 0x8000>;
713 interrupts = <0 96 0>;
714 clocks = <&gcc SDC3_H_CLK>;
715 clock-names = "bam_clk";
720 sdcc4bam:dma@121c2000{
721 compatible = "qcom,bam-v1.3.0";
722 reg = <0x121c2000 0x8000>;
723 interrupts = <0 95 0>;
724 clocks = <&gcc SDC4_H_CLK>;
725 clock-names = "bam_clk";
731 compatible = "arm,amba-bus";
732 #address-cells = <1>;
735 sdcc1: sdcc@12400000 {
737 compatible = "arm,pl18x", "arm,primecell";
738 arm,primecell-periphid = <0x00051180>;
739 reg = <0x12400000 0x2000>;
740 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
741 interrupt-names = "cmd_irq";
742 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
743 clock-names = "mclk", "apb_pclk";
745 max-frequency = <96000000>;
749 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
750 dma-names = "tx", "rx";
753 sdcc3: sdcc@12180000 {
754 compatible = "arm,pl18x", "arm,primecell";
755 arm,primecell-periphid = <0x00051180>;
757 reg = <0x12180000 0x2000>;
758 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
759 interrupt-names = "cmd_irq";
760 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
761 clock-names = "mclk", "apb_pclk";
765 max-frequency = <192000000>;
767 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
768 dma-names = "tx", "rx";
771 sdcc4: sdcc@121c0000 {
772 compatible = "arm,pl18x", "arm,primecell";
773 arm,primecell-periphid = <0x00051180>;
775 reg = <0x121c0000 0x2000>;
776 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
777 interrupt-names = "cmd_irq";
778 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
779 clock-names = "mclk", "apb_pclk";
783 max-frequency = <48000000>;
784 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
785 dma-names = "tx", "rx";
786 pinctrl-names = "default";
787 pinctrl-0 = <&sdc4_gpios>;
791 tcsr: syscon@1a400000 {
792 compatible = "qcom,tcsr-apq8064", "syscon";
793 reg = <0x1a400000 0x100>;
797 compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
798 reg = <0x1b500000 0x1000
801 0x0ff00000 0x100000>;
802 reg-names = "dbi", "elbi", "parf", "config";
804 linux,pci-domain = <0>;
805 bus-range = <0x00 0xff>;
807 #address-cells = <3>;
809 ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000 /* I/O */
810 0x82000000 0 0 0x08000000 0 0x07e00000>; /* memory */
811 interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
812 interrupt-names = "msi";
813 #interrupt-cells = <1>;
814 interrupt-map-mask = <0 0 0 0x7>;
815 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
816 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
817 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
818 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
819 clocks = <&gcc PCIE_A_CLK>,
821 <&gcc PCIE_PHY_REF_CLK>;
822 clock-names = "core", "iface", "phy";
823 resets = <&gcc PCIE_ACLK_RESET>,
824 <&gcc PCIE_HCLK_RESET>,
825 <&gcc PCIE_POR_RESET>,
826 <&gcc PCIE_PCI_RESET>,
827 <&gcc PCIE_PHY_RESET>;
828 reset-names = "axi", "ahb", "por", "pci", "phy";