mini-rv32ima/configs/minimal.dts
2023-03-25 09:20:48 -04:00

89 lines
1.6 KiB
Devicetree

/dts-v1/;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "riscv-minimal-nommu";
model = "riscv-minimal-nommu,qemu";
chosen {
/* TODO: Investigate keep_bootcon */
bootargs = "earlycon=uart8250,mmio,0x10000000,1000000 console=ttyS0";
/* stdout-path = "/soc/uart@10000000"; */
};
memory@80000000 {
device_type = "memory";
reg = <0x00 0x80000000 0x00 0x3ffc000>; // Leave 16kB at end for core + DTB
};
cpus {
#address-cells = <0x01>;
#size-cells = <0x00>;
timebase-frequency = <1000000>;
cpu@0 {
phandle = <0x01>;
device_type = "cpu";
reg = <0x00>;
status = "okay";
compatible = "riscv";
riscv,isa = "rv32ima";
mmu-type = "riscv,none";
interrupt-controller {
#interrupt-cells = <0x01>;
interrupt-controller;
compatible = "riscv,cpu-intc";
phandle = <0x02>;
};
};
cpu-map {
cluster0 {
core0 {
cpu = <0x01>;
};
};
};
};
soc {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "simple-bus";
ranges;
uart@10000000 {
clock-frequency = <0x1000000>;
reg = <0x00 0x10000000 0x00 0x100>;
compatible = "hvc";
};
poweroff {
value = <0x5555>;
offset = <0x00>;
regmap = <0x04>;
compatible = "syscon-poweroff";
};
reboot {
value = <0x7777>;
offset = <0x00>;
regmap = <0x04>;
compatible = "syscon-reboot";
};
syscon@11100000 {
phandle = <0x04>;
reg = <0x00 0x11100000 0x00 0x1000>;
compatible = "syscon";
};
clint@11000000 {
interrupts-extended = <0x02 0x03 0x02 0x07>;
reg = <0x00 0x11000000 0x00 0x10000>;
compatible = "sifive,clint0,riscv,clint0";
};
};
};