2 * Copyright (C) 2012 Altera <www.altera.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include <dt-bindings/reset/altr,rst-mgr.h>
38 enable-method = "altr,socfpga-smp";
41 compatible = "arm,cortex-a9";
44 next-level-cache = <&L2>;
47 compatible = "arm,cortex-a9";
50 next-level-cache = <&L2>;
55 compatible = "arm,cortex-a9-pmu";
56 interrupt-parent = <&intc>;
57 interrupts = <0 176 4>, <0 177 4>;
58 interrupt-affinity = <&cpu0>, <&cpu1>;
59 reg = <0xff111000 0x1000>,
64 compatible = "arm,cortex-a9-gic";
65 #interrupt-cells = <3>;
67 reg = <0xfffed000 0x1000>,
74 compatible = "simple-bus";
76 interrupt-parent = <&intc>;
80 compatible = "simple-bus";
86 compatible = "arm,pl330", "arm,primecell";
87 reg = <0xffe01000 0x1000>;
88 interrupts = <0 104 4>,
99 clocks = <&l4_main_clk>;
100 clock-names = "apb_pclk";
105 compatible = "fpga-region";
106 fpga-mgr = <&fpgamgr0>;
108 #address-cells = <0x1>;
113 compatible = "bosch,d_can";
114 reg = <0xffc00000 0x1000>;
115 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
116 clocks = <&can0_clk>;
121 compatible = "bosch,d_can";
122 reg = <0xffc01000 0x1000>;
123 interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>;
124 clocks = <&can1_clk>;
129 compatible = "altr,clk-mgr";
130 reg = <0xffd04000 0x1000>;
133 #address-cells = <1>;
138 compatible = "fixed-clock";
143 compatible = "fixed-clock";
146 f2s_periph_ref_clk: f2s_periph_ref_clk {
148 compatible = "fixed-clock";
151 f2s_sdram_ref_clk: f2s_sdram_ref_clk {
153 compatible = "fixed-clock";
156 main_pll: main_pll@40 {
157 #address-cells = <1>;
160 compatible = "altr,socfpga-pll-clock";
166 compatible = "altr,socfpga-perip-clk";
167 clocks = <&main_pll>;
168 div-reg = <0xe0 0 9>;
172 mainclk: mainclk@4c {
174 compatible = "altr,socfpga-perip-clk";
175 clocks = <&main_pll>;
176 div-reg = <0xe4 0 9>;
180 dbg_base_clk: dbg_base_clk@50 {
182 compatible = "altr,socfpga-perip-clk";
183 clocks = <&main_pll>, <&osc1>;
184 div-reg = <0xe8 0 9>;
188 main_qspi_clk: main_qspi_clk@54 {
190 compatible = "altr,socfpga-perip-clk";
191 clocks = <&main_pll>;
195 main_nand_sdmmc_clk: main_nand_sdmmc_clk@58 {
197 compatible = "altr,socfpga-perip-clk";
198 clocks = <&main_pll>;
202 cfg_h2f_usr0_clk: cfg_h2f_usr0_clk@5c {
204 compatible = "altr,socfpga-perip-clk";
205 clocks = <&main_pll>;
210 periph_pll: periph_pll@80 {
211 #address-cells = <1>;
214 compatible = "altr,socfpga-pll-clock";
215 clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>;
218 emac0_clk: emac0_clk@88 {
220 compatible = "altr,socfpga-perip-clk";
221 clocks = <&periph_pll>;
225 emac1_clk: emac1_clk@8c {
227 compatible = "altr,socfpga-perip-clk";
228 clocks = <&periph_pll>;
232 per_qspi_clk: per_qsi_clk@90 {
234 compatible = "altr,socfpga-perip-clk";
235 clocks = <&periph_pll>;
239 per_nand_mmc_clk: per_nand_mmc_clk@94 {
241 compatible = "altr,socfpga-perip-clk";
242 clocks = <&periph_pll>;
246 per_base_clk: per_base_clk@98 {
248 compatible = "altr,socfpga-perip-clk";
249 clocks = <&periph_pll>;
253 h2f_usr1_clk: h2f_usr1_clk@9c {
255 compatible = "altr,socfpga-perip-clk";
256 clocks = <&periph_pll>;
261 sdram_pll: sdram_pll@c0 {
262 #address-cells = <1>;
265 compatible = "altr,socfpga-pll-clock";
266 clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>;
269 ddr_dqs_clk: ddr_dqs_clk@c8 {
271 compatible = "altr,socfpga-perip-clk";
272 clocks = <&sdram_pll>;
276 ddr_2x_dqs_clk: ddr_2x_dqs_clk@cc {
278 compatible = "altr,socfpga-perip-clk";
279 clocks = <&sdram_pll>;
283 ddr_dq_clk: ddr_dq_clk@d0 {
285 compatible = "altr,socfpga-perip-clk";
286 clocks = <&sdram_pll>;
290 h2f_usr2_clk: h2f_usr2_clk@d4 {
292 compatible = "altr,socfpga-perip-clk";
293 clocks = <&sdram_pll>;
298 mpu_periph_clk: mpu_periph_clk {
300 compatible = "altr,socfpga-perip-clk";
305 mpu_l2_ram_clk: mpu_l2_ram_clk {
307 compatible = "altr,socfpga-perip-clk";
312 l4_main_clk: l4_main_clk {
314 compatible = "altr,socfpga-gate-clk";
319 l3_main_clk: l3_main_clk {
321 compatible = "altr,socfpga-perip-clk";
326 l3_mp_clk: l3_mp_clk {
328 compatible = "altr,socfpga-gate-clk";
330 div-reg = <0x64 0 2>;
334 l3_sp_clk: l3_sp_clk {
336 compatible = "altr,socfpga-gate-clk";
337 clocks = <&l3_mp_clk>;
338 div-reg = <0x64 2 2>;
341 l4_mp_clk: l4_mp_clk {
343 compatible = "altr,socfpga-gate-clk";
344 clocks = <&mainclk>, <&per_base_clk>;
345 div-reg = <0x64 4 3>;
349 l4_sp_clk: l4_sp_clk {
351 compatible = "altr,socfpga-gate-clk";
352 clocks = <&mainclk>, <&per_base_clk>;
353 div-reg = <0x64 7 3>;
357 dbg_at_clk: dbg_at_clk {
359 compatible = "altr,socfpga-gate-clk";
360 clocks = <&dbg_base_clk>;
361 div-reg = <0x68 0 2>;
367 compatible = "altr,socfpga-gate-clk";
368 clocks = <&dbg_at_clk>;
369 div-reg = <0x68 2 2>;
373 dbg_trace_clk: dbg_trace_clk {
375 compatible = "altr,socfpga-gate-clk";
376 clocks = <&dbg_base_clk>;
377 div-reg = <0x6C 0 3>;
381 dbg_timer_clk: dbg_timer_clk {
383 compatible = "altr,socfpga-gate-clk";
384 clocks = <&dbg_base_clk>;
390 compatible = "altr,socfpga-gate-clk";
391 clocks = <&cfg_h2f_usr0_clk>;
395 h2f_user0_clk: h2f_user0_clk {
397 compatible = "altr,socfpga-gate-clk";
398 clocks = <&cfg_h2f_usr0_clk>;
402 emac_0_clk: emac_0_clk {
404 compatible = "altr,socfpga-gate-clk";
405 clocks = <&emac0_clk>;
409 emac_1_clk: emac_1_clk {
411 compatible = "altr,socfpga-gate-clk";
412 clocks = <&emac1_clk>;
416 usb_mp_clk: usb_mp_clk {
418 compatible = "altr,socfpga-gate-clk";
419 clocks = <&per_base_clk>;
421 div-reg = <0xa4 0 3>;
424 spi_m_clk: spi_m_clk {
426 compatible = "altr,socfpga-gate-clk";
427 clocks = <&per_base_clk>;
429 div-reg = <0xa4 3 3>;
434 compatible = "altr,socfpga-gate-clk";
435 clocks = <&per_base_clk>;
437 div-reg = <0xa4 6 3>;
442 compatible = "altr,socfpga-gate-clk";
443 clocks = <&per_base_clk>;
445 div-reg = <0xa4 9 3>;
448 gpio_db_clk: gpio_db_clk {
450 compatible = "altr,socfpga-gate-clk";
451 clocks = <&per_base_clk>;
453 div-reg = <0xa8 0 24>;
456 h2f_user1_clk: h2f_user1_clk {
458 compatible = "altr,socfpga-gate-clk";
459 clocks = <&h2f_usr1_clk>;
463 sdmmc_clk: sdmmc_clk {
465 compatible = "altr,socfpga-gate-clk";
466 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
471 sdmmc_clk_divided: sdmmc_clk_divided {
473 compatible = "altr,socfpga-gate-clk";
474 clocks = <&sdmmc_clk>;
479 nand_x_clk: nand_x_clk {
481 compatible = "altr,socfpga-gate-clk";
482 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
488 compatible = "altr,socfpga-gate-clk";
489 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
490 clk-gate = <0xa0 10>;
496 compatible = "altr,socfpga-gate-clk";
497 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
498 clk-gate = <0xa0 11>;
501 ddr_dqs_clk_gate: ddr_dqs_clk_gate {
503 compatible = "altr,socfpga-gate-clk";
504 clocks = <&ddr_dqs_clk>;
508 ddr_2x_dqs_clk_gate: ddr_2x_dqs_clk_gate {
510 compatible = "altr,socfpga-gate-clk";
511 clocks = <&ddr_2x_dqs_clk>;
515 ddr_dq_clk_gate: ddr_dq_clk_gate {
517 compatible = "altr,socfpga-gate-clk";
518 clocks = <&ddr_dq_clk>;
522 h2f_user2_clk: h2f_user2_clk {
524 compatible = "altr,socfpga-gate-clk";
525 clocks = <&h2f_usr2_clk>;
532 fpga_bridge0: fpga_bridge@ff400000 {
533 compatible = "altr,socfpga-lwhps2fpga-bridge";
534 reg = <0xff400000 0x100000>;
535 resets = <&rst LWHPS2FPGA_RESET>;
536 clocks = <&l4_main_clk>;
539 fpga_bridge1: fpga_bridge@ff500000 {
540 compatible = "altr,socfpga-hps2fpga-bridge";
541 reg = <0xff500000 0x10000>;
542 resets = <&rst HPS2FPGA_RESET>;
543 clocks = <&l4_main_clk>;
546 fpgamgr0: fpgamgr@ff706000 {
547 compatible = "altr,socfpga-fpga-mgr";
548 reg = <0xff706000 0x1000
550 interrupts = <0 175 4>;
553 gmac0: ethernet@ff700000 {
554 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
555 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
556 reg = <0xff700000 0x2000>;
557 interrupts = <0 115 4>;
558 interrupt-names = "macirq";
559 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
560 clocks = <&emac0_clk>;
561 clock-names = "stmmaceth";
562 resets = <&rst EMAC0_RESET>;
563 reset-names = "stmmaceth";
564 snps,multicast-filter-bins = <256>;
565 snps,perfect-filter-entries = <128>;
566 tx-fifo-depth = <4096>;
567 rx-fifo-depth = <4096>;
571 gmac1: ethernet@ff702000 {
572 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
573 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
574 reg = <0xff702000 0x2000>;
575 interrupts = <0 120 4>;
576 interrupt-names = "macirq";
577 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
578 clocks = <&emac1_clk>;
579 clock-names = "stmmaceth";
580 resets = <&rst EMAC1_RESET>;
581 reset-names = "stmmaceth";
582 snps,multicast-filter-bins = <256>;
583 snps,perfect-filter-entries = <128>;
584 tx-fifo-depth = <4096>;
585 rx-fifo-depth = <4096>;
589 gpio0: gpio@ff708000 {
590 #address-cells = <1>;
592 compatible = "snps,dw-apb-gpio";
593 reg = <0xff708000 0x1000>;
594 clocks = <&l4_mp_clk>;
597 porta: gpio-controller@0 {
598 compatible = "snps,dw-apb-gpio-port";
601 snps,nr-gpios = <29>;
603 interrupt-controller;
604 #interrupt-cells = <2>;
605 interrupts = <0 164 4>;
609 gpio1: gpio@ff709000 {
610 #address-cells = <1>;
612 compatible = "snps,dw-apb-gpio";
613 reg = <0xff709000 0x1000>;
614 clocks = <&l4_mp_clk>;
617 portb: gpio-controller@0 {
618 compatible = "snps,dw-apb-gpio-port";
621 snps,nr-gpios = <29>;
623 interrupt-controller;
624 #interrupt-cells = <2>;
625 interrupts = <0 165 4>;
629 gpio2: gpio@ff70a000 {
630 #address-cells = <1>;
632 compatible = "snps,dw-apb-gpio";
633 reg = <0xff70a000 0x1000>;
634 clocks = <&l4_mp_clk>;
637 portc: gpio-controller@0 {
638 compatible = "snps,dw-apb-gpio-port";
641 snps,nr-gpios = <27>;
643 interrupt-controller;
644 #interrupt-cells = <2>;
645 interrupts = <0 166 4>;
650 #address-cells = <1>;
652 compatible = "snps,designware-i2c";
653 reg = <0xffc04000 0x1000>;
654 clocks = <&l4_sp_clk>;
655 interrupts = <0 158 0x4>;
660 #address-cells = <1>;
662 compatible = "snps,designware-i2c";
663 reg = <0xffc05000 0x1000>;
664 clocks = <&l4_sp_clk>;
665 interrupts = <0 159 0x4>;
670 #address-cells = <1>;
672 compatible = "snps,designware-i2c";
673 reg = <0xffc06000 0x1000>;
674 clocks = <&l4_sp_clk>;
675 interrupts = <0 160 0x4>;
680 #address-cells = <1>;
682 compatible = "snps,designware-i2c";
683 reg = <0xffc07000 0x1000>;
684 clocks = <&l4_sp_clk>;
685 interrupts = <0 161 0x4>;
690 compatible = "altr,socfpga-ecc-manager";
691 #address-cells = <1>;
696 compatible = "altr,socfpga-l2-ecc";
697 reg = <0xffd08140 0x4>;
698 interrupts = <0 36 1>, <0 37 1>;
702 compatible = "altr,socfpga-ocram-ecc";
703 reg = <0xffd08144 0x4>;
705 interrupts = <0 178 1>, <0 179 1>;
709 L2: l2-cache@fffef000 {
710 compatible = "arm,pl310-cache";
711 reg = <0xfffef000 0x1000>;
712 interrupts = <0 38 0x04>;
715 arm,tag-latency = <1 1 1>;
716 arm,data-latency = <2 1 1>;
718 prefetch-instr = <1>;
720 arm,double-linefill = <1>;
721 arm,double-linefill-incr = <0>;
722 arm,double-linefill-wrap = <1>;
723 arm,prefetch-drop = <0>;
724 arm,prefetch-offset = <7>;
728 compatible = "altr,l3regs", "syscon";
729 reg = <0xff800000 0x1000>;
732 mmc: dwmmc0@ff704000 {
733 compatible = "altr,socfpga-dw-mshc";
734 reg = <0xff704000 0x1000>;
735 interrupts = <0 139 4>;
736 fifo-depth = <0x400>;
737 #address-cells = <1>;
739 clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
740 clock-names = "biu", "ciu";
744 nand0: nand@ff900000 {
745 #address-cells = <0x1>;
747 compatible = "denali,denali-nand-dt";
748 reg = <0xff900000 0x100000>,
749 <0xffb80000 0x10000>;
750 reg-names = "nand_data", "denali_reg";
751 interrupts = <0x0 0x90 0x4>;
752 dma-mask = <0xffffffff>;
753 clocks = <&nand_clk>;
757 ocram: sram@ffff0000 {
758 compatible = "mmio-sram";
759 reg = <0xffff0000 0x10000>;
763 compatible = "cdns,qspi-nor";
764 #address-cells = <1>;
766 reg = <0xff705000 0x1000>,
768 interrupts = <0 151 4>;
769 cdns,fifo-depth = <128>;
770 cdns,fifo-width = <4>;
771 cdns,trigger-address = <0x00000000>;
772 clocks = <&qspi_clk>;
776 rst: rstmgr@ffd05000 {
778 compatible = "altr,rst-mgr";
779 reg = <0xffd05000 0x1000>;
780 altr,modrst-offset = <0x10>;
783 scu: snoop-control-unit@fffec000 {
784 compatible = "arm,cortex-a9-scu";
785 reg = <0xfffec000 0x100>;
789 compatible = "altr,sdr-ctl", "syscon";
790 reg = <0xffc25000 0x1000>;
794 compatible = "altr,sdram-edac";
795 altr,sdr-syscon = <&sdr>;
796 interrupts = <0 39 4>;
800 compatible = "snps,dw-apb-ssi";
801 #address-cells = <1>;
803 reg = <0xfff00000 0x1000>;
804 interrupts = <0 154 4>;
806 clocks = <&spi_m_clk>;
811 compatible = "snps,dw-apb-ssi";
812 #address-cells = <1>;
814 reg = <0xfff01000 0x1000>;
815 interrupts = <0 155 4>;
817 clocks = <&spi_m_clk>;
821 sysmgr: sysmgr@ffd08000 {
822 compatible = "altr,sys-mgr", "syscon";
823 reg = <0xffd08000 0x4000>;
828 compatible = "arm,cortex-a9-twd-timer";
829 reg = <0xfffec600 0x100>;
830 interrupts = <1 13 0xf04>;
831 clocks = <&mpu_periph_clk>;
834 timer0: timer0@ffc08000 {
835 compatible = "snps,dw-apb-timer";
836 interrupts = <0 167 4>;
837 reg = <0xffc08000 0x1000>;
838 clocks = <&l4_sp_clk>;
839 clock-names = "timer";
842 timer1: timer1@ffc09000 {
843 compatible = "snps,dw-apb-timer";
844 interrupts = <0 168 4>;
845 reg = <0xffc09000 0x1000>;
846 clocks = <&l4_sp_clk>;
847 clock-names = "timer";
850 timer2: timer2@ffd00000 {
851 compatible = "snps,dw-apb-timer";
852 interrupts = <0 169 4>;
853 reg = <0xffd00000 0x1000>;
855 clock-names = "timer";
858 timer3: timer3@ffd01000 {
859 compatible = "snps,dw-apb-timer";
860 interrupts = <0 170 4>;
861 reg = <0xffd01000 0x1000>;
863 clock-names = "timer";
866 uart0: serial0@ffc02000 {
867 compatible = "snps,dw-apb-uart";
868 reg = <0xffc02000 0x1000>;
869 interrupts = <0 162 4>;
872 clocks = <&l4_sp_clk>;
875 dma-names = "tx", "rx";
878 uart1: serial1@ffc03000 {
879 compatible = "snps,dw-apb-uart";
880 reg = <0xffc03000 0x1000>;
881 interrupts = <0 163 4>;
884 clocks = <&l4_sp_clk>;
887 dma-names = "tx", "rx";
892 compatible = "usb-nop-xceiv";
897 compatible = "snps,dwc2";
898 reg = <0xffb00000 0xffff>;
899 interrupts = <0 125 4>;
900 clocks = <&usb_mp_clk>;
902 resets = <&rst USB0_RESET>;
903 reset-names = "dwc2";
905 phy-names = "usb2-phy";
910 compatible = "snps,dwc2";
911 reg = <0xffb40000 0xffff>;
912 interrupts = <0 128 4>;
913 clocks = <&usb_mp_clk>;
915 resets = <&rst USB1_RESET>;
916 reset-names = "dwc2";
918 phy-names = "usb2-phy";
922 watchdog0: watchdog@ffd02000 {
923 compatible = "snps,dw-wdt";
924 reg = <0xffd02000 0x1000>;
925 interrupts = <0 171 4>;
930 watchdog1: watchdog@ffd03000 {
931 compatible = "snps,dw-wdt";
932 reg = <0xffd03000 0x1000>;
933 interrupts = <0 172 4>;