Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jai Luthra" <jai.luthra@ideasonboard.com>
Cc: krzk+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org,
	conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: media: i2c: Add Sony IMX678
Date: Thu, 14 May 2026 05:58:31 +0000	[thread overview]
Message-ID: <20260514055831.8C3DFC2BCB7@smtp.kernel.org> (raw)
In-Reply-To: <20260513-imx678-v1-1-30fc593ed8fa@ideasonboard.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Missing Generic Camera Properties
- [Medium] JSON Schema Anti-Pattern in `port` node
--

commit 3c708026acd2beae088666fedca4311601c91211
Author: Jai Luthra <jai.luthra@ideasonboard.com>

dt-bindings: media: i2c: Add Sony IMX678

This commit adds the device tree binding documentation for the Sony IMX678,
an 8.4 Megapixel CMOS sensor that outputs pixels over a MIPI CSI-2 bus. It
also updates the MAINTAINERS file for the new driver.

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

[ ... ]

> +  reset-gpios:
> +    description: Sensor reset (XCLR) GPIO
> +    maxItems: 1
> +
> +  port:
> +    $ref: /schemas/graph.yaml#/$defs/port-base
> +    additionalProperties: false

Should this use unevaluatedProperties: false instead of
additionalProperties: false?

Under JSON Schema validation rules, additionalProperties: false only accounts
for keys explicitly listed in the local properties block and does not see
properties pulled in by the $ref.

This means any standard properties inherited from port-base (such as reg or
description) will be incorrectly rejected if specified in a device tree.

[ ... ]

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

Does this schema need to reference the generic video interface devices
schema?

Camera sensors frequently require physical mounting properties such as
orientation and rotation to describe their alignment to user-space.

Because of additionalProperties: false and the missing $ref to
/schemas/media/video-interface-devices.yaml#, any board device tree using
these standard properties will fail dt_binding_check validation.

Changing this to unevaluatedProperties: false and including the generic
video interface schema via an allOf block would allow those standard
properties to be used.

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260513-imx678-v1-0-30fc593ed8fa@ideasonboard.com?part=1

  reply	other threads:[~2026-05-14  5:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13 15:33 [PATCH 0/2] media: Add bindings and driver for Sony IMX678 Jai Luthra
2026-05-13 15:33 ` [PATCH 1/2] dt-bindings: media: i2c: Add " Jai Luthra
2026-05-14  5:58   ` sashiko-bot [this message]
2026-05-13 15:33 ` [PATCH 2/2] media: i2c: imx678: Add driver for " Jai Luthra
2026-05-13 18:28   ` Dave Stevenson
2026-05-14  5:12     ` Jai Luthra
2026-05-14  6:47   ` 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=20260514055831.8C3DFC2BCB7@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jai.luthra@ideasonboard.com \
    --cc=krzk+dt@kernel.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