From: sashiko-bot@kernel.org
To: "Sebastian Reichel" <sebastian.reichel@collabora.com>
Cc: robh@kernel.org, linux-clk@vger.kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/8] dt-bindings: devfreq: event: rockchip,dfi: add clocks to rk3588
Date: Mon, 21 Sep 2026 20:41:50 +0000 [thread overview]
Message-ID: <20260921204151.DE8A51F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921-rockchip-dfi-cleanup-v2-2-43ff34ac8599@collabora.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: missing clock constraints for rk3568-dfi
- [Medium] dt-bindings: variant conditionals fail to restrict clock-names exact strings
--
commit 88c291fbc8ab68b7cfb2fa8d4a230dd27bd0f853
Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
dt-bindings: devfreq: event: rockchip,dfi: add clocks to rk3588
This commit updates the Rockchip DFI binding to add clock definitions for
the rk3588 SoC. It modifies the global clock limits and introduces
conditional blocks to handle the differences between rk3399 and rk3588.
> diff --git a/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml b/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml
> index 50d3fabe958d5..3450e28b40208 100644
> --- a/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml
> +++ b/Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml
> @@ -17,11 +17,18 @@ properties:
> - rockchip,rk3588-dfi
>
> clocks:
> - maxItems: 1
> + minItems: 1
> + maxItems: 4
>
> clock-names:
> + minItems: 1
> items:
> - - const: pclk_ddr_mon
> + - enum:
> + - pclk_ddr_mon
> + - pclk_ddr_mon_ch0
> + - const: pclk_ddr_mon_ch1
> + - const: pclk_ddr_mon_ch2
> + - const: pclk_ddr_mon_ch3
[ ... ]
> -if:
> - properties:
> - compatible:
> - contains:
> - enum:
> - - rockchip,rk3399-dfi
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - rockchip,rk3399-dfi
[Severity: Medium]
Will this omission cause schema validation to be incomplete for rk3568-dfi?
The global clocks constraint was relaxed to maxItems: 4 to support rk3588,
but rk3568-dfi is omitted from these conditional blocks. Doesn't this mean
device trees for rk3568-dfi specifying up to 4 clocks will inadvertently pass
dtbs_check validation instead of being restricted to the historic maxItems: 1
limit?
> + then:
> + properties:
> + clocks:
> + maxItems: 1
> + clock-names:
> + maxItems: 1
> + required:
> + - clocks
> + - clock-names
[Severity: Medium]
Does this setup allow incorrectly named clocks to pass validation for specific
variants?
Since the global clock-names definition uses an enum for the first item,
and this conditional block only restricts maxItems: 1, a device tree using
clock-names = "pclk_ddr_mon_ch0" will erroneously pass validation for
rk3399-dfi. The same applies for rk3588-dfi passing with "pclk_ddr_mon".
Should the variant-specific conditional blocks override the items array
to enforce the correct fixed string (const) for that specific variant?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-rockchip-dfi-cleanup-v2-0-43ff34ac8599@collabora.com?part=2
next prev parent reply other threads:[~2026-09-21 20:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 20:32 [PATCH v2 0/8] PM / devfreq: rockchip-dfi: cleanups Sebastian Reichel
2026-09-21 20:32 ` [PATCH v2 1/8] dt-bindings: clock: rk3588: add PCLK_DDR_MON_CH clocks Sebastian Reichel
2026-10-05 17:10 ` Rob Herring (Arm)
2026-09-21 20:32 ` [PATCH v2 2/8] dt-bindings: devfreq: event: rockchip,dfi: add clocks to rk3588 Sebastian Reichel
2026-09-21 20:41 ` sashiko-bot [this message]
2026-10-05 17:10 ` Rob Herring (Arm)
2026-09-21 20:32 ` [PATCH v2 3/8] PM / devfreq: rockchip-dfi: move to per-variant const structs Sebastian Reichel
2026-09-21 20:32 ` [PATCH v2 4/8] PM / devfreq: rockchip-dfi: add NO_INTERRUPT perf capability Sebastian Reichel
2026-09-21 20:39 ` sashiko-bot
2026-09-21 20:32 ` [PATCH v2 5/8] PM / devfreq: rockchip-dfi: use bulk clock APIs Sebastian Reichel
2026-09-21 20:32 ` [PATCH v2 6/8] clk: rockchip: rk3588: add PCLK_DDR_MON_CH gate branches Sebastian Reichel
2026-09-21 20:32 ` [PATCH v2 7/8] PM / devfreq: rockchip-dfi: make RK3588 use its clocks Sebastian Reichel
2026-09-21 20:46 ` sashiko-bot
2026-09-21 20:32 ` [PATCH v2 8/8] arm64: dts: rockchip: add dfi clocks on RK3588 Sebastian Reichel
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=20260921204151.DE8A51F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--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 \
--cc=sebastian.reichel@collabora.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