0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/renesas,mtu2.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Renesas Multi-Function Timer Pulse Unit 2 (MTU2)
0008
0009 maintainers:
0010 - Geert Uytterhoeven <geert+renesas@glider.be>
0011 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
0012
0013 description:
0014 The MTU2 is a multi-purpose, multi-channel timer/counter with configurable clock inputs
0015 and programmable compare match.
0016
0017 Channels share hardware resources but their counter and compare match value are
0018 independent. The MTU2 hardware supports five channels indexed from 0 to 4.
0019
0020 properties:
0021 compatible:
0022 items:
0023 - enum:
0024 - renesas,mtu2-r7s72100 # RZ/A1H
0025 - const: renesas,mtu2
0026
0027 reg:
0028 maxItems: 1
0029
0030 interrupts:
0031 minItems: 1
0032 maxItems: 5
0033 description: One entry for each enabled channel.
0034
0035 interrupt-names:
0036 minItems: 1
0037 items:
0038 - const: tgi0a
0039 - const: tgi1a
0040 - const: tgi2a
0041 - const: tgi3a
0042 - const: tgi4a
0043
0044 clocks:
0045 maxItems: 1
0046
0047 clock-names:
0048 const: fck
0049
0050 power-domains:
0051 maxItems: 1
0052
0053 required:
0054 - compatible
0055 - reg
0056 - interrupts
0057 - interrupt-names
0058 - clocks
0059 - clock-names
0060 - power-domains
0061
0062 additionalProperties: false
0063
0064 examples:
0065 - |
0066 #include <dt-bindings/clock/r7s72100-clock.h>
0067 #include <dt-bindings/interrupt-controller/arm-gic.h>
0068 mtu2: timer@fcff0000 {
0069 compatible = "renesas,mtu2-r7s72100", "renesas,mtu2";
0070 reg = <0xfcff0000 0x400>;
0071 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
0072 interrupt-names = "tgi0a";
0073 clocks = <&mstp3_clks R7S72100_CLK_MTU2>;
0074 clock-names = "fck";
0075 power-domains = <&cpg_clocks>;
0076 };