Renesas R-Mobile/R-Car Timer Unit (TMU)
Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,tmu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"
The TMU is a 32-bit timer/counter with configurable clock inputs and programmable compare match. Channels share hardware resources but their counter and compare match value are independent. The TMU hardware supports up to three channels.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,tmu-r8a73a4","renesas,tmu-r8a7740","renesas,tmu-r8a7742","renesas,tmu-r8a7743","renesas,tmu-r8a7744","renesas,tmu-r8a7745","renesas,tmu-r8a77470","renesas,tmu-r8a774a1","renesas,tmu-r8a774b1","renesas,tmu-r8a774c0","renesas,tmu-r8a774e1","renesas,tmu-r8a7778","renesas,tmu-r8a7779","renesas,tmu-r8a7790","renesas,tmu-r8a7791","renesas,tmu-r8a7792","renesas,tmu-r8a7793","renesas,tmu-r8a7794","renesas,tmu-r8a7795","renesas,tmu-r8a7796","renesas,tmu-r8a77961","renesas,tmu-r8a77965","renesas,tmu-r8a77970","renesas,tmu-r8a77980","renesas,tmu-r8a77990","renesas,tmu-r8a77995","renesas,tmu-r8a779a0","renesas,tmu-r8a779f0","renesas,tmu-r8a779g0","renesas,tmu-r8a779h0"
Item 2
Exact value (
const):"renesas,tmu"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Underflow interrupt, channel 0
Item 2
Underflow interrupt, channel 1
Item 3
Underflow interrupt, channel 2
Item 4
Input capture interrupt, channel 2
interrupt-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"tuni0"
Item 2
Exact value (
const):"tuni1"
Item 3
Exact value (
const):"tuni2"
Item 4
Exact value (
const):"ticpi2"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "fck"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
#renesas,channels — not listed as required here #
Number of channels implemented by the timer.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 3
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains"
Condition (if) #
This rule must not match (
not) #Properties and child nodes (
properties) #
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,tmu-r8a73a4","renesas,tmu-r8a7740","renesas,tmu-r8a7778","renesas,tmu-r8a7779"
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/r8a7779-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7779-sysc.h>
tmu0: timer@ffd80000 {
compatible = "renesas,tmu-r8a7779", "renesas,tmu";
reg = <0xffd80000 0x30>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2";
clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
clock-names = "fck";
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
#renesas,channels = <3>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: R-Mobile APE6
Line 25: R-Mobile A1
Line 26: RZ/G1H
Line 27: RZ/G1M
Line 28: RZ/G1N
Line 29: RZ/G1E
Line 30: RZ/G1C
Line 31: RZ/G2M
Line 32: RZ/G2N
Line 33: RZ/G2E
Line 34: RZ/G2H
Line 35: R-Car M1A
Line 36: R-Car H1
Line 37: R-Car H2
Line 38: R-Car M2-W
Line 39: R-Car V2H
Line 40: R-Car M2-N
Line 41: R-Car E2
Line 42: R-Car H3
Line 43: R-Car M3-W
Line 44: R-Car M3-W+
Line 45: R-Car M3-N
Line 46: R-Car V3M
Line 47: R-Car V3H
Line 48: R-Car E3
Line 49: R-Car D3
Line 50: R-Car V3U
Line 51: R-Car S4-8
Line 52: R-Car V4H
Line 53: R-Car V4M