1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright Altera Corporation (C) 2015. All rights reserved.
7 #include <dt-bindings/reset/altr,rst-mgr-s10.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/clock/stratix10-clock.h>
12 compatible = "altr,socfpga-stratix10";
21 service_reserved: svcbuffer@0 {
22 compatible = "shared-dma-pool";
23 reg = <0x0 0x0 0x0 0x1000000>;
34 compatible = "arm,cortex-a53";
36 enable-method = "psci";
41 compatible = "arm,cortex-a53";
43 enable-method = "psci";
48 compatible = "arm,cortex-a53";
50 enable-method = "psci";
55 compatible = "arm,cortex-a53";
57 enable-method = "psci";
63 compatible = "arm,armv8-pmuv3";
64 interrupts = <0 170 4>,
68 interrupt-affinity = <&cpu0>,
72 interrupt-parent = <&intc>;
76 compatible = "arm,psci-0.2";
82 compatible = "arm,armv8-timer";
83 interrupts = <1 13 0xf08>,
87 interrupt-parent = <&intc>;
90 intc: interrupt-controller@fffc1000 {
91 compatible = "arm,gic-400", "arm,cortex-a15-gic";
92 #interrupt-cells = <3>;
94 reg = <0x0 0xfffc1000 0x0 0x1000>,
95 <0x0 0xfffc2000 0x0 0x2000>,
96 <0x0 0xfffc4000 0x0 0x2000>,
97 <0x0 0xfffc6000 0x0 0x2000>;
101 cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
103 compatible = "fixed-clock";
106 cb_intosc_ls_clk: cb-intosc-ls-clk {
108 compatible = "fixed-clock";
111 f2s_free_clk: f2s-free-clk {
113 compatible = "fixed-clock";
118 compatible = "fixed-clock";
123 compatible = "fixed-clock";
124 clock-frequency = <200000000>;
129 #address-cells = <1>;
131 compatible = "simple-bus";
133 interrupt-parent = <&intc>;
134 ranges = <0 0 0 0xffffffff>;
137 #address-cells = <0x1>;
140 compatible = "fpga-region";
141 fpga-mgr = <&fpga_mgr>;
144 clkmgr: clock-controller@ffd10000 {
145 compatible = "intel,stratix10-clkmgr";
146 reg = <0xffd10000 0x1000>;
150 gmac0: ethernet@ff800000 {
151 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
152 reg = <0xff800000 0x2000>;
153 interrupts = <0 90 4>;
154 interrupt-names = "macirq";
155 mac-address = [00 00 00 00 00 00];
156 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
157 reset-names = "stmmaceth", "stmmaceth-ocp";
158 clocks = <&clkmgr STRATIX10_EMAC0_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
159 clock-names = "stmmaceth", "ptp_ref";
160 tx-fifo-depth = <16384>;
161 rx-fifo-depth = <16384>;
162 snps,multicast-filter-bins = <256>;
164 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
168 gmac1: ethernet@ff802000 {
169 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
170 reg = <0xff802000 0x2000>;
171 interrupts = <0 91 4>;
172 interrupt-names = "macirq";
173 mac-address = [00 00 00 00 00 00];
174 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
175 reset-names = "stmmaceth", "stmmaceth-ocp";
176 clocks = <&clkmgr STRATIX10_EMAC1_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
177 clock-names = "stmmaceth", "ptp_ref";
178 tx-fifo-depth = <16384>;
179 rx-fifo-depth = <16384>;
180 snps,multicast-filter-bins = <256>;
182 altr,sysmgr-syscon = <&sysmgr 0x48 8>;
186 gmac2: ethernet@ff804000 {
187 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
188 reg = <0xff804000 0x2000>;
189 interrupts = <0 92 4>;
190 interrupt-names = "macirq";
191 mac-address = [00 00 00 00 00 00];
192 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
193 reset-names = "stmmaceth", "stmmaceth-ocp";
194 clocks = <&clkmgr STRATIX10_EMAC2_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
195 clock-names = "stmmaceth", "ptp_ref";
196 tx-fifo-depth = <16384>;
197 rx-fifo-depth = <16384>;
198 snps,multicast-filter-bins = <256>;
200 altr,sysmgr-syscon = <&sysmgr 0x4c 16>;
204 gpio0: gpio@ffc03200 {
205 #address-cells = <1>;
207 compatible = "snps,dw-apb-gpio";
208 reg = <0xffc03200 0x100>;
209 resets = <&rst GPIO0_RESET>;
212 porta: gpio-controller@0 {
213 compatible = "snps,dw-apb-gpio-port";
218 interrupt-controller;
219 #interrupt-cells = <2>;
220 interrupts = <0 110 4>;
224 gpio1: gpio@ffc03300 {
225 #address-cells = <1>;
227 compatible = "snps,dw-apb-gpio";
228 reg = <0xffc03300 0x100>;
229 resets = <&rst GPIO1_RESET>;
232 portb: gpio-controller@0 {
233 compatible = "snps,dw-apb-gpio-port";
238 interrupt-controller;
239 #interrupt-cells = <2>;
240 interrupts = <0 111 4>;
245 #address-cells = <1>;
247 compatible = "snps,designware-i2c";
248 reg = <0xffc02800 0x100>;
249 interrupts = <0 103 4>;
250 resets = <&rst I2C0_RESET>;
251 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
256 #address-cells = <1>;
258 compatible = "snps,designware-i2c";
259 reg = <0xffc02900 0x100>;
260 interrupts = <0 104 4>;
261 resets = <&rst I2C1_RESET>;
262 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
267 #address-cells = <1>;
269 compatible = "snps,designware-i2c";
270 reg = <0xffc02a00 0x100>;
271 interrupts = <0 105 4>;
272 resets = <&rst I2C2_RESET>;
273 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
278 #address-cells = <1>;
280 compatible = "snps,designware-i2c";
281 reg = <0xffc02b00 0x100>;
282 interrupts = <0 106 4>;
283 resets = <&rst I2C3_RESET>;
284 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
289 #address-cells = <1>;
291 compatible = "snps,designware-i2c";
292 reg = <0xffc02c00 0x100>;
293 interrupts = <0 107 4>;
294 resets = <&rst I2C4_RESET>;
295 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
300 #address-cells = <1>;
302 compatible = "altr,socfpga-dw-mshc";
303 reg = <0xff808000 0x1000>;
304 interrupts = <0 96 4>;
305 fifo-depth = <0x400>;
306 resets = <&rst SDMMC_RESET>;
307 reset-names = "reset";
308 clocks = <&clkmgr STRATIX10_L4_MP_CLK>,
309 <&clkmgr STRATIX10_SDMMC_CLK>;
310 clock-names = "biu", "ciu";
315 nand: nand-controller@ffb90000 {
316 #address-cells = <1>;
318 compatible = "altr,socfpga-denali-nand";
319 reg = <0xffb90000 0x10000>,
321 reg-names = "nand_data", "denali_reg";
322 interrupts = <0 97 4>;
323 clocks = <&clkmgr STRATIX10_NAND_CLK>,
324 <&clkmgr STRATIX10_NAND_X_CLK>,
325 <&clkmgr STRATIX10_NAND_ECC_CLK>;
326 clock-names = "nand", "nand_x", "ecc";
327 resets = <&rst NAND_RESET>, <&rst NAND_OCP_RESET>;
331 ocram: sram@ffe00000 {
332 compatible = "mmio-sram";
333 reg = <0xffe00000 0x100000>;
336 pdma: dma-controller@ffda0000 {
337 compatible = "arm,pl330", "arm,primecell";
338 reg = <0xffda0000 0x1000>;
339 interrupts = <0 81 4>,
349 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
350 clock-names = "apb_pclk";
351 resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
352 reset-names = "dma", "dma-ocp";
355 rst: rstmgr@ffd11000 {
357 compatible = "altr,stratix10-rst-mgr";
358 reg = <0xffd11000 0x1000>;
361 smmu: iommu@fa000000 {
362 compatible = "arm,mmu-500", "arm,smmu-v2";
363 reg = <0xfa000000 0x40000>;
364 #global-interrupts = <2>;
366 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
367 clock-names = "iommu";
368 interrupt-parent = <&intc>;
369 interrupts = <0 128 4>, /* Global Secure Fault */
370 <0 129 4>, /* Global Non-secure Fault */
371 /* Non-secure Context Interrupts (32) */
372 <0 138 4>, <0 139 4>, <0 140 4>, <0 141 4>,
373 <0 142 4>, <0 143 4>, <0 144 4>, <0 145 4>,
374 <0 146 4>, <0 147 4>, <0 148 4>, <0 149 4>,
375 <0 150 4>, <0 151 4>, <0 152 4>, <0 153 4>,
376 <0 154 4>, <0 155 4>, <0 156 4>, <0 157 4>,
377 <0 158 4>, <0 159 4>, <0 160 4>, <0 161 4>,
378 <0 162 4>, <0 163 4>, <0 164 4>, <0 165 4>,
379 <0 166 4>, <0 167 4>, <0 168 4>, <0 169 4>;
380 stream-match-mask = <0x7ff0>;
385 compatible = "snps,dw-apb-ssi";
386 #address-cells = <1>;
388 reg = <0xffda4000 0x1000>;
389 interrupts = <0 99 4>;
390 resets = <&rst SPIM0_RESET>;
394 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
399 compatible = "snps,dw-apb-ssi";
400 #address-cells = <1>;
402 reg = <0xffda5000 0x1000>;
403 interrupts = <0 100 4>;
404 resets = <&rst SPIM1_RESET>;
408 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
412 sysmgr: sysmgr@ffd12000 {
413 compatible = "altr,sys-mgr-s10","altr,sys-mgr";
414 reg = <0xffd12000 0x228>;
417 timer0: timer0@ffc03000 {
418 compatible = "snps,dw-apb-timer";
419 interrupts = <0 113 4>;
420 reg = <0xffc03000 0x100>;
421 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
422 clock-names = "timer";
425 timer1: timer1@ffc03100 {
426 compatible = "snps,dw-apb-timer";
427 interrupts = <0 114 4>;
428 reg = <0xffc03100 0x100>;
429 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
430 clock-names = "timer";
433 timer2: timer2@ffd00000 {
434 compatible = "snps,dw-apb-timer";
435 interrupts = <0 115 4>;
436 reg = <0xffd00000 0x100>;
437 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
438 clock-names = "timer";
441 timer3: timer3@ffd00100 {
442 compatible = "snps,dw-apb-timer";
443 interrupts = <0 116 4>;
444 reg = <0xffd00100 0x100>;
445 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
446 clock-names = "timer";
449 uart0: serial@ffc02000 {
450 compatible = "snps,dw-apb-uart";
451 reg = <0xffc02000 0x100>;
452 interrupts = <0 108 4>;
455 resets = <&rst UART0_RESET>;
456 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
460 uart1: serial@ffc02100 {
461 compatible = "snps,dw-apb-uart";
462 reg = <0xffc02100 0x100>;
463 interrupts = <0 109 4>;
466 resets = <&rst UART1_RESET>;
467 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
473 compatible = "usb-nop-xceiv";
478 compatible = "snps,dwc2";
479 reg = <0xffb00000 0x40000>;
480 interrupts = <0 93 4>;
482 phy-names = "usb2-phy";
483 resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
484 reset-names = "dwc2", "dwc2-ecc";
485 clocks = <&clkmgr STRATIX10_USB_CLK>;
492 compatible = "snps,dwc2";
493 reg = <0xffb40000 0x40000>;
494 interrupts = <0 94 4>;
496 phy-names = "usb2-phy";
497 resets = <&rst USB1_RESET>, <&rst USB1_OCP_RESET>;
498 reset-names = "dwc2", "dwc2-ecc";
499 clocks = <&clkmgr STRATIX10_USB_CLK>;
504 watchdog0: watchdog@ffd00200 {
505 compatible = "snps,dw-wdt";
506 reg = <0xffd00200 0x100>;
507 interrupts = <0 117 4>;
508 resets = <&rst WATCHDOG0_RESET>;
509 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
513 watchdog1: watchdog@ffd00300 {
514 compatible = "snps,dw-wdt";
515 reg = <0xffd00300 0x100>;
516 interrupts = <0 118 4>;
517 resets = <&rst WATCHDOG1_RESET>;
518 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
522 watchdog2: watchdog@ffd00400 {
523 compatible = "snps,dw-wdt";
524 reg = <0xffd00400 0x100>;
525 interrupts = <0 125 4>;
526 resets = <&rst WATCHDOG2_RESET>;
527 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
531 watchdog3: watchdog@ffd00500 {
532 compatible = "snps,dw-wdt";
533 reg = <0xffd00500 0x100>;
534 interrupts = <0 126 4>;
535 resets = <&rst WATCHDOG3_RESET>;
536 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
541 compatible = "altr,sdr-ctl", "syscon";
542 reg = <0xf8011100 0xc0>;
546 compatible = "altr,socfpga-s10-ecc-manager",
547 "altr,socfpga-a10-ecc-manager";
548 altr,sysmgr-syscon = <&sysmgr>;
549 #address-cells = <1>;
551 interrupts = <0 15 4>;
552 interrupt-controller;
553 #interrupt-cells = <2>;
557 compatible = "altr,sdram-edac-s10";
558 altr,sdr-syscon = <&sdr>;
563 compatible = "altr,socfpga-s10-ocram-ecc",
564 "altr,socfpga-a10-ocram-ecc";
565 reg = <0xff8cc000 0x100>;
566 altr,ecc-parent = <&ocram>;
571 compatible = "altr,socfpga-s10-usb-ecc",
572 "altr,socfpga-usb-ecc";
573 reg = <0xff8c4000 0x100>;
574 altr,ecc-parent = <&usb0>;
578 emac0-rx-ecc@ff8c0000 {
579 compatible = "altr,socfpga-s10-eth-mac-ecc",
580 "altr,socfpga-eth-mac-ecc";
581 reg = <0xff8c0000 0x100>;
582 altr,ecc-parent = <&gmac0>;
586 emac0-tx-ecc@ff8c0400 {
587 compatible = "altr,socfpga-s10-eth-mac-ecc",
588 "altr,socfpga-eth-mac-ecc";
589 reg = <0xff8c0400 0x100>;
590 altr,ecc-parent = <&gmac0>;
597 compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
598 #address-cells = <1>;
600 reg = <0xff8d2000 0x100>,
601 <0xff900000 0x100000>;
602 interrupts = <0 3 4>;
603 cdns,fifo-depth = <128>;
604 cdns,fifo-width = <4>;
605 cdns,trigger-address = <0x00000000>;
606 clocks = <&qspi_clk>;
613 compatible = "intel,stratix10-svc";
615 memory-region = <&service_reserved>;
618 compatible = "intel,stratix10-soc-fpga-mgr";