xref: /freebsd/sys/contrib/device-tree/Bindings/timer/renesas,tmu.txt (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1* Renesas R-Mobile/R-Car Timer Unit (TMU)
2
3The TMU is a 32-bit timer/counter with configurable clock inputs and
4programmable compare match.
5
6Channels share hardware resources but their counter and compare match value
7are independent. The TMU hardware supports up to three channels.
8
9Required Properties:
10
11  - compatible: must contain one or more of the following:
12    - "renesas,tmu-r8a7740" for the r8a7740 TMU
13    - "renesas,tmu-r8a774a1" for the r8a774A1 TMU
14    - "renesas,tmu-r8a774b1" for the r8a774B1 TMU
15    - "renesas,tmu-r8a774c0" for the r8a774C0 TMU
16    - "renesas,tmu-r8a7778" for the r8a7778 TMU
17    - "renesas,tmu-r8a7779" for the r8a7779 TMU
18    - "renesas,tmu-r8a77970" for the r8a77970 TMU
19    - "renesas,tmu-r8a77980" for the r8a77980 TMU
20    - "renesas,tmu" for any TMU.
21      This is a fallback for the above renesas,tmu-* entries
22
23  - reg: base address and length of the registers block for the timer module.
24
25  - interrupts: interrupt-specifier for the timer, one per channel.
26
27  - clocks: a list of phandle + clock-specifier pairs, one for each entry
28    in clock-names.
29  - clock-names: must contain "fck" for the functional clock.
30
31Optional Properties:
32
33  - #renesas,channels: number of channels implemented by the timer, must be 2
34    or 3 (if not specified the value defaults to 3).
35
36
37Example: R8A7779 (R-Car H1) TMU0 node
38
39	tmu0: timer@ffd80000 {
40		compatible = "renesas,tmu-r8a7779", "renesas,tmu";
41		reg = <0xffd80000 0x30>;
42		interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
43			     <0 33 IRQ_TYPE_LEVEL_HIGH>,
44			     <0 34 IRQ_TYPE_LEVEL_HIGH>;
45		clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
46		clock-names = "fck";
47
48		#renesas,channels = <3>;
49	};
50