Re: [PATCH v1 0/2] iio: adc: add MAX40080 current-sense amplifier driver
From: Andy Shevchenko
Date: Fri Jul 03 2026 - 07:35:07 EST
On Fri, Jul 03, 2026 at 01:29:30PM +0300, Stefan Popa wrote:
> This series adds support for the Maxim MAX40080, a bidirectional
> current-sense amplifier with an integrated 12-bit ADC and an I2C/SMBus
> interface. It measures the voltage across an external shunt resistor and
> the input bus voltage.
>
> The driver operates in direct (INDIO_DIRECT_MODE) mode. Each raw read
> triggers a single on-demand conversion (SMBus Quick Command) and reads
> back the matched current/voltage pair, so results are always fresh. It
> exposes the current and voltage channels with raw and scale attributes,
> a configurable oversampling (digital averaging) ratio, and PEC-protected
> register access. The two selectable current-sense ranges are exposed
> through scale/scale_available (the range is chosen by writing the
> desired scale); the current scale is derived from the
> shunt-resistor-micro-ohms device-tree property.
>
> Continuous FIFO buffering, threshold events and the alert interrupt are
> intentionally left out of this initial submission and may be added
> later.
>
> Tested on hardware with four MAX40080 devices on an I2C bus.
For a new driver it misses two things:
- why do we need a brand new driver? (Can we extend existing one to cover
this HW?)
- where to get a datashee? (Link?)
--
With Best Regards,
Andy Shevchenko