Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jacopo Mondi" <jacopo.mondi@ideasonboard.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
	media-ci@linuxtv.org
Subject: Re: [PATCH v9 1/2] dt-bindings: media: i2c: Add mira220 image sensor
Date: Mon, 27 Jul 2026 08:36:14 +0000	[thread overview]
Message-ID: <20260727083615.60B4E1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260727-mira220-v9-1-e869e7ec2040@ideasonboard.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing `minItems: 1` in `data-lanes` unintentionally drops 1-lane support.
--

--- Patch [1]: [PATCH v9 1/2] dt-bindings: media: i2c: Add mira220 image sensor ---
commit a07e0c84ef20042ffd0f045f21d59c669b882854
Author: Philippe Baetens <philippebaetens@gmail.com>

dt-bindings: media: i2c: Add mira220 image sensor

This commit adds device tree bindings for the AMSOSRAM Mira220 image sensor.

> diff --git a/Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml b/Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml
> new file mode 100644
> index 0000000000000..fa6fec0072efa
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/ams,mira220.yaml

[ ... ]

> +    properties:
> +      endpoint:
> +        $ref: /schemas/media/video-interfaces.yaml#
> +        unevaluatedProperties: false
> +
> +        properties:
> +          data-lanes:
> +            items:
> +              - const: 1
> +              - const: 2

[Severity: Medium]
By defining items as a tuple array without an explicit minItems value, will
dt-schema automatically infer and enforce minItems: 2?

The changelog mentions removing the anyOf block from data-lanes in v5.
Without minItems: 1, does this inadvertently make valid device trees using
a 1-lane configuration fail schema validation?

If 1-lane setups are still supported by the hardware, should minItems: 1
be included here?

> +
> +        required:
> +          - data-lanes
> +          - link-frequencies

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260727-mira220-v9-0-e869e7ec2040@ideasonboard.com?part=1

  reply	other threads:[~2026-07-27  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-27  8:26 [PATCH v9 0/2] (no cover subject) Jacopo Mondi
2026-07-27  8:26 ` [PATCH v9 1/2] dt-bindings: media: i2c: Add mira220 image sensor Jacopo Mondi
2026-07-27  8:36   ` sashiko-bot [this message]
2026-07-27  8:26 ` [PATCH v9 2/2] media: i2c: Add driver for AMS-OSRAM Mira220 Jacopo Mondi
2026-07-27  8: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=20260727083615.60B4E1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --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