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>;
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>;
279 gsbi4: gsbi@16300000 {
280 compatible = "qcom,gsbi-v1.0.0";
282 reg = <0x16300000 0x100>;
283 clocks = <&gcc GSBI4_H_CLK>;
284 clock-names = "iface";
285 #address-cells = <1>;
290 syscon-tcsr = <&tcsr>;
292 gsbi4_serial: serial@16340000 {
293 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
294 reg = <0x16340000 0x1000>,
296 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
297 clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
298 clock-names = "core", "iface";
303 compatible = "qcom,i2c-qup-v1.1.1";
304 reg = <0x16380000 0x1000>;
305 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
307 clocks = <&gcc GSBI4_QUP_CLK>, <&gcc GSBI4_H_CLK>;
308 clock-names = "core", "iface";
311 #address-cells = <1>;
316 gsbi5: gsbi@1a200000 {
317 compatible = "qcom,gsbi-v1.0.0";
319 reg = <0x1a200000 0x100>;
320 clocks = <&gcc GSBI5_H_CLK>;
321 clock-names = "iface";
322 #address-cells = <1>;
327 syscon-tcsr = <&tcsr>;
330 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
331 reg = <0x1a240000 0x1000>,
333 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
334 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
335 clock-names = "core", "iface";
340 compatible = "qcom,i2c-qup-v1.1.1";
341 reg = <0x1a280000 0x1000>;
342 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
344 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
345 clock-names = "core", "iface";
348 #address-cells = <1>;
353 compatible = "qcom,spi-qup-v1.1.1";
354 reg = <0x1a280000 0x1000>;
355 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
357 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
358 clock-names = "core", "iface";
361 #address-cells = <1>;
366 gsbi7: gsbi@16600000 {
368 compatible = "qcom,gsbi-v1.0.0";
370 reg = <0x16600000 0x100>;
371 clocks = <&gcc GSBI7_H_CLK>;
372 clock-names = "iface";
373 #address-cells = <1>;
376 syscon-tcsr = <&tcsr>;
378 gsbi7_serial: serial@16640000 {
379 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
380 reg = <0x16640000 0x1000>,
382 interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
383 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
384 clock-names = "core", "iface";
389 sata_phy: sata-phy@1b400000 {
390 compatible = "qcom,ipq806x-sata-phy";
391 reg = <0x1b400000 0x200>;
393 clocks = <&gcc SATA_PHY_CFG_CLK>;
401 compatible = "qcom,ipq806x-ahci", "generic-ahci";
402 reg = <0x29000000 0x180>;
404 interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
406 clocks = <&gcc SFAB_SATA_S_H_CLK>,
409 <&gcc SATA_RXOOB_CLK>,
410 <&gcc SATA_PMALIVE_CLK>;
411 clock-names = "slave_face", "iface", "core",
414 assigned-clocks = <&gcc SATA_RXOOB_CLK>, <&gcc SATA_PMALIVE_CLK>;
415 assigned-clock-rates = <100000000>, <100000000>;
418 phy-names = "sata-phy";
423 compatible = "qcom,ssbi";
424 reg = <0x00500000 0x1000>;
425 qcom,controller-type = "pmic-arbiter";
428 qfprom: qfprom@700000 {
429 compatible = "qcom,qfprom";
430 reg = <0x00700000 0x1000>;
431 #address-cells = <1>;
435 gcc: clock-controller@900000 {
436 compatible = "qcom,gcc-ipq8064";
437 reg = <0x00900000 0x4000>;
442 tcsr: syscon@1a400000 {
443 compatible = "qcom,tcsr-ipq8064", "syscon";
444 reg = <0x1a400000 0x100>;
447 lcc: clock-controller@28000000 {
448 compatible = "qcom,lcc-ipq8064";
449 reg = <0x28000000 0x1000>;
454 pcie0: pci@1b500000 {
455 compatible = "qcom,pcie-ipq8064";
456 reg = <0x1b500000 0x1000
459 0x0ff00000 0x100000>;
460 reg-names = "dbi", "elbi", "parf", "config";
462 linux,pci-domain = <0>;
463 bus-range = <0x00 0xff>;
465 #address-cells = <3>;
468 ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
469 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
471 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
472 interrupt-names = "msi";
473 #interrupt-cells = <1>;
474 interrupt-map-mask = <0 0 0 0x7>;
475 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
476 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
477 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
478 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
480 clocks = <&gcc PCIE_A_CLK>,
484 <&gcc PCIE_ALT_REF_CLK>;
485 clock-names = "core", "iface", "phy", "aux", "ref";
487 assigned-clocks = <&gcc PCIE_ALT_REF_CLK>;
488 assigned-clock-rates = <100000000>;
490 resets = <&gcc PCIE_ACLK_RESET>,
491 <&gcc PCIE_HCLK_RESET>,
492 <&gcc PCIE_POR_RESET>,
493 <&gcc PCIE_PCI_RESET>,
494 <&gcc PCIE_PHY_RESET>,
495 <&gcc PCIE_EXT_RESET>;
496 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
498 pinctrl-0 = <&pcie0_pins>;
499 pinctrl-names = "default";
502 perst-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
505 pcie1: pci@1b700000 {
506 compatible = "qcom,pcie-ipq8064";
507 reg = <0x1b700000 0x1000
510 0x31f00000 0x100000>;
511 reg-names = "dbi", "elbi", "parf", "config";
513 linux,pci-domain = <1>;
514 bus-range = <0x00 0xff>;
516 #address-cells = <3>;
519 ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
520 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
522 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
523 interrupt-names = "msi";
524 #interrupt-cells = <1>;
525 interrupt-map-mask = <0 0 0 0x7>;
526 interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
527 <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
528 <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
529 <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
531 clocks = <&gcc PCIE_1_A_CLK>,
533 <&gcc PCIE_1_PHY_CLK>,
534 <&gcc PCIE_1_AUX_CLK>,
535 <&gcc PCIE_1_ALT_REF_CLK>;
536 clock-names = "core", "iface", "phy", "aux", "ref";
538 assigned-clocks = <&gcc PCIE_1_ALT_REF_CLK>;
539 assigned-clock-rates = <100000000>;
541 resets = <&gcc PCIE_1_ACLK_RESET>,
542 <&gcc PCIE_1_HCLK_RESET>,
543 <&gcc PCIE_1_POR_RESET>,
544 <&gcc PCIE_1_PCI_RESET>,
545 <&gcc PCIE_1_PHY_RESET>,
546 <&gcc PCIE_1_EXT_RESET>;
547 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
549 pinctrl-0 = <&pcie1_pins>;
550 pinctrl-names = "default";
553 perst-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
556 pcie2: pci@1b900000 {
557 compatible = "qcom,pcie-ipq8064";
558 reg = <0x1b900000 0x1000
561 0x35f00000 0x100000>;
562 reg-names = "dbi", "elbi", "parf", "config";
564 linux,pci-domain = <2>;
565 bus-range = <0x00 0xff>;
567 #address-cells = <3>;
570 ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
571 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
573 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
574 interrupt-names = "msi";
575 #interrupt-cells = <1>;
576 interrupt-map-mask = <0 0 0 0x7>;
577 interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
578 <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
579 <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
580 <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
582 clocks = <&gcc PCIE_2_A_CLK>,
584 <&gcc PCIE_2_PHY_CLK>,
585 <&gcc PCIE_2_AUX_CLK>,
586 <&gcc PCIE_2_ALT_REF_CLK>;
587 clock-names = "core", "iface", "phy", "aux", "ref";
589 assigned-clocks = <&gcc PCIE_2_ALT_REF_CLK>;
590 assigned-clock-rates = <100000000>;
592 resets = <&gcc PCIE_2_ACLK_RESET>,
593 <&gcc PCIE_2_HCLK_RESET>,
594 <&gcc PCIE_2_POR_RESET>,
595 <&gcc PCIE_2_PCI_RESET>,
596 <&gcc PCIE_2_PHY_RESET>,
597 <&gcc PCIE_2_EXT_RESET>;
598 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
600 pinctrl-0 = <&pcie2_pins>;
601 pinctrl-names = "default";
604 perst-gpio = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
607 nss_common: syscon@03000000 {
608 compatible = "syscon";
609 reg = <0x03000000 0x0000FFFF>;
612 qsgmii_csr: syscon@1bb00000 {
613 compatible = "syscon";
614 reg = <0x1bb00000 0x000001FF>;
617 stmmac_axi_setup: stmmac-axi-config {
618 snps,wr_osr_lmt = <7>;
619 snps,rd_osr_lmt = <7>;
620 snps,blen = <16 0 0 0 0 0 0>;
623 gmac0: ethernet@37000000 {
624 device_type = "network";
625 compatible = "qcom,ipq806x-gmac";
626 reg = <0x37000000 0x200000>;
627 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
628 interrupt-names = "macirq";
630 snps,axi-config = <&stmmac_axi_setup>;
634 qcom,nss-common = <&nss_common>;
635 qcom,qsgmii-csr = <&qsgmii_csr>;
637 clocks = <&gcc GMAC_CORE1_CLK>;
638 clock-names = "stmmaceth";
640 resets = <&gcc GMAC_CORE1_RESET>;
641 reset-names = "stmmaceth";
646 gmac1: ethernet@37200000 {
647 device_type = "network";
648 compatible = "qcom,ipq806x-gmac";
649 reg = <0x37200000 0x200000>;
650 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
651 interrupt-names = "macirq";
653 snps,axi-config = <&stmmac_axi_setup>;
657 qcom,nss-common = <&nss_common>;
658 qcom,qsgmii-csr = <&qsgmii_csr>;
660 clocks = <&gcc GMAC_CORE2_CLK>;
661 clock-names = "stmmaceth";
663 resets = <&gcc GMAC_CORE2_RESET>;
664 reset-names = "stmmaceth";
669 gmac2: ethernet@37400000 {
670 device_type = "network";
671 compatible = "qcom,ipq806x-gmac";
672 reg = <0x37400000 0x200000>;
673 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
674 interrupt-names = "macirq";
676 snps,axi-config = <&stmmac_axi_setup>;
680 qcom,nss-common = <&nss_common>;
681 qcom,qsgmii-csr = <&qsgmii_csr>;
683 clocks = <&gcc GMAC_CORE3_CLK>;
684 clock-names = "stmmaceth";
686 resets = <&gcc GMAC_CORE3_RESET>;
687 reset-names = "stmmaceth";
692 gmac3: ethernet@37600000 {
693 device_type = "network";
694 compatible = "qcom,ipq806x-gmac";
695 reg = <0x37600000 0x200000>;
696 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
697 interrupt-names = "macirq";
699 snps,axi-config = <&stmmac_axi_setup>;
703 qcom,nss-common = <&nss_common>;
704 qcom,qsgmii-csr = <&qsgmii_csr>;
706 clocks = <&gcc GMAC_CORE4_CLK>;
707 clock-names = "stmmaceth";
709 resets = <&gcc GMAC_CORE4_RESET>;
710 reset-names = "stmmaceth";
715 vsdcc_fixed: vsdcc-regulator {
716 compatible = "regulator-fixed";
717 regulator-name = "SDCC Power";
718 regulator-min-microvolt = <3300000>;
719 regulator-max-microvolt = <3300000>;
723 sdcc1bam:dma@12402000 {
724 compatible = "qcom,bam-v1.3.0";
725 reg = <0x12402000 0x8000>;
726 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
727 clocks = <&gcc SDC1_H_CLK>;
728 clock-names = "bam_clk";
733 sdcc3bam:dma@12182000 {
734 compatible = "qcom,bam-v1.3.0";
735 reg = <0x12182000 0x8000>;
736 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
737 clocks = <&gcc SDC3_H_CLK>;
738 clock-names = "bam_clk";
744 compatible = "simple-bus";
745 #address-cells = <1>;
751 compatible = "arm,pl18x", "arm,primecell";
752 arm,primecell-periphid = <0x00051180>;
753 reg = <0x12400000 0x2000>;
754 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
755 interrupt-names = "cmd_irq";
756 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
757 clock-names = "mclk", "apb_pclk";
759 max-frequency = <96000000>;
764 vmmc-supply = <&vsdcc_fixed>;
765 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
766 dma-names = "tx", "rx";
770 compatible = "arm,pl18x", "arm,primecell";
771 arm,primecell-periphid = <0x00051180>;
773 reg = <0x12180000 0x2000>;
774 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
775 interrupt-names = "cmd_irq";
776 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
777 clock-names = "mclk", "apb_pclk";
781 max-frequency = <192000000>;
785 vqmmc-supply = <&vsdcc_fixed>;
786 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
787 dma-names = "tx", "rx";