Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hermes Wu" <Hermes.wu@ite.com.tw>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org,
	media-ci@linuxtv.org
Subject: Re: [PATCH v8 1/2] dt-bindings: media: add ITE IT6625/IT6626 HDMI bridge
Date: Mon, 27 Jul 2026 02:33:58 +0000	[thread overview]
Message-ID: <20260727023358.84B791F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260727-upstream-it6625-it6626-v8-1-2c3b0f9524fc@ite.com.tw>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The device tree schema incorrectly allows `bus-type` to be configured as C-PHY (1) for `ite,it6625` devices, which only support D-PHY (4).
--

--- Patch [1]: [PATCH v8 1/2] dt-bindings: media: add ITE IT6625/IT6626 HDMI bridge ---
commit fa0e1ae27e2934f8fdb2a29be488c42a9ccd6645
Author: Hermes Wu <Hermes.wu@ite.com.tw>

dt-bindings: media: add ITE IT6625/IT6626 HDMI bridge

Document the devicetree binding for the ITE IT6625/IT6626 HDMI to
MIPI CSI-2 bridge. The device exposes two graph ports and supports
split or clone mode.

> diff --git a/Documentation/devicetree/bindings/media/i2c/ite,it6625.yaml b/Documentation/devicetree/bindings/media/i2c/ite,it6625.yaml
> new file mode 100644
> index 0000000000000..756fe655f534f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/ite,it6625.yaml
[ ... ]
> +      port@0:
> +        $ref: /schemas/graph.yaml#/$defs/port-base
> +        unevaluatedProperties: false
> +        description: CSI-2 output port MIPI0
> +
> +        properties:
> +          endpoint:
> +            $ref: /schemas/media/video-interfaces.yaml#
> +            unevaluatedProperties: false
> +
> +            properties:
> +              data-lanes:
> +                minItems: 1
> +                maxItems: 4
> +
> +              bus-type:
> +                enum:
> +                  - 1 # MEDIA_BUS_TYPE_CSI2_CPHY
> +                  - 4 # MEDIA_BUS_TYPE_CSI2_DPHY
[ ... ]
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: ite,it6626
> +    then:
> +      properties:
> +        ports:
> +          properties:
> +            port@0:
> +              properties:
> +                endpoint:
> +                  required:
> +                    - bus-type

[Severity: Medium]
The patch notes mention dropping the allOf branch that forces bus-type to 
const 4 for ite,it6625 because the value is implied by the compatible string.
Does removing this constraint prevent the schema from verifying the hardware
limitations?

Since the base endpoint property allows both C-PHY (1) and D-PHY (4) globally,
if a devicetree author explicitly adds bus-type = <1> to an ite,it6625 node,
wouldn't the schema silently pass validation even though the hardware only 
supports D-PHY?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260727-upstream-it6625-it6626-v8-0-2c3b0f9524fc@ite.com.tw?part=1

  reply	other threads:[~2026-07-27  2:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-27  2:28 [PATCH v8 0/2] media: i2c: add support for ITE IT6625/IT6626 HDMI to MIPI CSI-2 bridge Hermes Wu via B4 Relay
2026-07-27  2:28 ` [PATCH v8 1/2] dt-bindings: media: add ITE IT6625/IT6626 HDMI bridge Hermes Wu via B4 Relay
2026-07-27  2:33   ` sashiko-bot [this message]
2026-07-27  6:19   ` Krzysztof Kozlowski
2026-07-27  6:24     ` Hermes.Wu
2026-07-27  2:28 ` [PATCH v8 2/2] media: i2c: add driver for ITE IT6625/IT6626 Hermes Wu via B4 Relay
2026-07-27  2:38   ` 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=20260727023358.84B791F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Hermes.wu@ite.com.tw \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=media-ci@linuxtv.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