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"
6 #include "microchip-mpfs-fabric.dtsi"
11 model = "Microchip PolarFire SoC";
12 compatible = "microchip,mpfs";
19 compatible = "sifive,e51", "sifive,rocket0", "riscv";
21 i-cache-block-size = <64>;
23 i-cache-size = <16384>;
25 riscv,isa = "rv64imac";
26 clocks = <&clkcfg CLK_CPU>;
29 cpu0_intc: interrupt-controller {
30 #interrupt-cells = <1>;
31 compatible = "riscv,cpu-intc";
37 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
38 d-cache-block-size = <64>;
40 d-cache-size = <32768>;
44 i-cache-block-size = <64>;
46 i-cache-size = <32768>;
49 mmu-type = "riscv,sv39";
51 riscv,isa = "rv64imafdc";
52 clocks = <&clkcfg CLK_CPU>;
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>;
83 cpu2_intc: interrupt-controller {
84 #interrupt-cells = <1>;
85 compatible = "riscv,cpu-intc";
91 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
92 d-cache-block-size = <64>;
94 d-cache-size = <32768>;
98 i-cache-block-size = <64>;
100 i-cache-size = <32768>;
103 mmu-type = "riscv,sv39";
105 riscv,isa = "rv64imafdc";
106 clocks = <&clkcfg CLK_CPU>;
110 cpu3_intc: interrupt-controller {
111 #interrupt-cells = <1>;
112 compatible = "riscv,cpu-intc";
113 interrupt-controller;
118 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
119 d-cache-block-size = <64>;
121 d-cache-size = <32768>;
125 i-cache-block-size = <64>;
127 i-cache-size = <32768>;
130 mmu-type = "riscv,sv39";
132 riscv,isa = "rv64imafdc";
133 clocks = <&clkcfg CLK_CPU>;
136 cpu4_intc: interrupt-controller {
137 #interrupt-cells = <1>;
138 compatible = "riscv,cpu-intc";
139 interrupt-controller;
145 compatible = "fixed-clock";
150 #address-cells = <2>;
152 compatible = "simple-bus";
155 cctrllr: cache-controller@2010000 {
156 compatible = "sifive,fu540-c000-ccache", "cache";
157 reg = <0x0 0x2010000 0x0 0x1000>;
158 cache-block-size = <64>;
161 cache-size = <2097152>;
163 interrupt-parent = <&plic>;
164 interrupts = <1>, <2>, <3>;
167 clint: clint@2000000 {
168 compatible = "sifive,fu540-c000-clint", "sifive,clint0";
169 reg = <0x0 0x2000000 0x0 0xC000>;
170 interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>,
171 <&cpu1_intc 3>, <&cpu1_intc 7>,
172 <&cpu2_intc 3>, <&cpu2_intc 7>,
173 <&cpu3_intc 3>, <&cpu3_intc 7>,
174 <&cpu4_intc 3>, <&cpu4_intc 7>;
177 plic: interrupt-controller@c000000 {
178 compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
179 reg = <0x0 0xc000000 0x0 0x4000000>;
180 #address-cells = <0>;
181 #interrupt-cells = <1>;
182 interrupt-controller;
183 interrupts-extended = <&cpu0_intc 11>,
184 <&cpu1_intc 11>, <&cpu1_intc 9>,
185 <&cpu2_intc 11>, <&cpu2_intc 9>,
186 <&cpu3_intc 11>, <&cpu3_intc 9>,
187 <&cpu4_intc 11>, <&cpu4_intc 9>;
191 clkcfg: clkcfg@20002000 {
192 compatible = "microchip,mpfs-clkcfg";
193 reg = <0x0 0x20002000 0x0 0x1000>;
198 mmuart0: serial@20000000 {
199 compatible = "ns16550a";
200 reg = <0x0 0x20000000 0x0 0x400>;
203 interrupt-parent = <&plic>;
205 current-speed = <115200>;
206 clocks = <&clkcfg CLK_MMUART0>;
207 status = "disabled"; /* Reserved for the HSS */
210 mmuart1: serial@20100000 {
211 compatible = "ns16550a";
212 reg = <0x0 0x20100000 0x0 0x400>;
215 interrupt-parent = <&plic>;
217 current-speed = <115200>;
218 clocks = <&clkcfg CLK_MMUART1>;
222 mmuart2: serial@20102000 {
223 compatible = "ns16550a";
224 reg = <0x0 0x20102000 0x0 0x400>;
227 interrupt-parent = <&plic>;
229 current-speed = <115200>;
230 clocks = <&clkcfg CLK_MMUART2>;
234 mmuart3: serial@20104000 {
235 compatible = "ns16550a";
236 reg = <0x0 0x20104000 0x0 0x400>;
239 interrupt-parent = <&plic>;
241 current-speed = <115200>;
242 clocks = <&clkcfg CLK_MMUART3>;
246 mmuart4: serial@20106000 {
247 compatible = "ns16550a";
248 reg = <0x0 0x20106000 0x0 0x400>;
251 interrupt-parent = <&plic>;
253 clocks = <&clkcfg CLK_MMUART4>;
254 current-speed = <115200>;
258 /* Common node entry for emmc/sd */
260 compatible = "microchip,mpfs-sd4hc", "cdns,sd4hc";
261 reg = <0x0 0x20008000 0x0 0x1000>;
262 interrupt-parent = <&plic>;
264 clocks = <&clkcfg CLK_MMC>;
265 max-frequency = <200000000>;
270 compatible = "microchip,mpfs-spi";
271 #address-cells = <1>;
273 reg = <0x0 0x20108000 0x0 0x1000>;
274 interrupt-parent = <&plic>;
276 clocks = <&clkcfg CLK_SPI0>;
277 spi-max-frequency = <25000000>;
282 compatible = "microchip,mpfs-spi";
283 #address-cells = <1>;
285 reg = <0x0 0x20109000 0x0 0x1000>;
286 interrupt-parent = <&plic>;
288 clocks = <&clkcfg CLK_SPI1>;
289 spi-max-frequency = <25000000>;
294 compatible = "microchip,mpfs-qspi";
295 #address-cells = <1>;
297 reg = <0x0 0x21000000 0x0 0x1000>;
298 interrupt-parent = <&plic>;
300 clocks = <&clkcfg CLK_QSPI>;
301 spi-max-frequency = <25000000>;
306 compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
307 reg = <0x0 0x2010a000 0x0 0x1000>;
308 #address-cells = <1>;
310 interrupt-parent = <&plic>;
312 clocks = <&clkcfg CLK_I2C0>;
313 clock-frequency = <100000>;
318 compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
319 reg = <0x0 0x2010b000 0x0 0x1000>;
320 #address-cells = <1>;
322 interrupt-parent = <&plic>;
324 clocks = <&clkcfg CLK_I2C1>;
325 clock-frequency = <100000>;
329 mac0: ethernet@20110000 {
330 compatible = "cdns,macb";
331 reg = <0x0 0x20110000 0x0 0x2000>;
332 #address-cells = <1>;
334 interrupt-parent = <&plic>;
335 interrupts = <64>, <65>, <66>, <67>, <68>, <69>;
336 local-mac-address = [00 00 00 00 00 00];
337 clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>;
338 clock-names = "pclk", "hclk";
342 mac1: ethernet@20112000 {
343 compatible = "cdns,macb";
344 reg = <0x0 0x20112000 0x0 0x2000>;
345 #address-cells = <1>;
347 interrupt-parent = <&plic>;
348 interrupts = <70>, <71>, <72>, <73>, <74>, <75>;
349 local-mac-address = [00 00 00 00 00 00];
350 clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>;
351 clock-names = "pclk", "hclk";
355 gpio0: gpio@20120000 {
356 compatible = "microchip,mpfs-gpio";
357 reg = <0x0 0x20120000 0x0 0x1000>;
358 interrupt-parent = <&plic>;
359 interrupt-controller;
360 #interrupt-cells = <1>;
361 clocks = <&clkcfg CLK_GPIO0>;
367 gpio1: gpio@20121000 {
368 compatible = "microchip,mpfs-gpio";
369 reg = <000 0x20121000 0x0 0x1000>;
370 interrupt-parent = <&plic>;
371 interrupt-controller;
372 #interrupt-cells = <1>;
373 clocks = <&clkcfg CLK_GPIO1>;
379 gpio2: gpio@20122000 {
380 compatible = "microchip,mpfs-gpio";
381 reg = <0x0 0x20122000 0x0 0x1000>;
382 interrupt-parent = <&plic>;
383 interrupt-controller;
384 #interrupt-cells = <1>;
385 clocks = <&clkcfg CLK_GPIO2>;
392 compatible = "microchip,mpfs-rtc";
393 reg = <0x0 0x20124000 0x0 0x1000>;
394 interrupt-parent = <&plic>;
395 interrupts = <80>, <81>;
396 clocks = <&clkcfg CLK_RTC>;
402 compatible = "microchip,mpfs-musb";
403 reg = <0x0 0x20201000 0x0 0x1000>;
404 interrupt-parent = <&plic>;
405 interrupts = <86>, <87>;
406 clocks = <&clkcfg CLK_USB>;
407 interrupt-names = "dma","mc";
411 pcie: pcie@2000000000 {
412 compatible = "microchip,pcie-host-1.0";
413 #address-cells = <0x3>;
414 #interrupt-cells = <0x1>;
417 reg = <0x20 0x0 0x0 0x8000000>, <0x0 0x43000000 0x0 0x10000>;
418 reg-names = "cfg", "apb";
419 bus-range = <0x0 0x7f>;
420 interrupt-parent = <&plic>;
422 interrupt-map = <0 0 0 1 &pcie_intc 0>,
423 <0 0 0 2 &pcie_intc 1>,
424 <0 0 0 3 &pcie_intc 2>,
425 <0 0 0 4 &pcie_intc 3>;
426 interrupt-map-mask = <0 0 0 7>;
427 clocks = <&clkcfg CLK_FIC0>, <&clkcfg CLK_FIC1>, <&clkcfg CLK_FIC3>;
428 clock-names = "fic0", "fic1", "fic3";
429 ranges = <0x3000000 0x0 0x8000000 0x20 0x8000000 0x0 0x80000000>;
430 msi-parent = <&pcie>;
432 microchip,axi-m-atr0 = <0x10 0x0>;
434 pcie_intc: legacy-interrupt-controller {
435 #address-cells = <0>;
436 #interrupt-cells = <1>;
437 interrupt-controller;
441 mbox: mailbox@37020000 {
442 compatible = "microchip,mpfs-mailbox";
443 reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318C 0x0 0x40>;
444 interrupt-parent = <&plic>;
450 syscontroller: syscontroller {
451 compatible = "microchip,mpfs-sys-controller";