[PATCH v1 0/2] iio: dac: ad5504: fix voltage scaling and add missing bindings

From: Taha Ed-Dafili

Date: Thu Feb 12 2026 - 13:20:35 EST


This series fixes the voltage scale calculation for the AD5504 DAC and
updates the devicetree bindings to support the necessary hardware
configuration.

Previously, the driver calculated the scale based on the VCC supply
voltage.

However, as confirmed by the datasheet (Rev. B) and discussion on
the mailing list [1], the AD5504 has an integrated precision reference,
and the output range is determined strictly by the state of the
R_SEL pin (0-30V or 0-60V).

To address this:
1. Patch 1 adds `adi,output-range-volts` (and GPIO equivalents) to the
bindings to describe the hardware state of the R_SEL pin, along with
other missing properties (vlogic, clear, ldac).
2. Patch 2 updates the driver to use this property for scale calculation,
falling back to the 60V range if unspecified, while retaining the VCC
regulator enable for power.

Link: https://lore.kernel.org/linux-iio/20260210121032.4630-1-0rayn.dev@xxxxxxxxx/ [1]

Taha Ed-Dafili (2):
dt-bindings: iio: dac: ad5504: add output-range and missing gpios
iio: dac: ad5504: use adi,output-range-volts for scale calculation

Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml | 20 ++++++++++++++++++++
drivers/iio/dac/ad5504.c | 15 ++++++++++-----
2 files changed, 30 insertions(+), 5 deletions(-)

Taha Ed-Dafili (2):
dt-bindings: iio: dac: ad5504: add output-range and missing gpios
iio: dac: ad5504: use adi,output-range-volts for scale calculation

.../bindings/iio/dac/adi,ad5504.yaml | 38 +++++++++++++++++++
drivers/iio/dac/ad5504.c | 26 ++++++++-----
2 files changed, 54 insertions(+), 10 deletions(-)

--
2.47.3