Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Taniya Das" <taniya.das@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v10 06/10] dt-bindings: clock: qcom: Add support for CAMCC for Eliza
Date: Thu, 06 Aug 2026 10:48:30 +0000	[thread overview]
Message-ID: <20260806104830.E99B01F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260806-eliza-mm-cc-v9-v10-6-6ba52dd14343@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The binding imposes a strict 3-item `clocks` array constraint which conflicts with the typical hardware requirements of the newly added `qcom,eliza-cambistmclkcc` variant.
- [Medium] The schema incorrectly inherits a strict requirement for `#reset-cells` from `qcom,gcc.yaml#` and applies it to the `qcom,eliza-cambistmclkcc` variant, which does not provide resets.
--

--- Patch [6]: [PATCH v10 06/10] dt-bindings: clock: qcom: Add support for CAMCC for Eliza ---
commit edf279fa3bffce90685bc341e0addff553a7d4e2
Author: Taniya Das <taniya.das@oss.qualcomm.com>

dt-bindings: clock: qcom: Add support for CAMCC for Eliza

This commit adds the compatible strings and dt-bindings headers for the
Eliza camera and camera BIST clock controllers to the existing Milos
camcc binding. It also enforces the '#power-domain-cells' requirement
for the camera clock controller.

> diff --git a/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml
> index c4aba40e316ca..0655cea72524e 100644
> --- a/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml
> +++ b/Documentation/devicetree/bindings/clock/qcom,milos-camcc.yaml
[ ... ]
>  properties:
>    compatible:
> -    const: qcom,milos-camcc
> +    enum:
> +      - qcom,eliza-cambistmclkcc
> +      - qcom,eliza-camcc
> +      - qcom,milos-camcc
>  
>    clocks:
>      items:

[Severity: Medium]
Is this global clocks array constraint too strict for the new BIST variant?

The base schema currently restricts the clocks property to exactly 3 specific
items. Do BIST clock controllers like qcom,eliza-cambistmclkcc use the exact
same 3 clocks, or do they require a different set and number (e.g., AHB, TCXO,
TCXO_AO, SLEEP)?

Should there be a conditional if-then block to override the clocks array
constraints for qcom,eliza-cambistmclkcc so validation doesn't fail when the
actual clocks used by the hardware are provided?

[ ... ]
> @@ -47,6 +54,15 @@ required:
>  
>  allOf:
>    - $ref: qcom,gcc.yaml#
> +  - if:
> +      not:
> +        properties:
> +          compatible:
> +            contains:
> +              const: qcom,eliza-cambistmclkcc

[Severity: Medium]
Does this inheritance from qcom,gcc.yaml# inadvertently force a
#reset-cells requirement on the qcom,eliza-cambistmclkcc variant?

The referenced qcom,gcc.yaml schema unconditionally requires the
#reset-cells property. By including it here globally, the new BIST controller
inherits this requirement. 

However, looking at the newly added header for this variant:

include/dt-bindings/clock/qcom,eliza-cambistmclkcc.h:
/* CAM_BIST_MCLK_CC clocks */
#define CAM_BIST_MCLK_CC_MCLK0_CLK                              0
#define CAM_BIST_MCLK_CC_MCLK0_CLK_SRC                          1
...

The controller only defines clocks and has no reset indices.

Could this cause device tree validation to fail for the new variant unless
authors add a dummy #reset-cells property?

Would it be better to make the $ref: qcom,gcc.yaml# inclusion conditional for
compatibles that actually provide resets, or perhaps split the BIST controller
into a separate YAML schema?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260806-eliza-mm-cc-v9-v10-0-6ba52dd14343@oss.qualcomm.com?part=6

  reply	other threads:[~2026-08-06 10:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 10:34 [PATCH v10 00/10] Add support for Video, Camera, Graphics clock controllers on Eliza Taniya Das
2026-08-06 10:34 ` [PATCH v10 01/10] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support Taniya Das
2026-08-06 10:34 ` [PATCH v10 02/10] dt-bindings: clock: qcom,milos-videocc: " Taniya Das
2026-08-06 10:34 ` [PATCH v10 03/10] arm64: dts: qcom: milos: Add power-domains for camcc and videocc Taniya Das
2026-08-06 10:34 ` [PATCH v10 04/10] dt-bindings: clock: qcom: Add video clock controller on Qualcomm Eliza SoC Taniya Das
2026-08-06 10:34 ` [PATCH v10 05/10] dt-bindings: clock: qcom: document the Eliza GPU Clock Controller Taniya Das
2026-08-06 10:34 ` [PATCH v10 06/10] dt-bindings: clock: qcom: Add support for CAMCC for Eliza Taniya Das
2026-08-06 10:48   ` sashiko-bot [this message]
2026-08-06 10:34 ` [PATCH v10 07/10] clk: qcom: videocc: Add video clock controller driver " Taniya Das
2026-08-06 10:34 ` [PATCH v10 08/10] clk: qcom: gpucc: Add GPU Clock Controller " Taniya Das
2026-08-06 10:34 ` [PATCH v10 09/10] clk: qcom: camcc: Add support for camera clock controller " Taniya Das
2026-08-06 10:56   ` sashiko-bot
2026-08-06 10:34 ` [PATCH v10 10/10] arm64: dts: qcom: eliza: Add support for MM clock controllers Taniya Das
2026-08-06 10:47   ` 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=20260806104830.E99B01F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=taniya.das@oss.qualcomm.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