blob: 788e44f724bbd934b1df6ab57e62b7cd4becc28c [file] [log] [blame]
Jit Loon Lim977071e2024-03-12 22:01:03 +08001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2024 Intel Corporation <www.intel.com>
Tingting Menga1a24f12025-02-21 21:49:41 +08004 * Copyright (C) 2025 Altera Corporation <www.altera.com>
Jit Loon Lim977071e2024-03-12 22:01:03 +08005 */
6
7/dts-v1/;
8#include <dt-bindings/reset/altr,rst-mgr-agx5.h>
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/clock/agilex5-clock.h>
11
12/ {
13 compatible = "intel,socfpga-agilex";
14 #address-cells = <2>;
15 #size-cells = <2>;
16
17 reserved-memory {
18 #address-cells = <2>;
19 #size-cells = <2>;
20 ranges;
21
22 service_reserved: svcbuffer@0 {
23 compatible = "shared-dma-pool";
24 reg = <0x0 0x0 0x0 0x1000000>;
25 alignment = <0x1000>;
26 no-map;
27 };
28 };
29
30 cpus {
31 #address-cells = <1>;
32 #size-cells = <0>;
33
34 cpu0: cpu@0 {
35 compatible = "arm,cortex-a55";
36 device_type = "cpu";
37 enable-method = "psci";
38 reg = <0x0>;
39 };
40
41 cpu1: cpu@1 {
42 compatible = "arm,cortex-a55";
43 device_type = "cpu";
44 enable-method = "psci";
45 reg = <0x1>;
46 };
47
48 cpu2: cpu@2 {
49 compatible = "arm,cortex-a76";
50 device_type = "cpu";
51 enable-method = "psci";
52 reg = <0x2>;
53 };
54
55 cpu3: cpu@3 {
56 compatible = "arm,cortex-a76";
57 device_type = "cpu";
58 enable-method = "psci";
59 reg = <0x3>;
60 };
61 };
62
63 pmu {
64 compatible = "arm,armv8-pmuv3";
65 interrupts = <0 170 4>,
66 <0 171 4>,
67 <0 172 4>,
68 <0 173 4>;
69 interrupt-affinity = <&cpu0>,
70 <&cpu1>,
71 <&cpu2>,
72 <&cpu3>;
73 interrupt-parent = <&intc>;
74 };
75
76 psci {
77 compatible = "arm,psci-0.2";
78 method = "smc";
79 };
80
81 intc: intc@fffc1000 {
82 compatible = "arm,gic-400", "arm,cortex-a15-gic";
83 #interrupt-cells = <3>;
84 interrupt-controller;
85 reg = <0x0 0x1d000000 0x0 0x10000>;
86 };
87
88 soc {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 compatible = "simple-bus";
92 device_type = "soc";
93 interrupt-parent = <&intc>;
94 ranges = <0 0 0 0xffffffff>;
95
96 base_fpga_region {
97 #address-cells = <0x1>;
98 #size-cells = <0x1>;
99 compatible = "fpga-region";
100 fpga-mgr = <&fpga_mgr>;
101 };
102
103 clkmgr: clock-controller@10d10000 {
104 compatible = "intel,agilex5-clkmgr";
105 reg = <0x10d10000 0x1000>;
106 #clock-cells = <1>;
107 };
108
109 clocks {
110 cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
111 #clock-cells = <0>;
112 compatible = "fixed-clock";
113 };
114
115 cb_intosc_ls_clk: cb-intosc-ls-clk {
116 #clock-cells = <0>;
117 compatible = "fixed-clock";
118 };
119
120 f2s_free_clk: f2s-free-clk {
121 #clock-cells = <0>;
122 compatible = "fixed-clock";
123 };
124
125 osc1: osc1 {
126 #clock-cells = <0>;
127 compatible = "fixed-clock";
128 };
129
130 qspi_clk: qspi-clk {
131 #clock-cells = <0>;
132 compatible = "fixed-clock";
133 clock-frequency = <200000000>;
134 };
135 };
136 gmac0: ethernet@10810000 {
137 compatible = "intel,socfpga-dwxgmac", "snps,dwxgmac-2.10", "snps,dwxgmac";
138 reg = <0x10810000 0x3500>;
139 interrupts = <0 190 4>;
140 interrupt-names = "macirq";
141 mac-address = [00 00 00 00 00 00];
142 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
143 reset-names = "stmmaceth", "stmmaceth-ocp";
144 tx-fifo-depth = <32768>;
145 rx-fifo-depth = <16384>;
146 iommus = <&smmu 1>;
147 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
148 clocks = <&clkmgr AGILEX5_EMAC0_CLK>;
149 clock-names = "stmmaceth";
150 status = "disabled";
151 };
152
153 gmac1: ethernet@10820000 {
154 compatible = "intel,socfpga-dwxgmac", "snps,dwxgmac-2.10", "snps,dwxgmac";
155 reg = <0x10820000 0x3500>;
156 interrupts = <0 207 4>;
157 interrupt-names = "macirq";
158 mac-address = [00 00 00 00 00 00];
159 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
160 reset-names = "stmmaceth", "stmmaceth-ocp";
161 tx-fifo-depth = <32768>;
162 rx-fifo-depth = <16384>;
163 iommus = <&smmu 2>;
164 altr,sysmgr-syscon = <&sysmgr 0x48 0>;
165 clocks = <&clkmgr AGILEX5_EMAC1_CLK>;
166 clock-names = "stmmaceth";
167 status = "disabled";
168 };
169
170 gmac2: ethernet@10830000 {
171 compatible = "intel,socfpga-dwxgmac", "snps,dwxgmac-2.10", "snps,dwxgmac";
172 reg = <0x10830000 0x3500>;
173 interrupts = <0 224 4>;
174 interrupt-names = "macirq";
175 mac-address = [00 00 00 00 00 00];
176 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
177 reset-names = "stmmaceth", "stmmaceth-ocp";
178 tx-fifo-depth = <32768>;
179 rx-fifo-depth = <16384>;
180 iommus = <&smmu 3>;
181 altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
182 clocks = <&clkmgr AGILEX5_EMAC2_CLK>;
183 clock-names = "stmmaceth";
184 status = "disabled";
185 };
186
187 gpio0: gpio@10c03200 {
188 #address-cells = <1>;
189 #size-cells = <0>;
190 compatible = "snps,dw-apb-gpio";
191 reg = <0x10c03200 0x80>;
192 resets = <&rst GPIO0_RESET>;
193 status = "disabled";
194
195 porta: gpio-controller@0 {
196 compatible = "snps,dw-apb-gpio-port";
197 gpio-controller;
198 #gpio-cells = <2>;
199 snps,nr-gpios = <24>;
200 reg = <0>;
201 interrupt-controller;
202 #interrupt-cells = <2>;
203 interrupts = <0 110 4>;
204 };
205 };
206
207 gpio1: gpio@10c03300 {
208 #address-cells = <1>;
209 #size-cells = <0>;
210 compatible = "snps,dw-apb-gpio";
211 reg = <0x10c03300 0x80>;
212 resets = <&rst GPIO1_RESET>;
213 status = "disabled";
214
215 portb: gpio-controller@0 {
216 compatible = "snps,dw-apb-gpio-port";
217 gpio-controller;
218 #gpio-cells = <2>;
219 snps,nr-gpios = <24>;
220 reg = <0>;
221 interrupt-controller;
222 #interrupt-cells = <2>;
223 interrupts = <0 111 4>;
224 };
225 };
226
227 i2c0: i2c@10c02800 {
228 #address-cells = <1>;
229 #size-cells = <0>;
230 compatible = "snps,designware-i2c";
231 reg = <0x10c02800 0x100>;
232 interrupts = <0 103 4>;
233 resets = <&rst I2C0_RESET>;
234 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
235 status = "disabled";
236 };
237
238 i2c1: i2c@10c02900 {
239 #address-cells = <1>;
240 #size-cells = <0>;
241 compatible = "snps,designware-i2c";
242 reg = <0x10c02900 0x100>;
243 interrupts = <0 104 4>;
244 resets = <&rst I2C1_RESET>;
245 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
246 status = "disabled";
247 };
248
249 i2c2: i2c@10c02a00 {
250 #address-cells = <1>;
251 #size-cells = <0>;
252 compatible = "snps,designware-i2c";
253 reg = <0x10c02a00 0x100>;
254 interrupts = <0 105 4>;
255 resets = <&rst I2C2_RESET>;
256 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
257 status = "disabled";
258 };
259
260 i2c3: i2c@10c02b00 {
261 #address-cells = <1>;
262 #size-cells = <0>;
263 compatible = "snps,designware-i2c";
264 reg = <0x10c02b00 0x100>;
265 interrupts = <0 106 4>;
266 resets = <&rst I2C3_RESET>;
267 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
268 status = "disabled";
269 };
270
271 i2c4: i2c@10c02c00 {
272 #address-cells = <1>;
273 #size-cells = <0>;
274 compatible = "snps,designware-i2c";
275 reg = <0x10c02c00 0x100>;
276 interrupts = <0 107 4>;
277 resets = <&rst I2C4_RESET>;
278 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
279 status = "disabled";
280 };
281
282 i3c0: i3c@10da0000 {
283 compatible = "snps,dw-i3c-master-1.00a";
284 reg = <0x10da0000 0x1000>;
285 #address-cells = <1>;
286 #size-cells = <0>;
287 interrupts = <0 164 4>;
288 resets = <&rst I3C0_RESET>;
289 max_devices = <11>;
290 clocks = <&clkmgr AGILEX5_L4_MP_CLK>;
291 status = "disabled";
292 };
293
294 i3c1: i3c@10da1000 {
295 compatible = "snps,dw-i3c-master-1.00a";
296 reg = <0x10da1000 0x1000>;
297 #address-cells = <1>;
298 #size-cells = <0>;
299 interrupts = <0 165 4>;
300 resets = <&rst I3C1_RESET>;
301 clocks = <&clkmgr AGILEX5_L4_MP_CLK>;
302 max_devices = <11>;
303 status = "disabled";
304 };
305
306 combophy0: combophy@0 {
307 #phy-cells = <0>;
308 phy-type = <1>;
309 compatible = "cdns,combophy";
310 reg = <0x10808000 0x1000>;
311 resets = <&rst COMBOPHY_RESET>;
312 reset-names = "reset";
313 status = "disabled";
314 };
315
316 mmc: mmc0@10808000 {
317 #address-cells = <1>;
318 #size-cells = <0>;
319 compatible = "cdns,sd4hc";
320 reg = <0x10808000 0x1000>;
321 interrupts = <0 96 4>;
322 phys = <&combophy0>;
323 phy-names = "combo-phy";
324 clocks = <&clkmgr AGILEX5_L4_MP_CLK>,
325 <&clkmgr AGILEX5_SDMMC_CLK>;
326 clock-names = "biu", "ciu";
327 fifo-depth = <0x800>;
328 resets = <&rst SDMMC_RESET>;
329 reset-names = "reset";
330 iommus = <&smmu 5>;
331 status = "disabled";
332 };
333
334 ocram: sram@00000000 {
335 compatible = "mmio-sram";
336 reg = <0x00000000 0x200000>;
337 };
338
339 rst: rstmgr@10d11000 {
340 #reset-cells = <1>;
341 compatible = "altr,stratix10-rst-mgr";
342 reg = <0x10d11000 0x1000>;
343 };
344
345 smmu: iommu@16000000 {
346 compatible = "arm,mmu-500", "arm,smmu-v2";
347 reg = <0x16000000 0x40000>;
348 #global-interrupts = <2>;
349 #iommu-cells = <1>;
350 interrupt-parent = <&intc>;
351 interrupts = <0 128 4>, /* Global Secure Fault */
352 <0 129 4>, /* Global Non-secure Fault */
353 /* Non-secure Context Interrupts (32) */
354 <0 138 4>, <0 139 4>, <0 140 4>, <0 141 4>,
355 <0 142 4>, <0 143 4>, <0 144 4>, <0 145 4>,
356 <0 146 4>, <0 147 4>, <0 148 4>, <0 149 4>,
357 <0 150 4>, <0 151 4>, <0 152 4>, <0 153 4>,
358 <0 154 4>, <0 155 4>, <0 156 4>, <0 157 4>,
359 <0 158 4>, <0 159 4>, <0 160 4>, <0 161 4>,
360 <0 162 4>, <0 163 4>, <0 164 4>, <0 165 4>,
361 <0 166 4>, <0 167 4>, <0 168 4>, <0 169 4>;
362 stream-match-mask = <0x7ff0>;
363 status = "disabled";
364 };
365
366 spi0: spi@10da4000 {
367 compatible = "intel,agilex-spi",
368 "snps,dw-apb-ssi-4.00a", "snps,dw-apb-ssi";
369 #address-cells = <1>;
370 #size-cells = <0>;
371 reg = <0x10da4000 0x1000>;
372 interrupts = <0 99 4>;
373 resets = <&rst SPIM0_RESET>;
374 reg-io-width = <4>;
375 num-cs = <4>;
376 clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>;
377 status = "disabled";
378 };
379
380 spi1: spi@10da5000 {
381 compatible = "intel,agilex-spi",
382 "snps,dw-apb-ssi-4.00a", "snps,dw-apb-ssi";
383 #address-cells = <1>;
384 #size-cells = <0>;
385 reg = <0x10da5000 0x1000>;
386 interrupts = <0 100 4>;
387 resets = <&rst SPIM1_RESET>;
388 reg-io-width = <4>;
389 num-cs = <4>;
390 clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>;
391 status = "disabled";
392 };
393
394 sysmgr: sysmgr@10d12000 {
395 compatible = "altr,sys-mgr-s10","altr,sys-mgr";
396 reg = <0x10d12000 0x500>;
397 };
398
399 /* Local timer */
400 timer {
401 compatible = "arm,armv8-timer";
402 interrupts = <1 13 0xf08>,
403 <1 14 0xf08>,
404 <1 11 0xf08>,
405 <1 10 0xf08>;
406 };
407
408 timer0: timer0@10c03000 {
409 compatible = "snps,dw-apb-timer";
410 interrupts = <0 113 4>;
411 reg = <0x10c03000 0x100>;
412 resets = <&rst SPTIMER0_RESET>;
413 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
414 clock-names = "timer";
415 status = "disabled";
416 };
417
418 timer1: timer1@10c03100 {
419 compatible = "snps,dw-apb-timer";
420 interrupts = <0 114 4>;
421 reg = <0x10c03100 0x100>;
422 resets = <&rst SPTIMER1_RESET>;
423 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
424 clock-names = "timer";
425 status = "disabled";
426 };
427
428 timer2: timer2@10d00000 {
429 compatible = "snps,dw-apb-timer";
430 interrupts = <0 115 4>;
431 reg = <0x10d00000 0x100>;
432 resets = <&rst L4SYSTIMER0_RESET>;
433 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
434 clock-names = "timer";
435 status = "disabled";
436 };
437
438 timer3: timer3@10d00100 {
439 compatible = "snps,dw-apb-timer";
440 interrupts = <0 116 4>;
441 reg = <0x10d00100 0x100>;
442 resets = <&rst L4SYSTIMER1_RESET>;
443 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
444 clock-names = "timer";
445 status = "disabled";
446 };
447
448 uart0: serial0@10c02000 {
449 compatible = "snps,dw-apb-uart";
450 reg = <0x10c02000 0x100>;
451 interrupts = <0 108 4>;
452 reg-shift = <2>;
453 reg-io-width = <4>;
454 resets = <&rst UART0_RESET>;
455 status = "disabled";
456 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
457 clock-frequency = <100000000>;
458 };
459
460 uart1: serial1@10c02100 {
461 compatible = "snps,dw-apb-uart";
462 reg = <0x10c02100 0x100>;
463 interrupts = <0 109 4>;
464 reg-shift = <2>;
465 reg-io-width = <4>;
466 resets = <&rst UART1_RESET>;
467 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
468 status = "disabled";
469 };
470
471 usbphy0: usbphy@0 {
472 #phy-cells = <0>;
473 compatible = "usb-nop-xceiv";
474 clocks = <&clkmgr AGILEX5_USB_CLK>;
475 status = "disabled";
476 };
477
478 usb0: usb@10b00000 {
479 compatible = "snps,dwc2";
480 reg = <0x10b00000 0x40000>;
481 interrupts = <0 93 4>;
482 phys = <&usbphy0>;
483 phy-names = "usb2-phy";
484 resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
485 reset-names = "dwc2", "dwc2-ecc";
486 clocks = <&clkmgr AGILEX5_USB_CLK>;
487 iommus = <&smmu 6>;
488 status = "disabled";
489 };
490
491 usb31: usb31@11000000 {
492 compatible = "snps,dwc3";
493 reg = <0x11000000 0x100000>;
494 resets = <&rst USB1_RESET>;
495 phys = <&usbphy0>, <&usbphy0>;
496 phy-names = "usb2-phy", "usb3-phy";
497 dr_mode = "host";
498 maximum-speed = "super-speed";
499 snps,dis_u2_susphy_quirk;
500 status = "disabled";
501 };
502
503 watchdog0: watchdog@10d00200 {
504 compatible = "snps,dw-wdt";
505 reg = <0x10d00200 0x100>;
506 interrupts = <0 117 4>;
507 resets = <&rst WATCHDOG0_RESET>;
508 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
509 status = "disabled";
510 };
511
512 watchdog1: watchdog@10d00300 {
513 compatible = "snps,dw-wdt";
514 reg = <0x10d00300 0x100>;
515 interrupts = <0 118 4>;
516 resets = <&rst WATCHDOG1_RESET>;
517 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
518 status = "disabled";
519 };
520
521 watchdog2: watchdog@10d00400 {
522 compatible = "snps,dw-wdt";
523 reg = <0x10d00400 0x100>;
524 interrupts = <0 125 4>;
525 resets = <&rst WATCHDOG2_RESET>;
526 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
527 status = "disabled";
528 };
529
530 watchdog3: watchdog@10d00500 {
531 compatible = "snps,dw-wdt";
532 reg = <0x10d00500 0x100>;
533 interrupts = <0 126 4>;
534 resets = <&rst WATCHDOG3_RESET>;
535 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
536 status = "disabled";
537 };
538
539 watchdog4: watchdog@10d00600 {
540 compatible = "snps,dw-wdt";
541 reg = <0x10d00600 0x100>;
542 interrupts = <0 175 4>;
543 resets = <&rst WATCHDOG4_RESET>;
544 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
545 status = "disabled";
546 };
547
Tingting Menga1a24f12025-02-21 21:49:41 +0800548 sdr: sdr@18000000 {
549 compatible = "intel,sdr-ctl-agilex5";
550 reg = <0x18000000 0x400000>;
551 resets = <&rst DDRSCH_RESET>;
552 bootph-all;
553 };
554
Jit Loon Lim977071e2024-03-12 22:01:03 +0800555 /* QSPI address not available yet */
556 qspi: spi@108d2000 {
557 compatible = "cdns,qspi-nor";
558 #address-cells = <1>;
559 #size-cells = <0>;
560 reg = <0x108d2000 0x100>,
561 <0x10900000 0x100000>;
562 interrupts = <0 3 4>;
563 cdns,fifo-depth = <128>;
564 cdns,fifo-width = <4>;
565 cdns,trigger-address = <0x00000000>;
566 clocks = <&qspi_clk>;
567
568 status = "disabled";
569 };
570
571 firmware {
572 svc {
573 compatible = "intel,stratix10-svc";
574 method = "smc";
575 memory-region = <&service_reserved>;
576
577 fpga_mgr: fpga-mgr {
578 compatible = "intel,stratix10-soc-fpga-mgr";
579 };
580 };
581 };
582 };
583};