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 120 8>,
68 interrupt-affinity = <&cpu0>,
72 interrupt-parent = <&intc>;
76 compatible = "arm,psci-0.2";
81 compatible = "arm,gic-400", "arm,cortex-a15-gic";
82 #interrupt-cells = <3>;
84 reg = <0x0 0xfffc1000 0x0 0x1000>,
85 <0x0 0xfffc2000 0x0 0x2000>,
86 <0x0 0xfffc4000 0x0 0x2000>,
87 <0x0 0xfffc6000 0x0 0x2000>;
93 compatible = "simple-bus";
95 interrupt-parent = <&intc>;
96 ranges = <0 0 0 0xffffffff>;
99 #address-cells = <0x1>;
102 compatible = "fpga-region";
103 fpga-mgr = <&fpga_mgr>;
106 clkmgr: clock-controller@ffd10000 {
107 compatible = "intel,stratix10-clkmgr";
108 reg = <0xffd10000 0x1000>;
113 cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
115 compatible = "fixed-clock";
118 cb_intosc_ls_clk: cb-intosc-ls-clk {
120 compatible = "fixed-clock";
123 f2s_free_clk: f2s-free-clk {
125 compatible = "fixed-clock";
130 compatible = "fixed-clock";
135 compatible = "fixed-clock";
136 clock-frequency = <200000000>;
140 gmac0: ethernet@ff800000 {
141 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
142 reg = <0xff800000 0x2000>;
143 interrupts = <0 90 4>;
144 interrupt-names = "macirq";
145 mac-address = [00 00 00 00 00 00];
146 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
147 reset-names = "stmmaceth", "stmmaceth-ocp";
148 clocks = <&clkmgr STRATIX10_EMAC0_CLK>;
149 clock-names = "stmmaceth";
150 tx-fifo-depth = <16384>;
151 rx-fifo-depth = <16384>;
152 snps,multicast-filter-bins = <256>;
154 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
158 gmac1: ethernet@ff802000 {
159 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
160 reg = <0xff802000 0x2000>;
161 interrupts = <0 91 4>;
162 interrupt-names = "macirq";
163 mac-address = [00 00 00 00 00 00];
164 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
165 reset-names = "stmmaceth", "stmmaceth-ocp";
166 clocks = <&clkmgr STRATIX10_EMAC1_CLK>;
167 clock-names = "stmmaceth";
168 tx-fifo-depth = <16384>;
169 rx-fifo-depth = <16384>;
170 snps,multicast-filter-bins = <256>;
172 altr,sysmgr-syscon = <&sysmgr 0x48 8>;
176 gmac2: ethernet@ff804000 {
177 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
178 reg = <0xff804000 0x2000>;
179 interrupts = <0 92 4>;
180 interrupt-names = "macirq";
181 mac-address = [00 00 00 00 00 00];
182 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
183 reset-names = "stmmaceth", "stmmaceth-ocp";
184 clocks = <&clkmgr STRATIX10_EMAC2_CLK>;
185 clock-names = "stmmaceth";
186 tx-fifo-depth = <16384>;
187 rx-fifo-depth = <16384>;
188 snps,multicast-filter-bins = <256>;
190 altr,sysmgr-syscon = <&sysmgr 0x4c 16>;
194 gpio0: gpio@ffc03200 {
195 #address-cells = <1>;
197 compatible = "snps,dw-apb-gpio";
198 reg = <0xffc03200 0x100>;
199 resets = <&rst GPIO0_RESET>;
202 porta: gpio-controller@0 {
203 compatible = "snps,dw-apb-gpio-port";
206 snps,nr-gpios = <24>;
208 interrupt-controller;
209 #interrupt-cells = <2>;
210 interrupts = <0 110 4>;
214 gpio1: gpio@ffc03300 {
215 #address-cells = <1>;
217 compatible = "snps,dw-apb-gpio";
218 reg = <0xffc03300 0x100>;
219 resets = <&rst GPIO1_RESET>;
222 portb: gpio-controller@0 {
223 compatible = "snps,dw-apb-gpio-port";
226 snps,nr-gpios = <24>;
228 interrupt-controller;
229 #interrupt-cells = <2>;
230 interrupts = <0 111 4>;
235 #address-cells = <1>;
237 compatible = "snps,designware-i2c";
238 reg = <0xffc02800 0x100>;
239 interrupts = <0 103 4>;
240 resets = <&rst I2C0_RESET>;
241 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
246 #address-cells = <1>;
248 compatible = "snps,designware-i2c";
249 reg = <0xffc02900 0x100>;
250 interrupts = <0 104 4>;
251 resets = <&rst I2C1_RESET>;
252 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
257 #address-cells = <1>;
259 compatible = "snps,designware-i2c";
260 reg = <0xffc02a00 0x100>;
261 interrupts = <0 105 4>;
262 resets = <&rst I2C2_RESET>;
263 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
268 #address-cells = <1>;
270 compatible = "snps,designware-i2c";
271 reg = <0xffc02b00 0x100>;
272 interrupts = <0 106 4>;
273 resets = <&rst I2C3_RESET>;
274 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
279 #address-cells = <1>;
281 compatible = "snps,designware-i2c";
282 reg = <0xffc02c00 0x100>;
283 interrupts = <0 107 4>;
284 resets = <&rst I2C4_RESET>;
285 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
289 mmc: dwmmc0@ff808000 {
290 #address-cells = <1>;
292 compatible = "altr,socfpga-dw-mshc";
293 reg = <0xff808000 0x1000>;
294 interrupts = <0 96 4>;
295 fifo-depth = <0x400>;
296 resets = <&rst SDMMC_RESET>;
297 reset-names = "reset";
298 clocks = <&clkmgr STRATIX10_L4_MP_CLK>,
299 <&clkmgr STRATIX10_SDMMC_CLK>;
300 clock-names = "biu", "ciu";
305 ocram: sram@ffe00000 {
306 compatible = "mmio-sram";
307 reg = <0xffe00000 0x100000>;
310 pdma: pdma@ffda0000 {
311 compatible = "arm,pl330", "arm,primecell";
312 reg = <0xffda0000 0x1000>;
313 interrupts = <0 81 4>,
324 #dma-requests = <32>;
325 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
326 clock-names = "apb_pclk";
329 rst: rstmgr@ffd11000 {
331 compatible = "altr,stratix10-rst-mgr";
332 reg = <0xffd11000 0x1000>;
335 smmu: iommu@fa000000 {
336 compatible = "arm,mmu-500", "arm,smmu-v2";
337 reg = <0xfa000000 0x40000>;
338 #global-interrupts = <2>;
340 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
341 clock-names = "iommu";
342 interrupt-parent = <&intc>;
343 interrupts = <0 128 4>, /* Global Secure Fault */
344 <0 129 4>, /* Global Non-secure Fault */
345 /* Non-secure Context Interrupts (32) */
346 <0 138 4>, <0 139 4>, <0 140 4>, <0 141 4>,
347 <0 142 4>, <0 143 4>, <0 144 4>, <0 145 4>,
348 <0 146 4>, <0 147 4>, <0 148 4>, <0 149 4>,
349 <0 150 4>, <0 151 4>, <0 152 4>, <0 153 4>,
350 <0 154 4>, <0 155 4>, <0 156 4>, <0 157 4>,
351 <0 158 4>, <0 159 4>, <0 160 4>, <0 161 4>,
352 <0 162 4>, <0 163 4>, <0 164 4>, <0 165 4>,
353 <0 166 4>, <0 167 4>, <0 168 4>, <0 169 4>;
354 stream-match-mask = <0x7ff0>;
359 compatible = "snps,dw-apb-ssi";
360 #address-cells = <1>;
362 reg = <0xffda4000 0x1000>;
363 interrupts = <0 99 4>;
364 resets = <&rst SPIM0_RESET>;
367 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
372 compatible = "snps,dw-apb-ssi";
373 #address-cells = <1>;
375 reg = <0xffda5000 0x1000>;
376 interrupts = <0 100 4>;
377 resets = <&rst SPIM1_RESET>;
380 clocks = <&clkmgr STRATIX10_L4_MAIN_CLK>;
384 sysmgr: sysmgr@ffd12000 {
385 compatible = "altr,sys-mgr-s10","altr,sys-mgr";
386 reg = <0xffd12000 0x228>;
391 compatible = "arm,armv8-timer";
392 interrupts = <1 13 0xf08>,
398 timer0: timer0@ffc03000 {
399 compatible = "snps,dw-apb-timer";
400 interrupts = <0 113 4>;
401 reg = <0xffc03000 0x100>;
402 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
403 clock-names = "timer";
406 timer1: timer1@ffc03100 {
407 compatible = "snps,dw-apb-timer";
408 interrupts = <0 114 4>;
409 reg = <0xffc03100 0x100>;
410 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
411 clock-names = "timer";
414 timer2: timer2@ffd00000 {
415 compatible = "snps,dw-apb-timer";
416 interrupts = <0 115 4>;
417 reg = <0xffd00000 0x100>;
418 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
419 clock-names = "timer";
422 timer3: timer3@ffd00100 {
423 compatible = "snps,dw-apb-timer";
424 interrupts = <0 116 4>;
425 reg = <0xffd00100 0x100>;
426 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
427 clock-names = "timer";
430 uart0: serial0@ffc02000 {
431 compatible = "snps,dw-apb-uart";
432 reg = <0xffc02000 0x100>;
433 interrupts = <0 108 4>;
436 resets = <&rst UART0_RESET>;
437 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
441 uart1: serial1@ffc02100 {
442 compatible = "snps,dw-apb-uart";
443 reg = <0xffc02100 0x100>;
444 interrupts = <0 109 4>;
447 resets = <&rst UART1_RESET>;
448 clocks = <&clkmgr STRATIX10_L4_SP_CLK>;
454 compatible = "usb-nop-xceiv";
459 compatible = "snps,dwc2";
460 reg = <0xffb00000 0x40000>;
461 interrupts = <0 93 4>;
463 phy-names = "usb2-phy";
464 resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
465 reset-names = "dwc2", "dwc2-ecc";
466 clocks = <&clkmgr STRATIX10_USB_CLK>;
472 compatible = "snps,dwc2";
473 reg = <0xffb40000 0x40000>;
474 interrupts = <0 94 4>;
476 phy-names = "usb2-phy";
477 resets = <&rst USB1_RESET>, <&rst USB1_OCP_RESET>;
478 reset-names = "dwc2", "dwc2-ecc";
479 clocks = <&clkmgr STRATIX10_USB_CLK>;
484 watchdog0: watchdog@ffd00200 {
485 compatible = "snps,dw-wdt";
486 reg = <0xffd00200 0x100>;
487 interrupts = <0 117 4>;
488 resets = <&rst WATCHDOG0_RESET>;
489 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
493 watchdog1: watchdog@ffd00300 {
494 compatible = "snps,dw-wdt";
495 reg = <0xffd00300 0x100>;
496 interrupts = <0 118 4>;
497 resets = <&rst WATCHDOG1_RESET>;
498 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
502 watchdog2: watchdog@ffd00400 {
503 compatible = "snps,dw-wdt";
504 reg = <0xffd00400 0x100>;
505 interrupts = <0 125 4>;
506 resets = <&rst WATCHDOG2_RESET>;
507 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
511 watchdog3: watchdog@ffd00500 {
512 compatible = "snps,dw-wdt";
513 reg = <0xffd00500 0x100>;
514 interrupts = <0 126 4>;
515 resets = <&rst WATCHDOG3_RESET>;
516 clocks = <&clkmgr STRATIX10_L4_SYS_FREE_CLK>;
521 compatible = "altr,sdr-ctl", "syscon";
522 reg = <0xf8011100 0xc0>;
526 compatible = "altr,socfpga-s10-ecc-manager",
527 "altr,socfpga-a10-ecc-manager";
528 altr,sysmgr-syscon = <&sysmgr>;
529 #address-cells = <1>;
531 interrupts = <0 15 4>;
532 interrupt-controller;
533 #interrupt-cells = <2>;
537 compatible = "altr,sdram-edac-s10";
538 altr,sdr-syscon = <&sdr>;
543 compatible = "altr,socfpga-s10-ocram-ecc",
544 "altr,socfpga-a10-ocram-ecc";
545 reg = <0xff8cc000 0x100>;
546 altr,ecc-parent = <&ocram>;
551 compatible = "altr,socfpga-s10-usb-ecc",
552 "altr,socfpga-usb-ecc";
553 reg = <0xff8c4000 0x100>;
554 altr,ecc-parent = <&usb0>;
558 emac0-rx-ecc@ff8c0000 {
559 compatible = "altr,socfpga-s10-eth-mac-ecc",
560 "altr,socfpga-eth-mac-ecc";
561 reg = <0xff8c0000 0x100>;
562 altr,ecc-parent = <&gmac0>;
566 emac0-tx-ecc@ff8c0400 {
567 compatible = "altr,socfpga-s10-eth-mac-ecc",
568 "altr,socfpga-eth-mac-ecc";
569 reg = <0xff8c0400 0x100>;
570 altr,ecc-parent = <&gmac0>;
577 compatible = "cdns,qspi-nor";
578 #address-cells = <1>;
580 reg = <0xff8d2000 0x100>,
581 <0xff900000 0x100000>;
582 interrupts = <0 3 4>;
583 cdns,fifo-depth = <128>;
584 cdns,fifo-width = <4>;
585 cdns,trigger-address = <0x00000000>;
586 clocks = <&qspi_clk>;
593 compatible = "intel,stratix10-svc";
595 memory-region = <&service_reserved>;
598 compatible = "intel,stratix10-soc-fpga-mgr";