From: sashiko-bot@kernel.org
To: "Stefan Dösinger" <stefandoesinger@gmail.com>
Cc: devicetree@vger.kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH RFC v2 1/4] dt-bindings: clk: zte: Add zx297520v3 clock and reset bindings.
Date: Mon, 11 May 2026 22:12:35 +0000 [thread overview]
Message-ID: <20260511221235.960EFC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511-zx29clk-v2-1-29f0edc300f5@gmail.com>
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [Medium] The device tree binding intentionally omits the hardware clock dependency between the top controller and the matrix controller.
- [Low] Missing 'clock-frequency' property in 'fixed-clock' example nodes.
- [Low] The `zte,zx297520v3-matrixclk` compatible string lacks an `if-then` block to explicitly forbid `clocks` and `clock-names`.
- [Low] The node names in the example block do not follow generic naming standards.
--
commit dcd964f6e480b59678a5c8aefa3f700c7eec5d64
Author: Stefan Dösinger <stefandoesinger@gmail.com>
dt-bindings: clk: zte: Add zx297520v3 clock and reset bindings.
This commit introduces device tree bindings for the ZTE zx297520v3 SoC
clock and reset controllers. It defines the top, matrix, and lsp
controllers, along with their respective clock and reset definitions.
> diff --git a/Documentation/devicetree/bindings/clock/zte,zx297520v3-clk.yaml b/Documentation/devicetree/bindings/clock/zte,zx297520v3-clk.yaml
> new file mode 100644
> index 0000000000000..3b7084a18a975
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/zte,zx297520v3-clk.yaml
[ ... ]
> +description: |
> + The zx297520v3's clock controller consists of 3 controllers, which generate
> + clocks for internal SoC devices. In addition to clocks it also has reset
> + controls for most, but not all, devices.
[ ... ]
> + The matrix controller consumes clocks generated by PLLs in the top
> + controller, but there are no controls in the top controller to sever this
> + link. The interface between these controllers is not expressed in the device
> + tree, but the matrix controller cannot work without the clock handles
> + registered by the top controller.
Does omitting the clock relationship between the top and matrix controllers
hide the physical hardware topology? Device tree bindings should typically
describe the actual hardware connections.
By leaving out the clocks property from the matrixclk node to reference the
topclk outputs, could this force the driver to rely on implicit dependencies
for probe ordering and break proper frequency propagation in the clock
framework?
[ ... ]
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: zte,zx297520v3-lspclk
> + then:
> + properties:
> + clocks:
[ ... ]
> + required:
> + - clocks
> + - clock-names
> +
> +additionalProperties: false
Since clocks and clock-names are defined at the top level of this binding,
would an invalid matrixclk device tree node mistakenly including those
properties silently pass validation?
Because additionalProperties: false only rejects completely undefined
properties, should there be an if-then block for matrixclk that explicitly
sets clocks: false and clock-names: false to prevent this?
[ ... ]
> +examples:
> + - |
> + #include <dt-bindings/clock/zte,zx297520v3-clk.h>
> +
> + osc26m: osc26m {
> + compatible = "fixed-clock";
> + clock-output-names = "osc26m";
> + #clock-cells = <0>;
> + };
> +
> + osc32k: osc32k {
> + compatible = "fixed-clock";
> + clock-output-names = "osc32k";
> + #clock-cells = <0>;
> + };
Do these fixed-clock examples need the clock-frequency property? The core
schema for fixed clocks mandates this property, which might cause
dt_binding_check to fail if it is missing here.
> + topclk: topclk@13b000 {
> + compatible = "zte,zx297520v3-topclk";
> + reg = <0x0013b000 0x400>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + clocks = <&osc26m>, <&osc32k>;
> + clock-names = "osc26m", "osc32k";
> + };
> +
> + matrixclk: matrixclk@1306000 {
> + compatible = "zte,zx297520v3-matrixclk";
> + reg = <0x01306000 0x400>;
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + };
> +
> + lspclk: lspclk@1400000 {
> + compatible = "zte,zx297520v3-lspclk";
> + reg = <0x01400000 0x100>;
Are these node names deviating from generic naming standards? The devicetree
specification requires node names to describe the generic class of a device
rather than specific block names.
Could these be renamed using the clock-controller@... pattern to comply
with conventions and avoid schema warnings?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511-zx29clk-v2-0-29f0edc300f5@gmail.com?part=1
next prev parent reply other threads:[~2026-05-11 22:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 21:49 [PATCH RFC v2 0/4] ZTE zx297520v3 clock bindings and driver Stefan Dösinger
2026-05-10 21:49 ` [PATCH RFC v2 1/4] dt-bindings: clk: zte: Add zx297520v3 clock and reset bindings Stefan Dösinger
2026-05-11 16:07 ` Conor Dooley
2026-05-11 21:33 ` Stefan Dösinger
2026-05-12 17:02 ` Conor Dooley
2026-05-11 22:12 ` sashiko-bot [this message]
2026-05-10 21:49 ` [PATCH RFC v2 2/4] clk: zte: Introduce a driver for zx297520v3 top clocks and resets Stefan Dösinger
2026-05-11 22:41 ` sashiko-bot
2026-05-10 21:49 ` [PATCH RFC v2 3/4] clk: zte: Introduce a driver for zx297520v3 matrix " Stefan Dösinger
2026-05-11 23:04 ` sashiko-bot
2026-05-10 21:49 ` [PATCH RFC v2 4/4] clk: zte: Introduce a driver for zx297520v3 LSP " Stefan Dösinger
2026-05-11 23:21 ` sashiko-bot
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=20260511221235.960EFC2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@lists.linux.dev \
--cc=stefandoesinger@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox