diff options
| author | Stefan Popa <stefan.popa@analog.com> | 2026-08-31 16:43:34 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-05 00:19:04 +0100 |
| commit | 309bd01041636b587bcb424b243640b448bd62f7 (patch) | |
| tree | 728fe7c8c5de74e4170e73dd3b58ee3739e889d2 /scripts/Makefile.thinlto | |
| parent | b9fcc7c954a8fba19d1fc9837874369e9300d2c1 (diff) | |
| download | linux-next-309bd01041636b587bcb424b243640b448bd62f7.tar.gz linux-next-309bd01041636b587bcb424b243640b448bd62f7.zip | |
iio: adc: add MAX40080 current-sense amplifier driver
The MAX40080 is 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,
storing the results in an internal FIFO.
Add a direct-mode IIO driver exposing the current and voltage channels
with raw, scale and oversampling ratio attributes, a configurable
oversampling (digital averaging) ratio, and PEC-protected register
access. The current scale is derived from the shunt resistor value
described in the device tree.
The driver operates in single-measurement mode: each raw read triggers
an on-demand conversion via SMBus Quick Command and returns a matched
current/voltage pair. This avoids the latency and complexity of the
continuous FIFO mode while ensuring each read reflects the current
state. The two selectable current-sense ranges are exposed through
scale/scale_available.
Continuous FIFO buffering, threshold events and the alert interrupt are
intentionally left out of this initial submission and may be added
later.
Co-developed-by: Ciprian Hegbeli <ciprian.hegbeli@analog.com>
Signed-off-by: Ciprian Hegbeli <ciprian.hegbeli@analog.com>
Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Reviewed-by: Siratul Islam <siratul.islam@linux.dev>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
