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>;
100 #address-cells = <1>;
104 cb_intosc_hs_div2_clk: cb_intosc_hs_div2_clk {
106 compatible = "fixed-clock";
110 cb_intosc_ls_clk: cb_intosc_ls_clk {
112 compatible = "fixed-clock";
116 f2s_free_clk: f2s_free_clk {
118 compatible = "fixed-clock";
124 compatible = "fixed-clock";
128 main_pll: main_pll@40 {
129 #address-cells = <1>;
132 compatible = "altr,socfpga-a10-pll-clock";
133 clocks = <&osc1>, <&cb_intosc_ls_clk>,
138 main_mpu_base_clk: main_mpu_base_clk {
140 compatible = "altr,socfpga-a10-perip-clk";
141 clocks = <&main_pll>;
142 div-reg = <0x140 0 11>;
145 main_noc_base_clk: main_noc_base_clk {
147 compatible = "altr,socfpga-a10-perip-clk";
148 clocks = <&main_pll>;
149 div-reg = <0x144 0 11>;
152 main_emaca_clk: main_emaca_clk@68 {
154 compatible = "altr,socfpga-a10-perip-clk";
155 clocks = <&main_pll>;
159 main_emacb_clk: main_emacb_clk@6c {
161 compatible = "altr,socfpga-a10-perip-clk";
162 clocks = <&main_pll>;
166 main_emac_ptp_clk: main_emac_ptp_clk@70 {
168 compatible = "altr,socfpga-a10-perip-clk";
169 clocks = <&main_pll>;
173 main_gpio_db_clk: main_gpio_db_clk@74 {
175 compatible = "altr,socfpga-a10-perip-clk";
176 clocks = <&main_pll>;
180 main_sdmmc_clk: main_sdmmc_clk@78 {
182 compatible = "altr,socfpga-a10-perip-clk"
184 clocks = <&main_pll>;
188 main_s2f_usr0_clk: main_s2f_usr0_clk@7c {
190 compatible = "altr,socfpga-a10-perip-clk";
191 clocks = <&main_pll>;
195 main_s2f_usr1_clk: main_s2f_usr1_clk@80 {
197 compatible = "altr,socfpga-a10-perip-clk";
198 clocks = <&main_pll>;
202 main_hmc_pll_ref_clk: main_hmc_pll_ref_clk@84 {
204 compatible = "altr,socfpga-a10-perip-clk";
205 clocks = <&main_pll>;
209 main_periph_ref_clk: main_periph_ref_clk@9c {
211 compatible = "altr,socfpga-a10-perip-clk";
212 clocks = <&main_pll>;
217 periph_pll: periph_pll@c0 {
218 #address-cells = <1>;
221 compatible = "altr,socfpga-a10-pll-clock";
222 clocks = <&osc1>, <&cb_intosc_ls_clk>,
223 <&f2s_free_clk>, <&main_periph_ref_clk>;
227 peri_mpu_base_clk: peri_mpu_base_clk {
229 compatible = "altr,socfpga-a10-perip-clk";
230 clocks = <&periph_pll>;
231 div-reg = <0x140 16 11>;
234 peri_noc_base_clk: peri_noc_base_clk {
236 compatible = "altr,socfpga-a10-perip-clk";
237 clocks = <&periph_pll>;
238 div-reg = <0x144 16 11>;
241 peri_emaca_clk: peri_emaca_clk@e8 {
243 compatible = "altr,socfpga-a10-perip-clk";
244 clocks = <&periph_pll>;
248 peri_emacb_clk: peri_emacb_clk@ec {
250 compatible = "altr,socfpga-a10-perip-clk";
251 clocks = <&periph_pll>;
255 peri_emac_ptp_clk: peri_emac_ptp_clk@f0 {
257 compatible = "altr,socfpga-a10-perip-clk";
258 clocks = <&periph_pll>;
262 peri_gpio_db_clk: peri_gpio_db_clk@f4 {
264 compatible = "altr,socfpga-a10-perip-clk";
265 clocks = <&periph_pll>;
269 peri_sdmmc_clk: peri_sdmmc_clk@f8 {
271 compatible = "altr,socfpga-a10-perip-clk";
272 clocks = <&periph_pll>;
276 peri_s2f_usr0_clk: peri_s2f_usr0_clk@fc {
278 compatible = "altr,socfpga-a10-perip-clk";
279 clocks = <&periph_pll>;
283 peri_s2f_usr1_clk: peri_s2f_usr1_clk@100 {
285 compatible = "altr,socfpga-a10-perip-clk";
286 clocks = <&periph_pll>;
290 peri_hmc_pll_ref_clk: peri_hmc_pll_ref_clk@104 {
292 compatible = "altr,socfpga-a10-perip-clk";
293 clocks = <&periph_pll>;
298 mpu_free_clk: mpu_free_clk@60 {
300 compatible = "altr,socfpga-a10-perip-clk";
301 clocks = <&main_mpu_base_clk>, <&peri_mpu_base_clk>,
302 <&osc1>, <&cb_intosc_hs_div2_clk>,
307 noc_free_clk: noc_free_clk@64 {
309 compatible = "altr,socfpga-a10-perip-clk";
310 clocks = <&main_noc_base_clk>, <&peri_noc_base_clk>,
311 <&osc1>, <&cb_intosc_hs_div2_clk>,
316 s2f_user1_free_clk: s2f_user1_free_clk@104 {
318 compatible = "altr,socfpga-a10-perip-clk";
319 clocks = <&main_s2f_usr1_clk>, <&peri_s2f_usr1_clk>,
320 <&osc1>, <&cb_intosc_hs_div2_clk>,
325 sdmmc_free_clk: sdmmc_free_clk@f8 {
327 compatible = "altr,socfpga-a10-perip-clk";
328 clocks = <&main_sdmmc_clk>, <&peri_sdmmc_clk>,
329 <&osc1>, <&cb_intosc_hs_div2_clk>,
335 l4_sys_free_clk: l4_sys_free_clk {
337 compatible = "altr,socfpga-a10-perip-clk";
338 clocks = <&noc_free_clk>;
342 l4_main_clk: l4_main_clk {
344 compatible = "altr,socfpga-a10-gate-clk";
345 clocks = <&noc_free_clk>;
346 div-reg = <0xA8 0 2>;
350 l4_mp_clk: l4_mp_clk {
352 compatible = "altr,socfpga-a10-gate-clk";
353 clocks = <&noc_free_clk>;
354 div-reg = <0xA8 8 2>;
358 l4_sp_clk: l4_sp_clk {
360 compatible = "altr,socfpga-a10-gate-clk";
361 clocks = <&noc_free_clk>;
362 div-reg = <0xA8 16 2>;
366 mpu_periph_clk: mpu_periph_clk {
368 compatible = "altr,socfpga-a10-gate-clk";
369 clocks = <&mpu_free_clk>;
374 sdmmc_clk: sdmmc_clk {
376 compatible = "altr,socfpga-a10-gate-clk";
377 clocks = <&sdmmc_free_clk>;
384 compatible = "altr,socfpga-a10-gate-clk";
385 clocks = <&l4_main_clk>;
386 clk-gate = <0xC8 11>;
391 compatible = "altr,socfpga-a10-gate-clk";
392 clocks = <&l4_mp_clk>;
393 clk-gate = <0xC8 10>;
396 spi_m_clk: spi_m_clk {
398 compatible = "altr,socfpga-a10-gate-clk";
399 clocks = <&l4_main_clk>;
405 compatible = "altr,socfpga-a10-gate-clk";
406 clocks = <&l4_mp_clk>;
410 s2f_usr1_clk: s2f_usr1_clk {
412 compatible = "altr,socfpga-a10-gate-clk";
413 clocks = <&peri_s2f_usr1_clk>;
419 socfpga_axi_setup: stmmac-axi-config {
420 snps,wr_osr_lmt = <0xf>;
421 snps,rd_osr_lmt = <0xf>;
422 snps,blen = <0 0 0 0 16 0 0>;
425 gmac0: ethernet@ff800000 {
426 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
427 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
428 reg = <0xff800000 0x2000>;
429 interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>;
430 interrupt-names = "macirq";
431 /* Filled in by bootloader */
432 mac-address = [00 00 00 00 00 00];
433 snps,multicast-filter-bins = <256>;
434 snps,perfect-filter-entries = <128>;
435 tx-fifo-depth = <4096>;
436 rx-fifo-depth = <16384>;
437 clocks = <&l4_mp_clk>;
438 clock-names = "stmmaceth";
439 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
440 reset-names = "stmmaceth", "stmmaceth-ocp";
441 snps,axi-config = <&socfpga_axi_setup>;
445 gmac1: ethernet@ff802000 {
446 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
447 altr,sysmgr-syscon = <&sysmgr 0x48 0>;
448 reg = <0xff802000 0x2000>;
449 interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
450 interrupt-names = "macirq";
451 /* Filled in by bootloader */
452 mac-address = [00 00 00 00 00 00];
453 snps,multicast-filter-bins = <256>;
454 snps,perfect-filter-entries = <128>;
455 tx-fifo-depth = <4096>;
456 rx-fifo-depth = <16384>;
457 clocks = <&l4_mp_clk>;
458 clock-names = "stmmaceth";
459 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
460 reset-names = "stmmaceth", "stmmaceth-ocp";
461 snps,axi-config = <&socfpga_axi_setup>;
465 gmac2: ethernet@ff804000 {
466 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
467 altr,sysmgr-syscon = <&sysmgr 0x4C 0>;
468 reg = <0xff804000 0x2000>;
469 interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>;
470 interrupt-names = "macirq";
471 /* Filled in by bootloader */
472 mac-address = [00 00 00 00 00 00];
473 snps,multicast-filter-bins = <256>;
474 snps,perfect-filter-entries = <128>;
475 tx-fifo-depth = <4096>;
476 rx-fifo-depth = <16384>;
477 clocks = <&l4_mp_clk>;
478 clock-names = "stmmaceth";
479 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
480 reset-names = "stmmaceth", "stmmaceth-ocp";
481 snps,axi-config = <&socfpga_axi_setup>;
485 gpio0: gpio@ffc02900 {
486 #address-cells = <1>;
488 compatible = "snps,dw-apb-gpio";
489 reg = <0xffc02900 0x100>;
492 porta: gpio-controller@0 {
493 compatible = "snps,dw-apb-gpio-port";
497 snps,nr-gpios = <29>;
499 interrupt-controller;
500 #interrupt-cells = <2>;
501 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
505 gpio1: gpio@ffc02a00 {
506 #address-cells = <1>;
508 compatible = "snps,dw-apb-gpio";
509 reg = <0xffc02a00 0x100>;
512 portb: gpio-controller@0 {
513 compatible = "snps,dw-apb-gpio-port";
517 snps,nr-gpios = <29>;
519 interrupt-controller;
520 #interrupt-cells = <2>;
521 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
525 gpio2: gpio@ffc02b00 {
526 #address-cells = <1>;
528 compatible = "snps,dw-apb-gpio";
529 reg = <0xffc02b00 0x100>;
532 portc: gpio-controller@0 {
533 compatible = "snps,dw-apb-gpio-port";
537 snps,nr-gpios = <27>;
539 interrupt-controller;
540 #interrupt-cells = <2>;
541 interrupts = <0 114 IRQ_TYPE_LEVEL_HIGH>;
545 fpga_mgr: fpga-mgr@ffd03000 {
546 compatible = "altr,socfpga-a10-fpga-mgr";
547 reg = <0xffd03000 0x100
549 clocks = <&l4_mp_clk>;
550 resets = <&rst FPGAMGR_RESET>;
551 reset-names = "fpgamgr";
555 #address-cells = <1>;
557 compatible = "snps,designware-i2c";
558 reg = <0xffc02200 0x100>;
559 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
560 clocks = <&l4_sp_clk>;
561 resets = <&rst I2C0_RESET>;
567 #address-cells = <1>;
569 compatible = "snps,designware-i2c";
570 reg = <0xffc02300 0x100>;
571 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
572 clocks = <&l4_sp_clk>;
573 resets = <&rst I2C1_RESET>;
579 #address-cells = <1>;
581 compatible = "snps,designware-i2c";
582 reg = <0xffc02400 0x100>;
583 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
584 clocks = <&l4_sp_clk>;
585 resets = <&rst I2C2_RESET>;
591 #address-cells = <1>;
593 compatible = "snps,designware-i2c";
594 reg = <0xffc02500 0x100>;
595 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
596 clocks = <&l4_sp_clk>;
597 resets = <&rst I2C3_RESET>;
603 #address-cells = <1>;
605 compatible = "snps,designware-i2c";
606 reg = <0xffc02600 0x100>;
607 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH>;
608 clocks = <&l4_sp_clk>;
609 resets = <&rst I2C4_RESET>;
615 compatible = "snps,dw-apb-ssi";
616 #address-cells = <1>;
618 reg = <0xffda5000 0x100>;
619 interrupts = <0 102 4>;
620 num-chipselect = <4>;
623 tx-dma-channel = <&pdma 16>;
624 rx-dma-channel = <&pdma 17>;
625 clocks = <&spi_m_clk>;
630 compatible = "altr,sdr-ctl", "syscon";
631 reg = <0xffcfb100 0x80>;
634 L2: l2-cache@fffff000 {
635 compatible = "arm,pl310-cache";
636 reg = <0xfffff000 0x1000>;
637 interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
641 prefetch-instr = <1>;
645 mmc: dwmmc0@ff808000 {
646 #address-cells = <1>;
648 compatible = "altr,socfpga-dw-mshc";
649 reg = <0xff808000 0x1000>;
650 interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
651 fifo-depth = <0x400>;
652 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
653 clock-names = "biu", "ciu";
657 nand: nand@ffb90000 {
658 #address-cells = <1>;
660 compatible = "denali,denali-nand-dt", "altr,socfpga-denali-nand";
661 reg = <0xffb90000 0x20>,
663 reg-names = "nand_data", "denali_reg";
664 interrupts = <0 99 4>;
665 dma-mask = <0xffffffff>;
666 clocks = <&nand_clk>;
670 ocram: sram@ffe00000 {
671 compatible = "mmio-sram";
672 reg = <0xffe00000 0x40000>;
676 compatible = "altr,socfpga-a10-ecc-manager";
677 altr,sysmgr-syscon = <&sysmgr>;
678 #address-cells = <1>;
680 interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>,
681 <0 0 IRQ_TYPE_LEVEL_HIGH>;
682 interrupt-controller;
683 #interrupt-cells = <2>;
687 compatible = "altr,sdram-edac-a10";
688 altr,sdr-syscon = <&sdr>;
689 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
690 <49 IRQ_TYPE_LEVEL_HIGH>;
694 compatible = "altr,socfpga-a10-l2-ecc";
695 reg = <0xffd06010 0x4>;
696 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
697 <32 IRQ_TYPE_LEVEL_HIGH>;
701 compatible = "altr,socfpga-a10-ocram-ecc";
702 reg = <0xff8c3000 0x400>;
703 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>,
704 <33 IRQ_TYPE_LEVEL_HIGH>;
707 emac0-rx-ecc@ff8c0800 {
708 compatible = "altr,socfpga-eth-mac-ecc";
709 reg = <0xff8c0800 0x400>;
710 altr,ecc-parent = <&gmac0>;
711 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>,
712 <36 IRQ_TYPE_LEVEL_HIGH>;
715 emac0-tx-ecc@ff8c0c00 {
716 compatible = "altr,socfpga-eth-mac-ecc";
717 reg = <0xff8c0c00 0x400>;
718 altr,ecc-parent = <&gmac0>;
719 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>,
720 <37 IRQ_TYPE_LEVEL_HIGH>;
724 compatible = "altr,socfpga-dma-ecc";
725 reg = <0xff8c8000 0x400>;
726 altr,ecc-parent = <&pdma>;
727 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
728 <42 IRQ_TYPE_LEVEL_HIGH>;
732 compatible = "altr,socfpga-usb-ecc";
733 reg = <0xff8c8800 0x400>;
734 altr,ecc-parent = <&usb0>;
735 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
736 <34 IRQ_TYPE_LEVEL_HIGH>;
741 compatible = "cdns,qspi-nor", "cadence,qspi";
742 #address-cells = <1>;
744 reg = <0xff809000 0x100>,
745 <0xffa00000 0x100000>;
746 interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
747 cdns,fifo-depth = <128>;
748 cdns,fifo-width = <4>;
749 cdns,trigger-address = <0x00000000>;
750 clocks = <&qspi_clk>;
754 rst: rstmgr@ffd05000 {
756 compatible = "altr,rst-mgr";
757 reg = <0xffd05000 0x100>;
758 altr,modrst-offset = <0x20>;
762 scu: snoop-control-unit@ffffc000 {
763 compatible = "arm,cortex-a9-scu";
764 reg = <0xffffc000 0x100>;
767 sysmgr: sysmgr@ffd06000 {
768 compatible = "altr,sys-mgr", "syscon";
769 reg = <0xffd06000 0x300>;
770 cpu1-start-addr = <0xffd06230>;
775 compatible = "arm,cortex-a9-twd-timer";
776 reg = <0xffffc600 0x100>;
777 interrupts = <1 13 0xf04>;
778 clocks = <&mpu_periph_clk>;
781 timer0: timer0@ffc02700 {
782 compatible = "snps,dw-apb-timer";
783 interrupts = <0 115 IRQ_TYPE_LEVEL_HIGH>;
784 reg = <0xffc02700 0x100>;
785 clocks = <&l4_sp_clk>;
786 clock-names = "timer";
789 timer1: timer1@ffc02800 {
790 compatible = "snps,dw-apb-timer";
791 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>;
792 reg = <0xffc02800 0x100>;
793 clocks = <&l4_sp_clk>;
794 clock-names = "timer";
797 timer2: timer2@ffd00000 {
798 compatible = "snps,dw-apb-timer";
799 interrupts = <0 117 IRQ_TYPE_LEVEL_HIGH>;
800 reg = <0xffd00000 0x100>;
801 clocks = <&l4_sys_free_clk>;
802 clock-names = "timer";
805 timer3: timer3@ffd00100 {
806 compatible = "snps,dw-apb-timer";
807 interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
808 reg = <0xffd01000 0x100>;
809 clocks = <&l4_sys_free_clk>;
810 clock-names = "timer";
813 uart0: serial0@ffc02000 {
814 compatible = "snps,dw-apb-uart";
815 reg = <0xffc02000 0x100>;
816 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
819 clocks = <&l4_sp_clk>;
820 resets = <&rst UART0_RESET>;
824 uart1: serial1@ffc02100 {
825 compatible = "snps,dw-apb-uart";
826 reg = <0xffc02100 0x100>;
827 interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>;
830 clocks = <&l4_sp_clk>;
831 resets = <&rst UART1_RESET>;
837 compatible = "usb-nop-xceiv";
842 compatible = "snps,dwc2";
843 reg = <0xffb00000 0xffff>;
844 interrupts = <0 95 IRQ_TYPE_LEVEL_HIGH>;
847 resets = <&rst USB0_RESET>;
848 reset-names = "dwc2";
850 phy-names = "usb2-phy";
855 compatible = "snps,dwc2";
856 reg = <0xffb40000 0xffff>;
857 interrupts = <0 96 IRQ_TYPE_LEVEL_HIGH>;
860 resets = <&rst USB1_RESET>;
861 reset-names = "dwc2";
863 phy-names = "usb2-phy";
867 watchdog0: watchdog@ffd00200 {
868 compatible = "snps,dw-wdt";
869 reg = <0xffd00200 0x100>;
870 interrupts = <0 119 IRQ_TYPE_LEVEL_HIGH>;
871 clocks = <&l4_sys_free_clk>;
875 watchdog1: watchdog@ffd00300 {
876 compatible = "snps,dw-wdt";
877 reg = <0xffd00300 0x100>;
878 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
879 clocks = <&l4_sys_free_clk>;