Re: [PATCH v5 2/5] iio: core: add IIO_CHARGE channel type
From: Andy Shevchenko
Date: Tue Nov 03 2026 - 11:59:23 EST
On Tue, Nov 03, 2026 at 04:37:12PM +0200, Ariana Lazar wrote:
> Add a new channel type for Coulomb counters, which accumulate current
> measurements over time. The sysfs attribute is in_chargeY_raw and after
> applying in_chargeY_scale, the value exposed is in milliCoulombs,
> following the SI convention used by the IIO subsystem.
>
> This new channel type will first be used by the pac1711 driver to report
> Coulomb counter measurements.
> +What: /sys/bus/iio/devices/iio:deviceX/in_charge_raw
> +What: /sys/bus/iio/devices/iio:deviceX/in_chargeY_raw
> +KernelVersion: 7.4
7.5 at the best.
> +Contact: linux-iio@xxxxxxxxxxxxxxx
> +Description:
> + Raw charge value read from the channel. The device acts as
> + a Coulomb counter by accumulating current measurements over
> + time. Units after application of scale are milliCoulombs. X
> + is the IIO index of the device.
--
With Best Regards,
Andy Shevchenko