Skip to content

Commit e367e1d

Browse files
WorldofJARcraftkartben
authored andcommitted
soc: cva6: Add device tree node for RISC-V mtimer
The device tree entry for cva6 is currently missing a device tree node for the mtime and mtimecmp registers in the core-local interrupt controllers. This causes the RISC-V machine timer driver not to be built, causing build failures as the system clock is missing. This commit rectifies this by adding the corresponding device tree entry. Signed-off-by: Eric Ackermann <eric.ackermann@cispa.de>
1 parent 590258b commit e367e1d

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

boards/openhwgroup/cv32a6_genesys_2/cv32a6_genesys_2.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
status = "okay";
3131
};
3232

33+
&mtimer {
34+
status = "okay";
35+
};
36+
3337
&eth {
3438
local-mac-address = [00 18 3e 02 e3 7f];
3539
status = "okay";

boards/openhwgroup/cv64a6_genesys_2/cv64a6_genesys_2.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
status = "okay";
2727
};
2828

29-
&clint{
29+
&clint {
30+
status = "okay";
31+
};
32+
33+
&mtimer {
3034
status = "okay";
3135
};
3236

dts/riscv/openhwgroup/cva6.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@
9393
status = "disabled";
9494
};
9595

96+
mtimer: timer@200bff8 {
97+
compatible = "riscv,machine-timer";
98+
interrupts-extended = <&hlic 7>;
99+
reg = <0x200bff8 0x8 0x2004000 0x8>;
100+
reg-names = "mtime", "mtimecmp";
101+
status = "disabled";
102+
};
103+
96104
/*
97105
* Xilinx AXI DMA.
98106
* Part of the Xilinx AXI Ethernet Subsystem.

0 commit comments

Comments
 (0)