Re: [PATCH v4 2/3] dt-bindings: iio: adc: add support for PAC1711

From: Rob Herring (Arm)

Date: Wed Oct 07 2026 - 16:47:53 EST



On Wed, 07 Oct 2026 17:41:54 +0300, Ariana Lazar wrote:
> This is the device tree schema for Microchip PAC1711, PAC1721, PAC1811 and
> PAC1821 single-channel power monitor with accumulator. The PAC1711 and
> PAC1721 devices use 12-bit resolution for voltage and current measurements
> and 24 bits for power calculations, while PAC1811 and PAC1821 have 16-bit
> resolution and use 32 bits for power calculations. The 56-bit accumulator
> register accumulates power (energy) or current (Coulomb counter).
>
> PAC1711 and PAC1811 measure up to 42V Full-Scale Range, respectively 9V for
> PAC1721 and PAC1821.
>
> The accumulation-source property aims to specify what kind of hardware is
> intended to be used/available for the user. There are two main cases here:
> - the user wants to measure also the current/power consumed before the
> driver insertion (e.g. from the boot to user control) and if this is a
> runtime setting, the hardware accumulator will be reset by the default
> configuration the driver starts with.
> - the driver does not know what type of hardware it's dealing with. In
> case the part is monitoring the charge/discharge current it does not
> make sense in user-space to change the accumulator to calculate energy.
> Same if the hardware is intended to calculate energy it does not make
> sense in user-space to change to Coulomb counter. Changing the setting
> from one mode to another will reset the hardware accumulator inside the
> chip.
>
> Signed-off-by: Ariana Lazar <ariana.lazar@xxxxxxxxxxxxx>
> ---
> .../bindings/iio/adc/microchip,pac1711.yaml | 169 +++++++++++++++++++++
> MAINTAINERS | 6 +
> 2 files changed, 175 insertions(+)
>

Reviewed-by: Rob Herring (Arm) <robh@xxxxxxxxxx>