Andes machine-level timer
Schema identifier ($id): "http://devicetree.org/schemas/timer/andestech,plmt0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Andes machine-level timer device (PLMT0) provides machine-level timer functionality for a set of HARTs on a RISC-V platform. It has a single fixed-frequency monotonic time counter (MTIME) register and a time compare register (MTIMECMP) for each HART connected to the PLMT0. A timer interrupt is generated if MTIME >= MTIMECMP.
Maintainers (maintainers): "Ben Zong-You Xie <ben717@andestech.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"andestech,plmt0"
reg — required here #
Maximum number of items (maxItems): 1
interrupts-extended — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
Specifies which harts are connected to the PLMT0. Each item must points to a riscv,cpu-intc node, which has a riscv cpu node as parent. The PLMT0 supports 1 hart up to 32 harts.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts-extended"
Examples (examples) #
interrupt-controller@100000 {
compatible = "andestech,qilai-plmt", "andestech,plmt0";
reg = <0x100000 0x100000>;
interrupts-extended = <&cpu0intc 7>,
<&cpu1intc 7>,
<&cpu2intc 7>,
<&cpu3intc 7>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)