Skip to content

Commit e40315e

Browse files
xingrzkartben
authored andcommitted
dts: riscv: Add reg-names to machine timer nodes
This commit updates all relevant device tree source files using the riscv,machine-timer binding to explicitly define `reg-names` for the MTIME and MTIMECMP registers. This change ensures compatibility with the updated riscv_machine_timer driver, which now relies on `reg-names` to resolve register addresses instead of using fixed index positions. Signed-off-by: Chen Xingyu <hi@xingrz.me>
1 parent 42fb906 commit e40315e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dts/riscv/andes/andes_v5_ae350.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
mtimer: timer@e6000000 {
218218
compatible = "riscv,machine-timer";
219219
reg = <0xe6000000 0x8 0xe6000008 0x8>;
220+
reg-names = "mtime", "mtimecmp";
220221
interrupts-extended = <&cpu0_intc 7 &cpu1_intc 7
221222
&cpu2_intc 7 &cpu3_intc 7
222223
&cpu4_intc 7 &cpu5_intc 7

dts/riscv/gd/gd32vf103.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
systimer: timer@d1000000 {
4444
compatible = "nuclei,systimer", "riscv,machine-timer";
4545
reg = <0xd1000000 0x8 0xd1000008 0x8>;
46+
reg-names = "mtime", "mtimecmp";
4647
interrupts-extended = <&eclic 7 0>;
4748
clk-divider = <NUCLEI_SYSTIMER_DIVIDER_4>;
4849
};

0 commit comments

Comments
 (0)