From: sashiko-bot@kernel.org
To: "Aliaksandr Smirnou" <asmirnou@pinefeat.co.uk>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v7 1/2] dt-bindings: Pinefeat cef168 lens control board
Date: Mon, 01 Jun 2026 20:52:25 +0000 [thread overview]
Message-ID: <20260601205226.049BA1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260601204814.19148-2-asmirnou@pinefeat.co.uk>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The Device Tree schema describes software rather than the physical hardware, violating Device Tree design principles. The title explicitly calls the binding a 'driver' instead of the hardware device, and the commit message intentionally omits power supply definitions because 'the driver does not manage any regulator', which couples the hardware description to current software limitations.
--
commit 5752dd4b724a501f53ddad43b87fa9c0328d6fb5
Author: Aliaksandr Smirnou <asmirnou@pinefeat.co.uk>
dt-bindings: Pinefeat cef168 lens control board
This commit adds the Device Tree schema and examples for the Pinefeat
cef168 lens control board. It supports controlling Canon EF and EF-S
lenses via V4L2.
> Power supply is derived from fixed supplies via connector or GPIO
> header. Therefore, the driver does not manage any regulator, so
> representing any supply in the binding is redundant.
[Severity: Low]
Device tree is intended to describe the physical hardware independent of
the operating system or current driver features. Shouldn't the physical
power rails be described in the binding, even if the current driver does
not actively manage them?
> diff --git a/Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml b/Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml
> new file mode 100644
> index 0000000000000..1295b1f4edebc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml
> @@ -0,0 +1,47 @@
[ ... ]
> +$id: http://devicetree.org/schemas/media/i2c/pinefeat,cef168.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Pinefeat cef168 lens driver
[Severity: Low]
Does this title reflect a conceptual mismatch by referring to a software
driver rather than the hardware device? Would it be better to title this
"Pinefeat cef168 lens control board" to match standard device tree naming
practices?
[ ... ]
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
[Severity: Low]
Because physical power supplies are omitted from the schema, does setting
additionalProperties to false prevent creating a complete, hardware-accurate
device tree? If someone describes the board's actual power rails in their
device tree, it will fail schema validation. Should the physical supply
properties be added here to allow accurate hardware descriptions?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260601204814.19148-1-asmirnou@pinefeat.co.uk?part=1
prev parent reply other threads:[~2026-06-01 20:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260601204814.19148-1-asmirnou@pinefeat.co.uk>
2026-06-01 20:48 ` [PATCH v7 1/2] dt-bindings: Pinefeat cef168 lens control board Aliaksandr Smirnou
2026-06-01 20:52 ` sashiko-bot [this message]
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=20260601205226.049BA1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=asmirnou@pinefeat.co.uk \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-media@vger.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