mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 22:24:04 +08:00
fb0eee2f14
In general Renesas hardware is not documented to the extent where the relationship between IP blocks on different SoCs can be assumed although they may appear to operate the same way. Furthermore the documentation typically does not specify a version for individual IP blocks. For these reasons a convention of using the SoC name in place of a version and providing SoC-specific compat strings has been adopted. Although not universally liked this convention is used in the bindings for a number of drivers for Renesas hardware. The purpose of this patch is to update the Renesas R-Car Timer Unit (TMU) driver to follow this convention. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- * I plan to follow up with a patch patch to use the new binding in the dtsi files for the r8a7779 SoC. commit 471269b790aec03385dc4fb127ed7094ff83c16d v2 * Suggestions by Mark Rutland and Sergei Shtylyov - Compatible strings should be "one or more" not "one" of those listed - Describe the generic binding as covering any MTU2 device - Re-order compat strings from most to least specific v3 * Suggested by Laurent Pinchart - Reword in keeping with a similar though more extensive patch for CMT
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
* Renesas R-Car Timer Unit (TMU)
|
|
|
|
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.
|
|
|
|
Required Properties:
|
|
|
|
- compatible: must contain one or more of the following:
|
|
- "renesas,tmu-r8a7779" for the r8a7779 TMU
|
|
- "renesas,tmu" for any TMU.
|
|
This is a fallback for the above renesas,tmu-* entries
|
|
|
|
- reg: base address and length of the registers block for the timer module.
|
|
|
|
- interrupts: interrupt-specifier for the timer, one per channel.
|
|
|
|
- clocks: a list of phandle + clock-specifier pairs, one for each entry
|
|
in clock-names.
|
|
- clock-names: must contain "fck" for the functional clock.
|
|
|
|
Optional Properties:
|
|
|
|
- #renesas,channels: number of channels implemented by the timer, must be 2
|
|
or 3 (if not specified the value defaults to 3).
|
|
|
|
|
|
Example: R8A7779 (R-Car H1) TMU0 node
|
|
|
|
tmu0: timer@ffd80000 {
|
|
compatible = "renesas,tmu-r8a7779", "renesas,tmu";
|
|
reg = <0xffd80000 0x30>;
|
|
interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>,
|
|
<0 33 IRQ_TYPE_LEVEL_HIGH>,
|
|
<0 34 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
|
|
clock-names = "fck";
|
|
|
|
#renesas,channels = <3>;
|
|
};
|