Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Wangao Wang" <wangao.wang@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v8 1/5] dt-bindings: media: qcom,sm8550-iris: Add X1P42100 compatible
Date: Fri, 29 May 2026 08:01:22 +0000	[thread overview]
Message-ID: <20260529080123.3D8FE1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260529-enable_iris_on_purwa-v8-1-b1b9670459ab@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Missing required properties in the conditional block for `qcom,x1p42100-iris` allows incomplete device tree nodes to pass validation.
- [Medium] Broken schema conditional matching for `qcom,x1p42100-iris` causes valid device tree nodes to fail validation.
--

commit f911896de9da99ee2b5652949237c15bf6d78f44
Author: Wangao Wang <wangao.wang@oss.qualcomm.com>

dt-bindings: media: qcom,sm8550-iris: Add X1P42100 compatible

Document the new compatible string "qcom,x1p42100-iris". Unlike SM8550 where
the BSE is clocked implicitly, x1p42100 exposes a dedicated BSE clock that
requires explicit configuration.

> diff --git a/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml
> index 9c4b760508b50..0400ca1bff05d 100644
> --- a/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml
> +++ b/Documentation/devicetree/bindings/media/qcom,sm8550-iris.yaml

[ ... ]

> @@ -115,6 +119,23 @@ allOf:
>            maxItems: 1
>          reset-names:
>            maxItems: 1
> +  - if:
> +      properties:
> +        compatible:
> +          enum:
> +            - qcom,x1p42100-iris

[Severity: Medium]
Should this use "contains: enum" or "contains: const" instead of a direct
enum match?

Since the compatible property is evaluated as an array of strings in device
tree validation, a direct enum match will fail against an array. This could
cause the condition to always evaluate to false, falling through to the else
block which restricts clocks to maxItems: 3, causing correctly configured
nodes to fail validation.

> +    then:
> +      properties:
> +        clocks:
> +          minItems: 4
> +        clock-names:
> +          minItems: 4

[Severity: Medium]
Since minItems constraints only apply if the property is actually present,
should clocks and clock-names be added to a required list in this block?

Without them, a device tree node omitting the clocks entirely might silently
pass schema validation, even though the fourth clock is mandatory for this
variant to operate.

> +    else:
> +      properties:
> +        clocks:
> +          maxItems: 3
> +        clock-names:
> +          maxItems: 3

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260529-enable_iris_on_purwa-v8-0-b1b9670459ab@oss.qualcomm.com?part=1

  reply	other threads:[~2026-05-29  8:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <keD2FYytnyM7Tuz-kCdnzVBtv7rq_24Kr2dEKBfOpBjqQnmRFqksX-dY7IE8TlIB4ke44GBSYStsHtoa0x4DJQ==@protonmail.internalid>
2026-05-29  7:34 ` [PATCH v8 0/5] media: iris: add support for purwa platform Wangao Wang
2026-05-29  7:34   ` [PATCH v8 1/5] dt-bindings: media: qcom,sm8550-iris: Add X1P42100 compatible Wangao Wang
2026-05-29  8:01     ` sashiko-bot [this message]
2026-05-29  7:34   ` [PATCH v8 2/5] media: iris: Add hardware power on/off ops for X1P42100 Wangao Wang
2026-05-29  8:19     ` sashiko-bot
2026-05-29  7:35   ` [PATCH v8 3/5] media: iris: Add platform data " Wangao Wang
2026-05-29  7:35   ` [PATCH v8 4/5] arm64: dts: qcom: purwa: Override Iris clocks and operating points Wangao Wang
2026-05-29  8:55     ` sashiko-bot
2026-05-29  7:35   ` [PATCH v8 5/5] arm64: dts: qcom: purwa-iot-som: enable video Wangao Wang
2026-05-29  8:46   ` [PATCH v8 0/5] media: iris: add support for purwa platform Jie Gan
2026-05-29  9:13     ` Bryan O'Donoghue
2026-05-29  9:15   ` Bryan O'Donoghue
2026-05-29  9:45     ` Wangao Wang

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=20260529080123.3D8FE1F00893@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=wangao.wang@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