Skip to content

Commit 0076a37

Browse files
geertudlezcano
authored andcommitted
dt-bindings: timer: renesas,tmu: Document input capture interrupt
Some Timer Unit (TMU) instances with 3 channels support a fourth interrupt: an input capture interrupt for the third channel. While at it, document the meaning of the four interrupts, and add "interrupt-names" for clarity. Update the example to match reality. Inspired by a patch by Yoshinori Sato for SH. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/8cb38b5236213a467c6c0073f97ccc4bfd5a39ff.1706717378.git.geert+renesas@glider.be
1 parent 702107e commit 0076a37

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Documentation/devicetree/bindings/timer/renesas,tmu.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,19 @@ properties:
4646

4747
interrupts:
4848
minItems: 2
49-
maxItems: 3
49+
items:
50+
- description: Underflow interrupt, channel 0
51+
- description: Underflow interrupt, channel 1
52+
- description: Underflow interrupt, channel 2
53+
- description: Input capture interrupt, channel 2
54+
55+
interrupt-names:
56+
minItems: 2
57+
items:
58+
- const: tuni0
59+
- const: tuni1
60+
- const: tuni2
61+
- const: ticpi2
5062

5163
clocks:
5264
maxItems: 1
@@ -100,7 +112,9 @@ examples:
100112
reg = <0xffd80000 0x30>;
101113
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
102114
<GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
103-
<GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
115+
<GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
116+
<GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
117+
interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2";
104118
clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
105119
clock-names = "fck";
106120
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;

0 commit comments

Comments
 (0)