From: sashiko-bot@kernel.org
To: "Vyacheslav Yurkov" <V.Yurkov.EXT@bruker.com>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v12 1/2] dt-bindings: clock: Add gpio-enabled-clock
Date: Mon, 30 Nov 2026 08:25:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-240687@kernel.org> (raw)
In-Reply-To: <20261130-feature-clock-guard-v12-1-d0978ad15207@bruker.com>
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.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + clock {
> + compatible = "gpio-enabled-clock";
> + #clock-cells = <0>;
> + clocks = <&pll>;
> + clock-output-names = "gpio-enabled-clock";
> + enabled-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
> + poll-timeout-us = <20>;
> + };
[Severity: Low]
This isn't a bug, but properties lists clocks before #clock-cells, whereas
required and examples place #clock-cells before clocks. Could required
and the example follow the same canonical property order (compatible,
clocks, #clock-cells, ...)?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-feature-clock-guard-v12-0-d0978ad15207@bruker.com?part=1
next prev parent reply other threads:[~2026-11-30 8:25 UTC|newest]
Thread overview: 9+ 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 ` Vyacheslav Yurkov
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:15 ` Vyacheslav Yurkov
2026-11-30 8:25 ` sashiko-bot [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 8:15 ` Vyacheslav Yurkov
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=sashiko-outbox-240687@kernel.org \
--to=sashiko-bot@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=robh@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 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.