18c2ecf20Sopenharmony_ci* Renesas R-Mobile/R-Car Timer Unit (TMU)
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe TMU is a 32-bit timer/counter with configurable clock inputs and
48c2ecf20Sopenharmony_ciprogrammable compare match.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciChannels share hardware resources but their counter and compare match value
78c2ecf20Sopenharmony_ciare independent. The TMU hardware supports up to three channels.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciRequired Properties:
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci  - compatible: must contain one or more of the following:
128c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a7740" for the r8a7740 TMU
138c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a774a1" for the r8a774A1 TMU
148c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a774b1" for the r8a774B1 TMU
158c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a774c0" for the r8a774C0 TMU
168c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a7778" for the r8a7778 TMU
178c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a7779" for the r8a7779 TMU
188c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a77970" for the r8a77970 TMU
198c2ecf20Sopenharmony_ci    - "renesas,tmu-r8a77980" for the r8a77980 TMU
208c2ecf20Sopenharmony_ci    - "renesas,tmu" for any TMU.
218c2ecf20Sopenharmony_ci      This is a fallback for the above renesas,tmu-* entries
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci  - reg: base address and length of the registers block for the timer module.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci  - interrupts: interrupt-specifier for the timer, one per channel.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci  - clocks: a list of phandle + clock-specifier pairs, one for each entry
288c2ecf20Sopenharmony_ci    in clock-names.
298c2ecf20Sopenharmony_ci  - clock-names: must contain "fck" for the functional clock.
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciOptional Properties:
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci  - #renesas,channels: number of channels implemented by the timer, must be 2
348c2ecf20Sopenharmony_ci    or 3 (if not specified the value defaults to 3).
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciExample: R8A7779 (R-Car H1) TMU0 node
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci	tmu0: timer@ffd80000 {
408c2ecf20Sopenharmony_ci		compatible = "renesas,tmu-r8a7779", "renesas,tmu";
418c2ecf20Sopenharmony_ci		reg = <0xffd80000 0x30>;
428c2ecf20Sopenharmony_ci		interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
438c2ecf20Sopenharmony_ci			     <0 33 IRQ_TYPE_LEVEL_HIGH>,
448c2ecf20Sopenharmony_ci			     <0 34 IRQ_TYPE_LEVEL_HIGH>;
458c2ecf20Sopenharmony_ci		clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
468c2ecf20Sopenharmony_ci		clock-names = "fck";
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci		#renesas,channels = <3>;
498c2ecf20Sopenharmony_ci	};
50