[PATCH v7 0/6] iio: adc: add support for ADE9000 Energy Monitoring IC

Antoniu Miclaus posted 6 patches 3 weeks, 3 days ago
Documentation/ABI/testing/sysfs-bus-iio       |   30 +
.../bindings/iio/adc/adi,ade9000.yaml         |   95 +
Documentation/iio/ade9000.rst                 |  265 +++
Documentation/iio/index.rst                   |    1 +
drivers/iio/adc/Kconfig                       |   19 +
drivers/iio/adc/Makefile                      |    1 +
drivers/iio/adc/ade9000.c                     | 1793 +++++++++++++++++
drivers/iio/industrialio-core.c               |    6 +
include/linux/iio/types.h                     |    1 +
include/uapi/linux/iio/types.h                |    5 +
tools/iio/iio_event_monitor.c                 |   10 +
11 files changed, 2226 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml
create mode 100644 Documentation/iio/ade9000.rst
create mode 100644 drivers/iio/adc/ade9000.c
[PATCH v7 0/6] iio: adc: add support for ADE9000 Energy Monitoring IC
Posted by Antoniu Miclaus 3 weeks, 3 days ago
This patch series adds support for the Analog Devices ADE9000, a highly
accurate, fully integrated, multiphase energy and power quality monitoring
device. The ADE9000 is capable of measuring energy consumption and power
quality parameters in industrial and commercial applications.

The series includes:

1. New IIO modifiers for power and energy measurement devices, including
   support for active/reactive/apparent power, RMS masurements.

2. Device tree bindings for the ADE9000, supporting waveform buffer
   configuration, phase configuration, and trigger settings.

3. Complete driver implementation supporting:
   - Multi-phase energy measurement (3-phase support)
   - Power quality monitoring (voltage swell/dip detection)
   - Waveform buffer capture with configurable triggering
   - Energy accumulation with configurable time windows
   - IIO buffer interface for continuous data streaming
   - Event-based notifications for power quality events

The driver provides a comprehensive interface for energy monitoring
applications through the IIO framework, enabling userspace applications
to monitor power consumption, quality, and waveform data.

The driver will be extended in the future to support multiple parts such as
ade9039.

Antoniu Miclaus (6):
  iio: add IIO_ALTCURRENT channel type
  iio: add power and energy measurement modifiers
  dt-bindings: iio: adc: add ade9000
  iio: adc: add ade9000 support
  docs: iio: add documentation for ade9000 driver
  Documentation: ABI: iio: add sinc4+lp

 Documentation/ABI/testing/sysfs-bus-iio       |   30 +
 .../bindings/iio/adc/adi,ade9000.yaml         |   95 +
 Documentation/iio/ade9000.rst                 |  265 +++
 Documentation/iio/index.rst                   |    1 +
 drivers/iio/adc/Kconfig                       |   19 +
 drivers/iio/adc/Makefile                      |    1 +
 drivers/iio/adc/ade9000.c                     | 1793 +++++++++++++++++
 drivers/iio/industrialio-core.c               |    6 +
 include/linux/iio/types.h                     |    1 +
 include/uapi/linux/iio/types.h                |    5 +
 tools/iio/iio_event_monitor.c                 |   10 +
 11 files changed, 2226 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml
 create mode 100644 Documentation/iio/ade9000.rst
 create mode 100644 drivers/iio/adc/ade9000.c

-- 
2.43.0
Re: [PATCH v7 0/6] iio: adc: add support for ADE9000 Energy Monitoring IC
Posted by Jonathan Cameron 2 weeks, 5 days ago
On Mon, 8 Sep 2025 07:35:20 +0000
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> This patch series adds support for the Analog Devices ADE9000, a highly
> accurate, fully integrated, multiphase energy and power quality monitoring
> device. The ADE9000 is capable of measuring energy consumption and power
> quality parameters in industrial and commercial applications.
> 
> The series includes:
> 
> 1. New IIO modifiers for power and energy measurement devices, including
>    support for active/reactive/apparent power, RMS masurements.
> 
> 2. Device tree bindings for the ADE9000, supporting waveform buffer
>    configuration, phase configuration, and trigger settings.
> 
> 3. Complete driver implementation supporting:
>    - Multi-phase energy measurement (3-phase support)
>    - Power quality monitoring (voltage swell/dip detection)
>    - Waveform buffer capture with configurable triggering
>    - Energy accumulation with configurable time windows
>    - IIO buffer interface for continuous data streaming
>    - Event-based notifications for power quality events
> 
> The driver provides a comprehensive interface for energy monitoring
> applications through the IIO framework, enabling userspace applications
> to monitor power consumption, quality, and waveform data.
> 
> The driver will be extended in the future to support multiple parts such as
> ade9039.

Hi Antoniu,

Applied with a few changes as described in replies to individual patches.
I also called out one significant refactor that I'd like you to consider
as a follow up patch. Given it was late feedback I decided not to ask
for it before applying this.

Jonathan