1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
6 #include <dt-bindings/clock/qcom,lcc-ipq806x.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/reset/qcom,gcc-ipq806x.h>
9 #include <dt-bindings/soc/qcom,gsbi.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
15 model = "Qualcomm IPQ8064";
16 compatible = "qcom,ipq8064";
17 interrupt-parent = <&intc>;
24 compatible = "qcom,krait";
25 enable-method = "qcom,kpss-acc-v1";
28 next-level-cache = <&L2>;
34 compatible = "qcom,krait";
35 enable-method = "qcom,kpss-acc-v1";
38 next-level-cache = <&L2>;
50 device_type = "memory";
55 compatible = "qcom,krait-pmu";
56 interrupts = <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
57 IRQ_TYPE_LEVEL_HIGH)>;
66 reg = <0x40000000 0x1000000>;
71 reg = <0x41000000 0x200000>;
78 compatible = "fixed-clock";
80 clock-frequency = <25000000>;
84 compatible = "fixed-clock";
86 clock-frequency = <25000000>;
89 sleep_clk: sleep_clk {
90 compatible = "fixed-clock";
91 clock-frequency = <32768>;
98 compatible = "qcom,scm-ipq806x", "qcom,scm";
103 #address-cells = <1>;
106 compatible = "simple-bus";
109 compatible = "qcom,lpass-cpu";
111 clocks = <&lcc AHBIX_CLK>,
114 clock-names = "ahbix-clk",
117 interrupts = <GIC_SPI 85 IRQ_TYPE_EDGE_RISING>;
118 interrupt-names = "lpass-irq-lpaif";
119 reg = <0x28100000 0x10000>;
120 reg-names = "lpass-lpaif";
123 qcom_pinmux: pinmux@800000 {
124 compatible = "qcom,ipq8064-pinctrl";
125 reg = <0x800000 0x4000>;
128 gpio-ranges = <&qcom_pinmux 0 0 69>;
130 interrupt-controller;
131 #interrupt-cells = <2>;
132 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
134 pcie0_pins: pcie0_pinmux {
137 function = "pcie1_rst";
138 drive-strength = <12>;
143 pcie1_pins: pcie1_pinmux {
146 function = "pcie2_rst";
147 drive-strength = <12>;
152 pcie2_pins: pcie2_pinmux {
155 function = "pcie3_rst";
156 drive-strength = <12>;
163 pins = "gpio18", "gpio19", "gpio21";
165 drive-strength = <10>;
170 leds_pins: leds_pins {
172 pins = "gpio7", "gpio8", "gpio9",
175 drive-strength = <2>;
181 buttons_pins: buttons_pins {
184 drive-strength = <2>;
190 intc: interrupt-controller@2000000 {
191 compatible = "qcom,msm-qgic2";
192 interrupt-controller;
193 #interrupt-cells = <3>;
194 reg = <0x02000000 0x1000>,
199 compatible = "qcom,kpss-timer",
200 "qcom,kpss-wdt-ipq8064", "qcom,msm-timer";
201 interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) |
202 IRQ_TYPE_EDGE_RISING)>,
203 <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) |
204 IRQ_TYPE_EDGE_RISING)>,
205 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) |
206 IRQ_TYPE_EDGE_RISING)>,
207 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) |
208 IRQ_TYPE_EDGE_RISING)>,
209 <GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) |
210 IRQ_TYPE_EDGE_RISING)>;
211 reg = <0x0200a000 0x100>;
212 clock-frequency = <25000000>,
214 clocks = <&sleep_clk>;
215 clock-names = "sleep";
216 cpu-offset = <0x80000>;
219 acc0: clock-controller@2088000 {
220 compatible = "qcom,kpss-acc-v1";
221 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
224 acc1: clock-controller@2098000 {
225 compatible = "qcom,kpss-acc-v1";
226 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
229 saw0: regulator@2089000 {
230 compatible = "qcom,saw2";
231 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
235 saw1: regulator@2099000 {
236 compatible = "qcom,saw2";
237 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
241 gsbi2: gsbi@12480000 {
242 compatible = "qcom,gsbi-v1.0.0";
244 reg = <0x12480000 0x100>;
245 clocks = <&gcc GSBI2_H_CLK>;
246 clock-names = "iface";
247 #address-cells = <1>;
252 syscon-tcsr = <&tcsr>;
254 gsbi2_serial: serial@12490000 {
255 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
256 reg = <0x12490000 0x1000>,
258 interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
259 clocks = <&gcc GSBI2_UART_CLK>, <&gcc GSBI2_H_CLK>;
260 clock-names = "core", "iface";
265 compatible = "qcom,i2c-qup-v1.1.1";
266 reg = <0x124a0000 0x1000>;
267 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
269 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
270 clock-names = "core", "iface";
273 #address-cells = <1>;
278 gsbi4: gsbi@16300000 {
279 compatible = "qcom,gsbi-v1.0.0";
281 reg = <0x16300000 0x100>;
282 clocks = <&gcc GSBI4_H_CLK>;
283 clock-names = "iface";
284 #address-cells = <1>;
289 syscon-tcsr = <&tcsr>;
291 gsbi4_serial: serial@16340000 {
292 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
293 reg = <0x16340000 0x1000>,
295 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
296 clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
297 clock-names = "core", "iface";
302 compatible = "qcom,i2c-qup-v1.1.1";
303 reg = <0x16380000 0x1000>;
304 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
306 clocks = <&gcc GSBI4_QUP_CLK>, <&gcc GSBI4_H_CLK>;
307 clock-names = "core", "iface";
310 #address-cells = <1>;
315 gsbi5: gsbi@1a200000 {
316 compatible = "qcom,gsbi-v1.0.0";
318 reg = <0x1a200000 0x100>;
319 clocks = <&gcc GSBI5_H_CLK>;
320 clock-names = "iface";
321 #address-cells = <1>;
326 syscon-tcsr = <&tcsr>;
328 gsbi5_serial: serial@1a240000 {
329 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
330 reg = <0x1a240000 0x1000>,
332 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
333 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
334 clock-names = "core", "iface";
339 compatible = "qcom,i2c-qup-v1.1.1";
340 reg = <0x1a280000 0x1000>;
341 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
343 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
344 clock-names = "core", "iface";
347 #address-cells = <1>;
352 compatible = "qcom,spi-qup-v1.1.1";
353 reg = <0x1a280000 0x1000>;
354 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
356 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
357 clock-names = "core", "iface";
360 #address-cells = <1>;
365 gsbi7: gsbi@16600000 {
367 compatible = "qcom,gsbi-v1.0.0";
369 reg = <0x16600000 0x100>;
370 clocks = <&gcc GSBI7_H_CLK>;
371 clock-names = "iface";
372 #address-cells = <1>;
375 syscon-tcsr = <&tcsr>;
377 gsbi7_serial: serial@16640000 {
378 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
379 reg = <0x16640000 0x1000>,
381 interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
382 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
383 clock-names = "core", "iface";
389 compatible = "qcom,prng";
390 reg = <0x1a500000 0x200>;
391 clocks = <&gcc PRNG_CLK>;
392 clock-names = "core";
395 sata_phy: sata-phy@1b400000 {
396 compatible = "qcom,ipq806x-sata-phy";
397 reg = <0x1b400000 0x200>;
399 clocks = <&gcc SATA_PHY_CFG_CLK>;
406 sata: sata@29000000 {
407 compatible = "qcom,ipq806x-ahci", "generic-ahci";
408 reg = <0x29000000 0x180>;
410 interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
412 clocks = <&gcc SFAB_SATA_S_H_CLK>,
415 <&gcc SATA_RXOOB_CLK>,
416 <&gcc SATA_PMALIVE_CLK>;
417 clock-names = "slave_face", "iface", "core",
420 assigned-clocks = <&gcc SATA_RXOOB_CLK>, <&gcc SATA_PMALIVE_CLK>;
421 assigned-clock-rates = <100000000>, <100000000>;
424 phy-names = "sata-phy";
429 compatible = "qcom,ssbi";
430 reg = <0x00500000 0x1000>;
431 qcom,controller-type = "pmic-arbiter";
434 qfprom: qfprom@700000 {
435 compatible = "qcom,qfprom";
436 reg = <0x00700000 0x1000>;
437 #address-cells = <1>;
441 gcc: clock-controller@900000 {
442 compatible = "qcom,gcc-ipq8064";
443 reg = <0x00900000 0x4000>;
448 tcsr: syscon@1a400000 {
449 compatible = "qcom,tcsr-ipq8064", "syscon";
450 reg = <0x1a400000 0x100>;
453 lcc: clock-controller@28000000 {
454 compatible = "qcom,lcc-ipq8064";
455 reg = <0x28000000 0x1000>;
460 pcie0: pci@1b500000 {
461 compatible = "qcom,pcie-ipq8064";
462 reg = <0x1b500000 0x1000
465 0x0ff00000 0x100000>;
466 reg-names = "dbi", "elbi", "parf", "config";
468 linux,pci-domain = <0>;
469 bus-range = <0x00 0xff>;
471 #address-cells = <3>;
474 ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
475 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
477 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
478 interrupt-names = "msi";
479 #interrupt-cells = <1>;
480 interrupt-map-mask = <0 0 0 0x7>;
481 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
482 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
483 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
484 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
486 clocks = <&gcc PCIE_A_CLK>,
490 <&gcc PCIE_ALT_REF_CLK>;
491 clock-names = "core", "iface", "phy", "aux", "ref";
493 assigned-clocks = <&gcc PCIE_ALT_REF_CLK>;
494 assigned-clock-rates = <100000000>;
496 resets = <&gcc PCIE_ACLK_RESET>,
497 <&gcc PCIE_HCLK_RESET>,
498 <&gcc PCIE_POR_RESET>,
499 <&gcc PCIE_PCI_RESET>,
500 <&gcc PCIE_PHY_RESET>,
501 <&gcc PCIE_EXT_RESET>;
502 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
504 pinctrl-0 = <&pcie0_pins>;
505 pinctrl-names = "default";
508 perst-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
511 pcie1: pci@1b700000 {
512 compatible = "qcom,pcie-ipq8064";
513 reg = <0x1b700000 0x1000
516 0x31f00000 0x100000>;
517 reg-names = "dbi", "elbi", "parf", "config";
519 linux,pci-domain = <1>;
520 bus-range = <0x00 0xff>;
522 #address-cells = <3>;
525 ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
526 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
528 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
529 interrupt-names = "msi";
530 #interrupt-cells = <1>;
531 interrupt-map-mask = <0 0 0 0x7>;
532 interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
533 <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
534 <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
535 <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
537 clocks = <&gcc PCIE_1_A_CLK>,
539 <&gcc PCIE_1_PHY_CLK>,
540 <&gcc PCIE_1_AUX_CLK>,
541 <&gcc PCIE_1_ALT_REF_CLK>;
542 clock-names = "core", "iface", "phy", "aux", "ref";
544 assigned-clocks = <&gcc PCIE_1_ALT_REF_CLK>;
545 assigned-clock-rates = <100000000>;
547 resets = <&gcc PCIE_1_ACLK_RESET>,
548 <&gcc PCIE_1_HCLK_RESET>,
549 <&gcc PCIE_1_POR_RESET>,
550 <&gcc PCIE_1_PCI_RESET>,
551 <&gcc PCIE_1_PHY_RESET>,
552 <&gcc PCIE_1_EXT_RESET>;
553 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
555 pinctrl-0 = <&pcie1_pins>;
556 pinctrl-names = "default";
559 perst-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
562 pcie2: pci@1b900000 {
563 compatible = "qcom,pcie-ipq8064";
564 reg = <0x1b900000 0x1000
567 0x35f00000 0x100000>;
568 reg-names = "dbi", "elbi", "parf", "config";
570 linux,pci-domain = <2>;
571 bus-range = <0x00 0xff>;
573 #address-cells = <3>;
576 ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
577 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
579 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
580 interrupt-names = "msi";
581 #interrupt-cells = <1>;
582 interrupt-map-mask = <0 0 0 0x7>;
583 interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
584 <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
585 <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
586 <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
588 clocks = <&gcc PCIE_2_A_CLK>,
590 <&gcc PCIE_2_PHY_CLK>,
591 <&gcc PCIE_2_AUX_CLK>,
592 <&gcc PCIE_2_ALT_REF_CLK>;
593 clock-names = "core", "iface", "phy", "aux", "ref";
595 assigned-clocks = <&gcc PCIE_2_ALT_REF_CLK>;
596 assigned-clock-rates = <100000000>;
598 resets = <&gcc PCIE_2_ACLK_RESET>,
599 <&gcc PCIE_2_HCLK_RESET>,
600 <&gcc PCIE_2_POR_RESET>,
601 <&gcc PCIE_2_PCI_RESET>,
602 <&gcc PCIE_2_PHY_RESET>,
603 <&gcc PCIE_2_EXT_RESET>;
604 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
606 pinctrl-0 = <&pcie2_pins>;
607 pinctrl-names = "default";
610 perst-gpio = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
613 nss_common: syscon@03000000 {
614 compatible = "syscon";
615 reg = <0x03000000 0x0000FFFF>;
618 qsgmii_csr: syscon@1bb00000 {
619 compatible = "syscon";
620 reg = <0x1bb00000 0x000001FF>;
623 stmmac_axi_setup: stmmac-axi-config {
624 snps,wr_osr_lmt = <7>;
625 snps,rd_osr_lmt = <7>;
626 snps,blen = <16 0 0 0 0 0 0>;
629 gmac0: ethernet@37000000 {
630 device_type = "network";
631 compatible = "qcom,ipq806x-gmac";
632 reg = <0x37000000 0x200000>;
633 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
634 interrupt-names = "macirq";
636 snps,axi-config = <&stmmac_axi_setup>;
640 qcom,nss-common = <&nss_common>;
641 qcom,qsgmii-csr = <&qsgmii_csr>;
643 clocks = <&gcc GMAC_CORE1_CLK>;
644 clock-names = "stmmaceth";
646 resets = <&gcc GMAC_CORE1_RESET>;
647 reset-names = "stmmaceth";
652 gmac1: ethernet@37200000 {
653 device_type = "network";
654 compatible = "qcom,ipq806x-gmac";
655 reg = <0x37200000 0x200000>;
656 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
657 interrupt-names = "macirq";
659 snps,axi-config = <&stmmac_axi_setup>;
663 qcom,nss-common = <&nss_common>;
664 qcom,qsgmii-csr = <&qsgmii_csr>;
666 clocks = <&gcc GMAC_CORE2_CLK>;
667 clock-names = "stmmaceth";
669 resets = <&gcc GMAC_CORE2_RESET>;
670 reset-names = "stmmaceth";
675 gmac2: ethernet@37400000 {
676 device_type = "network";
677 compatible = "qcom,ipq806x-gmac";
678 reg = <0x37400000 0x200000>;
679 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
680 interrupt-names = "macirq";
682 snps,axi-config = <&stmmac_axi_setup>;
686 qcom,nss-common = <&nss_common>;
687 qcom,qsgmii-csr = <&qsgmii_csr>;
689 clocks = <&gcc GMAC_CORE3_CLK>;
690 clock-names = "stmmaceth";
692 resets = <&gcc GMAC_CORE3_RESET>;
693 reset-names = "stmmaceth";
698 gmac3: ethernet@37600000 {
699 device_type = "network";
700 compatible = "qcom,ipq806x-gmac";
701 reg = <0x37600000 0x200000>;
702 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
703 interrupt-names = "macirq";
705 snps,axi-config = <&stmmac_axi_setup>;
709 qcom,nss-common = <&nss_common>;
710 qcom,qsgmii-csr = <&qsgmii_csr>;
712 clocks = <&gcc GMAC_CORE4_CLK>;
713 clock-names = "stmmaceth";
715 resets = <&gcc GMAC_CORE4_RESET>;
716 reset-names = "stmmaceth";
721 vsdcc_fixed: vsdcc-regulator {
722 compatible = "regulator-fixed";
723 regulator-name = "SDCC Power";
724 regulator-min-microvolt = <3300000>;
725 regulator-max-microvolt = <3300000>;
729 sdcc1bam: dma@12402000 {
730 compatible = "qcom,bam-v1.3.0";
731 reg = <0x12402000 0x8000>;
732 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
733 clocks = <&gcc SDC1_H_CLK>;
734 clock-names = "bam_clk";
739 sdcc3bam: dma@12182000 {
740 compatible = "qcom,bam-v1.3.0";
741 reg = <0x12182000 0x8000>;
742 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
743 clocks = <&gcc SDC3_H_CLK>;
744 clock-names = "bam_clk";
750 compatible = "simple-bus";
751 #address-cells = <1>;
755 sdcc1: sdcc@12400000 {
757 compatible = "arm,pl18x", "arm,primecell";
758 arm,primecell-periphid = <0x00051180>;
759 reg = <0x12400000 0x2000>;
760 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
761 interrupt-names = "cmd_irq";
762 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
763 clock-names = "mclk", "apb_pclk";
765 max-frequency = <96000000>;
770 vmmc-supply = <&vsdcc_fixed>;
771 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
772 dma-names = "tx", "rx";
775 sdcc3: sdcc@12180000 {
776 compatible = "arm,pl18x", "arm,primecell";
777 arm,primecell-periphid = <0x00051180>;
779 reg = <0x12180000 0x2000>;
780 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
781 interrupt-names = "cmd_irq";
782 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
783 clock-names = "mclk", "apb_pclk";
787 max-frequency = <192000000>;
790 vqmmc-supply = <&vsdcc_fixed>;
791 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
792 dma-names = "tx", "rx";