1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /* Copyright (c) 2018-2019 SiFive, Inc */
6 #include <dt-bindings/clock/sifive-fu540-prci.h>
11 compatible = "sifive,fu540-c000", "sifive,fu540";
26 compatible = "sifive,e51", "sifive,rocket0", "riscv";
28 i-cache-block-size = <64>;
30 i-cache-size = <16384>;
32 riscv,isa = "rv64imac";
34 cpu0_intc: interrupt-controller {
35 #interrupt-cells = <1>;
36 compatible = "riscv,cpu-intc";
41 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
42 d-cache-block-size = <64>;
44 d-cache-size = <32768>;
48 i-cache-block-size = <64>;
50 i-cache-size = <32768>;
53 mmu-type = "riscv,sv39";
55 riscv,isa = "rv64imafdc";
57 next-level-cache = <&l2cache>;
58 cpu1_intc: interrupt-controller {
59 #interrupt-cells = <1>;
60 compatible = "riscv,cpu-intc";
65 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
66 d-cache-block-size = <64>;
68 d-cache-size = <32768>;
72 i-cache-block-size = <64>;
74 i-cache-size = <32768>;
77 mmu-type = "riscv,sv39";
79 riscv,isa = "rv64imafdc";
81 next-level-cache = <&l2cache>;
82 cpu2_intc: interrupt-controller {
83 #interrupt-cells = <1>;
84 compatible = "riscv,cpu-intc";
89 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
90 d-cache-block-size = <64>;
92 d-cache-size = <32768>;
96 i-cache-block-size = <64>;
98 i-cache-size = <32768>;
101 mmu-type = "riscv,sv39";
103 riscv,isa = "rv64imafdc";
105 next-level-cache = <&l2cache>;
106 cpu3_intc: interrupt-controller {
107 #interrupt-cells = <1>;
108 compatible = "riscv,cpu-intc";
109 interrupt-controller;
113 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv";
114 d-cache-block-size = <64>;
116 d-cache-size = <32768>;
120 i-cache-block-size = <64>;
122 i-cache-size = <32768>;
125 mmu-type = "riscv,sv39";
127 riscv,isa = "rv64imafdc";
129 next-level-cache = <&l2cache>;
130 cpu4_intc: interrupt-controller {
131 #interrupt-cells = <1>;
132 compatible = "riscv,cpu-intc";
133 interrupt-controller;
138 #address-cells = <2>;
140 compatible = "simple-bus";
142 plic0: interrupt-controller@c000000 {
143 compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
144 reg = <0x0 0xc000000 0x0 0x4000000>;
145 #address-cells = <0>;
146 #interrupt-cells = <1>;
147 interrupt-controller;
148 interrupts-extended =
149 <&cpu0_intc 0xffffffff>,
150 <&cpu1_intc 0xffffffff>, <&cpu1_intc 9>,
151 <&cpu2_intc 0xffffffff>, <&cpu2_intc 9>,
152 <&cpu3_intc 0xffffffff>, <&cpu3_intc 9>,
153 <&cpu4_intc 0xffffffff>, <&cpu4_intc 9>;
156 prci: clock-controller@10000000 {
157 compatible = "sifive,fu540-c000-prci";
158 reg = <0x0 0x10000000 0x0 0x1000>;
159 clocks = <&hfclk>, <&rtcclk>;
162 uart0: serial@10010000 {
163 compatible = "sifive,fu540-c000-uart", "sifive,uart0";
164 reg = <0x0 0x10010000 0x0 0x1000>;
165 interrupt-parent = <&plic0>;
167 clocks = <&prci PRCI_CLK_TLCLK>;
171 compatible = "sifive,fu540-c000-pdma";
172 reg = <0x0 0x3000000 0x0 0x8000>;
173 interrupt-parent = <&plic0>;
174 interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>,
178 uart1: serial@10011000 {
179 compatible = "sifive,fu540-c000-uart", "sifive,uart0";
180 reg = <0x0 0x10011000 0x0 0x1000>;
181 interrupt-parent = <&plic0>;
183 clocks = <&prci PRCI_CLK_TLCLK>;
187 compatible = "sifive,fu540-c000-i2c", "sifive,i2c0";
188 reg = <0x0 0x10030000 0x0 0x1000>;
189 interrupt-parent = <&plic0>;
191 clocks = <&prci PRCI_CLK_TLCLK>;
194 #address-cells = <1>;
198 qspi0: spi@10040000 {
199 compatible = "sifive,fu540-c000-spi", "sifive,spi0";
200 reg = <0x0 0x10040000 0x0 0x1000>,
201 <0x0 0x20000000 0x0 0x10000000>;
202 interrupt-parent = <&plic0>;
204 clocks = <&prci PRCI_CLK_TLCLK>;
205 #address-cells = <1>;
209 qspi1: spi@10041000 {
210 compatible = "sifive,fu540-c000-spi", "sifive,spi0";
211 reg = <0x0 0x10041000 0x0 0x1000>,
212 <0x0 0x30000000 0x0 0x10000000>;
213 interrupt-parent = <&plic0>;
215 clocks = <&prci PRCI_CLK_TLCLK>;
216 #address-cells = <1>;
220 qspi2: spi@10050000 {
221 compatible = "sifive,fu540-c000-spi", "sifive,spi0";
222 reg = <0x0 0x10050000 0x0 0x1000>;
223 interrupt-parent = <&plic0>;
225 clocks = <&prci PRCI_CLK_TLCLK>;
226 #address-cells = <1>;
230 eth0: ethernet@10090000 {
231 compatible = "sifive,fu540-c000-gem";
232 interrupt-parent = <&plic0>;
234 reg = <0x0 0x10090000 0x0 0x2000>,
235 <0x0 0x100a0000 0x0 0x1000>;
236 local-mac-address = [00 00 00 00 00 00];
237 clock-names = "pclk", "hclk";
238 clocks = <&prci PRCI_CLK_GEMGXLPLL>,
239 <&prci PRCI_CLK_GEMGXLPLL>;
240 #address-cells = <1>;
245 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0";
246 reg = <0x0 0x10020000 0x0 0x1000>;
247 interrupt-parent = <&plic0>;
248 interrupts = <42>, <43>, <44>, <45>;
249 clocks = <&prci PRCI_CLK_TLCLK>;
254 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0";
255 reg = <0x0 0x10021000 0x0 0x1000>;
256 interrupt-parent = <&plic0>;
257 interrupts = <46>, <47>, <48>, <49>;
258 clocks = <&prci PRCI_CLK_TLCLK>;
262 l2cache: cache-controller@2010000 {
263 compatible = "sifive,fu540-c000-ccache", "cache";
264 cache-block-size = <64>;
267 cache-size = <2097152>;
269 interrupt-parent = <&plic0>;
270 interrupts = <1>, <2>, <3>;
271 reg = <0x0 0x2010000 0x0 0x1000>;
273 gpio: gpio@10060000 {
274 compatible = "sifive,fu540-c000-gpio", "sifive,gpio0";
275 interrupt-parent = <&plic0>;
276 interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>,
277 <14>, <15>, <16>, <17>, <18>, <19>, <20>,
279 reg = <0x0 0x10060000 0x0 0x1000>;
282 interrupt-controller;
283 #interrupt-cells = <2>;
284 clocks = <&prci PRCI_CLK_TLCLK>;