blob: 86322d7b0ced2f4e6e22bd099726f43a47c5d058 [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
Dinesh Maniyam26368952025-02-27 00:18:16 +0800334 nand: nand@10b80000 {
335 compatible = "cdns,nand";
336 reg = <0x10b80000 0x10000>,
337 <0x10840000 0x1000>;
338 reg-names = "reg", "sdma";
339 #address-cells = <1>;
340 #size-cells = <0>;
341 interrupts = <0 97 4>;
342 clocks = <&clkmgr AGILEX5_NAND_CLK>;
343 resets = <&rst NAND_RESET>, <&rst COMBOPHY_RESET>;
344 cdns,board-delay-ps = <4830>;
345 status = "disabled";
346 };
347
Jit Loon Lim977071e2024-03-12 22:01:03 +0800348 ocram: sram@00000000 {
349 compatible = "mmio-sram";
350 reg = <0x00000000 0x200000>;
351 };
352
353 rst: rstmgr@10d11000 {
354 #reset-cells = <1>;
355 compatible = "altr,stratix10-rst-mgr";
356 reg = <0x10d11000 0x1000>;
357 };
358
359 smmu: iommu@16000000 {
360 compatible = "arm,mmu-500", "arm,smmu-v2";
361 reg = <0x16000000 0x40000>;
362 #global-interrupts = <2>;
363 #iommu-cells = <1>;
364 interrupt-parent = <&intc>;
365 interrupts = <0 128 4>, /* Global Secure Fault */
366 <0 129 4>, /* Global Non-secure Fault */
367 /* Non-secure Context Interrupts (32) */
368 <0 138 4>, <0 139 4>, <0 140 4>, <0 141 4>,
369 <0 142 4>, <0 143 4>, <0 144 4>, <0 145 4>,
370 <0 146 4>, <0 147 4>, <0 148 4>, <0 149 4>,
371 <0 150 4>, <0 151 4>, <0 152 4>, <0 153 4>,
372 <0 154 4>, <0 155 4>, <0 156 4>, <0 157 4>,
373 <0 158 4>, <0 159 4>, <0 160 4>, <0 161 4>,
374 <0 162 4>, <0 163 4>, <0 164 4>, <0 165 4>,
375 <0 166 4>, <0 167 4>, <0 168 4>, <0 169 4>;
376 stream-match-mask = <0x7ff0>;
377 status = "disabled";
378 };
379
380 spi0: spi@10da4000 {
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 = <0x10da4000 0x1000>;
386 interrupts = <0 99 4>;
387 resets = <&rst SPIM0_RESET>;
388 reg-io-width = <4>;
389 num-cs = <4>;
390 clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>;
391 status = "disabled";
392 };
393
394 spi1: spi@10da5000 {
395 compatible = "intel,agilex-spi",
396 "snps,dw-apb-ssi-4.00a", "snps,dw-apb-ssi";
397 #address-cells = <1>;
398 #size-cells = <0>;
399 reg = <0x10da5000 0x1000>;
400 interrupts = <0 100 4>;
401 resets = <&rst SPIM1_RESET>;
402 reg-io-width = <4>;
403 num-cs = <4>;
404 clocks = <&clkmgr AGILEX5_L4_MAIN_CLK>;
405 status = "disabled";
406 };
407
408 sysmgr: sysmgr@10d12000 {
409 compatible = "altr,sys-mgr-s10","altr,sys-mgr";
410 reg = <0x10d12000 0x500>;
411 };
412
413 /* Local timer */
414 timer {
415 compatible = "arm,armv8-timer";
416 interrupts = <1 13 0xf08>,
417 <1 14 0xf08>,
418 <1 11 0xf08>,
419 <1 10 0xf08>;
420 };
421
422 timer0: timer0@10c03000 {
423 compatible = "snps,dw-apb-timer";
424 interrupts = <0 113 4>;
425 reg = <0x10c03000 0x100>;
426 resets = <&rst SPTIMER0_RESET>;
427 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
428 clock-names = "timer";
429 status = "disabled";
430 };
431
432 timer1: timer1@10c03100 {
433 compatible = "snps,dw-apb-timer";
434 interrupts = <0 114 4>;
435 reg = <0x10c03100 0x100>;
436 resets = <&rst SPTIMER1_RESET>;
437 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
438 clock-names = "timer";
439 status = "disabled";
440 };
441
442 timer2: timer2@10d00000 {
443 compatible = "snps,dw-apb-timer";
444 interrupts = <0 115 4>;
445 reg = <0x10d00000 0x100>;
446 resets = <&rst L4SYSTIMER0_RESET>;
447 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
448 clock-names = "timer";
449 status = "disabled";
450 };
451
452 timer3: timer3@10d00100 {
453 compatible = "snps,dw-apb-timer";
454 interrupts = <0 116 4>;
455 reg = <0x10d00100 0x100>;
456 resets = <&rst L4SYSTIMER1_RESET>;
457 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
458 clock-names = "timer";
459 status = "disabled";
460 };
461
462 uart0: serial0@10c02000 {
463 compatible = "snps,dw-apb-uart";
464 reg = <0x10c02000 0x100>;
465 interrupts = <0 108 4>;
466 reg-shift = <2>;
467 reg-io-width = <4>;
468 resets = <&rst UART0_RESET>;
469 status = "disabled";
470 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
471 clock-frequency = <100000000>;
472 };
473
474 uart1: serial1@10c02100 {
475 compatible = "snps,dw-apb-uart";
476 reg = <0x10c02100 0x100>;
477 interrupts = <0 109 4>;
478 reg-shift = <2>;
479 reg-io-width = <4>;
480 resets = <&rst UART1_RESET>;
481 clocks = <&clkmgr AGILEX5_L4_SP_CLK>;
482 status = "disabled";
483 };
484
485 usbphy0: usbphy@0 {
486 #phy-cells = <0>;
487 compatible = "usb-nop-xceiv";
488 clocks = <&clkmgr AGILEX5_USB_CLK>;
489 status = "disabled";
490 };
491
492 usb0: usb@10b00000 {
493 compatible = "snps,dwc2";
494 reg = <0x10b00000 0x40000>;
495 interrupts = <0 93 4>;
496 phys = <&usbphy0>;
497 phy-names = "usb2-phy";
498 resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
499 reset-names = "dwc2", "dwc2-ecc";
500 clocks = <&clkmgr AGILEX5_USB_CLK>;
501 iommus = <&smmu 6>;
502 status = "disabled";
503 };
504
505 usb31: usb31@11000000 {
506 compatible = "snps,dwc3";
507 reg = <0x11000000 0x100000>;
508 resets = <&rst USB1_RESET>;
509 phys = <&usbphy0>, <&usbphy0>;
510 phy-names = "usb2-phy", "usb3-phy";
511 dr_mode = "host";
512 maximum-speed = "super-speed";
513 snps,dis_u2_susphy_quirk;
514 status = "disabled";
515 };
516
517 watchdog0: watchdog@10d00200 {
518 compatible = "snps,dw-wdt";
519 reg = <0x10d00200 0x100>;
520 interrupts = <0 117 4>;
521 resets = <&rst WATCHDOG0_RESET>;
522 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
523 status = "disabled";
524 };
525
526 watchdog1: watchdog@10d00300 {
527 compatible = "snps,dw-wdt";
528 reg = <0x10d00300 0x100>;
529 interrupts = <0 118 4>;
530 resets = <&rst WATCHDOG1_RESET>;
531 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
532 status = "disabled";
533 };
534
535 watchdog2: watchdog@10d00400 {
536 compatible = "snps,dw-wdt";
537 reg = <0x10d00400 0x100>;
538 interrupts = <0 125 4>;
539 resets = <&rst WATCHDOG2_RESET>;
540 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
541 status = "disabled";
542 };
543
544 watchdog3: watchdog@10d00500 {
545 compatible = "snps,dw-wdt";
546 reg = <0x10d00500 0x100>;
547 interrupts = <0 126 4>;
548 resets = <&rst WATCHDOG3_RESET>;
549 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
550 status = "disabled";
551 };
552
553 watchdog4: watchdog@10d00600 {
554 compatible = "snps,dw-wdt";
555 reg = <0x10d00600 0x100>;
556 interrupts = <0 175 4>;
557 resets = <&rst WATCHDOG4_RESET>;
558 clocks = <&clkmgr AGILEX5_L4_SYS_FREE_CLK>;
559 status = "disabled";
560 };
561
Tingting Menga1a24f12025-02-21 21:49:41 +0800562 sdr: sdr@18000000 {
563 compatible = "intel,sdr-ctl-agilex5";
564 reg = <0x18000000 0x400000>;
565 resets = <&rst DDRSCH_RESET>;
566 bootph-all;
567 };
568
Jit Loon Lim977071e2024-03-12 22:01:03 +0800569 /* QSPI address not available yet */
570 qspi: spi@108d2000 {
571 compatible = "cdns,qspi-nor";
572 #address-cells = <1>;
573 #size-cells = <0>;
574 reg = <0x108d2000 0x100>,
575 <0x10900000 0x100000>;
576 interrupts = <0 3 4>;
577 cdns,fifo-depth = <128>;
578 cdns,fifo-width = <4>;
579 cdns,trigger-address = <0x00000000>;
580 clocks = <&qspi_clk>;
581
582 status = "disabled";
583 };
584
585 firmware {
586 svc {
587 compatible = "intel,stratix10-svc";
588 method = "smc";
589 memory-region = <&service_reserved>;
590
591 fpga_mgr: fpga-mgr {
592 compatible = "intel,stratix10-soc-fpga-mgr";
593 };
594 };
595 };
596 };
597};