* [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt
@ 2024-01-31 16:11 Geert Uytterhoeven
2024-01-31 18:00 ` Niklas Söderlund
2024-01-31 19:34 ` Wolfram Sang
0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2024-01-31 16:11 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Laurent Pinchart, Wolfram Sang, Yoshinori Sato
Cc: devicetree, linux-renesas-soc, linux-sh, linux-kernel,
Geert Uytterhoeven
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 <geert+renesas@glider.be>
---
v2:
- Reword interrupt descriptions.
The corresponding DTS updates can be found in series "[PATCH 0/2]
ARM/arm64: dts: renesas: Improve TMU interrupt descriptions".
https://lore.kernel.org/r/cover.1705325654.git.geert+renesas@glider.be
Once the DTS updates are upstream, "interrupt-names" can be made
required.
---
.../devicetree/bindings/timer/renesas,tmu.yaml | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
index a67e427a9e7e22aa..84bbe15028a1de94 100644
--- a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
+++ b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
@@ -46,7 +46,19 @@ properties:
interrupts:
minItems: 2
- maxItems: 3
+ items:
+ - description: Underflow interrupt, channel 0
+ - description: Underflow interrupt, channel 1
+ - description: Underflow interrupt, channel 2
+ - description: Input capture interrupt, channel 2
+
+ interrupt-names:
+ minItems: 2
+ items:
+ - const: tuni0
+ - const: tuni1
+ - const: tuni2
+ - const: ticpi2
clocks:
maxItems: 1
@@ -100,7 +112,9 @@ examples:
reg = <0xffd80000 0x30>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+ <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2";
clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
clock-names = "fck";
power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt
2024-01-31 16:11 [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt Geert Uytterhoeven
@ 2024-01-31 18:00 ` Niklas Söderlund
2024-01-31 18:22 ` Daniel Lezcano
2024-01-31 19:34 ` Wolfram Sang
1 sibling, 1 reply; 4+ messages in thread
From: Niklas Söderlund @ 2024-01-31 18:00 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Laurent Pinchart, Wolfram Sang, Yoshinori Sato,
devicetree, linux-renesas-soc, linux-sh, linux-kernel
Hi Geert,
Thanks for your work.
On 2024-01-31 17:11:45 +0100, Geert Uytterhoeven wrote:
> 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 <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> v2:
> - Reword interrupt descriptions.
>
> The corresponding DTS updates can be found in series "[PATCH 0/2]
> ARM/arm64: dts: renesas: Improve TMU interrupt descriptions".
> https://lore.kernel.org/r/cover.1705325654.git.geert+renesas@glider.be
> Once the DTS updates are upstream, "interrupt-names" can be made
> required.
> ---
> .../devicetree/bindings/timer/renesas,tmu.yaml | 18 ++++++++++++++++--
> 1 file changed, 16 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> index a67e427a9e7e22aa..84bbe15028a1de94 100644
> --- a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> +++ b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> @@ -46,7 +46,19 @@ properties:
>
> interrupts:
> minItems: 2
> - maxItems: 3
> + items:
> + - description: Underflow interrupt, channel 0
> + - description: Underflow interrupt, channel 1
> + - description: Underflow interrupt, channel 2
> + - description: Input capture interrupt, channel 2
> +
> + interrupt-names:
> + minItems: 2
> + items:
> + - const: tuni0
> + - const: tuni1
> + - const: tuni2
> + - const: ticpi2
>
> clocks:
> maxItems: 1
> @@ -100,7 +112,9 @@ examples:
> reg = <0xffd80000 0x30>;
> interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
> + <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "tuni0", "tuni1", "tuni2", "ticpi2";
> clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
> clock-names = "fck";
> power-domains = <&sysc R8A7779_PD_ALWAYS_ON>;
> --
> 2.34.1
>
>
--
Kind Regards,
Niklas Söderlund
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt
2024-01-31 18:00 ` Niklas Söderlund
@ 2024-01-31 18:22 ` Daniel Lezcano
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2024-01-31 18:22 UTC (permalink / raw)
To: Niklas Söderlund, Geert Uytterhoeven
Cc: Thomas Gleixner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Laurent Pinchart, Wolfram Sang, Yoshinori Sato, devicetree,
linux-renesas-soc, linux-sh, linux-kernel
On 31/01/2024 19:00, Niklas Söderlund wrote:
> Hi Geert,
>
> Thanks for your work.
>
> On 2024-01-31 17:11:45 +0100, Geert Uytterhoeven wrote:
>> 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 <geert+renesas@glider.be>
>
> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
>
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt
2024-01-31 16:11 [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt Geert Uytterhoeven
2024-01-31 18:00 ` Niklas Söderlund
@ 2024-01-31 19:34 ` Wolfram Sang
1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2024-01-31 19:34 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Laurent Pinchart, Yoshinori Sato, devicetree,
linux-renesas-soc, linux-sh, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 538 bytes --]
On Wed, Jan 31, 2024 at 05:11:45PM +0100, Geert Uytterhoeven wrote:
> 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 <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-31 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 16:11 [PATCH v2] dt-bindings: timer: renesas,tmu: Document input capture interrupt Geert Uytterhoeven
2024-01-31 18:00 ` Niklas Söderlund
2024-01-31 18:22 ` Daniel Lezcano
2024-01-31 19:34 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox