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";
18 compatible = "sifive,e51", "sifive,rocket0", "riscv";
20 i-cache-block-size = <64>;
22 i-cache-size = <16384>;
24 riscv,isa = "rv64imac";
25 clocks = <&clkcfg CLK_CPU>;
28 cpu0_intc: interrupt-controller {
29 #interrupt-cells = <1>;
30 compatible = "riscv,cpu-intc";
36 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
37 d-cache-block-size = <64>;
39 d-cache-size = <32768>;
43 i-cache-block-size = <64>;
45 i-cache-size = <32768>;
48 mmu-type = "riscv,sv39";
50 riscv,isa = "rv64imafdc";
51 clocks = <&clkcfg CLK_CPU>;
53 next-level-cache = <&cctrllr>;
56 cpu1_intc: interrupt-controller {
57 #interrupt-cells = <1>;
58 compatible = "riscv,cpu-intc";
64 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
65 d-cache-block-size = <64>;
67 d-cache-size = <32768>;
71 i-cache-block-size = <64>;
73 i-cache-size = <32768>;
76 mmu-type = "riscv,sv39";
78 riscv,isa = "rv64imafdc";
79 clocks = <&clkcfg CLK_CPU>;
81 next-level-cache = <&cctrllr>;
84 cpu2_intc: interrupt-controller {
85 #interrupt-cells = <1>;
86 compatible = "riscv,cpu-intc";
92 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
93 d-cache-block-size = <64>;
95 d-cache-size = <32768>;
99 i-cache-block-size = <64>;
101 i-cache-size = <32768>;
104 mmu-type = "riscv,sv39";
106 riscv,isa = "rv64imafdc";
107 clocks = <&clkcfg CLK_CPU>;
109 next-level-cache = <&cctrllr>;
112 cpu3_intc: interrupt-controller {
113 #interrupt-cells = <1>;
114 compatible = "riscv,cpu-intc";
115 interrupt-controller;
120 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
121 d-cache-block-size = <64>;
123 d-cache-size = <32768>;
127 i-cache-block-size = <64>;
129 i-cache-size = <32768>;
132 mmu-type = "riscv,sv39";
134 riscv,isa = "rv64imafdc";
135 clocks = <&clkcfg CLK_CPU>;
137 next-level-cache = <&cctrllr>;
139 cpu4_intc: interrupt-controller {
140 #interrupt-cells = <1>;
141 compatible = "riscv,cpu-intc";
142 interrupt-controller;
148 compatible = "fixed-clock";
152 syscontroller: syscontroller {
153 compatible = "microchip,mpfs-sys-controller";
158 #address-cells = <2>;
160 compatible = "simple-bus";
163 cctrllr: cache-controller@2010000 {
164 compatible = "sifive,fu540-c000-ccache", "cache";
165 reg = <0x0 0x2010000 0x0 0x1000>;
166 cache-block-size = <64>;
169 cache-size = <2097152>;
171 interrupt-parent = <&plic>;
172 interrupts = <1>, <2>, <3>;
175 clint: clint@2000000 {
176 compatible = "sifive,fu540-c000-clint", "sifive,clint0";
177 reg = <0x0 0x2000000 0x0 0xC000>;
178 interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>,
179 <&cpu1_intc 3>, <&cpu1_intc 7>,
180 <&cpu2_intc 3>, <&cpu2_intc 7>,
181 <&cpu3_intc 3>, <&cpu3_intc 7>,
182 <&cpu4_intc 3>, <&cpu4_intc 7>;
185 plic: interrupt-controller@c000000 {
186 compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
187 reg = <0x0 0xc000000 0x0 0x4000000>;
188 #address-cells = <0>;
189 #interrupt-cells = <1>;
190 interrupt-controller;
191 interrupts-extended = <&cpu0_intc 11>,
192 <&cpu1_intc 11>, <&cpu1_intc 9>,
193 <&cpu2_intc 11>, <&cpu2_intc 9>,
194 <&cpu3_intc 11>, <&cpu3_intc 9>,
195 <&cpu4_intc 11>, <&cpu4_intc 9>;
199 pdma: dma-controller@3000000 {
200 compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
201 reg = <0x0 0x3000000 0x0 0x8000>;
202 interrupt-parent = <&plic>;
203 interrupts = <5 6>, <7 8>, <9 10>, <11 12>;
208 clkcfg: clkcfg@20002000 {
209 compatible = "microchip,mpfs-clkcfg";
210 reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>;
215 mmuart0: serial@20000000 {
216 compatible = "ns16550a";
217 reg = <0x0 0x20000000 0x0 0x400>;
220 interrupt-parent = <&plic>;
222 current-speed = <115200>;
223 clocks = <&clkcfg CLK_MMUART0>;
224 status = "disabled"; /* Reserved for the HSS */
227 mmuart1: serial@20100000 {
228 compatible = "ns16550a";
229 reg = <0x0 0x20100000 0x0 0x400>;
232 interrupt-parent = <&plic>;
234 current-speed = <115200>;
235 clocks = <&clkcfg CLK_MMUART1>;
239 mmuart2: serial@20102000 {
240 compatible = "ns16550a";
241 reg = <0x0 0x20102000 0x0 0x400>;
244 interrupt-parent = <&plic>;
246 current-speed = <115200>;
247 clocks = <&clkcfg CLK_MMUART2>;
251 mmuart3: serial@20104000 {
252 compatible = "ns16550a";
253 reg = <0x0 0x20104000 0x0 0x400>;
256 interrupt-parent = <&plic>;
258 current-speed = <115200>;
259 clocks = <&clkcfg CLK_MMUART3>;
263 mmuart4: serial@20106000 {
264 compatible = "ns16550a";
265 reg = <0x0 0x20106000 0x0 0x400>;
268 interrupt-parent = <&plic>;
270 clocks = <&clkcfg CLK_MMUART4>;
271 current-speed = <115200>;
275 /* Common node entry for emmc/sd */
277 compatible = "microchip,mpfs-sd4hc", "cdns,sd4hc";
278 reg = <0x0 0x20008000 0x0 0x1000>;
279 interrupt-parent = <&plic>;
281 clocks = <&clkcfg CLK_MMC>;
282 max-frequency = <200000000>;
287 compatible = "microchip,mpfs-spi";
288 #address-cells = <1>;
290 reg = <0x0 0x20108000 0x0 0x1000>;
291 interrupt-parent = <&plic>;
293 clocks = <&clkcfg CLK_SPI0>;
294 spi-max-frequency = <25000000>;
299 compatible = "microchip,mpfs-spi";
300 #address-cells = <1>;
302 reg = <0x0 0x20109000 0x0 0x1000>;
303 interrupt-parent = <&plic>;
305 clocks = <&clkcfg CLK_SPI1>;
306 spi-max-frequency = <25000000>;
311 compatible = "microchip,mpfs-qspi";
312 #address-cells = <1>;
314 reg = <0x0 0x21000000 0x0 0x1000>;
315 interrupt-parent = <&plic>;
317 clocks = <&clkcfg CLK_QSPI>;
318 spi-max-frequency = <25000000>;
323 compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
324 reg = <0x0 0x2010a000 0x0 0x1000>;
325 #address-cells = <1>;
327 interrupt-parent = <&plic>;
329 clocks = <&clkcfg CLK_I2C0>;
330 clock-frequency = <100000>;
335 compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
336 reg = <0x0 0x2010b000 0x0 0x1000>;
337 #address-cells = <1>;
339 interrupt-parent = <&plic>;
341 clocks = <&clkcfg CLK_I2C1>;
342 clock-frequency = <100000>;
347 compatible = "microchip,mpfs-can";
348 reg = <0x0 0x2010c000 0x0 0x1000>;
349 clocks = <&clkcfg CLK_CAN0>;
350 interrupt-parent = <&plic>;
356 compatible = "microchip,mpfs-can";
357 reg = <0x0 0x2010d000 0x0 0x1000>;
358 clocks = <&clkcfg CLK_CAN1>;
359 interrupt-parent = <&plic>;
364 mac0: ethernet@20110000 {
365 compatible = "cdns,macb";
366 reg = <0x0 0x20110000 0x0 0x2000>;
367 #address-cells = <1>;
369 interrupt-parent = <&plic>;
370 interrupts = <64>, <65>, <66>, <67>, <68>, <69>;
371 local-mac-address = [00 00 00 00 00 00];
372 clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>;
373 clock-names = "pclk", "hclk";
377 mac1: ethernet@20112000 {
378 compatible = "cdns,macb";
379 reg = <0x0 0x20112000 0x0 0x2000>;
380 #address-cells = <1>;
382 interrupt-parent = <&plic>;
383 interrupts = <70>, <71>, <72>, <73>, <74>, <75>;
384 local-mac-address = [00 00 00 00 00 00];
385 clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>;
386 clock-names = "pclk", "hclk";
390 gpio0: gpio@20120000 {
391 compatible = "microchip,mpfs-gpio";
392 reg = <0x0 0x20120000 0x0 0x1000>;
393 interrupt-parent = <&plic>;
394 interrupt-controller;
395 #interrupt-cells = <1>;
396 clocks = <&clkcfg CLK_GPIO0>;
402 gpio1: gpio@20121000 {
403 compatible = "microchip,mpfs-gpio";
404 reg = <0x0 0x20121000 0x0 0x1000>;
405 interrupt-parent = <&plic>;
406 interrupt-controller;
407 #interrupt-cells = <1>;
408 clocks = <&clkcfg CLK_GPIO1>;
414 gpio2: gpio@20122000 {
415 compatible = "microchip,mpfs-gpio";
416 reg = <0x0 0x20122000 0x0 0x1000>;
417 interrupt-parent = <&plic>;
418 interrupt-controller;
419 #interrupt-cells = <1>;
420 clocks = <&clkcfg CLK_GPIO2>;
427 compatible = "microchip,mpfs-rtc";
428 reg = <0x0 0x20124000 0x0 0x1000>;
429 interrupt-parent = <&plic>;
430 interrupts = <80>, <81>;
431 clocks = <&clkcfg CLK_RTC>, <&clkcfg CLK_RTCREF>;
432 clock-names = "rtc", "rtcref";
437 compatible = "microchip,mpfs-musb";
438 reg = <0x0 0x20201000 0x0 0x1000>;
439 interrupt-parent = <&plic>;
440 interrupts = <86>, <87>;
441 clocks = <&clkcfg CLK_USB>;
442 interrupt-names = "dma","mc";
446 pcie: pcie@2000000000 {
447 compatible = "microchip,pcie-host-1.0";
448 #address-cells = <0x3>;
449 #interrupt-cells = <0x1>;
452 reg = <0x20 0x0 0x0 0x8000000>, <0x0 0x43000000 0x0 0x10000>;
453 reg-names = "cfg", "apb";
454 bus-range = <0x0 0x7f>;
455 interrupt-parent = <&plic>;
457 interrupt-map = <0 0 0 1 &pcie_intc 0>,
458 <0 0 0 2 &pcie_intc 1>,
459 <0 0 0 3 &pcie_intc 2>,
460 <0 0 0 4 &pcie_intc 3>;
461 interrupt-map-mask = <0 0 0 7>;
462 clocks = <&fabric_clk1>, <&fabric_clk1>, <&fabric_clk3>;
463 clock-names = "fic0", "fic1", "fic3";
464 ranges = <0x3000000 0x0 0x8000000 0x20 0x8000000 0x0 0x80000000>;
465 msi-parent = <&pcie>;
467 microchip,axi-m-atr0 = <0x10 0x0>;
469 pcie_intc: legacy-interrupt-controller {
470 #address-cells = <0>;
471 #interrupt-cells = <1>;
472 interrupt-controller;
476 mbox: mailbox@37020000 {
477 compatible = "microchip,mpfs-mailbox";
478 reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318C 0x0 0x40>;
479 interrupt-parent = <&plic>;