Linux clock framework development
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: linux-clk@vger.kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: clock: Convert HiSilicon clocks to DT schema
Date: Fri, 2 Oct 2026 09:20:50 -0500	[thread overview]
Message-ID: <20261002142050.GB1579700-robh@kernel.org> (raw)
In-Reply-To: <20261002091350.895461F00899@smtp.kernel.org>

On Fri, Oct 02, 2026 at 09:13:50AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
> - [Medium] dt-bindings: missing if-then constraints for stub clock properties
> - [Low] dt-bindings: YAML conversion dropped all DT examples
> --
> 
> commit 9d6ccc9389906ef23ff428ed84de04603566232a
> Author: Rob Herring (Arm) <robh@kernel.org>
> Date:   Thu Oct 1 21:20:48 2026 +0000
> 
>     dt-bindings: clock: Convert HiSilicon clocks to DT schema
> 
> This commit converts the HiSilicon Hi6220, Hi3660, and Hi3670 clock
> bindings from legacy text format to YAML DT schema format. It also
> splits out the stub clock binding into its own standalone document.
> 
> > diff --git a/Documentation/devicetree/bindings/clock/hisilicon,clocks.yaml b/Documentation/devicetree/bindings/clock/hisilicon,clocks.yaml
> > new file mode 100644
> > index 0000000000000..345c6d0e7a134
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/hisilicon,clocks.yaml
> 
> [ ... ]
> 
> > +required:
> > +  - compatible
> > +  - reg
> > +  - '#clock-cells'
> > +
> > +additionalProperties: false
> 
> [Severity: Low]
> Were the device tree examples intentionally omitted during the conversion?

Yes. The binding is trivial.

> The original hi3660-clock.txt and hi3670-clock.txt bindings included example
> nodes, but they have been dropped entirely here. Running make dt_binding_check
> will only validate the schema syntax itself, but without an examples block, it
> will not validate any real configurations. This circumvents the primary
> self-testing mechanism of the schema conversion.
> 
> > diff --git a/Documentation/devicetree/bindings/clock/hisilicon,hi6220-stub-clk.yaml b/Documentation/devicetree/bindings/clock/hisilicon,hi6220-stub-clk.yaml
> > new file mode 100644
> > index 0000000000000..4dd6a01bfd9db
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/hisilicon,hi6220-stub-clk.yaml
> 
> [ ... ]
> 
> > +required:
> > +  - compatible
> > +  - '#clock-cells'
> > +  - mboxes
> 
> [Severity: Medium]
> Should there be conditional (if-then) constraints here to enforce
> hardware-specific requirements?

No. These are old, hardly maintained devices with no new platforms 
being added. It just doesn't matter here.

Rob

  reply	other threads:[~2026-10-02 14:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01 21:20 [PATCH] dt-bindings: clock: Convert HiSilicon clocks to DT schema Rob Herring (Arm)
2026-10-02  9:13 ` sashiko-bot
2026-10-02 14:20   ` Rob Herring [this message]
2026-10-08 11:54 ` Wei Xu
2026-10-09 17:26 ` Brian Masney

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=20261002142050.GB1579700-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox