172296bdeSPaul Walmsley// SPDX-License-Identifier: (GPL-2.0 OR MIT) 272296bdeSPaul Walmsley/* Copyright (c) 2018-2019 SiFive, Inc */ 372296bdeSPaul Walmsley 472296bdeSPaul Walmsley/dts-v1/; 572296bdeSPaul Walmsley 672296bdeSPaul Walmsley#include <dt-bindings/clock/sifive-fu540-prci.h> 772296bdeSPaul Walmsley 872296bdeSPaul Walmsley/ { 972296bdeSPaul Walmsley #address-cells = <2>; 1072296bdeSPaul Walmsley #size-cells = <2>; 1172296bdeSPaul Walmsley compatible = "sifive,fu540-c000", "sifive,fu540"; 1272296bdeSPaul Walmsley 1372296bdeSPaul Walmsley aliases { 1472296bdeSPaul Walmsley serial0 = &uart0; 1572296bdeSPaul Walmsley serial1 = &uart1; 163bcca2a5SBin Meng ethernet0 = ð0; 1772296bdeSPaul Walmsley }; 1872296bdeSPaul Walmsley 1972296bdeSPaul Walmsley chosen { 2072296bdeSPaul Walmsley }; 2172296bdeSPaul Walmsley 2272296bdeSPaul Walmsley cpus { 2372296bdeSPaul Walmsley #address-cells = <1>; 2472296bdeSPaul Walmsley #size-cells = <0>; 2572296bdeSPaul Walmsley cpu0: cpu@0 { 2672296bdeSPaul Walmsley compatible = "sifive,e51", "sifive,rocket0", "riscv"; 2772296bdeSPaul Walmsley device_type = "cpu"; 2872296bdeSPaul Walmsley i-cache-block-size = <64>; 2972296bdeSPaul Walmsley i-cache-sets = <128>; 3072296bdeSPaul Walmsley i-cache-size = <16384>; 3172296bdeSPaul Walmsley reg = <0>; 3272296bdeSPaul Walmsley riscv,isa = "rv64imac"; 3372296bdeSPaul Walmsley status = "disabled"; 3472296bdeSPaul Walmsley cpu0_intc: interrupt-controller { 3572296bdeSPaul Walmsley #interrupt-cells = <1>; 3672296bdeSPaul Walmsley compatible = "riscv,cpu-intc"; 3772296bdeSPaul Walmsley interrupt-controller; 3872296bdeSPaul Walmsley }; 3972296bdeSPaul Walmsley }; 4072296bdeSPaul Walmsley cpu1: cpu@1 { 4172296bdeSPaul Walmsley compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 4272296bdeSPaul Walmsley d-cache-block-size = <64>; 4372296bdeSPaul Walmsley d-cache-sets = <64>; 4472296bdeSPaul Walmsley d-cache-size = <32768>; 4572296bdeSPaul Walmsley d-tlb-sets = <1>; 4672296bdeSPaul Walmsley d-tlb-size = <32>; 4772296bdeSPaul Walmsley device_type = "cpu"; 4872296bdeSPaul Walmsley i-cache-block-size = <64>; 4972296bdeSPaul Walmsley i-cache-sets = <64>; 5072296bdeSPaul Walmsley i-cache-size = <32768>; 5172296bdeSPaul Walmsley i-tlb-sets = <1>; 5272296bdeSPaul Walmsley i-tlb-size = <32>; 5372296bdeSPaul Walmsley mmu-type = "riscv,sv39"; 5472296bdeSPaul Walmsley reg = <1>; 5572296bdeSPaul Walmsley riscv,isa = "rv64imafdc"; 5672296bdeSPaul Walmsley tlb-split; 57cfda8617SYash Shah next-level-cache = <&l2cache>; 5872296bdeSPaul Walmsley cpu1_intc: interrupt-controller { 5972296bdeSPaul Walmsley #interrupt-cells = <1>; 6072296bdeSPaul Walmsley compatible = "riscv,cpu-intc"; 6172296bdeSPaul Walmsley interrupt-controller; 6272296bdeSPaul Walmsley }; 6372296bdeSPaul Walmsley }; 6472296bdeSPaul Walmsley cpu2: cpu@2 { 6572296bdeSPaul Walmsley compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 6672296bdeSPaul Walmsley d-cache-block-size = <64>; 6772296bdeSPaul Walmsley d-cache-sets = <64>; 6872296bdeSPaul Walmsley d-cache-size = <32768>; 6972296bdeSPaul Walmsley d-tlb-sets = <1>; 7072296bdeSPaul Walmsley d-tlb-size = <32>; 7172296bdeSPaul Walmsley device_type = "cpu"; 7272296bdeSPaul Walmsley i-cache-block-size = <64>; 7372296bdeSPaul Walmsley i-cache-sets = <64>; 7472296bdeSPaul Walmsley i-cache-size = <32768>; 7572296bdeSPaul Walmsley i-tlb-sets = <1>; 7672296bdeSPaul Walmsley i-tlb-size = <32>; 7772296bdeSPaul Walmsley mmu-type = "riscv,sv39"; 7872296bdeSPaul Walmsley reg = <2>; 7972296bdeSPaul Walmsley riscv,isa = "rv64imafdc"; 8072296bdeSPaul Walmsley tlb-split; 81cfda8617SYash Shah next-level-cache = <&l2cache>; 8272296bdeSPaul Walmsley cpu2_intc: interrupt-controller { 8372296bdeSPaul Walmsley #interrupt-cells = <1>; 8472296bdeSPaul Walmsley compatible = "riscv,cpu-intc"; 8572296bdeSPaul Walmsley interrupt-controller; 8672296bdeSPaul Walmsley }; 8772296bdeSPaul Walmsley }; 8872296bdeSPaul Walmsley cpu3: cpu@3 { 8972296bdeSPaul Walmsley compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 9072296bdeSPaul Walmsley d-cache-block-size = <64>; 9172296bdeSPaul Walmsley d-cache-sets = <64>; 9272296bdeSPaul Walmsley d-cache-size = <32768>; 9372296bdeSPaul Walmsley d-tlb-sets = <1>; 9472296bdeSPaul Walmsley d-tlb-size = <32>; 9572296bdeSPaul Walmsley device_type = "cpu"; 9672296bdeSPaul Walmsley i-cache-block-size = <64>; 9772296bdeSPaul Walmsley i-cache-sets = <64>; 9872296bdeSPaul Walmsley i-cache-size = <32768>; 9972296bdeSPaul Walmsley i-tlb-sets = <1>; 10072296bdeSPaul Walmsley i-tlb-size = <32>; 10172296bdeSPaul Walmsley mmu-type = "riscv,sv39"; 10272296bdeSPaul Walmsley reg = <3>; 10372296bdeSPaul Walmsley riscv,isa = "rv64imafdc"; 10472296bdeSPaul Walmsley tlb-split; 105cfda8617SYash Shah next-level-cache = <&l2cache>; 10672296bdeSPaul Walmsley cpu3_intc: interrupt-controller { 10772296bdeSPaul Walmsley #interrupt-cells = <1>; 10872296bdeSPaul Walmsley compatible = "riscv,cpu-intc"; 10972296bdeSPaul Walmsley interrupt-controller; 11072296bdeSPaul Walmsley }; 11172296bdeSPaul Walmsley }; 11272296bdeSPaul Walmsley cpu4: cpu@4 { 11372296bdeSPaul Walmsley compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; 11472296bdeSPaul Walmsley d-cache-block-size = <64>; 11572296bdeSPaul Walmsley d-cache-sets = <64>; 11672296bdeSPaul Walmsley d-cache-size = <32768>; 11772296bdeSPaul Walmsley d-tlb-sets = <1>; 11872296bdeSPaul Walmsley d-tlb-size = <32>; 11972296bdeSPaul Walmsley device_type = "cpu"; 12072296bdeSPaul Walmsley i-cache-block-size = <64>; 12172296bdeSPaul Walmsley i-cache-sets = <64>; 12272296bdeSPaul Walmsley i-cache-size = <32768>; 12372296bdeSPaul Walmsley i-tlb-sets = <1>; 12472296bdeSPaul Walmsley i-tlb-size = <32>; 12572296bdeSPaul Walmsley mmu-type = "riscv,sv39"; 12672296bdeSPaul Walmsley reg = <4>; 12772296bdeSPaul Walmsley riscv,isa = "rv64imafdc"; 12872296bdeSPaul Walmsley tlb-split; 129cfda8617SYash Shah next-level-cache = <&l2cache>; 13072296bdeSPaul Walmsley cpu4_intc: interrupt-controller { 13172296bdeSPaul Walmsley #interrupt-cells = <1>; 13272296bdeSPaul Walmsley compatible = "riscv,cpu-intc"; 13372296bdeSPaul Walmsley interrupt-controller; 13472296bdeSPaul Walmsley }; 13572296bdeSPaul Walmsley }; 136*af8f260aSConor Dooley 137*af8f260aSConor Dooley cpu-map { 138*af8f260aSConor Dooley cluster0 { 139*af8f260aSConor Dooley core0 { 140*af8f260aSConor Dooley cpu = <&cpu0>; 141*af8f260aSConor Dooley }; 142*af8f260aSConor Dooley 143*af8f260aSConor Dooley core1 { 144*af8f260aSConor Dooley cpu = <&cpu1>; 145*af8f260aSConor Dooley }; 146*af8f260aSConor Dooley 147*af8f260aSConor Dooley core2 { 148*af8f260aSConor Dooley cpu = <&cpu2>; 149*af8f260aSConor Dooley }; 150*af8f260aSConor Dooley 151*af8f260aSConor Dooley core3 { 152*af8f260aSConor Dooley cpu = <&cpu3>; 153*af8f260aSConor Dooley }; 154*af8f260aSConor Dooley 155*af8f260aSConor Dooley core4 { 156*af8f260aSConor Dooley cpu = <&cpu4>; 157*af8f260aSConor Dooley }; 158*af8f260aSConor Dooley }; 159*af8f260aSConor Dooley }; 16072296bdeSPaul Walmsley }; 16172296bdeSPaul Walmsley soc { 16272296bdeSPaul Walmsley #address-cells = <2>; 16372296bdeSPaul Walmsley #size-cells = <2>; 1648fc6e62aSGeert Uytterhoeven compatible = "simple-bus"; 16572296bdeSPaul Walmsley ranges; 16672296bdeSPaul Walmsley plic0: interrupt-controller@c000000 { 1679962a066SKrzysztof Kozlowski compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0"; 16872296bdeSPaul Walmsley reg = <0x0 0xc000000 0x0 0x4000000>; 169893eae9aSGeert Uytterhoeven #address-cells = <0>; 170893eae9aSGeert Uytterhoeven #interrupt-cells = <1>; 17172296bdeSPaul Walmsley interrupt-controller; 172cc79be0eSGeert Uytterhoeven interrupts-extended = 173cc79be0eSGeert Uytterhoeven <&cpu0_intc 0xffffffff>, 174cc79be0eSGeert Uytterhoeven <&cpu1_intc 0xffffffff>, <&cpu1_intc 9>, 175cc79be0eSGeert Uytterhoeven <&cpu2_intc 0xffffffff>, <&cpu2_intc 9>, 176cc79be0eSGeert Uytterhoeven <&cpu3_intc 0xffffffff>, <&cpu3_intc 9>, 177cc79be0eSGeert Uytterhoeven <&cpu4_intc 0xffffffff>, <&cpu4_intc 9>; 178893eae9aSGeert Uytterhoeven riscv,ndev = <53>; 17972296bdeSPaul Walmsley }; 18072296bdeSPaul Walmsley prci: clock-controller@10000000 { 18172296bdeSPaul Walmsley compatible = "sifive,fu540-c000-prci"; 18272296bdeSPaul Walmsley reg = <0x0 0x10000000 0x0 0x1000>; 18372296bdeSPaul Walmsley clocks = <&hfclk>, <&rtcclk>; 18472296bdeSPaul Walmsley #clock-cells = <1>; 18572296bdeSPaul Walmsley }; 18672296bdeSPaul Walmsley uart0: serial@10010000 { 18772296bdeSPaul Walmsley compatible = "sifive,fu540-c000-uart", "sifive,uart0"; 18872296bdeSPaul Walmsley reg = <0x0 0x10010000 0x0 0x1000>; 18972296bdeSPaul Walmsley interrupt-parent = <&plic0>; 19072296bdeSPaul Walmsley interrupts = <4>; 191990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 19245b03df2SYash Shah status = "disabled"; 19372296bdeSPaul Walmsley }; 194d26eee72SZong Li dma: dma-controller@3000000 { 1956f6fa9ceSZong Li compatible = "sifive,fu540-c000-pdma", "sifive,pdma0"; 196c5ab54e9SGreen Wan reg = <0x0 0x3000000 0x0 0x8000>; 197c5ab54e9SGreen Wan interrupt-parent = <&plic0>; 198cc79be0eSGeert Uytterhoeven interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, 199cc79be0eSGeert Uytterhoeven <30>; 2006f6fa9ceSZong Li dma-channels = <4>; 201c5ab54e9SGreen Wan #dma-cells = <1>; 202c5ab54e9SGreen Wan }; 20372296bdeSPaul Walmsley uart1: serial@10011000 { 20472296bdeSPaul Walmsley compatible = "sifive,fu540-c000-uart", "sifive,uart0"; 20572296bdeSPaul Walmsley reg = <0x0 0x10011000 0x0 0x1000>; 20672296bdeSPaul Walmsley interrupt-parent = <&plic0>; 20772296bdeSPaul Walmsley interrupts = <5>; 208990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 20945b03df2SYash Shah status = "disabled"; 21072296bdeSPaul Walmsley }; 21172296bdeSPaul Walmsley i2c0: i2c@10030000 { 21272296bdeSPaul Walmsley compatible = "sifive,fu540-c000-i2c", "sifive,i2c0"; 21372296bdeSPaul Walmsley reg = <0x0 0x10030000 0x0 0x1000>; 21472296bdeSPaul Walmsley interrupt-parent = <&plic0>; 21572296bdeSPaul Walmsley interrupts = <50>; 216990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 21772296bdeSPaul Walmsley reg-shift = <2>; 21872296bdeSPaul Walmsley reg-io-width = <1>; 21972296bdeSPaul Walmsley #address-cells = <1>; 22072296bdeSPaul Walmsley #size-cells = <0>; 22145b03df2SYash Shah status = "disabled"; 22272296bdeSPaul Walmsley }; 22372296bdeSPaul Walmsley qspi0: spi@10040000 { 22472296bdeSPaul Walmsley compatible = "sifive,fu540-c000-spi", "sifive,spi0"; 2258e9b1c95SGeert Uytterhoeven reg = <0x0 0x10040000 0x0 0x1000>, 2268e9b1c95SGeert Uytterhoeven <0x0 0x20000000 0x0 0x10000000>; 22772296bdeSPaul Walmsley interrupt-parent = <&plic0>; 22872296bdeSPaul Walmsley interrupts = <51>; 229990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 23072296bdeSPaul Walmsley #address-cells = <1>; 23172296bdeSPaul Walmsley #size-cells = <0>; 23245b03df2SYash Shah status = "disabled"; 23372296bdeSPaul Walmsley }; 23472296bdeSPaul Walmsley qspi1: spi@10041000 { 23572296bdeSPaul Walmsley compatible = "sifive,fu540-c000-spi", "sifive,spi0"; 2368e9b1c95SGeert Uytterhoeven reg = <0x0 0x10041000 0x0 0x1000>, 2378e9b1c95SGeert Uytterhoeven <0x0 0x30000000 0x0 0x10000000>; 23872296bdeSPaul Walmsley interrupt-parent = <&plic0>; 23972296bdeSPaul Walmsley interrupts = <52>; 240990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 24172296bdeSPaul Walmsley #address-cells = <1>; 24272296bdeSPaul Walmsley #size-cells = <0>; 24345b03df2SYash Shah status = "disabled"; 24472296bdeSPaul Walmsley }; 24572296bdeSPaul Walmsley qspi2: spi@10050000 { 24672296bdeSPaul Walmsley compatible = "sifive,fu540-c000-spi", "sifive,spi0"; 24772296bdeSPaul Walmsley reg = <0x0 0x10050000 0x0 0x1000>; 24872296bdeSPaul Walmsley interrupt-parent = <&plic0>; 24972296bdeSPaul Walmsley interrupts = <6>; 250990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 25172296bdeSPaul Walmsley #address-cells = <1>; 25272296bdeSPaul Walmsley #size-cells = <0>; 25345b03df2SYash Shah status = "disabled"; 25472296bdeSPaul Walmsley }; 25526091eefSYash Shah eth0: ethernet@10090000 { 25626091eefSYash Shah compatible = "sifive,fu540-c000-gem"; 25726091eefSYash Shah interrupt-parent = <&plic0>; 25826091eefSYash Shah interrupts = <53>; 2598e9b1c95SGeert Uytterhoeven reg = <0x0 0x10090000 0x0 0x2000>, 2608e9b1c95SGeert Uytterhoeven <0x0 0x100a0000 0x0 0x1000>; 26126091eefSYash Shah local-mac-address = [00 00 00 00 00 00]; 26226091eefSYash Shah clock-names = "pclk", "hclk"; 263990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_GEMGXLPLL>, 264990d627fSZong Li <&prci FU540_PRCI_CLK_GEMGXLPLL>; 26526091eefSYash Shah #address-cells = <1>; 26626091eefSYash Shah #size-cells = <0>; 26726091eefSYash Shah status = "disabled"; 26826091eefSYash Shah }; 269b45e0c30SYash Shah pwm0: pwm@10020000 { 270b45e0c30SYash Shah compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; 271b45e0c30SYash Shah reg = <0x0 0x10020000 0x0 0x1000>; 272b45e0c30SYash Shah interrupt-parent = <&plic0>; 273cc79be0eSGeert Uytterhoeven interrupts = <42>, <43>, <44>, <45>; 274990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 275b45e0c30SYash Shah #pwm-cells = <3>; 276b45e0c30SYash Shah status = "disabled"; 277b45e0c30SYash Shah }; 278b45e0c30SYash Shah pwm1: pwm@10021000 { 279b45e0c30SYash Shah compatible = "sifive,fu540-c000-pwm", "sifive,pwm0"; 280b45e0c30SYash Shah reg = <0x0 0x10021000 0x0 0x1000>; 281b45e0c30SYash Shah interrupt-parent = <&plic0>; 282cc79be0eSGeert Uytterhoeven interrupts = <46>, <47>, <48>, <49>; 283990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 284b45e0c30SYash Shah #pwm-cells = <3>; 285b45e0c30SYash Shah status = "disabled"; 286b45e0c30SYash Shah }; 287cfda8617SYash Shah l2cache: cache-controller@2010000 { 288cfda8617SYash Shah compatible = "sifive,fu540-c000-ccache", "cache"; 289cfda8617SYash Shah cache-block-size = <64>; 290cfda8617SYash Shah cache-level = <2>; 291cfda8617SYash Shah cache-sets = <1024>; 292cfda8617SYash Shah cache-size = <2097152>; 293cfda8617SYash Shah cache-unified; 294cfda8617SYash Shah interrupt-parent = <&plic0>; 295cc79be0eSGeert Uytterhoeven interrupts = <1>, <2>, <3>; 296cfda8617SYash Shah reg = <0x0 0x2010000 0x0 0x1000>; 297cfda8617SYash Shah }; 29861ffb9d2SYash Shah gpio: gpio@10060000 { 29961ffb9d2SYash Shah compatible = "sifive,fu540-c000-gpio", "sifive,gpio0"; 30061ffb9d2SYash Shah interrupt-parent = <&plic0>; 30161ffb9d2SYash Shah interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, 30261ffb9d2SYash Shah <14>, <15>, <16>, <17>, <18>, <19>, <20>, 30361ffb9d2SYash Shah <21>, <22>; 30461ffb9d2SYash Shah reg = <0x0 0x10060000 0x0 0x1000>; 30561ffb9d2SYash Shah gpio-controller; 30661ffb9d2SYash Shah #gpio-cells = <2>; 30761ffb9d2SYash Shah interrupt-controller; 30861ffb9d2SYash Shah #interrupt-cells = <2>; 309990d627fSZong Li clocks = <&prci FU540_PRCI_CLK_TLCLK>; 31061ffb9d2SYash Shah status = "disabled"; 31161ffb9d2SYash Shah }; 31272296bdeSPaul Walmsley }; 31372296bdeSPaul Walmsley}; 314