2 * Copyright Altera Corporation (C) 2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <http://www.gnu.org/licenses/>.
17 #include <dt-bindings/interrupt-controller/arm-gic.h>
18 #include <dt-bindings/reset/altr,rst-mgr-a10.h>
27 enable-method = "altr,socfpga-a10-smp";
30 compatible = "arm,cortex-a9";
33 next-level-cache = <&L2>;
36 compatible = "arm,cortex-a9";
39 next-level-cache = <&L2>;
44 compatible = "arm,cortex-a9-gic";
45 #interrupt-cells = <3>;
47 reg = <0xffffd000 0x1000>,
54 compatible = "simple-bus";
56 interrupt-parent = <&intc>;
61 compatible = "simple-bus";
67 compatible = "arm,pl330", "arm,primecell";
68 reg = <0xffda1000 0x1000>;
69 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>,
70 <0 84 IRQ_TYPE_LEVEL_HIGH>,
71 <0 85 IRQ_TYPE_LEVEL_HIGH>,
72 <0 86 IRQ_TYPE_LEVEL_HIGH>,
73 <0 87 IRQ_TYPE_LEVEL_HIGH>,
74 <0 88 IRQ_TYPE_LEVEL_HIGH>,
75 <0 89 IRQ_TYPE_LEVEL_HIGH>,
76 <0 90 IRQ_TYPE_LEVEL_HIGH>,
77 <0 91 IRQ_TYPE_LEVEL_HIGH>;
81 clocks = <&l4_main_clk>;
82 clock-names = "apb_pclk";
87 #address-cells = <0x1>;
90 compatible = "fpga-region";
91 fpga-mgr = <&fpga_mgr>;
95 compatible = "altr,clk-mgr";
96 reg = <0xffd04000 0x1000>;
102 cb_intosc_hs_div2_clk: cb_intosc_hs_div2_clk {
104 compatible = "fixed-clock";
107 cb_intosc_ls_clk: cb_intosc_ls_clk {
109 compatible = "fixed-clock";
112 f2s_free_clk: f2s_free_clk {
114 compatible = "fixed-clock";
119 compatible = "fixed-clock";
122 main_pll: main_pll@40 {
123 #address-cells = <1>;
126 compatible = "altr,socfpga-a10-pll-clock";
127 clocks = <&osc1>, <&cb_intosc_ls_clk>,
131 main_mpu_base_clk: main_mpu_base_clk {
133 compatible = "altr,socfpga-a10-perip-clk";
134 clocks = <&main_pll>;
135 div-reg = <0x140 0 11>;
138 main_noc_base_clk: main_noc_base_clk {
140 compatible = "altr,socfpga-a10-perip-clk";
141 clocks = <&main_pll>;
142 div-reg = <0x144 0 11>;
145 main_emaca_clk: main_emaca_clk@68 {
147 compatible = "altr,socfpga-a10-perip-clk";
148 clocks = <&main_pll>;
152 main_emacb_clk: main_emacb_clk@6c {
154 compatible = "altr,socfpga-a10-perip-clk";
155 clocks = <&main_pll>;
159 main_emac_ptp_clk: main_emac_ptp_clk@70 {
161 compatible = "altr,socfpga-a10-perip-clk";
162 clocks = <&main_pll>;
166 main_gpio_db_clk: main_gpio_db_clk@74 {
168 compatible = "altr,socfpga-a10-perip-clk";
169 clocks = <&main_pll>;
173 main_sdmmc_clk: main_sdmmc_clk@78 {
175 compatible = "altr,socfpga-a10-perip-clk"
177 clocks = <&main_pll>;
181 main_s2f_usr0_clk: main_s2f_usr0_clk@7c {
183 compatible = "altr,socfpga-a10-perip-clk";
184 clocks = <&main_pll>;
188 main_s2f_usr1_clk: main_s2f_usr1_clk@80 {
190 compatible = "altr,socfpga-a10-perip-clk";
191 clocks = <&main_pll>;
195 main_hmc_pll_ref_clk: main_hmc_pll_ref_clk@84 {
197 compatible = "altr,socfpga-a10-perip-clk";
198 clocks = <&main_pll>;
202 main_periph_ref_clk: main_periph_ref_clk@9c {
204 compatible = "altr,socfpga-a10-perip-clk";
205 clocks = <&main_pll>;
210 periph_pll: periph_pll@c0 {
211 #address-cells = <1>;
214 compatible = "altr,socfpga-a10-pll-clock";
215 clocks = <&osc1>, <&cb_intosc_ls_clk>,
216 <&f2s_free_clk>, <&main_periph_ref_clk>;
219 peri_mpu_base_clk: peri_mpu_base_clk {
221 compatible = "altr,socfpga-a10-perip-clk";
222 clocks = <&periph_pll>;
223 div-reg = <0x140 16 11>;
226 peri_noc_base_clk: peri_noc_base_clk {
228 compatible = "altr,socfpga-a10-perip-clk";
229 clocks = <&periph_pll>;
230 div-reg = <0x144 16 11>;
233 peri_emaca_clk: peri_emaca_clk@e8 {
235 compatible = "altr,socfpga-a10-perip-clk";
236 clocks = <&periph_pll>;
240 peri_emacb_clk: peri_emacb_clk@ec {
242 compatible = "altr,socfpga-a10-perip-clk";
243 clocks = <&periph_pll>;
247 peri_emac_ptp_clk: peri_emac_ptp_clk@f0 {
249 compatible = "altr,socfpga-a10-perip-clk";
250 clocks = <&periph_pll>;
254 peri_gpio_db_clk: peri_gpio_db_clk@f4 {
256 compatible = "altr,socfpga-a10-perip-clk";
257 clocks = <&periph_pll>;
261 peri_sdmmc_clk: peri_sdmmc_clk@f8 {
263 compatible = "altr,socfpga-a10-perip-clk";
264 clocks = <&periph_pll>;
268 peri_s2f_usr0_clk: peri_s2f_usr0_clk@fc {
270 compatible = "altr,socfpga-a10-perip-clk";
271 clocks = <&periph_pll>;
275 peri_s2f_usr1_clk: peri_s2f_usr1_clk@100 {
277 compatible = "altr,socfpga-a10-perip-clk";
278 clocks = <&periph_pll>;
282 peri_hmc_pll_ref_clk: peri_hmc_pll_ref_clk@104 {
284 compatible = "altr,socfpga-a10-perip-clk";
285 clocks = <&periph_pll>;
290 mpu_free_clk: mpu_free_clk@60 {
292 compatible = "altr,socfpga-a10-perip-clk";
293 clocks = <&main_mpu_base_clk>, <&peri_mpu_base_clk>,
294 <&osc1>, <&cb_intosc_hs_div2_clk>,
299 noc_free_clk: noc_free_clk@64 {
301 compatible = "altr,socfpga-a10-perip-clk";
302 clocks = <&main_noc_base_clk>, <&peri_noc_base_clk>,
303 <&osc1>, <&cb_intosc_hs_div2_clk>,
308 s2f_user1_free_clk: s2f_user1_free_clk@104 {
310 compatible = "altr,socfpga-a10-perip-clk";
311 clocks = <&main_s2f_usr1_clk>, <&peri_s2f_usr1_clk>,
312 <&osc1>, <&cb_intosc_hs_div2_clk>,
317 sdmmc_free_clk: sdmmc_free_clk@f8 {
319 compatible = "altr,socfpga-a10-perip-clk";
320 clocks = <&main_sdmmc_clk>, <&peri_sdmmc_clk>,
321 <&osc1>, <&cb_intosc_hs_div2_clk>,
327 l4_sys_free_clk: l4_sys_free_clk {
329 compatible = "altr,socfpga-a10-perip-clk";
330 clocks = <&noc_free_clk>;
334 l4_main_clk: l4_main_clk {
336 compatible = "altr,socfpga-a10-gate-clk";
337 clocks = <&noc_free_clk>;
338 div-reg = <0xA8 0 2>;
342 l4_mp_clk: l4_mp_clk {
344 compatible = "altr,socfpga-a10-gate-clk";
345 clocks = <&noc_free_clk>;
346 div-reg = <0xA8 8 2>;
350 l4_sp_clk: l4_sp_clk {
352 compatible = "altr,socfpga-a10-gate-clk";
353 clocks = <&noc_free_clk>;
354 div-reg = <0xA8 16 2>;
358 mpu_periph_clk: mpu_periph_clk {
360 compatible = "altr,socfpga-a10-gate-clk";
361 clocks = <&mpu_free_clk>;
366 sdmmc_clk: sdmmc_clk {
368 compatible = "altr,socfpga-a10-gate-clk";
369 clocks = <&sdmmc_free_clk>;
376 compatible = "altr,socfpga-a10-gate-clk";
377 clocks = <&l4_main_clk>;
378 clk-gate = <0xC8 11>;
383 compatible = "altr,socfpga-a10-gate-clk";
384 clocks = <&l4_mp_clk>;
385 clk-gate = <0xC8 10>;
388 spi_m_clk: spi_m_clk {
390 compatible = "altr,socfpga-a10-gate-clk";
391 clocks = <&l4_main_clk>;
397 compatible = "altr,socfpga-a10-gate-clk";
398 clocks = <&l4_mp_clk>;
402 s2f_usr1_clk: s2f_usr1_clk {
404 compatible = "altr,socfpga-a10-gate-clk";
405 clocks = <&peri_s2f_usr1_clk>;
411 socfpga_axi_setup: stmmac-axi-config {
412 snps,wr_osr_lmt = <0xf>;
413 snps,rd_osr_lmt = <0xf>;
414 snps,blen = <0 0 0 0 16 0 0>;
417 gmac0: ethernet@ff800000 {
418 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
419 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
420 reg = <0xff800000 0x2000>;
421 interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>;
422 interrupt-names = "macirq";
423 /* Filled in by bootloader */
424 mac-address = [00 00 00 00 00 00];
425 snps,multicast-filter-bins = <256>;
426 snps,perfect-filter-entries = <128>;
427 tx-fifo-depth = <4096>;
428 rx-fifo-depth = <16384>;
429 clocks = <&l4_mp_clk>;
430 clock-names = "stmmaceth";
431 resets = <&rst EMAC0_RESET>;
432 reset-names = "stmmaceth";
433 snps,axi-config = <&socfpga_axi_setup>;
437 gmac1: ethernet@ff802000 {
438 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
439 altr,sysmgr-syscon = <&sysmgr 0x48 0>;
440 reg = <0xff802000 0x2000>;
441 interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
442 interrupt-names = "macirq";
443 /* Filled in by bootloader */
444 mac-address = [00 00 00 00 00 00];
445 snps,multicast-filter-bins = <256>;
446 snps,perfect-filter-entries = <128>;
447 tx-fifo-depth = <4096>;
448 rx-fifo-depth = <16384>;
449 clocks = <&l4_mp_clk>;
450 clock-names = "stmmaceth";
451 resets = <&rst EMAC1_RESET>;
452 reset-names = "stmmaceth";
453 snps,axi-config = <&socfpga_axi_setup>;
457 gmac2: ethernet@ff804000 {
458 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
459 altr,sysmgr-syscon = <&sysmgr 0x4C 0>;
460 reg = <0xff804000 0x2000>;
461 interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>;
462 interrupt-names = "macirq";
463 /* Filled in by bootloader */
464 mac-address = [00 00 00 00 00 00];
465 snps,multicast-filter-bins = <256>;
466 snps,perfect-filter-entries = <128>;
467 tx-fifo-depth = <4096>;
468 rx-fifo-depth = <16384>;
469 clocks = <&l4_mp_clk>;
470 clock-names = "stmmaceth";
471 snps,axi-config = <&socfpga_axi_setup>;
475 gpio0: gpio@ffc02900 {
476 #address-cells = <1>;
478 compatible = "snps,dw-apb-gpio";
479 reg = <0xffc02900 0x100>;
482 porta: gpio-controller@0 {
483 compatible = "snps,dw-apb-gpio-port";
487 snps,nr-gpios = <29>;
489 interrupt-controller;
490 #interrupt-cells = <2>;
491 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
495 gpio1: gpio@ffc02a00 {
496 #address-cells = <1>;
498 compatible = "snps,dw-apb-gpio";
499 reg = <0xffc02a00 0x100>;
502 portb: gpio-controller@0 {
503 compatible = "snps,dw-apb-gpio-port";
507 snps,nr-gpios = <29>;
509 interrupt-controller;
510 #interrupt-cells = <2>;
511 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
515 gpio2: gpio@ffc02b00 {
516 #address-cells = <1>;
518 compatible = "snps,dw-apb-gpio";
519 reg = <0xffc02b00 0x100>;
522 portc: gpio-controller@0 {
523 compatible = "snps,dw-apb-gpio-port";
527 snps,nr-gpios = <27>;
529 interrupt-controller;
530 #interrupt-cells = <2>;
531 interrupts = <0 114 IRQ_TYPE_LEVEL_HIGH>;
535 fpga_mgr: fpga-mgr@ffd03000 {
536 compatible = "altr,socfpga-a10-fpga-mgr";
537 reg = <0xffd03000 0x100
539 clocks = <&l4_mp_clk>;
540 resets = <&rst FPGAMGR_RESET>;
541 reset-names = "fpgamgr";
545 #address-cells = <1>;
547 compatible = "snps,designware-i2c";
548 reg = <0xffc02200 0x100>;
549 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
550 clocks = <&l4_sp_clk>;
555 #address-cells = <1>;
557 compatible = "snps,designware-i2c";
558 reg = <0xffc02300 0x100>;
559 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
560 clocks = <&l4_sp_clk>;
565 #address-cells = <1>;
567 compatible = "snps,designware-i2c";
568 reg = <0xffc02400 0x100>;
569 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
570 clocks = <&l4_sp_clk>;
575 #address-cells = <1>;
577 compatible = "snps,designware-i2c";
578 reg = <0xffc02500 0x100>;
579 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
580 clocks = <&l4_sp_clk>;
585 #address-cells = <1>;
587 compatible = "snps,designware-i2c";
588 reg = <0xffc02600 0x100>;
589 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH>;
590 clocks = <&l4_sp_clk>;
595 compatible = "snps,dw-apb-ssi";
596 #address-cells = <1>;
598 reg = <0xffda5000 0x100>;
599 interrupts = <0 102 4>;
600 num-chipselect = <4>;
603 tx-dma-channel = <&pdma 16>;
604 rx-dma-channel = <&pdma 17>;
605 clocks = <&spi_m_clk>;
610 compatible = "altr,sdr-ctl", "syscon";
611 reg = <0xffcfb100 0x80>;
614 L2: l2-cache@fffff000 {
615 compatible = "arm,pl310-cache";
616 reg = <0xfffff000 0x1000>;
617 interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
621 prefetch-instr = <1>;
625 mmc: dwmmc0@ff808000 {
626 #address-cells = <1>;
628 compatible = "altr,socfpga-dw-mshc";
629 reg = <0xff808000 0x1000>;
630 interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
631 fifo-depth = <0x400>;
632 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
633 clock-names = "biu", "ciu";
637 nand: nand@ffb90000 {
638 #address-cells = <1>;
640 compatible = "denali,denali-nand-dt", "altr,socfpga-denali-nand";
641 reg = <0xffb90000 0x20>,
643 reg-names = "nand_data", "denali_reg";
644 interrupts = <0 99 4>;
645 dma-mask = <0xffffffff>;
646 clocks = <&nand_clk>;
650 ocram: sram@ffe00000 {
651 compatible = "mmio-sram";
652 reg = <0xffe00000 0x40000>;
656 compatible = "altr,socfpga-a10-ecc-manager";
657 altr,sysmgr-syscon = <&sysmgr>;
658 #address-cells = <1>;
660 interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>,
661 <0 0 IRQ_TYPE_LEVEL_HIGH>;
662 interrupt-controller;
663 #interrupt-cells = <2>;
667 compatible = "altr,sdram-edac-a10";
668 altr,sdr-syscon = <&sdr>;
669 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
670 <49 IRQ_TYPE_LEVEL_HIGH>;
674 compatible = "altr,socfpga-a10-l2-ecc";
675 reg = <0xffd06010 0x4>;
676 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
677 <32 IRQ_TYPE_LEVEL_HIGH>;
681 compatible = "altr,socfpga-a10-ocram-ecc";
682 reg = <0xff8c3000 0x400>;
683 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>,
684 <33 IRQ_TYPE_LEVEL_HIGH>;
687 emac0-rx-ecc@ff8c0800 {
688 compatible = "altr,socfpga-eth-mac-ecc";
689 reg = <0xff8c0800 0x400>;
690 altr,ecc-parent = <&gmac0>;
691 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>,
692 <36 IRQ_TYPE_LEVEL_HIGH>;
695 emac0-tx-ecc@ff8c0c00 {
696 compatible = "altr,socfpga-eth-mac-ecc";
697 reg = <0xff8c0c00 0x400>;
698 altr,ecc-parent = <&gmac0>;
699 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>,
700 <37 IRQ_TYPE_LEVEL_HIGH>;
704 compatible = "altr,socfpga-dma-ecc";
705 reg = <0xff8c8000 0x400>;
706 altr,ecc-parent = <&pdma>;
707 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
708 <42 IRQ_TYPE_LEVEL_HIGH>;
712 compatible = "altr,socfpga-usb-ecc";
713 reg = <0xff8c8800 0x400>;
714 altr,ecc-parent = <&usb0>;
715 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
716 <34 IRQ_TYPE_LEVEL_HIGH>;
721 compatible = "cdns,qspi-nor", "cadence,qspi";
722 #address-cells = <1>;
724 reg = <0xff809000 0x100>,
725 <0xffa00000 0x100000>;
726 interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
727 cdns,fifo-depth = <128>;
728 cdns,fifo-width = <4>;
729 cdns,trigger-address = <0x00000000>;
730 clocks = <&qspi_clk>;
734 rst: rstmgr@ffd05000 {
736 compatible = "altr,rst-mgr";
737 reg = <0xffd05000 0x100>;
738 altr,modrst-offset = <0x20>;
742 scu: snoop-control-unit@ffffc000 {
743 compatible = "arm,cortex-a9-scu";
744 reg = <0xffffc000 0x100>;
747 sysmgr: sysmgr@ffd06000 {
748 compatible = "altr,sys-mgr", "syscon";
749 reg = <0xffd06000 0x300>;
750 cpu1-start-addr = <0xffd06230>;
755 compatible = "arm,cortex-a9-twd-timer";
756 reg = <0xffffc600 0x100>;
757 interrupts = <1 13 0xf04>;
758 clocks = <&mpu_periph_clk>;
761 timer0: timer0@ffc02700 {
762 compatible = "snps,dw-apb-timer";
763 interrupts = <0 115 IRQ_TYPE_LEVEL_HIGH>;
764 reg = <0xffc02700 0x100>;
765 clocks = <&l4_sp_clk>;
766 clock-names = "timer";
769 timer1: timer1@ffc02800 {
770 compatible = "snps,dw-apb-timer";
771 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>;
772 reg = <0xffc02800 0x100>;
773 clocks = <&l4_sp_clk>;
774 clock-names = "timer";
777 timer2: timer2@ffd00000 {
778 compatible = "snps,dw-apb-timer";
779 interrupts = <0 117 IRQ_TYPE_LEVEL_HIGH>;
780 reg = <0xffd00000 0x100>;
781 clocks = <&l4_sys_free_clk>;
782 clock-names = "timer";
785 timer3: timer3@ffd00100 {
786 compatible = "snps,dw-apb-timer";
787 interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
788 reg = <0xffd01000 0x100>;
789 clocks = <&l4_sys_free_clk>;
790 clock-names = "timer";
793 uart0: serial0@ffc02000 {
794 compatible = "snps,dw-apb-uart";
795 reg = <0xffc02000 0x100>;
796 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
799 clocks = <&l4_sp_clk>;
803 uart1: serial1@ffc02100 {
804 compatible = "snps,dw-apb-uart";
805 reg = <0xffc02100 0x100>;
806 interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>;
809 clocks = <&l4_sp_clk>;
815 compatible = "usb-nop-xceiv";
820 compatible = "snps,dwc2";
821 reg = <0xffb00000 0xffff>;
822 interrupts = <0 95 IRQ_TYPE_LEVEL_HIGH>;
825 resets = <&rst USB0_RESET>;
826 reset-names = "dwc2";
828 phy-names = "usb2-phy";
833 compatible = "snps,dwc2";
834 reg = <0xffb40000 0xffff>;
835 interrupts = <0 96 IRQ_TYPE_LEVEL_HIGH>;
838 resets = <&rst USB1_RESET>;
839 reset-names = "dwc2";
841 phy-names = "usb2-phy";
845 watchdog0: watchdog@ffd00200 {
846 compatible = "snps,dw-wdt";
847 reg = <0xffd00200 0x100>;
848 interrupts = <0 119 IRQ_TYPE_LEVEL_HIGH>;
849 clocks = <&l4_sys_free_clk>;
853 watchdog1: watchdog@ffd00300 {
854 compatible = "snps,dw-wdt";
855 reg = <0xffd00300 0x100>;
856 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
857 clocks = <&l4_sys_free_clk>;