All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: cacioandpepe <artem122novak@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	wsa+renesas@sang-engineering.com
Subject: Re: [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible
Date: Mon, 19 Oct 2026 02:34:25 +0000	[thread overview]
Message-ID: <sashiko-outbox-176538@kernel.org> (raw)
In-Reply-To: <20261019022717.511096-1-artem122novak@gmail.com>

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

  reply	other threads:[~2026-10-19  2:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  2:27 [RFC PATCH] dt-bindings: timer: renesas,tmu: add SH7305 compatible cacioandpepe
2026-10-19  2:34 ` sashiko-bot [this message]
2026-10-19  8:08 ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-176538@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=artem122novak@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.