Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kyle Hsieh" <kylehsieh1995@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] dt-bindings: iio: adc: lltc,ltc2497: Make vref-supply optional for LTC2305/LTC2309
Date: Tue, 10 Nov 2026 08:44:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-206658@kernel.org> (raw)
In-Reply-To: <20261110-ltc2497-vref-optional-v1-1-35c9657f3c0f@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: iio: adc: lltc,ltc2497: vref-supply not required
  for lltc,ltc2493
--

commit 9ef21ec87b9693cbb7eb2ce20677fc640b5dbba6
Author: Kyle Hsieh <kylehsieh1995@gmail.com>

dt-bindings: iio: adc: lltc,ltc2497: Make vref-supply optional for LTC2305/LTC2309

This commit removes vref-supply from the top-level required list in
lltc,ltc2497.yaml and adds a conditional requirement for lltc,ltc2497 and
lltc,ltc2499 so that LTC2305 and LTC2309 nodes can omit it when using
their internal reference.

> diff --git a/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml
> index 4df5aadd1e1d7..22abc6885b5a2 100644
> --- a/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml
> @@ -47,14 +47,28 @@ properties:
>        - lltc,ltc2499
>  
>    reg: true
> -  vref-supply: true
> +  vref-supply:
> +    description:
> +      Reference voltage supply. The LTC2305 and LTC2309 have an internal
> +      4.096V reference which is used when this property is absent.
>    "#io-channel-cells":
>      const: 1
>  
>  required:
>    - compatible
>    - reg
> -  - vref-supply
> +
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - lltc,ltc2497
> +              - lltc,ltc2499
> +    then:
> +      required:
> +        - vref-supply

[Severity: Medium]
Should lltc,ltc2493 also be included in this enum?

This binding also covers lltc,ltc2493, which like the LTC2497 and LTC2499
has no internal voltage reference and relies on the external vref
regulator in ltc2497core_probe() and ltc2497core_read_raw().  Removing
vref-supply from the top-level required list without adding lltc,ltc2493
to the conditional makes vref-supply optional for LTC2493 nodes.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110-ltc2497-vref-optional-v1-1-35c9657f3c0f@gmail.com?part=1

      reply	other threads:[~2026-11-10  8:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10  8:42 [PATCH] dt-bindings: iio: adc: lltc,ltc2497: Make vref-supply optional for LTC2305/LTC2309 Kyle Hsieh
2026-11-10  8:44 ` 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=sashiko-outbox-206658@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kylehsieh1995@gmail.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