Re: [PATCH v8 4/5] iio: adc: add driver for the MAX34417 Four-Channel High Dynamic Range Power Accumulator
From: Jonathan Cameron
Date: Sat Dec 05 2026 - 17:39:48 EST
On Mon, 30 Nov 2026 17:30:38 +0100
Neil Armstrong <neil.armstrong@xxxxxxxxxx> wrote:
> The MAX34417 is a specialized current and voltage monitor used to
> determine power consumption of portable systems. The driver support
> getting the channels voltage, average power, accumulated average
> power and energy over an I2C/SMBUS serial interface.
>
> The MAX34417 datasheet only specified on how to calculate the
> accumulated average power, but with the Sample Per Second rate
> we can easily get accumulated Energy in Joules.
>
> By default the IIO driver only supports single-shot Voltage
> and Power sensing, but the accumulation can be enabled by
> enabling the Energy IIO channel which then enables the
> Continuous Accumulation Mode.
>
> The counter is common to all channels, so when reading a single
> channel we will copy all accumulators to registers, so in order
> to permit reading individual channels we must accumulate the
> other channels in the driver when Continuous Accumulation Mode
> is enabled.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
There are a couple of things from sashiko.
https://sashiko.dev/#/patchset/20261130-topic-sm8x50-iio-max34417-adc-v8-0-6efef2782816%40linaro.org
However, given they seem fairly minor and if necessary can be
follow up patches, I'm not going to ask for a v9 just for those
Thanks,
Jonathan