From: sashiko-bot@kernel.org
To: "Damon Ding" <damon.ding@rock-chips.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v8 01/10] dt-bindings: display: rockchip: analogix-dp: Fix hclk as third clock for RK3588
Date: Mon, 25 May 2026 13:05:43 +0000 [thread overview]
Message-ID: <20260525130543.BC2921F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260525125331.140059-2-damon.ding@rock-chips.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The schema fails to enforce the per-SoC clock names for the third clock as claimed in the commit message.
--
commit 610de2ebf53101c37f8a390596d7553b1a60ba5c
Author: Damon Ding <damon.ding@rock-chips.com>
dt-bindings: display: rockchip: analogix-dp: Fix hclk as third clock for RK3588
This commit changes the analogix-dp binding to require the hclk clock
for the RK3588 eDP controller to make the dependency explicit. It attempts
to define per-SoC clock requirements, specifying 2 clocks for RK3288,
and 3 clocks for RK3399 (grf) and RK3588 (hclk).
> diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
> index d99b23b88cc59..a1ab7a77bdd35 100644
> --- a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
> +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
> @@ -26,7 +26,9 @@ properties:
> items:
> - const: dp
> - const: pclk
> - - const: grf
> + - enum:
> + - grf
> + - hclk
>
> power-domains:
> maxItems: 1
[ ... ]
> @@ -60,6 +62,32 @@ required:
> allOf:
> - $ref: /schemas/display/bridge/analogix,dp.yaml#
[ ... ]
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - rockchip,rk3399-edp
> + then:
> + properties:
> + clocks:
> + minItems: 3
> + clock-names:
> + minItems: 3
> +
> - if:
> properties:
> compatible:
> @@ -68,6 +96,10 @@ allOf:
> - rockchip,rk3588-edp
> then:
> properties:
> + clocks:
> + minItems: 3
> + clock-names:
> + minItems: 3
[Severity: Medium]
The commit message explicitly states the intent to enforce per-SoC clock-names
requirements, specifying that RK3399 requires grf as the third clock while
RK3588 requires hclk.
Does this implementation actually enforce the per-SoC clock names for the third
clock?
The conditional blocks only add minItems: 3 to the clock-names property without
explicitly defining the sequence of allowed values. Since the top-level
clock-names definition allows an enum of grf and hclk, could an
RK3399 node successfully validate while using hclk, or an RK3588 node
validate while using grf?
Should the then clauses explicitly define clock-names: items with the exact
sequence of const strings required for each specific SoC to fully enforce
these constraints?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260525125331.140059-1-damon.ding@rock-chips.com?part=1
next prev parent reply other threads:[~2026-05-25 13:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 12:53 [PATCH v8 00/10] Add eDP support for RK3576 Damon Ding
2026-05-25 12:53 ` [PATCH v8 01/10] dt-bindings: display: rockchip: analogix-dp: Fix hclk as third clock for RK3588 Damon Ding
2026-05-25 13:05 ` sashiko-bot [this message]
2026-05-25 16:54 ` Conor Dooley
2026-05-26 0:54 ` Damon Ding
2026-05-26 11:27 ` Damon Ding
2026-05-26 16:39 ` Conor Dooley
2026-05-25 12:53 ` [PATCH v8 02/10] dt-bindings: display: rockchip: analogix-dp: Add per-clock descriptions Damon Ding
2026-05-25 12:53 ` [PATCH v8 03/10] arm64: dts: rockchip: Add missing hclk for RK3588 eDP0 Damon Ding
2026-05-25 13:39 ` sashiko-bot
2026-05-25 12:53 ` [PATCH v8 04/10] arm64: dts: rockchip: Add missing hclk for RK3588 eDP1 Damon Ding
2026-05-25 12:53 ` [PATCH v8 05/10] drm/rockchip: analogix_dp: Enable hclk for RK3588 Damon Ding
2026-05-25 12:53 ` [PATCH v8 06/10] dt-bindings: display: rockchip: analogix-dp: Add support for RK3576 Damon Ding
2026-05-25 12:53 ` [PATCH v8 07/10] arm64: dts: rockchip: Add eDP node " Damon Ding
2026-05-25 12:53 ` [PATCH v8 08/10] drm/bridge: analogix_dp: Rename and simplify is_rockchip() Damon Ding
2026-05-25 12:53 ` [PATCH v8 09/10] drm/bridge: analogix_dp: Add support for RK3576 Damon Ding
2026-05-25 12:53 ` [PATCH v8 10/10] drm/rockchip: " Damon Ding
2026-05-25 13:36 ` 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=20260525130543.BC2921F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=damon.ding@rock-chips.com \
--cc=devicetree@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox