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 = "sifive,fu540-c000", "sifive,fu540", "simple-bus";
142 plic0: interrupt-controller@c000000 {
143 #interrupt-cells = <1>;
144 compatible = "sifive,plic-1.0.0";
145 reg = <0x0 0xc000000 0x0 0x4000000>;
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>;
155 prci: clock-controller@10000000 {
156 compatible = "sifive,fu540-c000-prci";
157 reg = <0x0 0x10000000 0x0 0x1000>;
158 clocks = <&hfclk>, <&rtcclk>;
161 uart0: serial@10010000 {
162 compatible = "sifive,fu540-c000-uart", "sifive,uart0";
163 reg = <0x0 0x10010000 0x0 0x1000>;
164 interrupt-parent = <&plic0>;
166 clocks = <&prci PRCI_CLK_TLCLK>;
170 compatible = "sifive,fu540-c000-pdma";
171 reg = <0x0 0x3000000 0x0 0x8000>;
172 interrupt-parent = <&plic0>;
173 interrupts = <23 24 25 26 27 28 29 30>;
176 uart1: serial@10011000 {
177 compatible = "sifive,fu540-c000-uart", "sifive,uart0";
178 reg = <0x0 0x10011000 0x0 0x1000>;
179 interrupt-parent = <&plic0>;
181 clocks = <&prci PRCI_CLK_TLCLK>;
185 compatible = "sifive,fu540-c000-i2c", "sifive,i2c0";
186 reg = <0x0 0x10030000 0x0 0x1000>;
187 interrupt-parent = <&plic0>;
189 clocks = <&prci PRCI_CLK_TLCLK>;
192 #address-cells = <1>;
196 qspi0: spi@10040000 {
197 compatible = "sifive,fu540-c000-spi", "sifive,spi0";
198 reg = <0x0 0x10040000 0x0 0x1000
199 0x0 0x20000000 0x0 0x10000000>;
200 interrupt-parent = <&plic0>;
202 clocks = <&prci PRCI_CLK_TLCLK>;
203 #address-cells = <1>;
207 qspi1: spi@10041000 {
208 compatible = "sifive,fu540-c000-spi", "sifive,spi0";
209 reg = <0x0 0x10041000 0x0 0x1000
210 0x0 0x30000000 0x0 0x10000000>;
211 interrupt-parent = <&plic0>;
213 clocks = <&prci PRCI_CLK_TLCLK>;
214 #address-cells = <1>;
218 qspi2: spi@10050000 {
219 compatible = "sifive,fu540-c000-spi", "sifive,spi0";
220 reg = <0x0 0x10050000 0x0 0x1000>;
221 interrupt-parent = <&plic0>;
223 clocks = <&prci PRCI_CLK_TLCLK>;
224 #address-cells = <1>;
228 eth0: ethernet@10090000 {
229 compatible = "sifive,fu540-c000-gem";
230 interrupt-parent = <&plic0>;
232 reg = <0x0 0x10090000 0x0 0x2000
233 0x0 0x100a0000 0x0 0x1000>;
234 local-mac-address = [00 00 00 00 00 00];
235 clock-names = "pclk", "hclk";
236 clocks = <&prci PRCI_CLK_GEMGXLPLL>,
237 <&prci PRCI_CLK_GEMGXLPLL>;
238 #address-cells = <1>;
243 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0";
244 reg = <0x0 0x10020000 0x0 0x1000>;
245 interrupt-parent = <&plic0>;
246 interrupts = <42 43 44 45>;
247 clocks = <&prci PRCI_CLK_TLCLK>;
252 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0";
253 reg = <0x0 0x10021000 0x0 0x1000>;
254 interrupt-parent = <&plic0>;
255 interrupts = <46 47 48 49>;
256 clocks = <&prci PRCI_CLK_TLCLK>;
260 l2cache: cache-controller@2010000 {
261 compatible = "sifive,fu540-c000-ccache", "cache";
262 cache-block-size = <64>;
265 cache-size = <2097152>;
267 interrupt-parent = <&plic0>;
268 interrupts = <1 2 3>;
269 reg = <0x0 0x2010000 0x0 0x1000>;
271 gpio: gpio@10060000 {
272 compatible = "sifive,fu540-c000-gpio", "sifive,gpio0";
273 interrupt-parent = <&plic0>;
274 interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>,
275 <14>, <15>, <16>, <17>, <18>, <19>, <20>,
277 reg = <0x0 0x10060000 0x0 0x1000>;
280 interrupt-controller;
281 #interrupt-cells = <2>;
282 clocks = <&prci PRCI_CLK_TLCLK>;