dt-bindings: iio: adc: lltc,ltc2497: Make vref-supply optional for LTC2305/LTC2309
Subsystems (3)
PATCH v2 1/1 dt-bindings: iio: adc: lltc,ltc2497: Make vref-supply optional for LTC2305/LTC2309
The LTC2305 and LTC2309 have an internal 4.096V reference, so their REF pin does not need to be driven by an external supply. The LTC2493, LTC2497 and LTC2499 have no internal reference and require one.
Only require vref-supply for the LTC2493, LTC2497 and LTC2499, so boards using the internal reference can be described without a dummy regulator.
---
The ltc2309 driver already uses the internal reference when vref-supply
is absent. This is needed by the Meta Ventura2 BMC devicetree, which
describes LTC2305 ADCs that use their internal reference:
https://lore.kernel.org/all/[email protected]/
---
Changes in v2:
- Also require vref-supply for the LTC2493, which has no internal
reference.
- Add blank lines around vref-supply.
- Link to v1: https://lore.kernel.org/r/[email protected]
--- .../devicetree/bindings/iio/adc/lltc,ltc2497.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml +19 -2
@@ -47,14 +47,31 @@ 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,ltc2493 + - lltc,ltc2497 + - lltc,ltc2499 + then: + required: + - vref-supply additionalProperties: false
---
base-commit: 1390ca4953a7400ca932cb49635f02c727f885a6
change-id: 20261110-ltc2497-vref-optional-4bf34d6b3304
Best regards,
Signature · 1 line
Kyle Hsieh <[email protected]>
Jonathan Cameron
maintainerQuoted 9 lines · On Tue, 17 Nov 2026 14:04:38 +0800 Kyle Hsieh <[email protected]> wrote:
The LTC2305 and LTC2309 have an internal 4.096V reference, so their REF pin does not need to be driven by an external supply. The LTC2493, LTC2497 and LTC2499 have no internal reference and require one.
Only require vref-supply for the LTC2493, LTC2497 and LTC2499, so boards using the internal reference can be described without a dummy regulator.
Reviewed-by Krzysztof Kozlowski <[email protected]>Signed-off-by Kyle Hsieh <[email protected]>
Applied to the testing branch of iio.git.
Thanks,
Jonathan