All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hermes Wu" <Hermes.wu@ite.com.tw>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org,
	media-ci@linuxtv.org
Subject: Re: [PATCH v3 1/2] dt-bindings: media: add ITE IT6625/IT6626 HDMI bridge binding
Date: Wed, 22 Jul 2026 03:52:10 +0000	[thread overview]
Message-ID: <20260722035211.6DEC51F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260722-upstream-it6625-it6626-v3-1-947e50f01764@ite.com.tw>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] The HDMI input port (`port@2`) is omitted from the required ports list, allowing the bridge to be defined without an input data source.
- [Medium] The `bus-type` property is not marked as required for the CSI-2 endpoints, leaving the physical layer configuration ambiguous for the IT6626 variant.
- [Medium] Endpoint constraints are tied to the exact node name `endpoint` instead of using `patternProperties`, allowing constraints to be silently bypassed if a device tree uses a numbered endpoint like `endpoint@0`.
--

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

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

Document the devicetree binding for the ITE IT6625/IT6626 HDMI to
MIPI CSI-2 bridge, supporting single or dual CSI-2 outputs.

> 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..9bc5584b48880
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/ite,it6625.yaml
> @@ -0,0 +1,159 @@

[ ... ]

> +  ports:
> +    $ref: /schemas/graph.yaml#/properties/ports
> +    properties:
> +      port@0:
> +        $ref: /schemas/graph.yaml#/$defs/port-base
> +        unevaluatedProperties: false
> +        description: CSI-2 output port MIPI0
> +
> +        properties:
> +          endpoint:

[Severity: Medium]
Since the constraints are tied to the exact node name "endpoint", will
these restrictions be silently bypassed if a device tree uses a numbered
endpoint like "endpoint@0"? Using patternProperties for 
"^endpoint(@[0-9a-f]+)?$" might be needed here to ensure the constraints
apply to all valid endpoint node names.

> +            $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
> +
> +              clock-noncontinuous: true
> +              link-frequencies: true
> +
> +            required:
> +              - data-lanes

[Severity: Medium]
Does this allow device trees for the IT6626 variant to omit the bus-type
property? Without it being listed in the required array, the schema
could validate successfully while leaving the driver without the necessary
hardware information to unambiguously configure the physical layer.

[ ... ]

> +      port@2:
> +        $ref: /schemas/graph.yaml#/$defs/port-base
> +        unevaluatedProperties: false
> +        description: HDMI connector input port
> +
> +        properties:
> +          endpoint:
> +            $ref: /schemas/graph.yaml#/$defs/endpoint-base
> +            unevaluatedProperties: false
> +
> +    required:
> +      - port@0

[Severity: Medium]
Is it intentional that the HDMI input port (port@2) is omitted from this
required list? This appears to allow a device tree to pass schema
validation without specifying the video input to the bridge, resulting
in an incomplete graph that will lack a data source at runtime.

> +required:
> +  - compatible
> +  - reg
> +  - ports
> +
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: ite,it6625
> +    then:
> +      properties:
> +        ports:
> +          properties:
> +            port@0:
> +              properties:
> +                endpoint:

[Severity: Medium]
Will this allOf constraint fail to apply if the device tree uses a numbered
endpoint like "endpoint@0"? Similar to the local constraints above, looking
for the exact "endpoint" string allows numbered nodes to bypass the D-PHY
restriction for the IT6625 variant.

> +                  properties:
> +                    bus-type:
> +                      const: 4

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260722-upstream-it6625-it6626-v3-0-947e50f01764@ite.com.tw?part=1

  reply	other threads:[~2026-07-22  3:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-22  3:44 [PATCH v3 0/2] media: i2c: add support for ITE IT6625/IT6626 HDMI to MIPI CSI-2 bridge Hermes Wu via B4 Relay
2026-07-22  3:44 ` Hermes Wu
2026-07-22  3:44 ` [PATCH v3 1/2] dt-bindings: media: add ITE IT6625/IT6626 HDMI bridge binding Hermes Wu via B4 Relay
2026-07-22  3:44   ` Hermes Wu
2026-07-22  3:52   ` sashiko-bot [this message]
2026-07-22  3:44 ` [PATCH v3 2/2] media: i2c: add driver for ITE IT6625/IT6626 Hermes Wu via B4 Relay
2026-07-22  3:44   ` Hermes Wu
2026-07-22  3:58   ` 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=20260722035211.6DEC51F00A3D@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.