Renesas Multi-Function Timer Pulse Unit 2 (MTU2)

Schema identifier ($id): "http://devicetree.org/schemas/timer/renesas,mtu2.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 MTU2 is a multi-purpose, multi-channel timer/counter with configurable clock inputs and programmable compare match. Channels share hardware resources but their counter and compare match value are independent. The MTU2 hardware supports five channels indexed from 0 to 4.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,mtu2-r7s72100"

Item 2

Exact value (const): "renesas,mtu2"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

One entry for each enabled channel.

interrupt-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "tgi0a"

Item 2

Exact value (const): "tgi1a"

Item 3

Exact value (const): "tgi2a"

Item 4

Exact value (const): "tgi3a"

Item 5

Exact value (const): "tgi4a"

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

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains"

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>
mtu2: timer@fcff0000 {
    compatible = "renesas,mtu2-r7s72100", "renesas,mtu2";
    reg = <0xfcff0000 0x400>;
    interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "tgi0a";
    clocks = <&mstp3_clks R7S72100_CLK_MTU2>;
    clock-names = "fck";
    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

Edit this page