From: Rob Herring <robh@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: Vyacheslav Yurkov <V.Yurkov.EXT@bruker.com>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
conor+dt@kernel.org
Subject: Re: [PATCH v12 1/2] dt-bindings: clock: Add gpio-enabled-clock
Date: Wed, 2 Dec 2026 17:31:06 -0600 [thread overview]
Message-ID: <20261202233106.GA2615990-robh@kernel.org> (raw)
In-Reply-To: <sashiko-outbox-240687@kernel.org>
On Mon, Nov 30, 2026 at 08:25:08AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issues to consider:
> - [Low] dt-bindings: clock: clock-output-names required for
> single-output clock
> - [Low] dt-bindings: clock: inconsistent property order in
> gpio-enabled-clock
> --
>
> commit 4de5e714db611b25c9657a1bfe4bea32cde35ab0
> Author: Vyacheslav Yurkov <V.Yurkov.EXT@bruker.com>
>
> dt-bindings: clock: Add gpio-enabled-clock
>
> This commit adds a devicetree binding for a clock provider whose output
> rate comes from its parent clock and whose enabled state is reported via
> a GPIO.
>
> > diff --git a/Documentation/devicetree/bindings/clock/gpio-enabled-clock.yaml b/Documentation/devicetree/bindings/clock/gpio-enabled-clock.yaml
> > new file mode 100644
> > index 0000000000000..0eb0281309294
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/gpio-enabled-clock.yaml
> > @@ -0,0 +1,53 @@
>
> [ ... ]
>
> > +properties:
> > + compatible:
> > + const: gpio-enabled-clock
> > +
> > + clocks:
> > + maxItems: 1
> > +
> > + "#clock-cells":
> > + const: 0
> > +
> > + clock-output-names:
> > + maxItems: 1
> > +
> > + enabled-gpios:
> > + description: GPIO that indicates whether the clock is enabled or disabled.
> > + maxItems: 1
> > +
> > + poll-timeout-us:
> > + description: Maximum time to wait for the enabled GPIO to be asserted.
> > +
> > +required:
> > + - compatible
> > + - "#clock-cells"
> > + - clocks
> > + - clock-output-names
> > + - enabled-gpios
> > + - poll-timeout-us
>
> [Severity: Low]
> Should clock-output-names be optional here? With #clock-cells fixed to 0,
> this is a single-output clock provider referenced directly by phandle, so
> the clock name can default to the devicetree node name when
> clock-output-names is omitted, matching sibling bindings such as
> gpio-gate-clock.yaml and fixed-clock.yaml.
Yes, clock-output-names should never be required.
Rob
next prev parent reply other threads:[~2026-12-02 23:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 8:15 [PATCH v12 0/2] A proposal to add a gpio-enabled clock driver Vyacheslav Yurkov via B4 Relay
2026-11-30 8:15 ` [PATCH v12 1/2] dt-bindings: clock: Add gpio-enabled-clock Vyacheslav Yurkov via B4 Relay
2026-11-30 8:25 ` sashiko-bot
2026-12-02 23:31 ` Rob Herring [this message]
2026-11-30 8:15 ` [PATCH v12 2/2] clk: gpio: Add driver for GPIO-signalled clocks Vyacheslav Yurkov via B4 Relay
2026-11-30 9:41 ` [PATCH v12 0/2] A proposal to add a gpio-enabled clock driver Jerome Brunet
2026-11-30 9:49 ` Vyacheslav Yurkov
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=20261202233106.GA2615990-robh@kernel.org \
--to=robh@kernel.org \
--cc=V.Yurkov.EXT@bruker.com \
--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