2021-06-03 20:42:59 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
/ {
|
|
|
|
#address-cells = <0x2>;
|
|
|
|
#size-cells = <0x2>;
|
|
|
|
compatible = "riscv-virtio";
|
2021-06-09 16:38:46 +00:00
|
|
|
model = "generic,rvc";
|
2021-06-03 20:42:59 +00:00
|
|
|
|
2022-11-25 22:11:56 +00:00
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
};
|
|
|
|
|
2021-06-03 20:42:59 +00:00
|
|
|
chosen {
|
2022-11-25 22:11:56 +00:00
|
|
|
bootargs = "root=mtd:root rootfstype=romfs ro init=/rvcinit phram.phram=root,0x40000000,256Mi console=hvc0 earlycon=sbi";
|
|
|
|
stdout-path = "/uart@10000000";
|
2021-06-03 20:42:59 +00:00
|
|
|
};
|
|
|
|
|
2022-11-25 22:11:56 +00:00
|
|
|
uart0: uart@10000000 {
|
|
|
|
/* interrupts = <0x9>; */
|
|
|
|
/* interrupt-parent = <&irqchip>; */
|
2021-06-03 20:42:59 +00:00
|
|
|
clock-frequency = <0x384000>;
|
|
|
|
reg = <0x0 0x10000000 0x0 0x100>;
|
|
|
|
compatible = "ns16550a";
|
|
|
|
};
|
|
|
|
|
2022-11-25 22:11:56 +00:00
|
|
|
rtc@3000000 {
|
|
|
|
compatible = "maxim,ds1742";
|
|
|
|
reg = <0x0 0x3000000 0x0 0x800>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rvcnet {
|
|
|
|
compatible = "pi,rvcnet";
|
|
|
|
};
|
|
|
|
|
2021-06-03 20:42:59 +00:00
|
|
|
cpus {
|
|
|
|
#address-cells = <0x1>;
|
|
|
|
#size-cells = <0x0>;
|
2022-11-25 22:11:56 +00:00
|
|
|
|
|
|
|
/* 100/20 kHz, must match frequency in emu.h */
|
|
|
|
timebase-frequency = <0x1388>;
|
2021-06-03 20:42:59 +00:00
|
|
|
|
|
|
|
cpu-map {
|
|
|
|
cluster0 {
|
|
|
|
core0 {
|
|
|
|
cpu = <0x1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
reg = <0x0>;
|
|
|
|
status = "okay";
|
|
|
|
compatible = "riscv";
|
2021-08-17 07:42:13 +00:00
|
|
|
riscv,isa = "rv32imasu";
|
|
|
|
mmu-type = "riscv,sv32";
|
2021-06-03 20:42:59 +00:00
|
|
|
|
2021-08-17 07:42:13 +00:00
|
|
|
irqchip: interrupt-controller {
|
|
|
|
#address-cells = <0x1>;
|
2021-06-03 20:42:59 +00:00
|
|
|
#interrupt-cells = <0x1>;
|
|
|
|
interrupt-controller;
|
|
|
|
compatible = "riscv,cpu-intc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@80000000 {
|
|
|
|
device_type = "memory";
|
2022-11-25 22:11:56 +00:00
|
|
|
reg = <0x0 0x80000000 0x0 0x07B00000>; /* includes safety margin at end? */
|
2021-06-03 20:42:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
#address-cells = <0x2>;
|
|
|
|
#size-cells = <0x2>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
clint@2000000 {
|
2021-08-17 07:42:13 +00:00
|
|
|
interrupts-extended = <&irqchip 0x3 &irqchip 0x7>;
|
2021-06-03 20:42:59 +00:00
|
|
|
reg = <0x0 0x2000000 0x0 0x10000>;
|
|
|
|
compatible = "riscv,clint0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|