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>
17 lines
296 B
YAML
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
|