1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* Copyright (c) 2018-2019 SiFive, Inc */ 3 4/dts-v1/; 5 6#include <dt-bindings/clock/sifive-fu540-prci.h> 7 8/ { 9 #address-cells = <2>; 10 #size-cells = <2>; 11 compatible = "sifive,fu540-c000", "sifive,fu540"; 12 13 aliases { 14 serial0 = &uart0; 15 serial1 = &uart1; 16 ethernet0 = ð0; 17 }; 18 19 chosen { 20 }; 21 22 cpus { 23 #address-cells = <1>; 24 #size-cells = <0>; 25 cpu0: cpu@0 { 26 compatible = "sifive,e51", "sifive,rocket0", "riscv"; 27 device_type = "cpu"; 28 i-cache-block-size = <64>; 29 i-cache-sets = <128>; 30 i-cache-size = <16384>; 31 reg = <0>; 32 riscv,isa = "rv64imac"; 33 status = "disabled"; 34 cpu0_intc: interrupt-controller { 35 #interrupt-cells = <1>; 36 compatible = "riscv,cpu-intc"; 37 interrupt-controller; 38 }; 39 }; 40 cpu1: cpu@1 { 41 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 42 d-cache-block-size = <64>; 43 d-cache-sets = <64>; 44 d-cache-size = <32768>; 45 d-tlb-sets = <1>; 46 d-tlb-size = <32>; 47 device_type = "cpu"; 48 i-cache-block-size = <64>; 49 i-cache-sets = <64>; 50 i-cache-size = <32768>; 51 i-tlb-sets = <1>; 52 i-tlb-size = <32>; 53 mmu-type = "riscv,sv39"; 54 reg = <1>; 55 riscv,isa = "rv64imafdc"; 56 tlb-split; 57 cpu1_intc: interrupt-controller { 58 #interrupt-cells = <1>; 59 compatible = "riscv,cpu-intc"; 60 interrupt-controller; 61 }; 62 }; 63 cpu2: cpu@2 { 64 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 65 d-cache-block-size = <64>; 66 d-cache-sets = <64>; 67 d-cache-size = <32768>; 68 d-tlb-sets = <1>; 69 d-tlb-size = <32>; 70 device_type = "cpu"; 71 i-cache-block-size = <64>; 72 i-cache-sets = <64>; 73 i-cache-size = <32768>; 74 i-tlb-sets = <1>; 75 i-tlb-size = <32>; 76 mmu-type = "riscv,sv39"; 77 reg = <2>; 78 riscv,isa = "rv64imafdc"; 79 tlb-split; 80 cpu2_intc: interrupt-controller { 81 #interrupt-cells = <1>; 82 compatible = "riscv,cpu-intc"; 83 interrupt-controller; 84 }; 85 }; 86 cpu3: cpu@3 { 87 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 88 d-cache-block-size = <64>; 89 d-cache-sets = <64>; 90 d-cache-size = <32768>; 91 d-tlb-sets = <1>; 92 d-tlb-size = <32>; 93 device_type = "cpu"; 94 i-cache-block-size = <64>; 95 i-cache-sets = <64>; 96 i-cache-size = <32768>; 97 i-tlb-sets = <1>; 98 i-tlb-size = <32>; 99 mmu-type = "riscv,sv39"; 100 reg = <3>; 101 riscv,isa = "rv64imafdc"; 102 tlb-split; 103 cpu3_intc: interrupt-controller { 104 #interrupt-cells = <1>; 105 compatible = "riscv,cpu-intc"; 106 interrupt-controller; 107 }; 108 }; 109 cpu4: cpu@4 { 110 compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 111 d-cache-block-size = <64>; 112 d-cache-sets = <64>; 113 d-cache-size = <32768>; 114 d-tlb-sets = <1>; 115 d-tlb-size = <32>; 116 device_type = "cpu"; 117 i-cache-block-size = <64>; 118 i-cache-sets = <64>; 119 i-cache-size = <32768>; 120 i-tlb-sets = <1>; 121 i-tlb-size = <32>; 122 mmu-type = "riscv,sv39"; 123 reg = <4>; 124 riscv,isa = "rv64imafdc"; 125 tlb-split; 126 cpu4_intc: interrupt-controller { 127 #interrupt-cells = <1>; 128 compatible = "riscv,cpu-intc"; 129 interrupt-controller; 130 }; 131 }; 132 }; 133 soc { 134 #address-cells = <2>; 135 #size-cells = <2>; 136 compatible = "sifive,fu540-c000", "sifive,fu540", "simple-bus"; 137 ranges; 138 plic0: interrupt-controller@c000000 { 139 #interrupt-cells = <1>; 140 compatible = "sifive,plic-1.0.0"; 141 reg = <0x0 0xc000000 0x0 0x4000000>; 142 riscv,ndev = <53>; 143 interrupt-controller; 144 interrupts-extended = < 145 &cpu0_intc 0xffffffff 146 &cpu1_intc 0xffffffff &cpu1_intc 9 147 &cpu2_intc 0xffffffff &cpu2_intc 9 148 &cpu3_intc 0xffffffff &cpu3_intc 9 149 &cpu4_intc 0xffffffff &cpu4_intc 9>; 150 }; 151 prci: clock-controller@10000000 { 152 compatible = "sifive,fu540-c000-prci"; 153 reg = <0x0 0x10000000 0x0 0x1000>; 154 clocks = <&hfclk>, <&rtcclk>; 155 #clock-cells = <1>; 156 }; 157 uart0: serial@10010000 { 158 compatible = "sifive,fu540-c000-uart", "sifive,uart0"; 159 reg = <0x0 0x10010000 0x0 0x1000>; 160 interrupt-parent = <&plic0>; 161 interrupts = <4>; 162 clocks = <&prci PRCI_CLK_TLCLK>; 163 status = "disabled"; 164 }; 165 dma: dma@3000000 { 166 compatible = "sifive,fu540-c000-pdma"; 167 reg = <0x0 0x3000000 0x0 0x8000>; 168 interrupt-parent = <&plic0>; 169 interrupts = <23 24 25 26 27 28 29 30>; 170 #dma-cells = <1>; 171 }; 172 uart1: serial@10011000 { 173 compatible = "sifive,fu540-c000-uart", "sifive,uart0"; 174 reg = <0x0 0x10011000 0x0 0x1000>; 175 interrupt-parent = <&plic0>; 176 interrupts = <5>; 177 clocks = <&prci PRCI_CLK_TLCLK>; 178 status = "disabled"; 179 }; 180 i2c0: i2c@10030000 { 181 compatible = "sifive,fu540-c000-i2c", "sifive,i2c0"; 182 reg = <0x0 0x10030000 0x0 0x1000>; 183 interrupt-parent = <&plic0>; 184 interrupts = <50>; 185 clocks = <&prci PRCI_CLK_TLCLK>; 186 reg-shift = <2>; 187 reg-io-width = <1>; 188 #address-cells = <1>; 189 #size-cells = <0>; 190 status = "disabled"; 191 }; 192 qspi0: spi@10040000 { 193 compatible = "sifive,fu540-c000-spi", "sifive,spi0"; 194 reg = <0x0 0x10040000 0x0 0x1000 195 0x0 0x20000000 0x0 0x10000000>; 196 interrupt-parent = <&plic0>; 197 interrupts = <51>; 198 clocks = <&prci PRCI_CLK_TLCLK>; 199 #address-cells = <1>; 200 #size-cells = <0>; 201 status = "disabled"; 202 }; 203 qspi1: spi@10041000 { 204 compatible = "sifive,fu540-c000-spi", "sifive,spi0"; 205 reg = <0x0 0x10041000 0x0 0x1000 206 0x0 0x30000000 0x0 0x10000000>; 207 interrupt-parent = <&plic0>; 208 interrupts = <52>; 209 clocks = <&prci PRCI_CLK_TLCLK>; 210 #address-cells = <1>; 211 #size-cells = <0>; 212 status = "disabled"; 213 }; 214 qspi2: spi@10050000 { 215 compatible = "sifive,fu540-c000-spi", "sifive,spi0"; 216 reg = <0x0 0x10050000 0x0 0x1000>; 217 interrupt-parent = <&plic0>; 218 interrupts = <6>; 219 clocks = <&prci PRCI_CLK_TLCLK>; 220 #address-cells = <1>; 221 #size-cells = <0>; 222 status = "disabled"; 223 }; 224 eth0: ethernet@10090000 { 225 compatible = "sifive,fu540-c000-gem"; 226 interrupt-parent = <&plic0>; 227 interrupts = <53>; 228 reg = <0x0 0x10090000 0x0 0x2000 229 0x0 0x100a0000 0x0 0x1000>; 230 local-mac-address = [00 00 00 00 00 00]; 231 clock-names = "pclk", "hclk"; 232 clocks = <&prci PRCI_CLK_GEMGXLPLL>, 233 <&prci PRCI_CLK_GEMGXLPLL>; 234 #address-cells = <1>; 235 #size-cells = <0>; 236 status = "disabled"; 237 }; 238 pwm0: pwm@10020000 { 239 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; 240 reg = <0x0 0x10020000 0x0 0x1000>; 241 interrupt-parent = <&plic0>; 242 interrupts = <42 43 44 45>; 243 clocks = <&prci PRCI_CLK_TLCLK>; 244 #pwm-cells = <3>; 245 status = "disabled"; 246 }; 247 pwm1: pwm@10021000 { 248 compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; 249 reg = <0x0 0x10021000 0x0 0x1000>; 250 interrupt-parent = <&plic0>; 251 interrupts = <46 47 48 49>; 252 clocks = <&prci PRCI_CLK_TLCLK>; 253 #pwm-cells = <3>; 254 status = "disabled"; 255 }; 256 257 }; 258}; 259