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 "skeleton.dtsi"
19 #include <dt-bindings/reset/altr,rst-mgr.h>
39 enable-method = "altr,socfpga-smp";
42 compatible = "arm,cortex-a9";
45 next-level-cache = <&L2>;
48 compatible = "arm,cortex-a9";
51 next-level-cache = <&L2>;
56 compatible = "arm,cortex-a9-gic";
57 #interrupt-cells = <3>;
59 reg = <0xfffed000 0x1000>,
66 compatible = "simple-bus";
68 interrupt-parent = <&intc>;
72 compatible = "simple-bus";
78 compatible = "arm,pl330", "arm,primecell";
79 reg = <0xffe01000 0x1000>;
80 interrupts = <0 104 4>,
91 clocks = <&l4_main_clk>;
92 clock-names = "apb_pclk";
97 compatible = "bosch,d_can";
98 reg = <0xffc00000 0x1000>;
99 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
100 clocks = <&can0_clk>;
105 compatible = "bosch,d_can";
106 reg = <0xffc01000 0x1000>;
107 interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>;
108 clocks = <&can1_clk>;
113 compatible = "altr,clk-mgr";
114 reg = <0xffd04000 0x1000>;
117 #address-cells = <1>;
122 compatible = "fixed-clock";
127 compatible = "fixed-clock";
130 f2s_periph_ref_clk: f2s_periph_ref_clk {
132 compatible = "fixed-clock";
135 f2s_sdram_ref_clk: f2s_sdram_ref_clk {
137 compatible = "fixed-clock";
141 #address-cells = <1>;
144 compatible = "altr,socfpga-pll-clock";
150 compatible = "altr,socfpga-perip-clk";
151 clocks = <&main_pll>;
152 div-reg = <0xe0 0 9>;
158 compatible = "altr,socfpga-perip-clk";
159 clocks = <&main_pll>;
160 div-reg = <0xe4 0 9>;
164 dbg_base_clk: dbg_base_clk {
166 compatible = "altr,socfpga-perip-clk";
167 clocks = <&main_pll>, <&osc1>;
168 div-reg = <0xe8 0 9>;
172 main_qspi_clk: main_qspi_clk {
174 compatible = "altr,socfpga-perip-clk";
175 clocks = <&main_pll>;
179 main_nand_sdmmc_clk: main_nand_sdmmc_clk {
181 compatible = "altr,socfpga-perip-clk";
182 clocks = <&main_pll>;
186 cfg_h2f_usr0_clk: cfg_h2f_usr0_clk {
188 compatible = "altr,socfpga-perip-clk";
189 clocks = <&main_pll>;
194 periph_pll: periph_pll {
195 #address-cells = <1>;
198 compatible = "altr,socfpga-pll-clock";
199 clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>;
202 emac0_clk: emac0_clk {
204 compatible = "altr,socfpga-perip-clk";
205 clocks = <&periph_pll>;
209 emac1_clk: emac1_clk {
211 compatible = "altr,socfpga-perip-clk";
212 clocks = <&periph_pll>;
216 per_qspi_clk: per_qsi_clk {
218 compatible = "altr,socfpga-perip-clk";
219 clocks = <&periph_pll>;
223 per_nand_mmc_clk: per_nand_mmc_clk {
225 compatible = "altr,socfpga-perip-clk";
226 clocks = <&periph_pll>;
230 per_base_clk: per_base_clk {
232 compatible = "altr,socfpga-perip-clk";
233 clocks = <&periph_pll>;
237 h2f_usr1_clk: h2f_usr1_clk {
239 compatible = "altr,socfpga-perip-clk";
240 clocks = <&periph_pll>;
245 sdram_pll: sdram_pll {
246 #address-cells = <1>;
249 compatible = "altr,socfpga-pll-clock";
250 clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>;
253 ddr_dqs_clk: ddr_dqs_clk {
255 compatible = "altr,socfpga-perip-clk";
256 clocks = <&sdram_pll>;
260 ddr_2x_dqs_clk: ddr_2x_dqs_clk {
262 compatible = "altr,socfpga-perip-clk";
263 clocks = <&sdram_pll>;
267 ddr_dq_clk: ddr_dq_clk {
269 compatible = "altr,socfpga-perip-clk";
270 clocks = <&sdram_pll>;
274 h2f_usr2_clk: h2f_usr2_clk {
276 compatible = "altr,socfpga-perip-clk";
277 clocks = <&sdram_pll>;
282 mpu_periph_clk: mpu_periph_clk {
284 compatible = "altr,socfpga-perip-clk";
289 mpu_l2_ram_clk: mpu_l2_ram_clk {
291 compatible = "altr,socfpga-perip-clk";
296 l4_main_clk: l4_main_clk {
298 compatible = "altr,socfpga-gate-clk";
303 l3_main_clk: l3_main_clk {
305 compatible = "altr,socfpga-perip-clk";
310 l3_mp_clk: l3_mp_clk {
312 compatible = "altr,socfpga-gate-clk";
314 div-reg = <0x64 0 2>;
318 l3_sp_clk: l3_sp_clk {
320 compatible = "altr,socfpga-gate-clk";
321 clocks = <&l3_mp_clk>;
322 div-reg = <0x64 2 2>;
325 l4_mp_clk: l4_mp_clk {
327 compatible = "altr,socfpga-gate-clk";
328 clocks = <&mainclk>, <&per_base_clk>;
329 div-reg = <0x64 4 3>;
333 l4_sp_clk: l4_sp_clk {
335 compatible = "altr,socfpga-gate-clk";
336 clocks = <&mainclk>, <&per_base_clk>;
337 div-reg = <0x64 7 3>;
341 dbg_at_clk: dbg_at_clk {
343 compatible = "altr,socfpga-gate-clk";
344 clocks = <&dbg_base_clk>;
345 div-reg = <0x68 0 2>;
351 compatible = "altr,socfpga-gate-clk";
352 clocks = <&dbg_at_clk>;
353 div-reg = <0x68 2 2>;
357 dbg_trace_clk: dbg_trace_clk {
359 compatible = "altr,socfpga-gate-clk";
360 clocks = <&dbg_base_clk>;
361 div-reg = <0x6C 0 3>;
365 dbg_timer_clk: dbg_timer_clk {
367 compatible = "altr,socfpga-gate-clk";
368 clocks = <&dbg_base_clk>;
374 compatible = "altr,socfpga-gate-clk";
375 clocks = <&cfg_h2f_usr0_clk>;
379 h2f_user0_clk: h2f_user0_clk {
381 compatible = "altr,socfpga-gate-clk";
382 clocks = <&cfg_h2f_usr0_clk>;
386 emac_0_clk: emac_0_clk {
388 compatible = "altr,socfpga-gate-clk";
389 clocks = <&emac0_clk>;
393 emac_1_clk: emac_1_clk {
395 compatible = "altr,socfpga-gate-clk";
396 clocks = <&emac1_clk>;
400 usb_mp_clk: usb_mp_clk {
402 compatible = "altr,socfpga-gate-clk";
403 clocks = <&per_base_clk>;
405 div-reg = <0xa4 0 3>;
408 spi_m_clk: spi_m_clk {
410 compatible = "altr,socfpga-gate-clk";
411 clocks = <&per_base_clk>;
413 div-reg = <0xa4 3 3>;
418 compatible = "altr,socfpga-gate-clk";
419 clocks = <&per_base_clk>;
421 div-reg = <0xa4 6 3>;
426 compatible = "altr,socfpga-gate-clk";
427 clocks = <&per_base_clk>;
429 div-reg = <0xa4 9 3>;
432 gpio_db_clk: gpio_db_clk {
434 compatible = "altr,socfpga-gate-clk";
435 clocks = <&per_base_clk>;
437 div-reg = <0xa8 0 24>;
440 h2f_user1_clk: h2f_user1_clk {
442 compatible = "altr,socfpga-gate-clk";
443 clocks = <&h2f_usr1_clk>;
447 sdmmc_clk: sdmmc_clk {
449 compatible = "altr,socfpga-gate-clk";
450 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
455 sdmmc_clk_divided: sdmmc_clk_divided {
457 compatible = "altr,socfpga-gate-clk";
458 clocks = <&sdmmc_clk>;
463 nand_x_clk: nand_x_clk {
465 compatible = "altr,socfpga-gate-clk";
466 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
472 compatible = "altr,socfpga-gate-clk";
473 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
474 clk-gate = <0xa0 10>;
480 compatible = "altr,socfpga-gate-clk";
481 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
482 clk-gate = <0xa0 11>;
485 ddr_dqs_clk_gate: ddr_dqs_clk_gate {
487 compatible = "altr,socfpga-gate-clk";
488 clocks = <&ddr_dqs_clk>;
492 ddr_2x_dqs_clk_gate: ddr_2x_dqs_clk_gate {
494 compatible = "altr,socfpga-gate-clk";
495 clocks = <&ddr_2x_dqs_clk>;
499 ddr_dq_clk_gate: ddr_dq_clk_gate {
501 compatible = "altr,socfpga-gate-clk";
502 clocks = <&ddr_dq_clk>;
506 h2f_user2_clk: h2f_user2_clk {
508 compatible = "altr,socfpga-gate-clk";
509 clocks = <&h2f_usr2_clk>;
516 fpgamgr0: fpgamgr@ff706000 {
517 compatible = "altr,socfpga-fpga-mgr";
518 reg = <0xff706000 0x1000
520 interrupts = <0 175 4>;
523 gmac0: ethernet@ff700000 {
524 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
525 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
526 reg = <0xff700000 0x2000>;
527 interrupts = <0 115 4>;
528 interrupt-names = "macirq";
529 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
530 clocks = <&emac0_clk>;
531 clock-names = "stmmaceth";
532 resets = <&rst EMAC0_RESET>;
533 reset-names = "stmmaceth";
534 snps,multicast-filter-bins = <256>;
535 snps,perfect-filter-entries = <128>;
536 tx-fifo-depth = <4096>;
537 rx-fifo-depth = <4096>;
541 gmac1: ethernet@ff702000 {
542 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
543 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
544 reg = <0xff702000 0x2000>;
545 interrupts = <0 120 4>;
546 interrupt-names = "macirq";
547 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
548 clocks = <&emac1_clk>;
549 clock-names = "stmmaceth";
550 resets = <&rst EMAC1_RESET>;
551 reset-names = "stmmaceth";
552 snps,multicast-filter-bins = <256>;
553 snps,perfect-filter-entries = <128>;
554 tx-fifo-depth = <4096>;
555 rx-fifo-depth = <4096>;
559 gpio0: gpio@ff708000 {
560 #address-cells = <1>;
562 compatible = "snps,dw-apb-gpio";
563 reg = <0xff708000 0x1000>;
564 clocks = <&l4_mp_clk>;
567 porta: gpio-controller@0 {
568 compatible = "snps,dw-apb-gpio-port";
571 snps,nr-gpios = <29>;
573 interrupt-controller;
574 #interrupt-cells = <2>;
575 interrupts = <0 164 4>;
579 gpio1: gpio@ff709000 {
580 #address-cells = <1>;
582 compatible = "snps,dw-apb-gpio";
583 reg = <0xff709000 0x1000>;
584 clocks = <&l4_mp_clk>;
587 portb: gpio-controller@0 {
588 compatible = "snps,dw-apb-gpio-port";
591 snps,nr-gpios = <29>;
593 interrupt-controller;
594 #interrupt-cells = <2>;
595 interrupts = <0 165 4>;
599 gpio2: gpio@ff70a000 {
600 #address-cells = <1>;
602 compatible = "snps,dw-apb-gpio";
603 reg = <0xff70a000 0x1000>;
604 clocks = <&l4_mp_clk>;
607 portc: gpio-controller@0 {
608 compatible = "snps,dw-apb-gpio-port";
611 snps,nr-gpios = <27>;
613 interrupt-controller;
614 #interrupt-cells = <2>;
615 interrupts = <0 166 4>;
620 #address-cells = <1>;
622 compatible = "snps,designware-i2c";
623 reg = <0xffc04000 0x1000>;
624 clocks = <&l4_sp_clk>;
625 interrupts = <0 158 0x4>;
630 #address-cells = <1>;
632 compatible = "snps,designware-i2c";
633 reg = <0xffc05000 0x1000>;
634 clocks = <&l4_sp_clk>;
635 interrupts = <0 159 0x4>;
640 #address-cells = <1>;
642 compatible = "snps,designware-i2c";
643 reg = <0xffc06000 0x1000>;
644 clocks = <&l4_sp_clk>;
645 interrupts = <0 160 0x4>;
650 #address-cells = <1>;
652 compatible = "snps,designware-i2c";
653 reg = <0xffc07000 0x1000>;
654 clocks = <&l4_sp_clk>;
655 interrupts = <0 161 0x4>;
659 eccmgr: eccmgr@ffd08140 {
660 compatible = "altr,socfpga-ecc-manager";
661 #address-cells = <1>;
666 compatible = "altr,socfpga-l2-ecc";
667 reg = <0xffd08140 0x4>;
668 interrupts = <0 36 1>, <0 37 1>;
672 compatible = "altr,socfpga-ocram-ecc";
673 reg = <0xffd08144 0x4>;
675 interrupts = <0 178 1>, <0 179 1>;
679 L2: l2-cache@fffef000 {
680 compatible = "arm,pl310-cache";
681 reg = <0xfffef000 0x1000>;
682 interrupts = <0 38 0x04>;
685 arm,tag-latency = <1 1 1>;
686 arm,data-latency = <2 1 1>;
688 prefetch-instr = <1>;
691 mmc: dwmmc0@ff704000 {
692 compatible = "altr,socfpga-dw-mshc";
693 reg = <0xff704000 0x1000>;
694 interrupts = <0 139 4>;
695 fifo-depth = <0x400>;
696 #address-cells = <1>;
698 clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
699 clock-names = "biu", "ciu";
703 ocram: sram@ffff0000 {
704 compatible = "mmio-sram";
705 reg = <0xffff0000 0x10000>;
708 rst: rstmgr@ffd05000 {
710 compatible = "altr,rst-mgr";
711 reg = <0xffd05000 0x1000>;
712 altr,modrst-offset = <0x10>;
715 scu: snoop-control-unit@fffec000 {
716 compatible = "arm,cortex-a9-scu";
717 reg = <0xfffec000 0x100>;
721 compatible = "syscon";
722 reg = <0xffc25000 0x1000>;
726 compatible = "altr,sdram-edac";
727 altr,sdr-syscon = <&sdr>;
728 interrupts = <0 39 4>;
732 compatible = "snps,dw-apb-ssi";
733 #address-cells = <1>;
735 reg = <0xfff00000 0x1000>;
736 interrupts = <0 154 4>;
738 clocks = <&spi_m_clk>;
743 compatible = "snps,dw-apb-ssi";
744 #address-cells = <1>;
746 reg = <0xfff01000 0x1000>;
747 interrupts = <0 155 4>;
749 clocks = <&spi_m_clk>;
753 sysmgr: sysmgr@ffd08000 {
754 compatible = "altr,sys-mgr", "syscon";
755 reg = <0xffd08000 0x4000>;
760 compatible = "arm,cortex-a9-twd-timer";
761 reg = <0xfffec600 0x100>;
762 interrupts = <1 13 0xf04>;
763 clocks = <&mpu_periph_clk>;
766 timer0: timer0@ffc08000 {
767 compatible = "snps,dw-apb-timer";
768 interrupts = <0 167 4>;
769 reg = <0xffc08000 0x1000>;
770 clocks = <&l4_sp_clk>;
771 clock-names = "timer";
774 timer1: timer1@ffc09000 {
775 compatible = "snps,dw-apb-timer";
776 interrupts = <0 168 4>;
777 reg = <0xffc09000 0x1000>;
778 clocks = <&l4_sp_clk>;
779 clock-names = "timer";
782 timer2: timer2@ffd00000 {
783 compatible = "snps,dw-apb-timer";
784 interrupts = <0 169 4>;
785 reg = <0xffd00000 0x1000>;
787 clock-names = "timer";
790 timer3: timer3@ffd01000 {
791 compatible = "snps,dw-apb-timer";
792 interrupts = <0 170 4>;
793 reg = <0xffd01000 0x1000>;
795 clock-names = "timer";
798 uart0: serial0@ffc02000 {
799 compatible = "snps,dw-apb-uart";
800 reg = <0xffc02000 0x1000>;
801 interrupts = <0 162 4>;
804 clocks = <&l4_sp_clk>;
807 dma-names = "tx", "rx";
810 uart1: serial1@ffc03000 {
811 compatible = "snps,dw-apb-uart";
812 reg = <0xffc03000 0x1000>;
813 interrupts = <0 163 4>;
816 clocks = <&l4_sp_clk>;
819 dma-names = "tx", "rx";
824 compatible = "usb-nop-xceiv";
829 compatible = "snps,dwc2";
830 reg = <0xffb00000 0xffff>;
831 interrupts = <0 125 4>;
832 clocks = <&usb_mp_clk>;
834 resets = <&rst USB0_RESET>;
835 reset-names = "dwc2";
837 phy-names = "usb2-phy";
842 compatible = "snps,dwc2";
843 reg = <0xffb40000 0xffff>;
844 interrupts = <0 128 4>;
845 clocks = <&usb_mp_clk>;
847 resets = <&rst USB1_RESET>;
848 reset-names = "dwc2";
850 phy-names = "usb2-phy";
854 watchdog0: watchdog@ffd02000 {
855 compatible = "snps,dw-wdt";
856 reg = <0xffd02000 0x1000>;
857 interrupts = <0 171 4>;
862 watchdog1: watchdog@ffd03000 {
863 compatible = "snps,dw-wdt";
864 reg = <0xffd03000 0x1000>;
865 interrupts = <0 172 4>;