1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /* Copyright (c) 2020-2021 Microchip Technology Inc */
5 #include "dt-bindings/clock/microchip,mpfs-clock.h"
10 model = "Microchip PolarFire SoC";
11 compatible = "microchip,mpfs";
16 timebase-frequency = <1000000>;
19 compatible = "sifive,e51", "sifive,rocket0", "riscv";
21 i-cache-block-size = <64>;
23 i-cache-size = <16384>;
25 riscv,isa = "rv64imac";
26 riscv,isa-base = "rv64i";
27 riscv,isa-extensions = "i", "m", "a", "c", "zicntr", "zicsr", "zifencei",
29 clocks = <&clkcfg CLK_CPU>;
32 cpu0_intc: interrupt-controller {
33 #interrupt-cells = <1>;
34 compatible = "riscv,cpu-intc";
40 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
41 d-cache-block-size = <64>;
43 d-cache-size = <32768>;
47 i-cache-block-size = <64>;
49 i-cache-size = <32768>;
52 mmu-type = "riscv,sv39";
54 riscv,isa = "rv64imafdc";
55 riscv,isa-base = "rv64i";
56 riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
58 clocks = <&clkcfg CLK_CPU>;
60 next-level-cache = <&cctrllr>;
63 cpu1_intc: interrupt-controller {
64 #interrupt-cells = <1>;
65 compatible = "riscv,cpu-intc";
71 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
72 d-cache-block-size = <64>;
74 d-cache-size = <32768>;
78 i-cache-block-size = <64>;
80 i-cache-size = <32768>;
83 mmu-type = "riscv,sv39";
85 riscv,isa = "rv64imafdc";
86 riscv,isa-base = "rv64i";
87 riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
89 clocks = <&clkcfg CLK_CPU>;
91 next-level-cache = <&cctrllr>;
94 cpu2_intc: interrupt-controller {
95 #interrupt-cells = <1>;
96 compatible = "riscv,cpu-intc";
102 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
103 d-cache-block-size = <64>;
105 d-cache-size = <32768>;
109 i-cache-block-size = <64>;
111 i-cache-size = <32768>;
114 mmu-type = "riscv,sv39";
116 riscv,isa = "rv64imafdc";
117 riscv,isa-base = "rv64i";
118 riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
120 clocks = <&clkcfg CLK_CPU>;
122 next-level-cache = <&cctrllr>;
125 cpu3_intc: interrupt-controller {
126 #interrupt-cells = <1>;
127 compatible = "riscv,cpu-intc";
128 interrupt-controller;
133 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
134 d-cache-block-size = <64>;
136 d-cache-size = <32768>;
140 i-cache-block-size = <64>;
142 i-cache-size = <32768>;
145 mmu-type = "riscv,sv39";
147 riscv,isa = "rv64imafdc";
148 riscv,isa-base = "rv64i";
149 riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr",
151 clocks = <&clkcfg CLK_CPU>;
153 next-level-cache = <&cctrllr>;
155 cpu4_intc: interrupt-controller {
156 #interrupt-cells = <1>;
157 compatible = "riscv,cpu-intc";
158 interrupt-controller;
188 compatible = "fixed-clock";
192 syscontroller: syscontroller {
193 compatible = "microchip,mpfs-sys-controller";
198 #address-cells = <2>;
200 compatible = "simple-bus";
203 cctrllr: cache-controller@2010000 {
204 compatible = "microchip,mpfs-ccache", "sifive,fu540-c000-ccache", "cache";
205 reg = <0x0 0x2010000 0x0 0x1000>;
206 cache-block-size = <64>;
209 cache-size = <2097152>;
211 interrupt-parent = <&plic>;
212 interrupts = <1>, <3>, <4>, <2>;
215 clint: clint@2000000 {
216 compatible = "sifive,fu540-c000-clint", "sifive,clint0";
217 reg = <0x0 0x2000000 0x0 0xC000>;
218 interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>,
219 <&cpu1_intc 3>, <&cpu1_intc 7>,
220 <&cpu2_intc 3>, <&cpu2_intc 7>,
221 <&cpu3_intc 3>, <&cpu3_intc 7>,
222 <&cpu4_intc 3>, <&cpu4_intc 7>;
225 plic: interrupt-controller@c000000 {
226 compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
227 reg = <0x0 0xc000000 0x0 0x4000000>;
228 #address-cells = <0>;
229 #interrupt-cells = <1>;
230 interrupt-controller;
231 interrupts-extended = <&cpu0_intc 11>,
232 <&cpu1_intc 11>, <&cpu1_intc 9>,
233 <&cpu2_intc 11>, <&cpu2_intc 9>,
234 <&cpu3_intc 11>, <&cpu3_intc 9>,
235 <&cpu4_intc 11>, <&cpu4_intc 9>;
239 pdma: dma-controller@3000000 {
240 compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
241 reg = <0x0 0x3000000 0x0 0x8000>;
242 interrupt-parent = <&plic>;
243 interrupts = <5 6>, <7 8>, <9 10>, <11 12>;
248 clkcfg: clkcfg@20002000 {
249 compatible = "microchip,mpfs-clkcfg";
250 reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>;
256 ccc_se: clock-controller@38010000 {
257 compatible = "microchip,mpfs-ccc";
258 reg = <0x0 0x38010000 0x0 0x1000>, <0x0 0x38020000 0x0 0x1000>,
259 <0x0 0x39010000 0x0 0x1000>, <0x0 0x39020000 0x0 0x1000>;
264 ccc_ne: clock-controller@38040000 {
265 compatible = "microchip,mpfs-ccc";
266 reg = <0x0 0x38040000 0x0 0x1000>, <0x0 0x38080000 0x0 0x1000>,
267 <0x0 0x39040000 0x0 0x1000>, <0x0 0x39080000 0x0 0x1000>;
272 ccc_nw: clock-controller@38100000 {
273 compatible = "microchip,mpfs-ccc";
274 reg = <0x0 0x38100000 0x0 0x1000>, <0x0 0x38200000 0x0 0x1000>,
275 <0x0 0x39100000 0x0 0x1000>, <0x0 0x39200000 0x0 0x1000>;
280 ccc_sw: clock-controller@38400000 {
281 compatible = "microchip,mpfs-ccc";
282 reg = <0x0 0x38400000 0x0 0x1000>, <0x0 0x38800000 0x0 0x1000>,
283 <0x0 0x39400000 0x0 0x1000>, <0x0 0x39800000 0x0 0x1000>;
288 mmuart0: serial@20000000 {
289 compatible = "ns16550a";
290 reg = <0x0 0x20000000 0x0 0x400>;
293 interrupt-parent = <&plic>;
295 current-speed = <115200>;
296 clocks = <&clkcfg CLK_MMUART0>;
297 status = "disabled"; /* Reserved for the HSS */
300 mmuart1: serial@20100000 {
301 compatible = "ns16550a";
302 reg = <0x0 0x20100000 0x0 0x400>;
305 interrupt-parent = <&plic>;
307 current-speed = <115200>;
308 clocks = <&clkcfg CLK_MMUART1>;
312 mmuart2: serial@20102000 {
313 compatible = "ns16550a";
314 reg = <0x0 0x20102000 0x0 0x400>;
317 interrupt-parent = <&plic>;
319 current-speed = <115200>;
320 clocks = <&clkcfg CLK_MMUART2>;
324 mmuart3: serial@20104000 {
325 compatible = "ns16550a";
326 reg = <0x0 0x20104000 0x0 0x400>;
329 interrupt-parent = <&plic>;
331 current-speed = <115200>;
332 clocks = <&clkcfg CLK_MMUART3>;
336 mmuart4: serial@20106000 {
337 compatible = "ns16550a";
338 reg = <0x0 0x20106000 0x0 0x400>;
341 interrupt-parent = <&plic>;
343 clocks = <&clkcfg CLK_MMUART4>;
344 current-speed = <115200>;
348 /* Common node entry for emmc/sd */
350 compatible = "microchip,mpfs-sd4hc", "cdns,sd4hc";
351 reg = <0x0 0x20008000 0x0 0x1000>;
352 interrupt-parent = <&plic>;
354 clocks = <&clkcfg CLK_MMC>;
355 max-frequency = <200000000>;
360 compatible = "microchip,mpfs-spi";
361 #address-cells = <1>;
363 reg = <0x0 0x20108000 0x0 0x1000>;
364 interrupt-parent = <&plic>;
366 clocks = <&clkcfg CLK_SPI0>;
371 compatible = "microchip,mpfs-spi";
372 #address-cells = <1>;
374 reg = <0x0 0x20109000 0x0 0x1000>;
375 interrupt-parent = <&plic>;
377 clocks = <&clkcfg CLK_SPI1>;
382 compatible = "microchip,mpfs-qspi", "microchip,coreqspi-rtl-v2";
383 #address-cells = <1>;
385 reg = <0x0 0x21000000 0x0 0x1000>;
386 interrupt-parent = <&plic>;
388 clocks = <&clkcfg CLK_QSPI>;
393 compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
394 reg = <0x0 0x2010a000 0x0 0x1000>;
395 #address-cells = <1>;
397 interrupt-parent = <&plic>;
399 clocks = <&clkcfg CLK_I2C0>;
400 clock-frequency = <100000>;
405 compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
406 reg = <0x0 0x2010b000 0x0 0x1000>;
407 #address-cells = <1>;
409 interrupt-parent = <&plic>;
411 clocks = <&clkcfg CLK_I2C1>;
412 clock-frequency = <100000>;
417 compatible = "microchip,mpfs-can";
418 reg = <0x0 0x2010c000 0x0 0x1000>;
419 clocks = <&clkcfg CLK_CAN0>;
420 interrupt-parent = <&plic>;
426 compatible = "microchip,mpfs-can";
427 reg = <0x0 0x2010d000 0x0 0x1000>;
428 clocks = <&clkcfg CLK_CAN1>;
429 interrupt-parent = <&plic>;
434 mac0: ethernet@20110000 {
435 compatible = "microchip,mpfs-macb", "cdns,macb";
436 reg = <0x0 0x20110000 0x0 0x2000>;
437 #address-cells = <1>;
439 interrupt-parent = <&plic>;
440 interrupts = <64>, <65>, <66>, <67>, <68>, <69>;
441 local-mac-address = [00 00 00 00 00 00];
442 clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>;
443 clock-names = "pclk", "hclk";
444 resets = <&clkcfg CLK_MAC0>;
448 mac1: ethernet@20112000 {
449 compatible = "microchip,mpfs-macb", "cdns,macb";
450 reg = <0x0 0x20112000 0x0 0x2000>;
451 #address-cells = <1>;
453 interrupt-parent = <&plic>;
454 interrupts = <70>, <71>, <72>, <73>, <74>, <75>;
455 local-mac-address = [00 00 00 00 00 00];
456 clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>;
457 clock-names = "pclk", "hclk";
458 resets = <&clkcfg CLK_MAC1>;
462 gpio0: gpio@20120000 {
463 compatible = "microchip,mpfs-gpio";
464 reg = <0x0 0x20120000 0x0 0x1000>;
465 interrupt-parent = <&plic>;
466 interrupt-controller;
467 #interrupt-cells = <1>;
468 clocks = <&clkcfg CLK_GPIO0>;
474 gpio1: gpio@20121000 {
475 compatible = "microchip,mpfs-gpio";
476 reg = <0x0 0x20121000 0x0 0x1000>;
477 interrupt-parent = <&plic>;
478 interrupt-controller;
479 #interrupt-cells = <1>;
480 clocks = <&clkcfg CLK_GPIO1>;
486 gpio2: gpio@20122000 {
487 compatible = "microchip,mpfs-gpio";
488 reg = <0x0 0x20122000 0x0 0x1000>;
489 interrupt-parent = <&plic>;
490 interrupt-controller;
491 #interrupt-cells = <1>;
492 clocks = <&clkcfg CLK_GPIO2>;
499 compatible = "microchip,mpfs-rtc";
500 reg = <0x0 0x20124000 0x0 0x1000>;
501 interrupt-parent = <&plic>;
502 interrupts = <80>, <81>;
503 clocks = <&clkcfg CLK_RTC>, <&clkcfg CLK_RTCREF>;
504 clock-names = "rtc", "rtcref";
509 compatible = "microchip,mpfs-musb";
510 reg = <0x0 0x20201000 0x0 0x1000>;
511 interrupt-parent = <&plic>;
512 interrupts = <86>, <87>;
513 clocks = <&clkcfg CLK_USB>;
514 interrupt-names = "dma","mc";
518 mbox: mailbox@37020000 {
519 compatible = "microchip,mpfs-mailbox";
520 reg = <0x0 0x37020000 0x0 0x58>, <0x0 0x2000318C 0x0 0x40>,
521 <0x0 0x37020800 0x0 0x100>;
522 interrupt-parent = <&plic>;