3 #include "skeleton.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/clock/qcom,gcc-msm8960.h>
6 #include <dt-bindings/reset/qcom,gcc-msm8960.h>
7 #include <dt-bindings/clock/qcom,mmcc-msm8960.h>
8 #include <dt-bindings/soc/qcom,gsbi.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 model = "Qualcomm APQ8064";
12 compatible = "qcom,apq8064";
13 interrupt-parent = <&intc>;
20 smem_region: smem@80000000 {
21 reg = <0x80000000 0x200000>;
31 compatible = "qcom,krait";
32 enable-method = "qcom,kpss-acc-v1";
35 next-level-cache = <&L2>;
38 cpu-idle-states = <&CPU_SPC>;
42 compatible = "qcom,krait";
43 enable-method = "qcom,kpss-acc-v1";
46 next-level-cache = <&L2>;
49 cpu-idle-states = <&CPU_SPC>;
53 compatible = "qcom,krait";
54 enable-method = "qcom,kpss-acc-v1";
57 next-level-cache = <&L2>;
60 cpu-idle-states = <&CPU_SPC>;
64 compatible = "qcom,krait";
65 enable-method = "qcom,kpss-acc-v1";
68 next-level-cache = <&L2>;
71 cpu-idle-states = <&CPU_SPC>;
81 compatible = "qcom,idle-state-spc",
83 entry-latency-us = <400>;
84 exit-latency-us = <900>;
85 min-residency-us = <3000>;
91 compatible = "qcom,krait-pmu";
92 interrupts = <1 10 0x304>;
97 compatible = "fixed-clock";
99 clock-frequency = <19200000>;
103 compatible = "fixed-clock";
105 clock-frequency = <27000000>;
109 compatible = "fixed-clock";
111 clock-frequency = <32768>;
115 sfpb_mutex: hwmutex {
116 compatible = "qcom,sfpb-mutex";
117 syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
122 compatible = "qcom,smem";
123 memory-region = <&smem_region>;
125 hwlocks = <&sfpb_mutex 3>;
129 #address-cells = <1>;
132 compatible = "simple-bus";
134 tlmm_pinmux: pinctrl@800000 {
135 compatible = "qcom,apq8064-pinctrl";
136 reg = <0x800000 0x4000>;
140 interrupt-controller;
141 #interrupt-cells = <2>;
142 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&ps_hold>;
147 sdc4_gpios: sdc4-gpios {
149 pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68";
154 hdmi_pinctrl: hdmi-pinctrl {
156 pins = "gpio69", "gpio70", "gpio71";
159 drive-strength = <2>;
165 drive-strength = <16>;
171 function = "ps_hold";
177 pins = "gpio20", "gpio21";
184 pins = "gpio8", "gpio9";
189 gsbi6_uart_2pins: gsbi6_uart_2pins {
191 pins = "gpio14", "gpio15";
196 gsbi6_uart_4pins: gsbi6_uart_4pins {
198 pins = "gpio14", "gpio15", "gpio16", "gpio17";
203 gsbi7_uart_2pins: gsbi7_uart_2pins {
205 pins = "gpio82", "gpio83";
210 gsbi7_uart_4pins: gsbi7_uart_4pins {
212 pins = "gpio82", "gpio83", "gpio84", "gpio85";
218 sfpb_wrapper_mutex: syscon@1200000 {
219 compatible = "syscon";
220 reg = <0x01200000 0x8000>;
223 intc: interrupt-controller@2000000 {
224 compatible = "qcom,msm-qgic2";
225 interrupt-controller;
226 #interrupt-cells = <3>;
227 reg = <0x02000000 0x1000>,
232 compatible = "qcom,kpss-timer", "qcom,msm-timer";
233 interrupts = <1 1 0x301>,
236 reg = <0x0200a000 0x100>;
237 clock-frequency = <27000000>,
239 cpu-offset = <0x80000>;
242 acc0: clock-controller@2088000 {
243 compatible = "qcom,kpss-acc-v1";
244 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
247 acc1: clock-controller@2098000 {
248 compatible = "qcom,kpss-acc-v1";
249 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
252 acc2: clock-controller@20a8000 {
253 compatible = "qcom,kpss-acc-v1";
254 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
257 acc3: clock-controller@20b8000 {
258 compatible = "qcom,kpss-acc-v1";
259 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
262 saw0: power-controller@2089000 {
263 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
264 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
268 saw1: power-controller@2099000 {
269 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
270 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
274 saw2: power-controller@20a9000 {
275 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
276 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
280 saw3: power-controller@20b9000 {
281 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
282 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
286 gsbi1: gsbi@12440000 {
288 compatible = "qcom,gsbi-v1.0.0";
290 reg = <0x12440000 0x100>;
291 clocks = <&gcc GSBI1_H_CLK>;
292 clock-names = "iface";
293 #address-cells = <1>;
297 syscon-tcsr = <&tcsr>;
300 compatible = "qcom,i2c-qup-v1.1.1";
301 pinctrl-0 = <&i2c1_pins>;
302 pinctrl-names = "default";
303 reg = <0x12460000 0x1000>;
304 interrupts = <0 194 IRQ_TYPE_NONE>;
305 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
306 clock-names = "core", "iface";
307 #address-cells = <1>;
312 gsbi2: gsbi@12480000 {
314 compatible = "qcom,gsbi-v1.0.0";
316 reg = <0x12480000 0x100>;
317 clocks = <&gcc GSBI2_H_CLK>;
318 clock-names = "iface";
319 #address-cells = <1>;
323 syscon-tcsr = <&tcsr>;
326 compatible = "qcom,i2c-qup-v1.1.1";
327 reg = <0x124a0000 0x1000>;
328 interrupts = <0 196 IRQ_TYPE_NONE>;
329 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
330 clock-names = "core", "iface";
331 #address-cells = <1>;
336 gsbi3: gsbi@16200000 {
338 compatible = "qcom,gsbi-v1.0.0";
340 reg = <0x16200000 0x100>;
341 clocks = <&gcc GSBI3_H_CLK>;
342 clock-names = "iface";
343 #address-cells = <1>;
347 compatible = "qcom,i2c-qup-v1.1.1";
348 pinctrl-0 = <&i2c3_pins>;
349 pinctrl-names = "default";
350 reg = <0x16280000 0x1000>;
351 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
352 clocks = <&gcc GSBI3_QUP_CLK>,
354 clock-names = "core", "iface";
358 gsbi5: gsbi@1a200000 {
360 compatible = "qcom,gsbi-v1.0.0";
362 reg = <0x1a200000 0x03>;
363 clocks = <&gcc GSBI5_H_CLK>;
364 clock-names = "iface";
365 #address-cells = <1>;
369 gsbi5_serial: serial@1a240000 {
370 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
371 reg = <0x1a240000 0x100>,
373 interrupts = <0 154 0x0>;
374 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
375 clock-names = "core", "iface";
380 gsbi6: gsbi@16500000 {
382 compatible = "qcom,gsbi-v1.0.0";
384 reg = <0x16500000 0x03>;
385 clocks = <&gcc GSBI6_H_CLK>;
386 clock-names = "iface";
387 #address-cells = <1>;
391 gsbi6_serial: serial@16540000 {
392 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
393 reg = <0x16540000 0x100>,
395 interrupts = <0 156 0x0>;
396 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
397 clock-names = "core", "iface";
402 gsbi7: gsbi@16600000 {
404 compatible = "qcom,gsbi-v1.0.0";
406 reg = <0x16600000 0x100>;
407 clocks = <&gcc GSBI7_H_CLK>;
408 clock-names = "iface";
409 #address-cells = <1>;
412 syscon-tcsr = <&tcsr>;
414 gsbi7_serial: serial@16640000 {
415 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
416 reg = <0x16640000 0x1000>,
418 interrupts = <0 158 0x0>;
419 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
420 clock-names = "core", "iface";
426 compatible = "qcom,prng";
427 reg = <0x1a500000 0x200>;
428 clocks = <&gcc PRNG_CLK>;
429 clock-names = "core";
433 compatible = "qcom,ssbi";
434 reg = <0x00500000 0x1000>;
435 qcom,controller-type = "pmic-arbiter";
438 compatible = "qcom,pm8921";
439 interrupt-parent = <&tlmm_pinmux>;
441 #interrupt-cells = <2>;
442 interrupt-controller;
443 #address-cells = <1>;
446 pm8921_gpio: gpio@150 {
448 compatible = "qcom,pm8921-gpio",
451 interrupts = <192 1>, <193 1>, <194 1>,
452 <195 1>, <196 1>, <197 1>,
453 <198 1>, <199 1>, <200 1>,
454 <201 1>, <202 1>, <203 1>,
455 <204 1>, <205 1>, <206 1>,
456 <207 1>, <208 1>, <209 1>,
457 <210 1>, <211 1>, <212 1>,
458 <213 1>, <214 1>, <215 1>,
459 <216 1>, <217 1>, <218 1>,
460 <219 1>, <220 1>, <221 1>,
461 <222 1>, <223 1>, <224 1>,
462 <225 1>, <226 1>, <227 1>,
463 <228 1>, <229 1>, <230 1>,
464 <231 1>, <232 1>, <233 1>,
472 pm8921_mpps: mpps@50 {
473 compatible = "qcom,pm8921-mpp",
479 <128 1>, <129 1>, <130 1>, <131 1>,
480 <132 1>, <133 1>, <134 1>, <135 1>,
481 <136 1>, <137 1>, <138 1>, <139 1>;
485 compatible = "qcom,pm8921-rtc";
486 interrupt-parent = <&pmicintc>;
493 compatible = "qcom,pm8921-pwrkey";
495 interrupt-parent = <&pmicintc>;
496 interrupts = <50 1>, <51 1>;
503 gcc: clock-controller@900000 {
504 compatible = "qcom,gcc-apq8064";
505 reg = <0x00900000 0x4000>;
510 lcc: clock-controller@28000000 {
511 compatible = "qcom,lcc-apq8064";
512 reg = <0x28000000 0x1000>;
517 mmcc: clock-controller@4000000 {
518 compatible = "qcom,mmcc-apq8064";
519 reg = <0x4000000 0x1000>;
524 l2cc: clock-controller@2011000 {
525 compatible = "syscon";
526 reg = <0x2011000 0x1000>;
530 compatible = "qcom,rpm-apq8064";
531 reg = <0x108000 0x1000>;
532 qcom,ipc = <&l2cc 0x8 2>;
534 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
535 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
536 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
537 interrupt-names = "ack", "err", "wakeup";
540 compatible = "qcom,rpm-pm8921-regulators";
576 pm8921_lvs1: lvs1 {};
577 pm8921_lvs2: lvs2 {};
578 pm8921_lvs3: lvs3 {};
579 pm8921_lvs4: lvs4 {};
580 pm8921_lvs5: lvs5 {};
581 pm8921_lvs6: lvs6 {};
582 pm8921_lvs7: lvs7 {};
584 pm8921_usb_switch: usb-switch {};
586 pm8921_hdmi_switch: hdmi-switch {
594 usb1_phy: phy@12500000 {
595 compatible = "qcom,usb-otg-ci";
596 reg = <0x12500000 0x400>;
597 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
601 clocks = <&gcc USB_HS1_XCVR_CLK>,
602 <&gcc USB_HS1_H_CLK>;
603 clock-names = "core", "iface";
605 resets = <&gcc USB_HS1_RESET>;
606 reset-names = "link";
609 usb3_phy: phy@12520000 {
610 compatible = "qcom,usb-otg-ci";
611 reg = <0x12520000 0x400>;
612 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
616 clocks = <&gcc USB_HS3_XCVR_CLK>,
617 <&gcc USB_HS3_H_CLK>;
618 clock-names = "core", "iface";
620 resets = <&gcc USB_HS3_RESET>;
621 reset-names = "link";
624 usb4_phy: phy@12530000 {
625 compatible = "qcom,usb-otg-ci";
626 reg = <0x12530000 0x400>;
627 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
631 clocks = <&gcc USB_HS4_XCVR_CLK>,
632 <&gcc USB_HS4_H_CLK>;
633 clock-names = "core", "iface";
635 resets = <&gcc USB_HS4_RESET>;
636 reset-names = "link";
639 gadget1: gadget@12500000 {
640 compatible = "qcom,ci-hdrc";
641 reg = <0x12500000 0x400>;
643 dr_mode = "peripheral";
644 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
645 usb-phy = <&usb1_phy>;
649 compatible = "qcom,ehci-host";
650 reg = <0x12500000 0x400>;
651 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
653 usb-phy = <&usb1_phy>;
657 compatible = "qcom,ehci-host";
658 reg = <0x12520000 0x400>;
659 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
661 usb-phy = <&usb3_phy>;
665 compatible = "qcom,ehci-host";
666 reg = <0x12530000 0x400>;
667 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
669 usb-phy = <&usb4_phy>;
672 sata_phy0: phy@1b400000 {
673 compatible = "qcom,apq8064-sata-phy";
675 reg = <0x1b400000 0x200>;
676 reg-names = "phy_mem";
677 clocks = <&gcc SATA_PHY_CFG_CLK>;
682 sata0: sata@29000000 {
683 compatible = "generic-ahci";
685 reg = <0x29000000 0x180>;
686 interrupts = <GIC_SPI 209 IRQ_TYPE_NONE>;
688 clocks = <&gcc SFAB_SATA_S_H_CLK>,
691 <&gcc SATA_RXOOB_CLK>,
692 <&gcc SATA_PMALIVE_CLK>;
693 clock-names = "slave_iface",
699 assigned-clocks = <&gcc SATA_RXOOB_CLK>,
700 <&gcc SATA_PMALIVE_CLK>;
701 assigned-clock-rates = <100000000>, <100000000>;
704 phy-names = "sata-phy";
707 /* Temporary fixed regulator */
708 sdcc1bam:dma@12402000{
709 compatible = "qcom,bam-v1.3.0";
710 reg = <0x12402000 0x8000>;
711 interrupts = <0 98 0>;
712 clocks = <&gcc SDC1_H_CLK>;
713 clock-names = "bam_clk";
718 sdcc3bam:dma@12182000{
719 compatible = "qcom,bam-v1.3.0";
720 reg = <0x12182000 0x8000>;
721 interrupts = <0 96 0>;
722 clocks = <&gcc SDC3_H_CLK>;
723 clock-names = "bam_clk";
728 sdcc4bam:dma@121c2000{
729 compatible = "qcom,bam-v1.3.0";
730 reg = <0x121c2000 0x8000>;
731 interrupts = <0 95 0>;
732 clocks = <&gcc SDC4_H_CLK>;
733 clock-names = "bam_clk";
739 compatible = "arm,amba-bus";
740 #address-cells = <1>;
743 sdcc1: sdcc@12400000 {
745 compatible = "arm,pl18x", "arm,primecell";
746 arm,primecell-periphid = <0x00051180>;
747 reg = <0x12400000 0x2000>;
748 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
749 interrupt-names = "cmd_irq";
750 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
751 clock-names = "mclk", "apb_pclk";
753 max-frequency = <96000000>;
757 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
758 dma-names = "tx", "rx";
761 sdcc3: sdcc@12180000 {
762 compatible = "arm,pl18x", "arm,primecell";
763 arm,primecell-periphid = <0x00051180>;
765 reg = <0x12180000 0x2000>;
766 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
767 interrupt-names = "cmd_irq";
768 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
769 clock-names = "mclk", "apb_pclk";
773 max-frequency = <192000000>;
775 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
776 dma-names = "tx", "rx";
779 sdcc4: sdcc@121c0000 {
780 compatible = "arm,pl18x", "arm,primecell";
781 arm,primecell-periphid = <0x00051180>;
783 reg = <0x121c0000 0x2000>;
784 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
785 interrupt-names = "cmd_irq";
786 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
787 clock-names = "mclk", "apb_pclk";
791 max-frequency = <48000000>;
792 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
793 dma-names = "tx", "rx";
794 pinctrl-names = "default";
795 pinctrl-0 = <&sdc4_gpios>;
799 tcsr: syscon@1a400000 {
800 compatible = "qcom,tcsr-apq8064", "syscon";
801 reg = <0x1a400000 0x100>;
805 compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
806 reg = <0x1b500000 0x1000
809 0x0ff00000 0x100000>;
810 reg-names = "dbi", "elbi", "parf", "config";
812 linux,pci-domain = <0>;
813 bus-range = <0x00 0xff>;
815 #address-cells = <3>;
817 ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000 /* I/O */
818 0x82000000 0 0 0x08000000 0 0x07e00000>; /* memory */
819 interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
820 interrupt-names = "msi";
821 #interrupt-cells = <1>;
822 interrupt-map-mask = <0 0 0 0x7>;
823 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
824 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
825 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
826 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
827 clocks = <&gcc PCIE_A_CLK>,
829 <&gcc PCIE_PHY_REF_CLK>;
830 clock-names = "core", "iface", "phy";
831 resets = <&gcc PCIE_ACLK_RESET>,
832 <&gcc PCIE_HCLK_RESET>,
833 <&gcc PCIE_POR_RESET>,
834 <&gcc PCIE_PCI_RESET>,
835 <&gcc PCIE_PHY_RESET>;
836 reset-names = "axi", "ahb", "por", "pci", "phy";
840 hdmi: qcom,hdmi-tx@4a00000 {
841 compatible = "qcom,hdmi-tx-8960";
842 reg-names = "core_physical";
843 reg = <0x04a00000 0x1000>;
844 interrupts = <GIC_SPI 79 0>;
850 <&mmcc HDMI_APP_CLK>,
851 <&mmcc HDMI_M_AHB_CLK>,
852 <&mmcc HDMI_S_AHB_CLK>;
853 qcom,hdmi-tx-ddc-clk = <&tlmm_pinmux 70 GPIO_ACTIVE_HIGH>;
854 qcom,hdmi-tx-ddc-data = <&tlmm_pinmux 71 GPIO_ACTIVE_HIGH>;
855 qcom,hdmi-tx-hpd = <&tlmm_pinmux 72 GPIO_ACTIVE_HIGH>;
856 pinctrl-names = "default";
857 pinctrl-0 = <&hdmi_pinctrl>;
860 gpu: qcom,adreno-3xx@4300000 {
861 compatible = "qcom,adreno-3xx";
862 reg = <0x04300000 0x20000>;
863 reg-names = "kgsl_3d0_reg_memory";
864 interrupts = <GIC_SPI 80 0>;
865 interrupt-names = "kgsl_3d0_irq";
873 <&mmcc GFX3D_AHB_CLK>,
874 <&mmcc GFX3D_AXI_CLK>,
875 <&mmcc MMSS_IMEM_AHB_CLK>;
876 qcom,chipid = <0x03020002>;
878 compatible = "qcom,gpu-pwrlevels";
879 qcom,gpu-pwrlevel@0 {
880 qcom,gpu-freq = <450000000>;
882 qcom,gpu-pwrlevel@1 {
883 qcom,gpu-freq = <27000000>;
888 mdp: qcom,mdp@5100000 {
889 compatible = "qcom,mdp";
890 reg = <0x05100000 0xf0000>;
891 interrupts = <GIC_SPI 75 0>;
892 connectors = <&hdmi>;