iio: adc: ade9000: add ADE9430 support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 4 repliesIn review
- v14 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- new patch: fix the DIPC event never being handled or cleared, found by the sashiko review of v1 (patch 2).
- new precursor patch: gate the DICOEFF write behind a has_digital_integrator chip_info flag, split out of the ADE9430 support patch.
- reuse ade9078_channels for the ADE9430 instead of adding a duplicate channel table.
- reword the documentation intro to "The supported parts are..." so it does not need updating for each new part.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | iio: adc: ade9000: fix ADE9000 full-scale RMS and PCF codesdrivers/ | +2 | 0 replies | |
| 2/6 | iio: adc: ade9000: fix DIPC event never being handled or cleareddrivers/ | +1 | 0 replies | |
| 3/6 | dt-bindings: iio: adc: adi,ade9000: add adi,ade9430 compatibleDocumentation/ | +13 | 1 reply | |
| 4/6 | iio: adc: ade9000: gate the DICOEFF write behind a chip_info flagdrivers/ | +19 | 0 replies | |
| 5/6 | iio: adc: ade9000: add support for ADE9430drivers/ drivers/ | +13 | 0 replies | |
| 6/6 | docs: iio: ade9000: document ADE9430 supportDocumentation/ | +19 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Nuno Sá | Rob Herring (Arm) |
|---|---|---|
| Series | R-b | |
| 1/6 | ||
| 2/6 | ||
| 3/6 | R-b | |
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] iio: adc: ade9000: add ADE9430 support
The ADE9430 is a polyphase energy metering device from the same family as the ADE9000. It is register-compatible with the ADE9000 but omits the on-chip dip/swell detection and has no on-chip digital integrator; it relies on an external analog integrator for Rogowski coil current sensors.
This series adds ADE9430 support to the existing ade9000 driver, reusing the dip/swell-less channel table introduced for the ADE9078 and adding a matching chip_info for the ADE9430 full-scale codes. A precursor patch gates the DICOEFF register write behind a has_digital_integrator chip_info flag so it is skipped on parts without an on-chip digital integrator.
Patches 1 and 2 are standalone fixes carried with this series. Patch 1 corrects the ADE9000 full-scale RMS/PCF codes to the same family-A values the ADE9430 uses. Patch 2 fixes the DIPC event never being handled or cleared, found by the sashiko review of v1. Both carry Fixes: tags and can be applied independently of the rest of the series.
Changes in v2:
- new patch: fix the DIPC event never being handled or cleared, found by the sashiko review of v1 (patch 2).
- new precursor patch: gate the DICOEFF write behind a has_digital_integrator chip_info flag, split out of the ADE9430 support patch.
- reuse ade9078_channels for the ADE9430 instead of adding a duplicate channel table.
- reword the documentation intro to "The supported parts are..." so it does not need updating for each new part.
v1: https://lore.kernel.org/linux-iio/[email protected]/
Antoniu Miclaus (6):
iio: adc: ade9000: fix ADE9000 full-scale RMS and PCF codes
iio: adc: ade9000: fix DIPC event never being handled or cleared
dt-bindings: iio: adc: adi,ade9000: add adi,ade9430 compatible
iio: adc: ade9000: gate the DICOEFF write behind a chip_info flag
iio: adc: ade9000: add support for ADE9430
docs: iio: ade9000: document ADE9430 support
.../bindings/iio/adc/adi,ade9000.yaml | 22 ++++++----- Documentation/iio/ade9000.rst | 36 +++++++++-------- drivers/iio/adc/Kconfig | 1 + drivers/iio/adc/ade9000.c | 39 ++++++++++++++++--- 4 files changed, 67 insertions(+), 31 deletions(-)
base-commit: edb91bc566576f6664a3efbad6bd4205aa1d5259
Signature · 1 line
2.43.0