RISC-V timer
Schema identifier ($id): "http://devicetree.org/schemas/timer/riscv,timer.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Anup Patel <anup@brainfault.org>"
RISC-V platforms always have a RISC-V timer device for the supervisor-mode based on the time CSR defined by the RISC-V privileged specification. The timer interrupts of this device are configured using the RISC-V SBI Time extension or the RISC-V Sstc extension.
The clock frequency of RISC-V timer device is specified via the "timebase-frequency" DT property of "/cpus" DT node which is described in Documentation/devicetree/bindings/riscv/cpus.yaml
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "riscv,timer"
interrupts-extended — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4096
riscv,timer-cannot-wake-cpu — not listed as required here #
Value type (type): "boolean"
If present, the timer interrupt cannot wake up the CPU from one or more suspend/idle states.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "interrupts-extended"
Examples (examples) #
timer {
compatible = "riscv,timer";
interrupts-extended = <&cpu1intc 5>,
<&cpu2intc 5>,
<&cpu3intc 5>,
<&cpu4intc 5>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 29: Should be enough?