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>
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-gic";
56 #interrupt-cells = <3>;
58 reg = <0xfffed000 0x1000>,
65 compatible = "simple-bus";
67 interrupt-parent = <&intc>;
71 compatible = "arm,amba-bus";
77 compatible = "arm,pl330", "arm,primecell";
78 reg = <0xffe01000 0x1000>;
79 interrupts = <0 104 4>,
90 clocks = <&l4_main_clk>;
91 clock-names = "apb_pclk";
96 compatible = "bosch,d_can";
97 reg = <0xffc00000 0x1000>;
98 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
104 compatible = "bosch,d_can";
105 reg = <0xffc01000 0x1000>;
106 interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>;
107 clocks = <&can1_clk>;
112 compatible = "altr,clk-mgr";
113 reg = <0xffd04000 0x1000>;
116 #address-cells = <1>;
121 compatible = "fixed-clock";
126 compatible = "fixed-clock";
129 f2s_periph_ref_clk: f2s_periph_ref_clk {
131 compatible = "fixed-clock";
134 f2s_sdram_ref_clk: f2s_sdram_ref_clk {
136 compatible = "fixed-clock";
140 #address-cells = <1>;
143 compatible = "altr,socfpga-pll-clock";
149 compatible = "altr,socfpga-perip-clk";
150 clocks = <&main_pll>;
151 div-reg = <0xe0 0 9>;
157 compatible = "altr,socfpga-perip-clk";
158 clocks = <&main_pll>;
159 div-reg = <0xe4 0 9>;
163 dbg_base_clk: dbg_base_clk {
165 compatible = "altr,socfpga-perip-clk";
166 clocks = <&main_pll>;
167 div-reg = <0xe8 0 9>;
171 main_qspi_clk: main_qspi_clk {
173 compatible = "altr,socfpga-perip-clk";
174 clocks = <&main_pll>;
178 main_nand_sdmmc_clk: main_nand_sdmmc_clk {
180 compatible = "altr,socfpga-perip-clk";
181 clocks = <&main_pll>;
185 cfg_h2f_usr0_clk: cfg_h2f_usr0_clk {
187 compatible = "altr,socfpga-perip-clk";
188 clocks = <&main_pll>;
193 periph_pll: periph_pll {
194 #address-cells = <1>;
197 compatible = "altr,socfpga-pll-clock";
198 clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>;
201 emac0_clk: emac0_clk {
203 compatible = "altr,socfpga-perip-clk";
204 clocks = <&periph_pll>;
208 emac1_clk: emac1_clk {
210 compatible = "altr,socfpga-perip-clk";
211 clocks = <&periph_pll>;
215 per_qspi_clk: per_qsi_clk {
217 compatible = "altr,socfpga-perip-clk";
218 clocks = <&periph_pll>;
222 per_nand_mmc_clk: per_nand_mmc_clk {
224 compatible = "altr,socfpga-perip-clk";
225 clocks = <&periph_pll>;
229 per_base_clk: per_base_clk {
231 compatible = "altr,socfpga-perip-clk";
232 clocks = <&periph_pll>;
236 h2f_usr1_clk: h2f_usr1_clk {
238 compatible = "altr,socfpga-perip-clk";
239 clocks = <&periph_pll>;
244 sdram_pll: sdram_pll {
245 #address-cells = <1>;
248 compatible = "altr,socfpga-pll-clock";
249 clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>;
252 ddr_dqs_clk: ddr_dqs_clk {
254 compatible = "altr,socfpga-perip-clk";
255 clocks = <&sdram_pll>;
259 ddr_2x_dqs_clk: ddr_2x_dqs_clk {
261 compatible = "altr,socfpga-perip-clk";
262 clocks = <&sdram_pll>;
266 ddr_dq_clk: ddr_dq_clk {
268 compatible = "altr,socfpga-perip-clk";
269 clocks = <&sdram_pll>;
273 h2f_usr2_clk: h2f_usr2_clk {
275 compatible = "altr,socfpga-perip-clk";
276 clocks = <&sdram_pll>;
281 mpu_periph_clk: mpu_periph_clk {
283 compatible = "altr,socfpga-perip-clk";
288 mpu_l2_ram_clk: mpu_l2_ram_clk {
290 compatible = "altr,socfpga-perip-clk";
295 l4_main_clk: l4_main_clk {
297 compatible = "altr,socfpga-gate-clk";
302 l3_main_clk: l3_main_clk {
304 compatible = "altr,socfpga-perip-clk";
309 l3_mp_clk: l3_mp_clk {
311 compatible = "altr,socfpga-gate-clk";
313 div-reg = <0x64 0 2>;
317 l3_sp_clk: l3_sp_clk {
319 compatible = "altr,socfpga-gate-clk";
321 div-reg = <0x64 2 2>;
324 l4_mp_clk: l4_mp_clk {
326 compatible = "altr,socfpga-gate-clk";
327 clocks = <&mainclk>, <&per_base_clk>;
328 div-reg = <0x64 4 3>;
332 l4_sp_clk: l4_sp_clk {
334 compatible = "altr,socfpga-gate-clk";
335 clocks = <&mainclk>, <&per_base_clk>;
336 div-reg = <0x64 7 3>;
340 dbg_at_clk: dbg_at_clk {
342 compatible = "altr,socfpga-gate-clk";
343 clocks = <&dbg_base_clk>;
344 div-reg = <0x68 0 2>;
350 compatible = "altr,socfpga-gate-clk";
351 clocks = <&dbg_base_clk>;
352 div-reg = <0x68 2 2>;
356 dbg_trace_clk: dbg_trace_clk {
358 compatible = "altr,socfpga-gate-clk";
359 clocks = <&dbg_base_clk>;
360 div-reg = <0x6C 0 3>;
364 dbg_timer_clk: dbg_timer_clk {
366 compatible = "altr,socfpga-gate-clk";
367 clocks = <&dbg_base_clk>;
373 compatible = "altr,socfpga-gate-clk";
374 clocks = <&cfg_h2f_usr0_clk>;
378 h2f_user0_clk: h2f_user0_clk {
380 compatible = "altr,socfpga-gate-clk";
381 clocks = <&cfg_h2f_usr0_clk>;
385 emac_0_clk: emac_0_clk {
387 compatible = "altr,socfpga-gate-clk";
388 clocks = <&emac0_clk>;
392 emac_1_clk: emac_1_clk {
394 compatible = "altr,socfpga-gate-clk";
395 clocks = <&emac1_clk>;
399 usb_mp_clk: usb_mp_clk {
401 compatible = "altr,socfpga-gate-clk";
402 clocks = <&per_base_clk>;
404 div-reg = <0xa4 0 3>;
407 spi_m_clk: spi_m_clk {
409 compatible = "altr,socfpga-gate-clk";
410 clocks = <&per_base_clk>;
412 div-reg = <0xa4 3 3>;
417 compatible = "altr,socfpga-gate-clk";
418 clocks = <&per_base_clk>;
420 div-reg = <0xa4 6 3>;
425 compatible = "altr,socfpga-gate-clk";
426 clocks = <&per_base_clk>;
428 div-reg = <0xa4 9 3>;
431 gpio_db_clk: gpio_db_clk {
433 compatible = "altr,socfpga-gate-clk";
434 clocks = <&per_base_clk>;
436 div-reg = <0xa8 0 24>;
439 h2f_user1_clk: h2f_user1_clk {
441 compatible = "altr,socfpga-gate-clk";
442 clocks = <&h2f_usr1_clk>;
446 sdmmc_clk: sdmmc_clk {
448 compatible = "altr,socfpga-gate-clk";
449 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
454 nand_x_clk: nand_x_clk {
456 compatible = "altr,socfpga-gate-clk";
457 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
463 compatible = "altr,socfpga-gate-clk";
464 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
465 clk-gate = <0xa0 10>;
471 compatible = "altr,socfpga-gate-clk";
472 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
473 clk-gate = <0xa0 11>;
478 gmac0: ethernet@ff700000 {
479 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
480 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
481 reg = <0xff700000 0x2000>;
482 interrupts = <0 115 4>;
483 interrupt-names = "macirq";
484 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
485 clocks = <&emac0_clk>;
486 clock-names = "stmmaceth";
487 resets = <&rst EMAC0_RESET>;
488 reset-names = "stmmaceth";
489 snps,multicast-filter-bins = <256>;
490 snps,perfect-filter-entries = <128>;
494 gmac1: ethernet@ff702000 {
495 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
496 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
497 reg = <0xff702000 0x2000>;
498 interrupts = <0 120 4>;
499 interrupt-names = "macirq";
500 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
501 clocks = <&emac1_clk>;
502 clock-names = "stmmaceth";
503 resets = <&rst EMAC1_RESET>;
504 reset-names = "stmmaceth";
505 snps,multicast-filter-bins = <256>;
506 snps,perfect-filter-entries = <128>;
511 #address-cells = <1>;
513 compatible = "snps,designware-i2c";
514 reg = <0xffc04000 0x1000>;
515 clocks = <&l4_sp_clk>;
516 interrupts = <0 158 0x4>;
521 #address-cells = <1>;
523 compatible = "snps,designware-i2c";
524 reg = <0xffc05000 0x1000>;
525 clocks = <&l4_sp_clk>;
526 interrupts = <0 159 0x4>;
531 #address-cells = <1>;
533 compatible = "snps,designware-i2c";
534 reg = <0xffc06000 0x1000>;
535 clocks = <&l4_sp_clk>;
536 interrupts = <0 160 0x4>;
541 #address-cells = <1>;
543 compatible = "snps,designware-i2c";
544 reg = <0xffc07000 0x1000>;
545 clocks = <&l4_sp_clk>;
546 interrupts = <0 161 0x4>;
550 gpio0: gpio@ff708000 {
551 #address-cells = <1>;
553 compatible = "snps,dw-apb-gpio";
554 reg = <0xff708000 0x1000>;
555 clocks = <&per_base_clk>;
558 porta: gpio-controller@0 {
559 compatible = "snps,dw-apb-gpio-port";
562 snps,nr-gpios = <29>;
564 interrupt-controller;
565 #interrupt-cells = <2>;
566 interrupts = <0 164 4>;
570 gpio1: gpio@ff709000 {
571 #address-cells = <1>;
573 compatible = "snps,dw-apb-gpio";
574 reg = <0xff709000 0x1000>;
575 clocks = <&per_base_clk>;
578 portb: gpio-controller@0 {
579 compatible = "snps,dw-apb-gpio-port";
582 snps,nr-gpios = <29>;
584 interrupt-controller;
585 #interrupt-cells = <2>;
586 interrupts = <0 165 4>;
590 gpio2: gpio@ff70a000 {
591 #address-cells = <1>;
593 compatible = "snps,dw-apb-gpio";
594 reg = <0xff70a000 0x1000>;
595 clocks = <&per_base_clk>;
598 portc: gpio-controller@0 {
599 compatible = "snps,dw-apb-gpio-port";
602 snps,nr-gpios = <27>;
604 interrupt-controller;
605 #interrupt-cells = <2>;
606 interrupts = <0 166 4>;
611 compatible = "syscon";
612 reg = <0xffc25000 0x1000>;
616 compatible = "altr,sdram-edac";
617 altr,sdr-syscon = <&sdr>;
618 interrupts = <0 39 4>;
621 L2: l2-cache@fffef000 {
622 compatible = "arm,pl310-cache";
623 reg = <0xfffef000 0x1000>;
624 interrupts = <0 38 0x04>;
627 arm,tag-latency = <1 1 1>;
628 arm,data-latency = <2 1 1>;
631 mmc: dwmmc0@ff704000 {
632 compatible = "altr,socfpga-dw-mshc";
633 reg = <0xff704000 0x1000>;
634 interrupts = <0 139 4>;
635 fifo-depth = <0x400>;
636 #address-cells = <1>;
638 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
639 clock-names = "biu", "ciu";
642 ocram: sram@ffff0000 {
643 compatible = "mmio-sram";
644 reg = <0xffff0000 0x10000>;
648 compatible = "snps,dw-apb-ssi";
649 #address-cells = <1>;
651 reg = <0xfff00000 0x1000>;
652 interrupts = <0 154 4>;
654 clocks = <&spi_m_clk>;
659 compatible = "snps,dw-apb-ssi";
660 #address-cells = <1>;
662 reg = <0xfff01000 0x1000>;
663 interrupts = <0 156 4>;
665 clocks = <&spi_m_clk>;
671 compatible = "arm,cortex-a9-twd-timer";
672 reg = <0xfffec600 0x100>;
673 interrupts = <1 13 0xf04>;
674 clocks = <&mpu_periph_clk>;
677 timer0: timer0@ffc08000 {
678 compatible = "snps,dw-apb-timer";
679 interrupts = <0 167 4>;
680 reg = <0xffc08000 0x1000>;
681 clocks = <&l4_sp_clk>;
682 clock-names = "timer";
685 timer1: timer1@ffc09000 {
686 compatible = "snps,dw-apb-timer";
687 interrupts = <0 168 4>;
688 reg = <0xffc09000 0x1000>;
689 clocks = <&l4_sp_clk>;
690 clock-names = "timer";
693 timer2: timer2@ffd00000 {
694 compatible = "snps,dw-apb-timer";
695 interrupts = <0 169 4>;
696 reg = <0xffd00000 0x1000>;
698 clock-names = "timer";
701 timer3: timer3@ffd01000 {
702 compatible = "snps,dw-apb-timer";
703 interrupts = <0 170 4>;
704 reg = <0xffd01000 0x1000>;
706 clock-names = "timer";
709 uart0: serial0@ffc02000 {
710 compatible = "snps,dw-apb-uart";
711 reg = <0xffc02000 0x1000>;
712 interrupts = <0 162 4>;
715 clocks = <&l4_sp_clk>;
718 dma-names = "tx", "rx";
721 uart1: serial1@ffc03000 {
722 compatible = "snps,dw-apb-uart";
723 reg = <0xffc03000 0x1000>;
724 interrupts = <0 163 4>;
727 clocks = <&l4_sp_clk>;
730 dma-names = "tx", "rx";
733 rst: rstmgr@ffd05000 {
735 compatible = "altr,rst-mgr";
736 reg = <0xffd05000 0x1000>;
741 compatible = "usb-nop-xceiv";
746 compatible = "snps,dwc2";
747 reg = <0xffb00000 0xffff>;
748 interrupts = <0 125 4>;
749 clocks = <&usb_mp_clk>;
752 phy-names = "usb2-phy";
757 compatible = "snps,dwc2";
758 reg = <0xffb40000 0xffff>;
759 interrupts = <0 128 4>;
760 clocks = <&usb_mp_clk>;
763 phy-names = "usb2-phy";
767 watchdog0: watchdog@ffd02000 {
768 compatible = "snps,dw-wdt";
769 reg = <0xffd02000 0x1000>;
770 interrupts = <0 171 4>;
775 watchdog1: watchdog@ffd03000 {
776 compatible = "snps,dw-wdt";
777 reg = <0xffd03000 0x1000>;
778 interrupts = <0 172 4>;
783 sysmgr: sysmgr@ffd08000 {
784 compatible = "altr,sys-mgr", "syscon";
785 reg = <0xffd08000 0x4000>;