[PATCH v3 0/8] iio: dac: ds4424: add DS4402/DS4404 support and scale

Oleksij Rempel posted 8 patches 1 week, 2 days ago
There is a newer version of this series
.../bindings/iio/dac/maxim,ds4424.yaml        |  42 ++-
drivers/iio/dac/Kconfig                       |   1 +
drivers/iio/dac/ds4424.c                      | 351 ++++++++++++------
3 files changed, 283 insertions(+), 111 deletions(-)
[PATCH v3 0/8] iio: dac: ds4424: add DS4402/DS4404 support and scale
Posted by Oleksij Rempel 1 week, 2 days ago
This series extends the ds4424 IIO DAC driver and its devicetree binding
to support the DS4402 and DS4404 current DAC variants.

DS440x devices share the same register map as DS442x but use a different
resolution (5-bit vs 7-bit) and a different full-scale current formula.
The full-scale current depends on external Rfs resistors connected to
the FS pins, so a new optional DT property is added to provide the
per-channel Rfs values and allow the driver to report a correct IIO
SCALE (mA/step).

While adding DS440x support, a few related issues were addressed:
- Port to regmap
- Reject -128 in RAW writes on DS442x, which cannot be represented with
  sign-magnitude encoding and could silently program an unintended
  output.
- Preserve preconfigured values on probe.
- Ratelimit read error logging and use device context.

David Jander (1):
  iio: dac: ds4424: add DS4402/DS4404 device IDs

Oleksij Rempel (7):
  iio: dac: ds4424: fix -128 rejection and refactor raw access
  iio: dac: ds4424: ratelimit read errors and use device context
  iio: dac: ds4424: sort headers alphabetically
  dt-bindings: iio: dac: maxim,ds4424: add ds4402/ds4404
  dt-bindings: iio: dac: maxim,ds4424: add maxim,rfs-ohms property
  iio: dac: ds4424: convert to regmap
  iio: dac: ds4424: add Rfs-based scale and per-variant limits

 .../bindings/iio/dac/maxim,ds4424.yaml        |  42 ++-
 drivers/iio/dac/Kconfig                       |   1 +
 drivers/iio/dac/ds4424.c                      | 351 ++++++++++++------
 3 files changed, 283 insertions(+), 111 deletions(-)

--
2.47.3
Re: [PATCH v3 0/8] iio: dac: ds4424: add DS4402/DS4404 support and scale
Posted by Andy Shevchenko 1 week, 2 days ago
On Wed, Jan 28, 2026 at 04:38:16PM +0100, Oleksij Rempel wrote:
> This series extends the ds4424 IIO DAC driver and its devicetree binding
> to support the DS4402 and DS4404 current DAC variants.
> 
> DS440x devices share the same register map as DS442x but use a different
> resolution (5-bit vs 7-bit) and a different full-scale current formula.
> The full-scale current depends on external Rfs resistors connected to
> the FS pins, so a new optional DT property is added to provide the
> per-channel Rfs values and allow the driver to report a correct IIO
> SCALE (mA/step).
> 
> While adding DS440x support, a few related issues were addressed:
> - Port to regmap
> - Reject -128 in RAW writes on DS442x, which cannot be represented with
>   sign-magnitude encoding and could silently program an unintended
>   output.
> - Preserve preconfigured values on probe.
> - Ratelimit read error logging and use device context.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
for patches 1,2,3,6, and 8.

-- 
With Best Regards,
Andy Shevchenko