-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
218 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
/dts-v1/; | ||
|
||
/ { | ||
#address-cells = <0x02>; | ||
#size-cells = <0x02>; | ||
compatible = "riscv-virtio"; | ||
model = "riscv-virtio,qemu"; | ||
|
||
flash@20000000 { | ||
bank-width = <0x04>; | ||
reg = <0x00 0x20000000 0x00 0x2000000 0x00 0x22000000 0x00 0x2000000>; | ||
compatible = "cfi-flash"; | ||
}; | ||
|
||
chosen { | ||
bootargs = [00]; | ||
stdout-path = "/uart@10000000"; | ||
}; | ||
|
||
uart@10000000 { | ||
interrupts = <0x0a>; | ||
interrupt-parent = <0x03>; | ||
clock-frequency = <0x384000>; | ||
reg = <0x00 0x10000000 0x00 0x100>; | ||
compatible = "ns16550a"; | ||
}; | ||
|
||
test@100000 { | ||
reg = <0x00 0x100000 0x00 0x1000>; | ||
compatible = "sifive,test1\0sifive,test0"; | ||
}; | ||
|
||
virtio_mmio@10008000 { | ||
interrupts = <0x08>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10008000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10007000 { | ||
interrupts = <0x07>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10007000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10006000 { | ||
interrupts = <0x06>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10006000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10005000 { | ||
interrupts = <0x05>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10005000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10004000 { | ||
interrupts = <0x04>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10004000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10003000 { | ||
interrupts = <0x03>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10003000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10002000 { | ||
interrupts = <0x02>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10002000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
virtio_mmio@10001000 { | ||
interrupts = <0x01>; | ||
interrupt-parent = <0x03>; | ||
reg = <0x00 0x10001000 0x00 0x1000>; | ||
compatible = "virtio,mmio"; | ||
}; | ||
|
||
cpus { | ||
#address-cells = <0x01>; | ||
#size-cells = <0x00>; | ||
timebase-frequency = <0x989680>; | ||
|
||
cpu-map { | ||
|
||
cluster0 { | ||
|
||
core0 { | ||
cpu = <0x01>; | ||
}; | ||
}; | ||
}; | ||
|
||
cpu@0 { | ||
phandle = <0x01>; | ||
device_type = "cpu"; | ||
reg = <0x00>; | ||
status = "okay"; | ||
compatible = "riscv"; | ||
riscv,isa = "rv64imafdcsu"; | ||
mmu-type = "riscv,sv48"; | ||
|
||
interrupt-controller { | ||
#interrupt-cells = <0x01>; | ||
interrupt-controller; | ||
compatible = "riscv,cpu-intc"; | ||
phandle = <0x02>; | ||
}; | ||
}; | ||
}; | ||
|
||
memory@80000000 { | ||
device_type = "memory"; | ||
reg = <0x00 0x80000000 0x00 0x8000000>; | ||
}; | ||
|
||
soc { | ||
#address-cells = <0x02>; | ||
#size-cells = <0x02>; | ||
compatible = "simple-bus"; | ||
ranges; | ||
|
||
pci@30000000 { | ||
interrupt-map-mask = <0x1800 0x00 0x00 0x07>; | ||
interrupt-map = <0x00 0x00 0x00 0x01 0x03 0x20 0x00 0x00 0x00 0x02 0x03 0x21 0x00 0x00 0x00 0x03 0x03 0x22 0x00 0x00 0x00 0x04 0x03 0x23 0x800 0x00 0x00 0x01 0x03 0x21 0x800 0x00 0x00 0x02 0x03 0x22 0x800 0x00 0x00 0x03 0x03 0x23 0x800 0x00 0x00 0x04 0x03 0x20 0x1000 0x00 0x00 0x01 0x03 0x22 0x1000 0x00 0x00 0x02 0x03 0x23 0x1000 0x00 0x00 0x03 0x03 0x20 0x1000 0x00 0x00 0x04 0x03 0x21 0x1800 0x00 0x00 0x01 0x03 0x23 0x1800 0x00 0x00 0x02 0x03 0x20 0x1800 0x00 0x00 0x03 0x03 0x21 0x1800 0x00 0x00 0x04 0x03 0x22>; | ||
ranges = <0x1000000 0x00 0x00 0x00 0x3000000 0x00 0x10000 0x2000000 0x00 0x40000000 0x00 0x40000000 0x00 0x40000000>; | ||
reg = <0x00 0x30000000 0x00 0x10000000>; | ||
dma-coherent; | ||
bus-range = <0x00 0xff>; | ||
linux,pci-domain = <0x00>; | ||
device_type = "pci"; | ||
compatible = "pci-host-ecam-generic"; | ||
#size-cells = <0x02>; | ||
#interrupt-cells = <0x01>; | ||
#address-cells = <0x03>; | ||
}; | ||
|
||
interrupt-controller@c000000 { | ||
phandle = <0x03>; | ||
riscv,ndev = <0x35>; | ||
reg = <0x00 0xc000000 0x00 0x4000000>; | ||
interrupts-extended = <0x02 0x0b 0x02 0x09>; | ||
interrupt-controller; | ||
compatible = "riscv,plic0"; | ||
#interrupt-cells = <0x01>; | ||
#address-cells = <0x00>; | ||
}; | ||
|
||
clint@2000000 { | ||
interrupts-extended = <0x02 0x03 0x02 0x07>; | ||
reg = <0x00 0x2000000 0x00 0x10000>; | ||
compatible = "riscv,clint0"; | ||
}; | ||
}; | ||
}; |