All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lachlan Michael" <lachlan.michael@sony.com>, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v4 1/2] media: dt-bindings: imx908: Add Sony IMX908 sensor
Date: Fri, 16 Oct 2026 08:05:23 +0000	[thread overview]
Message-ID: <sashiko-outbox-173990@kernel.org> (raw)
In-Reply-To: <20261016075918.19345-2-lachlan.michael@sony.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: Top-level additionalProperties: false breaks allOf references
--

commit 4681de18fac98c8519949f316873059d73610eb4
Author: Lachlan Michael <lachlan.michael@sony.com>

media: dt-bindings: imx908: Add Sony IMX908 sensor

This commit adds a new device tree binding for the Sony IMX908 CMOS image
sensor. It defines properties for a MIPI CSI-2 interface outputting RAW10
and RAW12 formats.

> diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx908.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx908.yaml
> new file mode 100644
> index 0000000000000..828db1175e2f5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx908.yaml

[ ... ]

> +allOf:
> +  - $ref: /schemas/media/video-interface-devices.yaml#
> +
> +properties:

[ ... ]

> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - dvdd-supply
> +  - ovdd-supply
> +  - avdd-supply
> +  - port
> +
> +additionalProperties: false

[Severity: Medium]
Since this schema includes an allOf reference to video-interface-devices.yaml,
should this use unevaluatedProperties: false instead of
additionalProperties: false?

Using additionalProperties only considers the properties explicitly declared
in the local properties dictionary and ignores properties introduced via $ref
in an allOf block. If a device tree node defines any valid inherited standard
property, such as rotation or orientation, schema validation will incorrectly
reject it as an invalid additional property. Changing to
unevaluatedProperties: false will correctly allow properties evaluated by the
referenced schemas.

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261016075918.19345-1-lachlan.michael@sony.com?part=1

  reply	other threads:[~2026-10-16  8:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16  7:59 [PATCH v4 0/2] Add bindings and driver for Sony IMX908 Lachlan Michael
2026-10-16  7:59 ` [PATCH v4 1/2] media: dt-bindings: imx908: Add Sony IMX908 sensor Lachlan Michael
2026-10-16  8:05   ` sashiko-bot [this message]
2026-10-16 13:48   ` Rob Herring
2026-10-16  7:59 ` [PATCH v4 2/2] media: i2c: Add Sony IMX908 image sensor driver Lachlan Michael
2026-10-16  8:11   ` 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=sashiko-outbox-173990@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lachlan.michael@sony.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 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.