Devicetree
 help / color / mirror / Atom feed
* [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible
@ 2026-10-19  2:27 cacioandpepe
  2026-10-19  2:34 ` sashiko-bot
  2026-10-19  8:08 ` Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: cacioandpepe @ 2026-10-19  2:27 UTC (permalink / raw)
  To: daniel.lezcano, robh, geert+renesas
  Cc: tglx, krzk+dt, conor+dt, laurent.pinchart+renesas, magnus.damm,
	devicetree, linux-renesas-soc, linux-kernel, Artem Novak

From: Artem Novak <artem122novak@gmail.com>

The Renesas SH7305 includes a three-channel Timer Unit (TMU).
Add its compatible string to the Renesas TMU Device Tree binding.

This is an RFC because SH7305 TMU0 Device Tree support is still
under review.
Feedback on the proposed binding would be appreciated.

Signed-off-by: Artem Novak <artem122novak@gmail.com>

---
 Documentation/devicetree/bindings/timer/renesas,tmu.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
index b1229595acfb..8ecc57cc3d91 100644
--- a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
+++ b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
@@ -21,6 +21,7 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,sh7305-tmu  # SH7305
           - renesas,tmu-r8a73a4  # R-Mobile APE6
           - renesas,tmu-r8a7740  # R-Mobile A1
           - renesas,tmu-r8a7742  # RZ/G1H
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible
  2026-10-19  2:27 [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible cacioandpepe
@ 2026-10-19  2:34 ` sashiko-bot
  2026-10-19  8:08 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-10-19  2:34 UTC (permalink / raw)
  To: cacioandpepe; +Cc: devicetree, robh, conor+dt, wsa+renesas

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: timer: renesas,tmu: missing sh7305 in resets conditional
- [Low] dt-bindings: timer: renesas,tmu: inconsistent sh7305 compatible naming
--

commit 5a47059b449e5e852ab342ee0c095fa0177a28ca
Author: Artem Novak <artem122novak@gmail.com>

dt-bindings: timer: renesas,tmu: add SH7305 compatible

This commit adds a compatible string for the Renesas SH7305 three-channel
Timer Unit (TMU) to the Renesas TMU Device Tree binding.

> diff --git a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> index b1229595acfbf..8ecc57cc3d917 100644
> --- a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> +++ b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> @@ -21,6 +21,7 @@ properties:
>    compatible:
>      items:
>        - enum:
> +          - renesas,sh7305-tmu  # SH7305
>            - renesas,tmu-r8a73a4  # R-Mobile APE6
>            - renesas,tmu-r8a7740  # R-Mobile A1
>            - renesas,tmu-r8a7742  # RZ/G1H

[Severity: Medium]
Does SH7305 also need to be added to the conditional exclusion list for
resets (and potentially power-domains) later in
Documentation/devicetree/bindings/timer/renesas,tmu.yaml?

In this binding, power-domains is listed unconditionally under required, and
resets is required for all compatibles not explicitly exempted in the
if/then block:

  required:
    - compatible
    - reg
    - interrupts
    - interrupt-names
    - clocks
    - clock-names
    - power-domains

  if:
    not:
      properties:
        compatible:
          contains:
            enum:
              - renesas,tmu-r8a73a4
              - renesas,tmu-r8a7740
              - renesas,tmu-r8a7778
              - renesas,tmu-r8a7779
  then:
    required:
      - resets

That enum exempts older R-Mobile and R-Car Gen1 SoCs whose clock controllers
lack per-module reset control for the TMU. Since SH7305 is an older SuperH
(SH-4A / SH4AL-DSP) SoC without a per-module reset controller for the TMU,
won't omitting the SH7305 compatible from this exclusion list cause
dt_binding_check / dtbs_check validation to fail on SH7305 TMU nodes that do
not specify resets?

[Severity: Low]
Should this compatible string be named renesas,tmu-sh7305 and sorted
alphabetically after renesas,tmu-r8a779h0 instead of renesas,sh7305-tmu?

Documentation/devicetree/bindings/soc/renesas/renesas-soc.yaml states in its
description:

  When adding new compatibles to existing bindings, use the format in the
  existing binding, even if it contradicts the above.

Every existing SoC-specific entry in
Documentation/devicetree/bindings/timer/renesas,tmu.yaml uses the
renesas,tmu-<soc> format (from renesas,tmu-r8a73a4 through
renesas,tmu-r8a779h0).

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261019022717.511096-1-artem122novak@gmail.com?part=1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible
  2026-10-19  2:27 [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible cacioandpepe
  2026-10-19  2:34 ` sashiko-bot
@ 2026-10-19  8:08 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2026-10-19  8:08 UTC (permalink / raw)
  To: cacioandpepe
  Cc: daniel.lezcano, robh, geert+renesas, tglx, krzk+dt, conor+dt,
	laurent.pinchart+renesas, magnus.damm, devicetree,
	linux-renesas-soc, linux-kernel

Hi Artem,

On Mon, 19 Oct 2026 at 04:27, cacioandpepe <artem122novak@gmail.com> wrote:
> From: Artem Novak <artem122novak@gmail.com>
>
> The Renesas SH7305 includes a three-channel Timer Unit (TMU).
> Add its compatible string to the Renesas TMU Device Tree binding.
>
> This is an RFC because SH7305 TMU0 Device Tree support is still
> under review.
> Feedback on the proposed binding would be appreciated.
>
> Signed-off-by: Artem Novak <artem122novak@gmail.com>

Thanks for your patch!

> --- a/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> +++ b/Documentation/devicetree/bindings/timer/renesas,tmu.yaml
> @@ -21,6 +21,7 @@ properties:
>    compatible:
>      items:
>        - enum:
> +          - renesas,sh7305-tmu  # SH7305

renesas,tmu-sh7305 (+ sorted alpabetically)

>            - renesas,tmu-r8a73a4  # R-Mobile APE6
>            - renesas,tmu-r8a7740  # R-Mobile A1
>            - renesas,tmu-r8a7742  # RZ/G1H

Probably SH7305 does not support module reset, so "resets"
should be excluded, cfr. the proposed bindings for SH7750:
https://lore.kernel.org/3b3f41148158aa146f06a40aeb5b23c8611b1895.1716965617.git.ysato@users.sourceforge.jp/

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-19  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19  2:27 [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible cacioandpepe
2026-10-19  2:34 ` sashiko-bot
2026-10-19  8:08 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox