1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2012 Altera <www.altera.com>
6 #include <dt-bindings/reset/altr,rst-mgr.h>
24 enable-method = "altr,socfpga-smp";
27 compatible = "arm,cortex-a9";
30 next-level-cache = <&L2>;
33 compatible = "arm,cortex-a9";
36 next-level-cache = <&L2>;
41 compatible = "arm,cortex-a9-pmu";
42 interrupt-parent = <&intc>;
43 interrupts = <0 176 4>, <0 177 4>;
44 interrupt-affinity = <&cpu0>, <&cpu1>;
45 reg = <0xff111000 0x1000>,
50 compatible = "arm,cortex-a9-gic";
51 #interrupt-cells = <3>;
53 reg = <0xfffed000 0x1000>,
60 compatible = "simple-bus";
62 interrupt-parent = <&intc>;
66 compatible = "simple-bus";
72 compatible = "arm,pl330", "arm,primecell";
73 reg = <0xffe01000 0x1000>;
74 interrupts = <0 104 4>,
85 clocks = <&l4_main_clk>;
86 clock-names = "apb_pclk";
87 resets = <&rst DMA_RESET>;
92 compatible = "fpga-region";
93 fpga-mgr = <&fpgamgr0>;
95 #address-cells = <0x1>;
100 compatible = "bosch,d_can";
101 reg = <0xffc00000 0x1000>;
102 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
103 clocks = <&can0_clk>;
104 resets = <&rst CAN0_RESET>;
109 compatible = "bosch,d_can";
110 reg = <0xffc01000 0x1000>;
111 interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>;
112 clocks = <&can1_clk>;
113 resets = <&rst CAN1_RESET>;
118 compatible = "altr,clk-mgr";
119 reg = <0xffd04000 0x1000>;
122 #address-cells = <1>;
127 compatible = "fixed-clock";
132 compatible = "fixed-clock";
135 f2s_periph_ref_clk: f2s_periph_ref_clk {
137 compatible = "fixed-clock";
140 f2s_sdram_ref_clk: f2s_sdram_ref_clk {
142 compatible = "fixed-clock";
145 main_pll: main_pll@40 {
146 #address-cells = <1>;
149 compatible = "altr,socfpga-pll-clock";
155 compatible = "altr,socfpga-perip-clk";
156 clocks = <&main_pll>;
157 div-reg = <0xe0 0 9>;
161 mainclk: mainclk@4c {
163 compatible = "altr,socfpga-perip-clk";
164 clocks = <&main_pll>;
165 div-reg = <0xe4 0 9>;
169 dbg_base_clk: dbg_base_clk@50 {
171 compatible = "altr,socfpga-perip-clk";
172 clocks = <&main_pll>, <&osc1>;
173 div-reg = <0xe8 0 9>;
177 main_qspi_clk: main_qspi_clk@54 {
179 compatible = "altr,socfpga-perip-clk";
180 clocks = <&main_pll>;
184 main_nand_sdmmc_clk: main_nand_sdmmc_clk@58 {
186 compatible = "altr,socfpga-perip-clk";
187 clocks = <&main_pll>;
191 cfg_h2f_usr0_clk: cfg_h2f_usr0_clk@5c {
193 compatible = "altr,socfpga-perip-clk";
194 clocks = <&main_pll>;
199 periph_pll: periph_pll@80 {
200 #address-cells = <1>;
203 compatible = "altr,socfpga-pll-clock";
204 clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>;
207 emac0_clk: emac0_clk@88 {
209 compatible = "altr,socfpga-perip-clk";
210 clocks = <&periph_pll>;
214 emac1_clk: emac1_clk@8c {
216 compatible = "altr,socfpga-perip-clk";
217 clocks = <&periph_pll>;
221 per_qspi_clk: per_qsi_clk@90 {
223 compatible = "altr,socfpga-perip-clk";
224 clocks = <&periph_pll>;
228 per_nand_mmc_clk: per_nand_mmc_clk@94 {
230 compatible = "altr,socfpga-perip-clk";
231 clocks = <&periph_pll>;
235 per_base_clk: per_base_clk@98 {
237 compatible = "altr,socfpga-perip-clk";
238 clocks = <&periph_pll>;
242 h2f_usr1_clk: h2f_usr1_clk@9c {
244 compatible = "altr,socfpga-perip-clk";
245 clocks = <&periph_pll>;
250 sdram_pll: sdram_pll@c0 {
251 #address-cells = <1>;
254 compatible = "altr,socfpga-pll-clock";
255 clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>;
258 ddr_dqs_clk: ddr_dqs_clk@c8 {
260 compatible = "altr,socfpga-perip-clk";
261 clocks = <&sdram_pll>;
265 ddr_2x_dqs_clk: ddr_2x_dqs_clk@cc {
267 compatible = "altr,socfpga-perip-clk";
268 clocks = <&sdram_pll>;
272 ddr_dq_clk: ddr_dq_clk@d0 {
274 compatible = "altr,socfpga-perip-clk";
275 clocks = <&sdram_pll>;
279 h2f_usr2_clk: h2f_usr2_clk@d4 {
281 compatible = "altr,socfpga-perip-clk";
282 clocks = <&sdram_pll>;
287 mpu_periph_clk: mpu_periph_clk {
289 compatible = "altr,socfpga-perip-clk";
294 mpu_l2_ram_clk: mpu_l2_ram_clk {
296 compatible = "altr,socfpga-perip-clk";
301 l4_main_clk: l4_main_clk {
303 compatible = "altr,socfpga-gate-clk";
308 l3_main_clk: l3_main_clk {
310 compatible = "altr,socfpga-perip-clk";
315 l3_mp_clk: l3_mp_clk {
317 compatible = "altr,socfpga-gate-clk";
319 div-reg = <0x64 0 2>;
323 l3_sp_clk: l3_sp_clk {
325 compatible = "altr,socfpga-gate-clk";
326 clocks = <&l3_mp_clk>;
327 div-reg = <0x64 2 2>;
330 l4_mp_clk: l4_mp_clk {
332 compatible = "altr,socfpga-gate-clk";
333 clocks = <&mainclk>, <&per_base_clk>;
334 div-reg = <0x64 4 3>;
338 l4_sp_clk: l4_sp_clk {
340 compatible = "altr,socfpga-gate-clk";
341 clocks = <&mainclk>, <&per_base_clk>;
342 div-reg = <0x64 7 3>;
346 dbg_at_clk: dbg_at_clk {
348 compatible = "altr,socfpga-gate-clk";
349 clocks = <&dbg_base_clk>;
350 div-reg = <0x68 0 2>;
356 compatible = "altr,socfpga-gate-clk";
357 clocks = <&dbg_at_clk>;
358 div-reg = <0x68 2 2>;
362 dbg_trace_clk: dbg_trace_clk {
364 compatible = "altr,socfpga-gate-clk";
365 clocks = <&dbg_base_clk>;
366 div-reg = <0x6C 0 3>;
370 dbg_timer_clk: dbg_timer_clk {
372 compatible = "altr,socfpga-gate-clk";
373 clocks = <&dbg_base_clk>;
379 compatible = "altr,socfpga-gate-clk";
380 clocks = <&cfg_h2f_usr0_clk>;
384 h2f_user0_clk: h2f_user0_clk {
386 compatible = "altr,socfpga-gate-clk";
387 clocks = <&cfg_h2f_usr0_clk>;
391 emac_0_clk: emac_0_clk {
393 compatible = "altr,socfpga-gate-clk";
394 clocks = <&emac0_clk>;
398 emac_1_clk: emac_1_clk {
400 compatible = "altr,socfpga-gate-clk";
401 clocks = <&emac1_clk>;
405 usb_mp_clk: usb_mp_clk {
407 compatible = "altr,socfpga-gate-clk";
408 clocks = <&per_base_clk>;
410 div-reg = <0xa4 0 3>;
413 spi_m_clk: spi_m_clk {
415 compatible = "altr,socfpga-gate-clk";
416 clocks = <&per_base_clk>;
418 div-reg = <0xa4 3 3>;
423 compatible = "altr,socfpga-gate-clk";
424 clocks = <&per_base_clk>;
426 div-reg = <0xa4 6 3>;
431 compatible = "altr,socfpga-gate-clk";
432 clocks = <&per_base_clk>;
434 div-reg = <0xa4 9 3>;
437 gpio_db_clk: gpio_db_clk {
439 compatible = "altr,socfpga-gate-clk";
440 clocks = <&per_base_clk>;
442 div-reg = <0xa8 0 24>;
445 h2f_user1_clk: h2f_user1_clk {
447 compatible = "altr,socfpga-gate-clk";
448 clocks = <&h2f_usr1_clk>;
452 sdmmc_clk: sdmmc_clk {
454 compatible = "altr,socfpga-gate-clk";
455 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
460 sdmmc_clk_divided: sdmmc_clk_divided {
462 compatible = "altr,socfpga-gate-clk";
463 clocks = <&sdmmc_clk>;
468 nand_x_clk: nand_x_clk {
470 compatible = "altr,socfpga-gate-clk";
471 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
475 nand_ecc_clk: nand_ecc_clk {
477 compatible = "altr,socfpga-gate-clk";
478 clocks = <&nand_x_clk>;
484 compatible = "altr,socfpga-gate-clk";
485 clocks = <&nand_x_clk>;
486 clk-gate = <0xa0 10>;
492 compatible = "altr,socfpga-gate-clk";
493 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
494 clk-gate = <0xa0 11>;
497 ddr_dqs_clk_gate: ddr_dqs_clk_gate {
499 compatible = "altr,socfpga-gate-clk";
500 clocks = <&ddr_dqs_clk>;
504 ddr_2x_dqs_clk_gate: ddr_2x_dqs_clk_gate {
506 compatible = "altr,socfpga-gate-clk";
507 clocks = <&ddr_2x_dqs_clk>;
511 ddr_dq_clk_gate: ddr_dq_clk_gate {
513 compatible = "altr,socfpga-gate-clk";
514 clocks = <&ddr_dq_clk>;
518 h2f_user2_clk: h2f_user2_clk {
520 compatible = "altr,socfpga-gate-clk";
521 clocks = <&h2f_usr2_clk>;
528 fpga_bridge0: fpga_bridge@ff400000 {
529 compatible = "altr,socfpga-lwhps2fpga-bridge";
530 reg = <0xff400000 0x100000>;
531 resets = <&rst LWHPS2FPGA_RESET>;
532 clocks = <&l4_main_clk>;
535 fpga_bridge1: fpga_bridge@ff500000 {
536 compatible = "altr,socfpga-hps2fpga-bridge";
537 reg = <0xff500000 0x10000>;
538 resets = <&rst HPS2FPGA_RESET>;
539 clocks = <&l4_main_clk>;
542 fpgamgr0: fpgamgr@ff706000 {
543 compatible = "altr,socfpga-fpga-mgr";
544 reg = <0xff706000 0x1000
546 interrupts = <0 175 4>;
549 gmac0: ethernet@ff700000 {
550 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
551 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
552 reg = <0xff700000 0x2000>;
553 interrupts = <0 115 4>;
554 interrupt-names = "macirq";
555 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
556 clocks = <&emac_0_clk>;
557 clock-names = "stmmaceth";
558 resets = <&rst EMAC0_RESET>;
559 reset-names = "stmmaceth";
560 snps,multicast-filter-bins = <256>;
561 snps,perfect-filter-entries = <128>;
562 tx-fifo-depth = <4096>;
563 rx-fifo-depth = <4096>;
567 gmac1: ethernet@ff702000 {
568 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
569 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
570 reg = <0xff702000 0x2000>;
571 interrupts = <0 120 4>;
572 interrupt-names = "macirq";
573 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
574 clocks = <&emac_1_clk>;
575 clock-names = "stmmaceth";
576 resets = <&rst EMAC1_RESET>;
577 reset-names = "stmmaceth";
578 snps,multicast-filter-bins = <256>;
579 snps,perfect-filter-entries = <128>;
580 tx-fifo-depth = <4096>;
581 rx-fifo-depth = <4096>;
585 gpio0: gpio@ff708000 {
586 #address-cells = <1>;
588 compatible = "snps,dw-apb-gpio";
589 reg = <0xff708000 0x1000>;
590 clocks = <&l4_mp_clk>;
591 resets = <&rst GPIO0_RESET>;
594 porta: gpio-controller@0 {
595 compatible = "snps,dw-apb-gpio-port";
598 snps,nr-gpios = <29>;
600 interrupt-controller;
601 #interrupt-cells = <2>;
602 interrupts = <0 164 4>;
606 gpio1: gpio@ff709000 {
607 #address-cells = <1>;
609 compatible = "snps,dw-apb-gpio";
610 reg = <0xff709000 0x1000>;
611 clocks = <&l4_mp_clk>;
612 resets = <&rst GPIO1_RESET>;
615 portb: gpio-controller@0 {
616 compatible = "snps,dw-apb-gpio-port";
619 snps,nr-gpios = <29>;
621 interrupt-controller;
622 #interrupt-cells = <2>;
623 interrupts = <0 165 4>;
627 gpio2: gpio@ff70a000 {
628 #address-cells = <1>;
630 compatible = "snps,dw-apb-gpio";
631 reg = <0xff70a000 0x1000>;
632 clocks = <&l4_mp_clk>;
633 resets = <&rst GPIO2_RESET>;
636 portc: gpio-controller@0 {
637 compatible = "snps,dw-apb-gpio-port";
640 snps,nr-gpios = <27>;
642 interrupt-controller;
643 #interrupt-cells = <2>;
644 interrupts = <0 166 4>;
649 #address-cells = <1>;
651 compatible = "snps,designware-i2c";
652 reg = <0xffc04000 0x1000>;
653 resets = <&rst I2C0_RESET>;
654 clocks = <&l4_sp_clk>;
655 interrupts = <0 158 0x4>;
660 #address-cells = <1>;
662 compatible = "snps,designware-i2c";
663 reg = <0xffc05000 0x1000>;
664 resets = <&rst I2C1_RESET>;
665 clocks = <&l4_sp_clk>;
666 interrupts = <0 159 0x4>;
671 #address-cells = <1>;
673 compatible = "snps,designware-i2c";
674 reg = <0xffc06000 0x1000>;
675 resets = <&rst I2C2_RESET>;
676 clocks = <&l4_sp_clk>;
677 interrupts = <0 160 0x4>;
682 #address-cells = <1>;
684 compatible = "snps,designware-i2c";
685 reg = <0xffc07000 0x1000>;
686 resets = <&rst I2C3_RESET>;
687 clocks = <&l4_sp_clk>;
688 interrupts = <0 161 0x4>;
693 compatible = "altr,socfpga-ecc-manager";
694 #address-cells = <1>;
699 compatible = "altr,socfpga-l2-ecc";
700 reg = <0xffd08140 0x4>;
701 interrupts = <0 36 1>, <0 37 1>;
705 compatible = "altr,socfpga-ocram-ecc";
706 reg = <0xffd08144 0x4>;
708 interrupts = <0 178 1>, <0 179 1>;
712 L2: l2-cache@fffef000 {
713 compatible = "arm,pl310-cache";
714 reg = <0xfffef000 0x1000>;
715 interrupts = <0 38 0x04>;
718 arm,tag-latency = <1 1 1>;
719 arm,data-latency = <2 1 1>;
721 prefetch-instr = <1>;
723 arm,double-linefill = <1>;
724 arm,double-linefill-incr = <0>;
725 arm,double-linefill-wrap = <1>;
726 arm,prefetch-drop = <0>;
727 arm,prefetch-offset = <7>;
731 compatible = "altr,l3regs", "syscon";
732 reg = <0xff800000 0x1000>;
735 mmc: dwmmc0@ff704000 {
736 compatible = "altr,socfpga-dw-mshc";
737 reg = <0xff704000 0x1000>;
738 interrupts = <0 139 4>;
739 fifo-depth = <0x400>;
740 #address-cells = <1>;
742 clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
743 clock-names = "biu", "ciu";
744 resets = <&rst SDMMC_RESET>;
748 nand0: nand@ff900000 {
749 #address-cells = <0x1>;
751 compatible = "altr,socfpga-denali-nand";
752 reg = <0xff900000 0x100000>,
753 <0xffb80000 0x10000>;
754 reg-names = "nand_data", "denali_reg";
755 interrupts = <0x0 0x90 0x4>;
756 clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
757 clock-names = "nand", "nand_x", "ecc";
758 resets = <&rst NAND_RESET>;
762 ocram: sram@ffff0000 {
763 compatible = "mmio-sram";
764 reg = <0xffff0000 0x10000>;
768 compatible = "cdns,qspi-nor";
769 #address-cells = <1>;
771 reg = <0xff705000 0x1000>,
773 interrupts = <0 151 4>;
774 cdns,fifo-depth = <128>;
775 cdns,fifo-width = <4>;
776 cdns,trigger-address = <0x00000000>;
777 clocks = <&qspi_clk>;
778 resets = <&rst QSPI_RESET>;
782 rst: rstmgr@ffd05000 {
784 compatible = "altr,rst-mgr";
785 reg = <0xffd05000 0x1000>;
786 altr,modrst-offset = <0x10>;
789 scu: snoop-control-unit@fffec000 {
790 compatible = "arm,cortex-a9-scu";
791 reg = <0xfffec000 0x100>;
795 compatible = "altr,sdr-ctl", "syscon";
796 reg = <0xffc25000 0x1000>;
797 resets = <&rst SDR_RESET>;
801 compatible = "altr,sdram-edac";
802 altr,sdr-syscon = <&sdr>;
803 interrupts = <0 39 4>;
807 compatible = "snps,dw-apb-ssi";
808 #address-cells = <1>;
810 reg = <0xfff00000 0x1000>;
811 interrupts = <0 154 4>;
813 clocks = <&spi_m_clk>;
814 resets = <&rst SPIM0_RESET>;
819 compatible = "snps,dw-apb-ssi";
820 #address-cells = <1>;
822 reg = <0xfff01000 0x1000>;
823 interrupts = <0 155 4>;
825 clocks = <&spi_m_clk>;
826 resets = <&rst SPIM1_RESET>;
830 sysmgr: sysmgr@ffd08000 {
831 compatible = "altr,sys-mgr", "syscon";
832 reg = <0xffd08000 0x4000>;
837 compatible = "arm,cortex-a9-twd-timer";
838 reg = <0xfffec600 0x100>;
839 interrupts = <1 13 0xf01>;
840 clocks = <&mpu_periph_clk>;
843 timer0: timer0@ffc08000 {
844 compatible = "snps,dw-apb-timer";
845 interrupts = <0 167 4>;
846 reg = <0xffc08000 0x1000>;
847 clocks = <&l4_sp_clk>;
848 clock-names = "timer";
849 resets = <&rst SPTIMER0_RESET>;
850 reset-names = "timer";
853 timer1: timer1@ffc09000 {
854 compatible = "snps,dw-apb-timer";
855 interrupts = <0 168 4>;
856 reg = <0xffc09000 0x1000>;
857 clocks = <&l4_sp_clk>;
858 clock-names = "timer";
859 resets = <&rst SPTIMER1_RESET>;
860 reset-names = "timer";
863 timer2: timer2@ffd00000 {
864 compatible = "snps,dw-apb-timer";
865 interrupts = <0 169 4>;
866 reg = <0xffd00000 0x1000>;
868 clock-names = "timer";
869 resets = <&rst OSC1TIMER0_RESET>;
870 reset-names = "timer";
873 timer3: timer3@ffd01000 {
874 compatible = "snps,dw-apb-timer";
875 interrupts = <0 170 4>;
876 reg = <0xffd01000 0x1000>;
878 clock-names = "timer";
879 resets = <&rst OSC1TIMER1_RESET>;
880 reset-names = "timer";
883 uart0: serial0@ffc02000 {
884 compatible = "snps,dw-apb-uart";
885 reg = <0xffc02000 0x1000>;
886 interrupts = <0 162 4>;
889 clocks = <&l4_sp_clk>;
892 dma-names = "tx", "rx";
893 resets = <&rst UART0_RESET>;
896 uart1: serial1@ffc03000 {
897 compatible = "snps,dw-apb-uart";
898 reg = <0xffc03000 0x1000>;
899 interrupts = <0 163 4>;
902 clocks = <&l4_sp_clk>;
905 dma-names = "tx", "rx";
906 resets = <&rst UART1_RESET>;
911 compatible = "usb-nop-xceiv";
916 compatible = "snps,dwc2";
917 reg = <0xffb00000 0xffff>;
918 interrupts = <0 125 4>;
919 clocks = <&usb_mp_clk>;
921 resets = <&rst USB0_RESET>;
922 reset-names = "dwc2";
924 phy-names = "usb2-phy";
929 compatible = "snps,dwc2";
930 reg = <0xffb40000 0xffff>;
931 interrupts = <0 128 4>;
932 clocks = <&usb_mp_clk>;
934 resets = <&rst USB1_RESET>;
935 reset-names = "dwc2";
937 phy-names = "usb2-phy";
941 watchdog0: watchdog@ffd02000 {
942 compatible = "snps,dw-wdt";
943 reg = <0xffd02000 0x1000>;
944 interrupts = <0 171 4>;
946 resets = <&rst L4WD0_RESET>;
950 watchdog1: watchdog@ffd03000 {
951 compatible = "snps,dw-wdt";
952 reg = <0xffd03000 0x1000>;
953 interrupts = <0 172 4>;
955 resets = <&rst L4WD1_RESET>;