2022-11-22 18:33:16 -08:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
|
|
/ {
|
|
|
|
|
#address-cells = <0x02>;
|
|
|
|
|
#size-cells = <0x02>;
|
|
|
|
|
compatible = "riscv-minimal-nommu";
|
|
|
|
|
model = "riscv-minimal-nommu,qemu";
|
|
|
|
|
|
|
|
|
|
chosen {
|
2022-11-26 07:42:52 -05:00
|
|
|
/* TODO: Investigate keep_bootcon */
|
2022-11-26 21:05:04 -05:00
|
|
|
bootargs = "earlycon=uart8250,mmio,0x10000000,1000000 console=ttyS0";
|
2022-11-26 03:42:11 -05:00
|
|
|
/* stdout-path = "/soc/uart@10000000"; */
|
2022-11-22 18:33:16 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
memory@80000000 {
|
|
|
|
|
device_type = "memory";
|
2022-11-26 19:44:07 -05:00
|
|
|
reg = <0x00 0x80000000 0x00 0x3ffc000>; // Leave 16kB at end for core + DTB
|
2022-11-22 18:33:16 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
|
#address-cells = <0x01>;
|
|
|
|
|
#size-cells = <0x00>;
|
2022-11-26 00:50:24 -05:00
|
|
|
timebase-frequency = <1000000>;
|
2022-11-22 18:33:16 -08:00
|
|
|
|
|
|
|
|
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 {
|
2022-11-26 02:06:36 -05:00
|
|
|
clock-frequency = <0x1000000>;
|
2022-11-22 18:33:16 -08:00
|
|
|
reg = <0x00 0x10000000 0x00 0x100>;
|
2023-03-25 09:20:48 -04:00
|
|
|
compatible = "hvc";
|
2022-11-22 18:33:16 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
poweroff {
|
|
|
|
|
value = <0x5555>;
|
|
|
|
|
offset = <0x00>;
|
|
|
|
|
regmap = <0x04>;
|
|
|
|
|
compatible = "syscon-poweroff";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
reboot {
|
|
|
|
|
value = <0x7777>;
|
|
|
|
|
offset = <0x00>;
|
|
|
|
|
regmap = <0x04>;
|
|
|
|
|
compatible = "syscon-reboot";
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-26 05:35:15 -05:00
|
|
|
syscon@11100000 {
|
2022-11-22 18:33:16 -08:00
|
|
|
phandle = <0x04>;
|
2022-11-26 05:35:15 -05:00
|
|
|
reg = <0x00 0x11100000 0x00 0x1000>;
|
2022-11-22 18:33:16 -08:00
|
|
|
compatible = "syscon";
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-26 05:35:15 -05:00
|
|
|
clint@11000000 {
|
2022-11-22 18:33:16 -08:00
|
|
|
interrupts-extended = <0x02 0x03 0x02 0x07>;
|
2022-11-26 05:35:15 -05:00
|
|
|
reg = <0x00 0x11000000 0x00 0x10000>;
|
2023-03-25 09:20:48 -04:00
|
|
|
compatible = "sifive,clint0,riscv,clint0";
|
2022-11-22 18:33:16 -08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|