Skip to content

Commit 2120b82

Browse files
dnltzkartben
authored andcommitted
dts: riscv: Add aesc
ElemRV-N is based on the nitrogen SoC platform. Add the base nitrogen device-tree and one for elemrv-n. The elemrv-n device-tree will contain all IP cores later. Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
1 parent 86b3146 commit 2120b82

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

dts/riscv/aesc/elemrv-n.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2025 Aesc Silicon
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <aesc/nitrogen.dtsi>
8+
9+
/ {
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
soc {
14+
#address-cells = <1>;
15+
#size-cells = <1>;
16+
compatible = "aesc,elemrv-n-soc", "simple-bus";
17+
ranges;
18+
19+
uart0: uart0@f0006000 {
20+
compatible = "aesc,uart";
21+
reg = <0xf0006000 0x1000>;
22+
status = "disabled";
23+
};
24+
};
25+
};

dts/riscv/aesc/nitrogen.dtsi

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) 2025 Aesc Silicon
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/gpio/gpio.h>
8+
#include <freq.h>
9+
#include <mem.h>
10+
11+
/ {
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
cpus {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
cpu0: cpu@0 {
20+
compatible = "litex,vexriscv-standard";
21+
device_type = "cpu";
22+
reg = <0>;
23+
riscv,isa = "rv32imc";
24+
status = "okay";
25+
26+
hlic: interrupt-controller {
27+
compatible = "riscv,cpu-intc";
28+
#address-cells = <0>;
29+
#interrupt-cells = <1>;
30+
interrupt-controller;
31+
};
32+
};
33+
};
34+
35+
soc {
36+
#address-cells = <1>;
37+
#size-cells = <1>;
38+
compatible = "aesc,nitrogen-soc", "simple-bus";
39+
ranges;
40+
41+
mtimer: machine-timer@f0020000 {
42+
compatible = "riscv,machine-timer";
43+
reg = <0xf0020000 0x8 0xf0020008 0x8>;
44+
interrupts-extended = <&hlic 7>;
45+
status = "okay";
46+
};
47+
};
48+
};

0 commit comments

Comments
 (0)