zephyr/dts/bindings/timer/riscv,machine-timer.yaml
Chen Xingyu 42fb9067e4 drivers: timer: riscv_machine_timer: Use reg-names to access registers
This commit updates the riscv_machine_timer driver to resolve MTIME and
MTIMECMP register addresses by their `reg-names` instead of relying on
index order.

This improves clarity and robustness in DTS bindings, and is a prerequisite
for handling cases where not both MTIME and MTIMECMP registers are present
or accessible.

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2025-05-27 19:04:22 +02:00

17 lines
296 B
YAML

# Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0
description: RISC-V Machine Timer.
compatible: "riscv,machine-timer"
include: base.yaml
properties:
reg:
required: true
reg-names:
required: true
interrupts-extended:
required: true