Skip to content

iio: adc: ade9000: add support for ADE9078

Antoniu Miclaus linux-devicetree linux-doc linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesIn review
  2. v14 patches 1 replySuperseded

Changes in v2 from the cover letter

- move the "respective datasheets" comment wording to avoid churn.
- use a generic Kconfig title and list the supported parts.
- duplicate the RMS voltage macro instead of a shared base macro.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iio: adc: ade9000: introduce chip_info structuredrivers/iio/adc/ade9000.c+47 -160 replies
2/4dt-bindings: iio: adc: adi,ade9000: add adi,ade9078 compatibleDocumentation/devicetree/bindings/iio/adc/adi,ade9000.yaml+22 -81 reply
3/4iio: adc: ade9000: add support for ADE9078drivers/iio/adc/Kconfig drivers/iio/adc/ade9000.c+90 -450 replies
4/4docs: iio: ade9000: document ADE9078 supportDocumentation/iio/ade9000.rst+17 -110 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] iio: adc: ade9000: add support for ADE9078

The ADE9078 is a polyphase energy metering device from the same family as the ADE9000 and is register compatible with it. The main differences relevant to the driver are the absence of the on-chip dip/swell detection, a lower maximum SPI clock (10 MHz), and slightly different full-scale ADC codes.

This series adds support for the ADE9078 to the existing ade9000 driver. It first refactors the driver to move the part-specific values (device name, channel table, and full-scale codes) into a chip_info structure retrieved via device match data, then adds the new device tree compatible and the ADE9078 support itself, and finally updates the documentation.

Changes in v2:
- move the "respective datasheets" comment wording to avoid churn.
- use a generic Kconfig title and list the supported parts.
- duplicate the RMS voltage macro instead of a shared base macro.

v1: https://lore.kernel.org/linux-iio/<FILL-IN-v1-MESSAGE-ID>/

Antoniu Miclaus (4):
iio: adc: ade9000: introduce chip_info structure
dt-bindings: iio: adc: adi,ade9000: add adi,ade9078 compatible
iio: adc: ade9000: add support for ADE9078
docs: iio: ade9000: document ADE9078 support

 .../bindings/iio/adc/adi,ade9000.yaml         |  30 ++-
 Documentation/iio/ade9000.rst                 |  28 +--
 drivers/iio/adc/Kconfig                       |  16 +-
 drivers/iio/adc/ade9000.c                     | 180 ++++++++++++------
 4 files changed, 175 insertions(+), 79 deletions(-)

base-commit: 0b5e142ced4bcf20532da051934bd694d1bbd470

Signature · 1 line
2.43.0