Debian Codegraph @

arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright Altera Corporation (C) 2014. All rights reserved.
4 */
5
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/reset/altr,rst-mgr-a10.h>
8
9 / {
10 #address-cells = <1>;
11 #size-cells = <1>;
12
13 cpus {
14 #address-cells = <1>;
15 #size-cells = <0>;
16 enable-method = "altr,socfpga-a10-smp";
17
18 cpu0: cpu@0 {
19 compatible = "arm,cortex-a9";
20 device_type = "cpu";
21 reg = <0>;
22 next-level-cache = <&L2>;
23 };
24 cpu1: cpu@1 {
25 compatible = "arm,cortex-a9";
26 device_type = "cpu";
27 reg = <1>;
28 next-level-cache = <&L2>;
29 };
30 };
31
32 pmu: pmu@ff111000 {
33 compatible = "arm,cortex-a9-pmu";
34 interrupt-parent = <&intc>;
35 interrupts = <0 124 4>, <0 125 4>;
36 interrupt-affinity = <&cpu0>, <&cpu1>;
37 reg = <0xff111000 0x1000>,
38 <0xff113000 0x1000>;
39 };
40
41 intc: interrupt-controller@ffffd000 {
42 compatible = "arm,cortex-a9-gic";
43 #interrupt-cells = <3>;
44 interrupt-controller;
45 reg = <0xffffd000 0x1000>,
46 <0xffffc100 0x100>;
47 };
48
49 soc {
50 #address-cells = <1>;
51 #size-cells = <1>;
52 compatible = "simple-bus";
53 device_type = "soc";
54 interrupt-parent = <&intc>;
55 ranges;
56
57 amba {
58 compatible = "simple-bus";
59 #address-cells = <1>;
60 #size-cells = <1>;
61 ranges;
62
63 pdma: pdma@ffda1000 {
64 compatible = "arm,pl330", "arm,primecell";
65 reg = <0xffda1000 0x1000>;
66 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>,
67 <0 84 IRQ_TYPE_LEVEL_HIGH>,
68 <0 85 IRQ_TYPE_LEVEL_HIGH>,
69 <0 86 IRQ_TYPE_LEVEL_HIGH>,
70 <0 87 IRQ_TYPE_LEVEL_HIGH>,
71 <0 88 IRQ_TYPE_LEVEL_HIGH>,
72 <0 89 IRQ_TYPE_LEVEL_HIGH>,
73 <0 90 IRQ_TYPE_LEVEL_HIGH>,
74 <0 91 IRQ_TYPE_LEVEL_HIGH>;
75 #dma-cells = <1>;
76 clocks = <&l4_main_clk>;
77 clock-names = "apb_pclk";
78 resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
79 reset-names = "dma", "dma-ocp";
80 };
81 };
82
83 base_fpga_region: fpga-region {
84 #address-cells = <0x1>;
85 #size-cells = <0x1>;
86
87 compatible = "fpga-region";
88 fpga-mgr = <&fpga_mgr>;
89 ranges;
90 };
91
92 clkmgr@ffd04000 {
93 compatible = "altr,clk-mgr";
94 reg = <0xffd04000 0x1000>;
95
96 clocks {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 cb_intosc_hs_div2_clk: cb_intosc_hs_div2_clk {
101 #clock-cells = <0>;
102 compatible = "fixed-clock";
103 };
104
105 cb_intosc_ls_clk: cb_intosc_ls_clk {
106 #clock-cells = <0>;
107 compatible = "fixed-clock";
108 };
109
110 f2s_free_clk: f2s_free_clk {
111 #clock-cells = <0>;
112 compatible = "fixed-clock";
113 };
114
115 osc1: osc1 {
116 #clock-cells = <0>;
117 compatible = "fixed-clock";
118 };
119
120 main_pll: main_pll@40 {
121 #address-cells = <1>;
122 #size-cells = <0>;
123 #clock-cells = <0>;
124 compatible = "altr,socfpga-a10-pll-clock";
125 clocks = <&osc1>, <&cb_intosc_ls_clk>,
126 <&f2s_free_clk>;
127 reg = <0x40>;
128
129 main_mpu_base_clk: main_mpu_base_clk {
130 #clock-cells = <0>;
131 compatible = "altr,socfpga-a10-perip-clk";
132 clocks = <&main_pll>;
133 div-reg = <0x140 0 11>;
134 };
135
136 main_noc_base_clk: main_noc_base_clk {
137 #clock-cells = <0>;
138 compatible = "altr,socfpga-a10-perip-clk";
139 clocks = <&main_pll>;
140 div-reg = <0x144 0 11>;
141 };
142
143 main_emaca_clk: main_emaca_clk@68 {
144 #clock-cells = <0>;
145 compatible = "altr,socfpga-a10-perip-clk";
146 clocks = <&main_pll>;
147 reg = <0x68>;
148 };
149
150 main_emacb_clk: main_emacb_clk@6c {
151 #clock-cells = <0>;
152 compatible = "altr,socfpga-a10-perip-clk";
153 clocks = <&main_pll>;
154 reg = <0x6C>;
155 };
156
157 main_emac_ptp_clk: main_emac_ptp_clk@70 {
158 #clock-cells = <0>;
159 compatible = "altr,socfpga-a10-perip-clk";
160 clocks = <&main_pll>;
161 reg = <0x70>;
162 };
163
164 main_gpio_db_clk: main_gpio_db_clk@74 {
165 #clock-cells = <0>;
166 compatible = "altr,socfpga-a10-perip-clk";
167 clocks = <&main_pll>;
168 reg = <0x74>;
169 };
170
171 main_sdmmc_clk: main_sdmmc_clk@78 {
172 #clock-cells = <0>;
173 compatible = "altr,socfpga-a10-perip-clk"
174 ;
175 clocks = <&main_pll>;
176 reg = <0x78>;
177 };
178
179 main_s2f_usr0_clk: main_s2f_usr0_clk@7c {
180 #clock-cells = <0>;
181 compatible = "altr,socfpga-a10-perip-clk";
182 clocks = <&main_pll>;
183 reg = <0x7C>;
184 };
185
186 main_s2f_usr1_clk: main_s2f_usr1_clk@80 {
187 #clock-cells = <0>;
188 compatible = "altr,socfpga-a10-perip-clk";
189 clocks = <&main_pll>;
190 reg = <0x80>;
191 };
192
193 main_hmc_pll_ref_clk: main_hmc_pll_ref_clk@84 {
194 #clock-cells = <0>;
195 compatible = "altr,socfpga-a10-perip-clk";
196 clocks = <&main_pll>;
197 reg = <0x84>;
198 };
199
200 main_periph_ref_clk: main_periph_ref_clk@9c {
201 #clock-cells = <0>;
202 compatible = "altr,socfpga-a10-perip-clk";
203 clocks = <&main_pll>;
204 reg = <0x9C>;
205 };
206 };
207
208 periph_pll: periph_pll@c0 {
209 #address-cells = <1>;
210 #size-cells = <0>;
211 #clock-cells = <0>;
212 compatible = "altr,socfpga-a10-pll-clock";
213 clocks = <&osc1>, <&cb_intosc_ls_clk>,
214 <&f2s_free_clk>, <&main_periph_ref_clk>;
215 reg = <0xC0>;
216
217 peri_mpu_base_clk: peri_mpu_base_clk {
218 #clock-cells = <0>;
219 compatible = "altr,socfpga-a10-perip-clk";
220 clocks = <&periph_pll>;
221 div-reg = <0x140 16 11>;
222 };
223
224 peri_noc_base_clk: peri_noc_base_clk {
225 #clock-cells = <0>;
226 compatible = "altr,socfpga-a10-perip-clk";
227 clocks = <&periph_pll>;
228 div-reg = <0x144 16 11>;
229 };
230
231 peri_emaca_clk: peri_emaca_clk@e8 {
232 #clock-cells = <0>;
233 compatible = "altr,socfpga-a10-perip-clk";
234 clocks = <&periph_pll>;
235 reg = <0xE8>;
236 };
237
238 peri_emacb_clk: peri_emacb_clk@ec {
239 #clock-cells = <0>;
240 compatible = "altr,socfpga-a10-perip-clk";
241 clocks = <&periph_pll>;
242 reg = <0xEC>;
243 };
244
245 peri_emac_ptp_clk: peri_emac_ptp_clk@f0 {
246 #clock-cells = <0>;
247 compatible = "altr,socfpga-a10-perip-clk";
248 clocks = <&periph_pll>;
249 reg = <0xF0>;
250 };
251
252 peri_gpio_db_clk: peri_gpio_db_clk@f4 {
253 #clock-cells = <0>;
254 compatible = "altr,socfpga-a10-perip-clk";
255 clocks = <&periph_pll>;
256 reg = <0xF4>;
257 };
258
259 peri_sdmmc_clk: peri_sdmmc_clk@f8 {
260 #clock-cells = <0>;
261 compatible = "altr,socfpga-a10-perip-clk";
262 clocks = <&periph_pll>;
263 reg = <0xF8>;
264 };
265
266 peri_s2f_usr0_clk: peri_s2f_usr0_clk@fc {
267 #clock-cells = <0>;
268 compatible = "altr,socfpga-a10-perip-clk";
269 clocks = <&periph_pll>;
270 reg = <0xFC>;
271 };
272
273 peri_s2f_usr1_clk: peri_s2f_usr1_clk@100 {
274 #clock-cells = <0>;
275 compatible = "altr,socfpga-a10-perip-clk";
276 clocks = <&periph_pll>;
277 reg = <0x100>;
278 };
279
280 peri_hmc_pll_ref_clk: peri_hmc_pll_ref_clk@104 {
281 #clock-cells = <0>;
282 compatible = "altr,socfpga-a10-perip-clk";
283 clocks = <&periph_pll>;
284 reg = <0x104>;
285 };
286 };
287
288 mpu_free_clk: mpu_free_clk@60 {
289 #clock-cells = <0>;
290 compatible = "altr,socfpga-a10-perip-clk";
291 clocks = <&main_mpu_base_clk>, <&peri_mpu_base_clk>,
292 <&osc1>, <&cb_intosc_hs_div2_clk>,
293 <&f2s_free_clk>;
294 reg = <0x60>;
295 };
296
297 noc_free_clk: noc_free_clk@64 {
298 #clock-cells = <0>;
299 compatible = "altr,socfpga-a10-perip-clk";
300 clocks = <&main_noc_base_clk>, <&peri_noc_base_clk>,
301 <&osc1>, <&cb_intosc_hs_div2_clk>,
302 <&f2s_free_clk>;
303 reg = <0x64>;
304 };
305
306 s2f_user1_free_clk: s2f_user1_free_clk@104 {
307 #clock-cells = <0>;
308 compatible = "altr,socfpga-a10-perip-clk";
309 clocks = <&main_s2f_usr1_clk>, <&peri_s2f_usr1_clk>,
310 <&osc1>, <&cb_intosc_hs_div2_clk>,
311 <&f2s_free_clk>;
312 reg = <0x104>;
313 };
314
315 sdmmc_free_clk: sdmmc_free_clk@f8 {
316 #clock-cells = <0>;
317 compatible = "altr,socfpga-a10-perip-clk";
318 clocks = <&main_sdmmc_clk>, <&peri_sdmmc_clk>,
319 <&osc1>, <&cb_intosc_hs_div2_clk>,
320 <&f2s_free_clk>;
321 fixed-divider = <4>;
322 reg = <0xF8>;
323 };
324
325 l4_sys_free_clk: l4_sys_free_clk {
326 #clock-cells = <0>;
327 compatible = "altr,socfpga-a10-perip-clk";
328 clocks = <&noc_free_clk>;
329 fixed-divider = <4>;
330 };
331
332 l4_main_clk: l4_main_clk {
333 #clock-cells = <0>;
334 compatible = "altr,socfpga-a10-gate-clk";
335 clocks = <&noc_free_clk>;
336 div-reg = <0xA8 0 2>;
337 clk-gate = <0x48 1>;
338 };
339
340 l4_mp_clk: l4_mp_clk {
341 #clock-cells = <0>;
342 compatible = "altr,socfpga-a10-gate-clk";
343 clocks = <&noc_free_clk>;
344 div-reg = <0xA8 8 2>;
345 clk-gate = <0x48 2>;
346 };
347
348 l4_sp_clk: l4_sp_clk {
349 #clock-cells = <0>;
350 compatible = "altr,socfpga-a10-gate-clk";
351 clocks = <&noc_free_clk>;
352 div-reg = <0xA8 16 2>;
353 clk-gate = <0x48 3>;
354 };
355
356 mpu_periph_clk: mpu_periph_clk {
357 #clock-cells = <0>;
358 compatible = "altr,socfpga-a10-gate-clk";
359 clocks = <&mpu_free_clk>;
360 fixed-divider = <4>;
361 clk-gate = <0x48 0>;
362 };
363
364 sdmmc_clk: sdmmc_clk {
365 #clock-cells = <0>;
366 compatible = "altr,socfpga-a10-gate-clk";
367 clocks = <&sdmmc_free_clk>;
368 clk-gate = <0xC8 5>;
369 };
370
371 qspi_clk: qspi_clk {
372 #clock-cells = <0>;
373 compatible = "altr,socfpga-a10-gate-clk";
374 clocks = <&l4_main_clk>;
375 clk-gate = <0xC8 11>;
376 };
377
378 nand_x_clk: nand_x_clk {
379 #clock-cells = <0>;
380 compatible = "altr,socfpga-a10-gate-clk";
381 clocks = <&l4_mp_clk>;
382 clk-gate = <0xC8 10>;
383 };
384
385 nand_ecc_clk: nand_ecc_clk {
386 #clock-cells = <0>;
387 compatible = "altr,socfpga-a10-gate-clk";
388 clocks = <&nand_x_clk>;
389 clk-gate = <0xC8 10>;
390 };
391
392 nand_clk: nand_clk {
393 #clock-cells = <0>;
394 compatible = "altr,socfpga-a10-gate-clk";
395 clocks = <&nand_x_clk>;
396 fixed-divider = <4>;
397 clk-gate = <0xC8 10>;
398 };
399
400 spi_m_clk: spi_m_clk {
401 #clock-cells = <0>;
402 compatible = "altr,socfpga-a10-gate-clk";
403 clocks = <&l4_main_clk>;
404 clk-gate = <0xC8 9>;
405 };
406
407 usb_clk: usb_clk {
408 #clock-cells = <0>;
409 compatible = "altr,socfpga-a10-gate-clk";
410 clocks = <&l4_mp_clk>;
411 clk-gate = <0xC8 8>;
412 };
413
414 s2f_usr1_clk: s2f_usr1_clk {
415 #clock-cells = <0>;
416 compatible = "altr,socfpga-a10-gate-clk";
417 clocks = <&peri_s2f_usr1_clk>;
418 clk-gate = <0xC8 6>;
419 };
420 };
421 };
422
423 socfpga_axi_setup: stmmac-axi-config {
424 snps,wr_osr_lmt = <0xf>;
425 snps,rd_osr_lmt = <0xf>;
426 snps,blen = <0 0 0 0 16 0 0>;
427 };
428
429 gmac0: ethernet@ff800000 {
430 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
431 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
432 reg = <0xff800000 0x2000>;
433 interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>;
434 interrupt-names = "macirq";
435 /* Filled in by bootloader */
436 mac-address = [00 00 00 00 00 00];
437 snps,multicast-filter-bins = <256>;
438 snps,perfect-filter-entries = <128>;
439 tx-fifo-depth = <4096>;
440 rx-fifo-depth = <16384>;
441 clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
442 clock-names = "stmmaceth", "ptp_ref";
443 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
444 reset-names = "stmmaceth", "stmmaceth-ocp";
445 snps,axi-config = <&socfpga_axi_setup>;
446 status = "disabled";
447 };
448
449 gmac1: ethernet@ff802000 {
450 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
451 altr,sysmgr-syscon = <&sysmgr 0x48 8>;
452 reg = <0xff802000 0x2000>;
453 interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
454 interrupt-names = "macirq";
455 /* Filled in by bootloader */
456 mac-address = [00 00 00 00 00 00];
457 snps,multicast-filter-bins = <256>;
458 snps,perfect-filter-entries = <128>;
459 tx-fifo-depth = <4096>;
460 rx-fifo-depth = <16384>;
461 clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
462 clock-names = "stmmaceth", "ptp_ref";
463 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
464 reset-names = "stmmaceth", "stmmaceth-ocp";
465 snps,axi-config = <&socfpga_axi_setup>;
466 status = "disabled";
467 };
468
469 gmac2: ethernet@ff804000 {
470 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
471 altr,sysmgr-syscon = <&sysmgr 0x4C 16>;
472 reg = <0xff804000 0x2000>;
473 interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>;
474 interrupt-names = "macirq";
475 /* Filled in by bootloader */
476 mac-address = [00 00 00 00 00 00];
477 snps,multicast-filter-bins = <256>;
478 snps,perfect-filter-entries = <128>;
479 tx-fifo-depth = <4096>;
480 rx-fifo-depth = <16384>;
481 clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
482 clock-names = "stmmaceth", "ptp_ref";
483 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
484 reset-names = "stmmaceth", "stmmaceth-ocp";
485 snps,axi-config = <&socfpga_axi_setup>;
486 status = "disabled";
487 };
488
489 gpio0: gpio@ffc02900 {
490 #address-cells = <1>;
491 #size-cells = <0>;
492 compatible = "snps,dw-apb-gpio";
493 reg = <0xffc02900 0x100>;
494 resets = <&rst GPIO0_RESET>;
495 status = "disabled";
496
497 porta: gpio-controller@0 {
498 compatible = "snps,dw-apb-gpio-port";
499 gpio-controller;
500 #gpio-cells = <2>;
501 snps,nr-gpios = <29>;
502 reg = <0>;
503 interrupt-controller;
504 #interrupt-cells = <2>;
505 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
506 };
507 };
508
509 gpio1: gpio@ffc02a00 {
510 #address-cells = <1>;
511 #size-cells = <0>;
512 compatible = "snps,dw-apb-gpio";
513 reg = <0xffc02a00 0x100>;
514 resets = <&rst GPIO1_RESET>;
515 status = "disabled";
516
517 portb: gpio-controller@0 {
518 compatible = "snps,dw-apb-gpio-port";
519 gpio-controller;
520 #gpio-cells = <2>;
521 snps,nr-gpios = <29>;
522 reg = <0>;
523 interrupt-controller;
524 #interrupt-cells = <2>;
525 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
526 };
527 };
528
529 gpio2: gpio@ffc02b00 {
530 #address-cells = <1>;
531 #size-cells = <0>;
532 compatible = "snps,dw-apb-gpio";
533 reg = <0xffc02b00 0x100>;
534 resets = <&rst GPIO2_RESET>;
535 status = "disabled";
536
537 portc: gpio-controller@0 {
538 compatible = "snps,dw-apb-gpio-port";
539 gpio-controller;
540 #gpio-cells = <2>;
541 snps,nr-gpios = <27>;
542 reg = <0>;
543 interrupt-controller;
544 #interrupt-cells = <2>;
545 interrupts = <0 114 IRQ_TYPE_LEVEL_HIGH>;
546 };
547 };
548
549 fpga_mgr: fpga-mgr@ffd03000 {
550 compatible = "altr,socfpga-a10-fpga-mgr";
551 reg = <0xffd03000 0x100
552 0xffcfe400 0x20>;
553 clocks = <&l4_mp_clk>;
554 resets = <&rst FPGAMGR_RESET>;
555 reset-names = "fpgamgr";
556 };
557
558 i2c0: i2c@ffc02200 {
559 #address-cells = <1>;
560 #size-cells = <0>;
561 compatible = "snps,designware-i2c";
562 reg = <0xffc02200 0x100>;
563 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
564 clocks = <&l4_sp_clk>;
565 resets = <&rst I2C0_RESET>;
566 status = "disabled";
567 };
568
569 i2c1: i2c@ffc02300 {
570 #address-cells = <1>;
571 #size-cells = <0>;
572 compatible = "snps,designware-i2c";
573 reg = <0xffc02300 0x100>;
574 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
575 clocks = <&l4_sp_clk>;
576 resets = <&rst I2C1_RESET>;
577 status = "disabled";
578 };
579
580 i2c2: i2c@ffc02400 {
581 #address-cells = <1>;
582 #size-cells = <0>;
583 compatible = "snps,designware-i2c";
584 reg = <0xffc02400 0x100>;
585 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
586 clocks = <&l4_sp_clk>;
587 resets = <&rst I2C2_RESET>;
588 status = "disabled";
589 };
590
591 i2c3: i2c@ffc02500 {
592 #address-cells = <1>;
593 #size-cells = <0>;
594 compatible = "snps,designware-i2c";
595 reg = <0xffc02500 0x100>;
596 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
597 clocks = <&l4_sp_clk>;
598 resets = <&rst I2C3_RESET>;
599 status = "disabled";
600 };
601
602 i2c4: i2c@ffc02600 {
603 #address-cells = <1>;
604 #size-cells = <0>;
605 compatible = "snps,designware-i2c";
606 reg = <0xffc02600 0x100>;
607 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH>;
608 clocks = <&l4_sp_clk>;
609 resets = <&rst I2C4_RESET>;
610 status = "disabled";
611 };
612
613 spi0: spi@ffda4000 {
614 compatible = "snps,dw-apb-ssi";
615 #address-cells = <1>;
616 #size-cells = <0>;
617 reg = <0xffda4000 0x100>;
618 interrupts = <0 101 4>;
619 num-cs = <4>;
620 /*32bit_access;*/
621 clocks = <&spi_m_clk>;
622 resets = <&rst SPIM0_RESET>;
623 reset-names = "spi";
624 status = "disabled";
625 };
626
627 spi1: spi@ffda5000 {
628 compatible = "snps,dw-apb-ssi";
629 #address-cells = <1>;
630 #size-cells = <0>;
631 reg = <0xffda5000 0x100>;
632 interrupts = <0 102 4>;
633 num-cs = <4>;
634 /*32bit_access;*/
635 tx-dma-channel = <&pdma 16>;
636 rx-dma-channel = <&pdma 17>;
637 clocks = <&spi_m_clk>;
638 resets = <&rst SPIM1_RESET>;
639 reset-names = "spi";
640 status = "disabled";
641 };
642
643 sdr: sdr@ffcfb100 {
644 compatible = "altr,sdr-ctl", "syscon";
645 reg = <0xffcfb100 0x80>;
646 };
647
648 L2: cache-controller@fffff000 {
649 compatible = "arm,pl310-cache";
650 reg = <0xfffff000 0x1000>;
651 interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
652 cache-unified;
653 cache-level = <2>;
654 prefetch-data = <1>;
655 prefetch-instr = <1>;
656 arm,shared-override;
657 };
658
659 mmc: mmc@ff808000 {
660 #address-cells = <1>;
661 #size-cells = <0>;
662 compatible = "altr,socfpga-dw-mshc";
663 reg = <0xff808000 0x1000>;
664 interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
665 fifo-depth = <0x400>;
666 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
667 clock-names = "biu", "ciu";
668 resets = <&rst SDMMC_RESET>;
669 altr,sysmgr-syscon = <&sysmgr 0x28 4>;
670 status = "disabled";
671 };
672
673 nand: nand-controller@ffb90000 {
674 #address-cells = <1>;
675 #size-cells = <0>;
676 compatible = "altr,socfpga-denali-nand";
677 reg = <0xffb90000 0x72000>,
678 <0xffb80000 0x10000>;
679 reg-names = "nand_data", "denali_reg";
680 interrupts = <0 99 4>;
681 clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
682 clock-names = "nand", "nand_x", "ecc";
683 resets = <&rst NAND_RESET>;
684 status = "disabled";
685 };
686
687 ocram: sram@ffe00000 {
688 compatible = "mmio-sram";
689 reg = <0xffe00000 0x40000>;
690 #address-cells = <1>;
691 #size-cells = <1>;
692 ranges;
693 };
694
695 eccmgr: eccmgr {
696 compatible = "altr,socfpga-a10-ecc-manager";
697 altr,sysmgr-syscon = <&sysmgr>;
698 #address-cells = <1>;
699 #size-cells = <1>;
700 interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>,
701 <0 0 IRQ_TYPE_LEVEL_HIGH>;
702 interrupt-controller;
703 #interrupt-cells = <2>;
704 ranges;
705
706 sdramedac {
707 compatible = "altr,sdram-edac-a10";
708 altr,sdr-syscon = <&sdr>;
709 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
710 <49 IRQ_TYPE_LEVEL_HIGH>;
711 };
712
713 l2-ecc@ffd06010 {
714 compatible = "altr,socfpga-a10-l2-ecc";
715 reg = <0xffd06010 0x4>;
716 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
717 <32 IRQ_TYPE_LEVEL_HIGH>;
718 };
719
720 ocram-ecc@ff8c3000 {
721 compatible = "altr,socfpga-a10-ocram-ecc";
722 reg = <0xff8c3000 0x400>;
723 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>,
724 <33 IRQ_TYPE_LEVEL_HIGH>;
725 };
726
727 emac0-rx-ecc@ff8c0800 {
728 compatible = "altr,socfpga-eth-mac-ecc";
729 reg = <0xff8c0800 0x400>;
730 altr,ecc-parent = <&gmac0>;
731 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>,
732 <36 IRQ_TYPE_LEVEL_HIGH>;
733 };
734
735 emac0-tx-ecc@ff8c0c00 {
736 compatible = "altr,socfpga-eth-mac-ecc";
737 reg = <0xff8c0c00 0x400>;
738 altr,ecc-parent = <&gmac0>;
739 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>,
740 <37 IRQ_TYPE_LEVEL_HIGH>;
741 };
742
743 sdmmca-ecc@ff8c2c00 {
744 compatible = "altr,socfpga-sdmmc-ecc";
745 reg = <0xff8c2c00 0x400>;
746 altr,ecc-parent = <&mmc>;
747 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,
748 <47 IRQ_TYPE_LEVEL_HIGH>,
749 <16 IRQ_TYPE_LEVEL_HIGH>,
750 <48 IRQ_TYPE_LEVEL_HIGH>;
751 };
752
753 dma-ecc@ff8c8000 {
754 compatible = "altr,socfpga-dma-ecc";
755 reg = <0xff8c8000 0x400>;
756 altr,ecc-parent = <&pdma>;
757 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
758 <42 IRQ_TYPE_LEVEL_HIGH>;
759 };
760
761 usb0-ecc@ff8c8800 {
762 compatible = "altr,socfpga-usb-ecc";
763 reg = <0xff8c8800 0x400>;
764 altr,ecc-parent = <&usb0>;
765 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
766 <34 IRQ_TYPE_LEVEL_HIGH>;
767 };
768 };
769
770 qspi: spi@ff809000 {
771 compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
772 #address-cells = <1>;
773 #size-cells = <0>;
774 reg = <0xff809000 0x100>,
775 <0xffa00000 0x100000>;
776 interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
777 cdns,fifo-depth = <128>;
778 cdns,fifo-width = <4>;
779 cdns,trigger-address = <0x00000000>;
780 clocks = <&qspi_clk>;
781 resets = <&rst QSPI_RESET>, <&rst QSPI_OCP_RESET>;
782 reset-names = "qspi", "qspi-ocp";
783 status = "disabled";
784 };
785
786 rst: rstmgr@ffd05000 {
787 #reset-cells = <1>;
788 compatible = "altr,rst-mgr";
789 reg = <0xffd05000 0x100>;
790 altr,modrst-offset = <0x20>;
791 };
792
793 scu: snoop-control-unit@ffffc000 {
794 compatible = "arm,cortex-a9-scu";
795 reg = <0xffffc000 0x100>;
796 };
797
798 sysmgr: sysmgr@ffd06000 {
799 compatible = "altr,sys-mgr", "syscon";
800 reg = <0xffd06000 0x300>;
801 cpu1-start-addr = <0xffd06230>;
802 };
803
804 /* Local timer */
805 timer@ffffc600 {
806 compatible = "arm,cortex-a9-twd-timer";
807 reg = <0xffffc600 0x100>;
808 interrupts = <1 13 0xf01>;
809 clocks = <&mpu_periph_clk>;
810 };
811
812 timer0: timer0@ffc02700 {
813 compatible = "snps,dw-apb-timer";
814 interrupts = <0 115 IRQ_TYPE_LEVEL_HIGH>;
815 reg = <0xffc02700 0x100>;
816 clocks = <&l4_sp_clk>;
817 clock-names = "timer";
818 resets = <&rst SPTIMER0_RESET>;
819 reset-names = "timer";
820 };
821
822 timer1: timer1@ffc02800 {
823 compatible = "snps,dw-apb-timer";
824 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>;
825 reg = <0xffc02800 0x100>;
826 clocks = <&l4_sp_clk>;
827 clock-names = "timer";
828 resets = <&rst SPTIMER1_RESET>;
829 reset-names = "timer";
830 };
831
832 timer2: timer2@ffd00000 {
833 compatible = "snps,dw-apb-timer";
834 interrupts = <0 117 IRQ_TYPE_LEVEL_HIGH>;
835 reg = <0xffd00000 0x100>;
836 clocks = <&l4_sys_free_clk>;
837 clock-names = "timer";
838 resets = <&rst L4SYSTIMER0_RESET>;
839 reset-names = "timer";
840 };
841
842 timer3: timer3@ffd00100 {
843 compatible = "snps,dw-apb-timer";
844 interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
845 reg = <0xffd00100 0x100>;
846 clocks = <&l4_sys_free_clk>;
847 clock-names = "timer";
848 resets = <&rst L4SYSTIMER1_RESET>;
849 reset-names = "timer";
850 };
851
852 uart0: serial@ffc02000 {
853 compatible = "snps,dw-apb-uart";
854 reg = <0xffc02000 0x100>;
855 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
856 reg-shift = <2>;
857 reg-io-width = <4>;
858 clocks = <&l4_sp_clk>;
859 resets = <&rst UART0_RESET>;
860 status = "disabled";
861 };
862
863 uart1: serial@ffc02100 {
864 compatible = "snps,dw-apb-uart";
865 reg = <0xffc02100 0x100>;
866 interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>;
867 reg-shift = <2>;
868 reg-io-width = <4>;
869 clocks = <&l4_sp_clk>;
870 resets = <&rst UART1_RESET>;
871 status = "disabled";
872 };
873
874 usbphy0: usbphy {
875 #phy-cells = <0>;
876 compatible = "usb-nop-xceiv";
877 status = "okay";
878 };
879
880 usb0: usb@ffb00000 {
881 compatible = "snps,dwc2";
882 reg = <0xffb00000 0xffff>;
883 interrupts = <0 95 IRQ_TYPE_LEVEL_HIGH>;
884 clocks = <&usb_clk>;
885 clock-names = "otg";
886 resets = <&rst USB0_RESET>;
887 reset-names = "dwc2";
888 phys = <&usbphy0>;
889 phy-names = "usb2-phy";
890 status = "disabled";
891 };
892
893 usb1: usb@ffb40000 {
894 compatible = "snps,dwc2";
895 reg = <0xffb40000 0xffff>;
896 interrupts = <0 96 IRQ_TYPE_LEVEL_HIGH>;
897 clocks = <&usb_clk>;
898 clock-names = "otg";
899 resets = <&rst USB1_RESET>;
900 reset-names = "dwc2";
901 phys = <&usbphy0>;
902 phy-names = "usb2-phy";
903 status = "disabled";
904 };
905
906 watchdog0: watchdog@ffd00200 {
907 compatible = "snps,dw-wdt";
908 reg = <0xffd00200 0x100>;
909 interrupts = <0 119 IRQ_TYPE_LEVEL_HIGH>;
910 clocks = <&l4_sys_free_clk>;
911 resets = <&rst L4WD0_RESET>;
912 status = "disabled";
913 };
914
915 watchdog1: watchdog@ffd00300 {
916 compatible = "snps,dw-wdt";
917 reg = <0xffd00300 0x100>;
918 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
919 clocks = <&l4_sys_free_clk>;
920 resets = <&rst L4WD1_RESET>;
921 status = "disabled";
922 };
923 };
924 };