Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hungyu Lin" <dennylin0707@gmail.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: iio: adc: add AD7816/AD7817/AD7818 binding
Date: Fri, 08 May 2026 22:55:39 +0000	[thread overview]
Message-ID: <20260508225540.243CEC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260508202005.76278-1-dennylin0707@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] GPIO properties described as optional are enforced as strictly required in the schema.
--

commit 5e87ac2e842cf4989944934ecd916083ea3da1f7
Author: Hungyu Lin <dennylin0707@gmail.com>

dt-bindings: iio: adc: add AD7816/AD7817/AD7818 binding

Add Device Tree binding documentation for the Analog Devices
AD7816, AD7817 and AD7818 SPI ADC devices.

> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml
> new file mode 100644
> index 0000000000000..490e5338d7b2e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml

[ ... ]

> +required:
> +  - compatible
> +  - reg
> +  - rdwr-gpios
> +  - convert-gpios

The commit message states that the devices "may use control GPIOs for RD/WR
and CONVST", which implies they are optional. 

Are rdwr-gpios and convert-gpios strictly required for operation? If they can
be left unconnected or hardwired depending on the board's hardware design,
enforcing them in the global required block will cause valid device trees to
fail validation.

> +
> +allOf:
> +  - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - adi,ad7816
> +              - adi,ad7817
> +    then:
> +      required:
> +        - busy-gpios

Does the same apply to busy-gpios? The commit message mentions BUSY is
optional depending on the device variant, but this block enforces it as
mandatory for the AD7816 and AD7817 variants.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260508202005.76278-1-dennylin0707@gmail.com?part=1

      reply	other threads:[~2026-05-08 22:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-08 20:20 [PATCH] dt-bindings: iio: adc: add AD7816/AD7817/AD7818 binding Hungyu Lin
2026-05-08 22:55 ` 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=20260508225540.243CEC2BCB0@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=dennylin0707@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko@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