Renesas OS Timer (OSTM)
Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,ostm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Brandt <chris.brandt@renesas.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"
The OSTM is a multi-channel 32-bit timer/counter with fixed clock source that can operate in either interval count down timer or free-running compare match mode. Channels are independent from each other.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,r7s72100-ostm","renesas,r7s9210-ostm","renesas,r9a07g043-ostm","renesas,r9a07g044-ostm","renesas,r9a07g054-ostm","renesas,r9a09g056-ostm","renesas,r9a09g057-ostm"
Item 2
Exact value (
const):"renesas,ostm"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #This rule must not match (
not)Rule for matching array elements (
contains)Allowed values (
enum):"renesas,r7s72100-ostm","renesas,r7s9210-ostm"
When the condition matches (then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r7s72100-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ostm0: timer@fcfec000 {
compatible = "renesas,r7s72100-ostm", "renesas,ostm";
reg = <0xfcfec000 0x30>;
interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>;
clocks = <&mstp5_clks R7S72100_CLK_OSTM0>;
power-domains = <&cpg_clocks>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: RZ/A1H
Line 25: RZ/A2M
Line 26: RZ/G2UL and RZ/Five
Line 27: RZ/G2{L,LC}
Line 28: RZ/V2L
Line 29: RZ/V2N
Line 30: RZ/V2H(P)
Line 31: Generic