Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bryan O'Donoghue" <bryan.odonoghue@linaro.org>
Cc: robh@kernel.org, devicetree@vger.kernel.org, vkoul@kernel.org,
	linux-phy@lists.infradead.org, neil.armstrong@linaro.org,
	media-ci@linuxtv.org, olteanv@gmail.com, conor+dt@kernel.org
Subject: Re: [PATCH v15 1/2] dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema
Date: Thu, 30 Jul 2026 12:12:17 +0000	[thread overview]
Message-ID: <20260730121218.399761F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260730-x1e-csi2-phy-v15-1-f284131de1fa@linaro.org>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The schema explicitly permits the CPHY bus-type, contradicting the commit message.
- [Medium] The `data-lanes` property lacks an `items: maximum: 3` constraint to restrict physical lane indexes.
- [Medium] The `clock-lanes` property is implicitly allowed in the schema despite being unsupported by hardware.
--

--- Patch [1]: [PATCH v15 1/2] dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema ---
commit 2ff6f092cd049b723d7a175d8013e50897b62b79
Author: Bryan O'Donoghue <bryan.odonoghue@linaro.org>

dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema

Add a base schema for the MIPI CSI2 PHYs on Qualcomm SoCs. This PHY
supports both DPHY and CPHY operation. A special mode of DPHY operation -
called variously split-mode or combo-mode also allows for two sensors to be
connected to one PHY.

> diff --git a/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml
> new file mode 100644
> index 0000000000000..8aa6ad2723988
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml
> @@ -0,0 +1,202 @@
[ ... ]
> +        patternProperties:
> +          "^endpoint(@[01])?$":
> +            $ref: /schemas/media/video-interfaces.yaml#
> +            unevaluatedProperties: false
> +            properties:

[Severity: Medium]
Since this endpoint includes a reference to video-interfaces.yaml, the
clock-lanes property is implicitly evaluated and permitted. The description
below notes "The dedicated clock lane is not described", so should
clock-lanes: false be added here to explicitly forbid it?

> +              bus-type:
> +                enum:
> +                  - 1 # MEDIA_BUS_TYPE_CSI2_CPHY
> +                  - 4 # MEDIA_BUS_TYPE_CSI2_DPHY

[Severity: Medium]
The commit message explicitly states "CPHY is left to future work", but the
schema permits the CPHY bus-type here. 

Does this allow device trees with incomplete or invalid CPHY configurations
to silently pass schema validation?

> +
> +              data-lanes:
> +                minItems: 1
> +                maxItems: 4
> +                description:
> +                  An array of physical data lane indexes, 0-3, following the

[Severity: Medium]
Should there be an explicit items constraint (e.g., items: { maximum: 3 })
added to enforce the 0-3 range for physical lane indexes?

Without it, the array values fall back to the /schemas/media/video-interfaces.yaml#
default constraint, which allows physical lane values up to 8.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260730-x1e-csi2-phy-v15-0-f284131de1fa@linaro.org?part=1

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-07-30 12:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30 12:02 [PATCH v15 0/2] phy: qcom-mipi-csi2: Add a CSI2 MIPI DPHY driver Bryan O'Donoghue
2026-07-30 12:02 ` [PATCH v15 1/2] dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema Bryan O'Donoghue
2026-07-30 12:12   ` sashiko-bot [this message]
2026-07-30 12:02 ` [PATCH v15 2/2] phy: qcom-mipi-csi2: Add a CSI2 MIPI DPHY driver Bryan O'Donoghue

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=20260730121218.399761F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=media-ci@linuxtv.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /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