From: sashiko-bot@kernel.org
To: "Marcelo Schmitt" <marcelo.schmitt@analog.com>,
devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 4/5] dt-bindings: iio: adc: Add ADA4355
Date: Fri, 27 Nov 2026 22:07:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-238319@kernel.org> (raw)
In-Reply-To: <8813d3f0e71d8917d13db74e4432002bb57548af.1795816065.git.marcelo.schmitt@analog.com>
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Low] dt-bindings: iio: adc: missing maxItems on single-pin GPIO
properties
- [Low] dt-bindings: iio: adc: typo in adi,lfp-gpios property name for
low-pass filter
- [Low] dt-bindings: iio: adc: adi,gsel-gpios uses minItems/maxItems
instead of items
- [Low] dt-bindings: iio: adc: copy-pasted pulsar_lvds URL in
io-backends description
- [Low] dt-bindings: iio: adc: non-canonical property ordering in
adi,ada4355.yaml
--
commit d52bd9771b5186971c4b9ce320e630e432350d61
Author: Marcelo Schmitt <marcelo.schmitt@analog.com>
dt-bindings: iio: adc: Add ADA4355
This commit adds the Device Tree binding schema for the Analog Devices
ADA4355 and ADA4356 transimpedance current-to-bits receivers and adds a
corresponding entry in MAINTAINERS.
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ada4355.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ada4355.yaml
> new file mode 100644
> index 0000000000000..d169619fef25a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ada4355.yaml
> @@ -0,0 +1,104 @@
[ ... ]
> + adi,vld-en-gpios:
> + description: GPIO connected to the VLDEN pin for VLD output enable.
[Severity: Low]
Does adi,vld-en-gpios need maxItems: 1 (and similarly adi,lfp-gpios
below)? In dtschema, *-gpios properties must specify their length via
maxItems or items, otherwise make dt_binding_check fails meta-schema
validation.
> +
> + adi,gsel-gpios:
> + description:
> + GPIOs connected to the GSEL0 and GSEL1 pins, in that order, for
> + transimpedance gain selection.
> + minItems: 2
> + maxItems: 2
[Severity: Low]
Since adi,gsel-gpios has a fixed two-entry list for GSEL0 and GSEL1,
should it use an items list with per-entry descriptions instead of
enumerating the pins in a free-form description with minItems and
maxItems?
> +
> + adi,lfp-gpios:
> + description:
> + GPIO connected to FSEL for internal low pass filter bandwidth selection.
[Severity: Low]
Is adi,lfp-gpios a typo for adi,lpf-gpios (low-pass filter) or
adi,fsel-gpios (matching the FSEL pin name)?
> +
> + io-backends:
> + description:
> + The AXI ADC IP block connected to the D+/- and DCO+/- lines of the
> + ADC. An example backend can be found at
> + http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html.
> + maxItems: 1
[Severity: Low]
Should this URL point to
https://analogdevicesinc.github.io/hdl/library/axi_ada4355/index.html
(from commit "dt-bindings: iio: adc: Add AXI ADA4355 IP CORE") instead
of the PulSAR LVDS project?
> +
> +required:
> + - compatible
> + - reg
> + - vcc-supply
> + - spi-3wire
> + - spi-cpha
> + - clocks
> + - adi,vld-en-gpios
> + - adi,gsel-gpios
> + - adi,lfp-gpios
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + adc@0 {
> + compatible = "adi,ada4355";
> + reg = <0>;
> + spi-max-frequency = <100000>;
> + spi-3wire;
> + spi-cpha;
> + vcc-supply = <&supply_3_3V>;
> + clocks = <&ref_clk>;
> + adi,vld-en-gpios = <&gpio0 89 GPIO_ACTIVE_HIGH>;
> + adi,gsel-gpios = <&gpio0 86 GPIO_ACTIVE_HIGH>,
> + <&gpio0 87 GPIO_ACTIVE_HIGH>;
> + adi,lfp-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH>;
> + io-backends = <&axi_adc>;
> + };
> + };
[Severity: Low]
This isn't a bug, but the property order across properties, required and
examples does not follow the canonical DT binding sequence: clocks
belongs right after reg, standard properties such as io-backends go
before vendor-specific adi,* properties, and required lists vcc-supply
before spi-3wire and spi-cpha unlike properties and examples.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795816065.git.marcelo.schmitt@analog.com?part=4
next prev parent reply other threads:[~2026-11-27 22:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 21:51 [PATCH v2 0/5] Add support for ADA4355 Marcelo Schmitt
2026-11-27 21:51 ` [PATCH v2 1/5] iio: backend: Add calibration source interface Marcelo Schmitt
2026-11-27 21:52 ` [PATCH v2 2/5] dt-bindings: iio: adc: Add AXI ADA4355 IP CORE Marcelo Schmitt
2026-11-27 21:52 ` [PATCH v2 3/5] iio: adc: adi-axi-adc: Support AXI ADA4355 IP core Marcelo Schmitt
2026-11-27 21:52 ` [PATCH v2 4/5] dt-bindings: iio: adc: Add ADA4355 Marcelo Schmitt
2026-11-27 22:07 ` sashiko-bot [this message]
2026-11-27 21:53 ` [PATCH v2 5/5] iio: adc: Add support for ADA4355 and similar ADCs Marcelo Schmitt
2026-11-27 22:06 ` 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-238319@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--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