Message ID | 20241122-adc_ml-v1-0-0769f2e1bbc1@softing.com (mailing list archive) |
---|---|
Headers | show |
Series | Support for TI ADS7128 and ADS7138 ADCs | expand |
On Fri, Nov 22, 2024 at 04:15:35PM +0100, Tobias Sperling wrote: > This patch series adds support for Texas Instruments ADS7128 and > ADS7138, which are 12-bit, 8 channel analog-to-digital converters (ADCs) > with build-in digital window comparator (DWC), using the I2C interface. > > The driver exposes the interfaces to read the raw values, as well as the > minimum and maximum value for each channel. In addition several settings > can be configured, like the DWC, sampling frequency or an averaging > filter/oversampling. Interrupts triggered by the DWC, if configured, are > then exposed as IIO events. > > ADS7128 differs in the addition of further hardware features, like a > root-mean-square (RMS) and a zero-crossing-detect (ZCD) module, which > are not yet supported by the driver. > > Regarding the I2C interface the chips using opcodes to define the way > how the registeres are accessed, like single or multiple register(s) > read/write or setting/clearing only bits. > > Changes in v1: > - dt-bindings: Extended description Hm? Everything starts from v1. Try - run: b4 diff 20241122-adc_ml-v1-0-0769f2e1bbc1@softing.com Best regards, Krzysztof
This patch series adds support for Texas Instruments ADS7128 and ADS7138, which are 12-bit, 8 channel analog-to-digital converters (ADCs) with build-in digital window comparator (DWC), using the I2C interface. The driver exposes the interfaces to read the raw values, as well as the minimum and maximum value for each channel. In addition several settings can be configured, like the DWC, sampling frequency or an averaging filter/oversampling. Interrupts triggered by the DWC, if configured, are then exposed as IIO events. ADS7128 differs in the addition of further hardware features, like a root-mean-square (RMS) and a zero-crossing-detect (ZCD) module, which are not yet supported by the driver. Regarding the I2C interface the chips using opcodes to define the way how the registeres are accessed, like single or multiple register(s) read/write or setting/clearing only bits. Changes in v1: - dt-bindings: Extended description Signed-off-by: Tobias Sperling <tobias.sperling@softing.com> --- Tobias Sperling (2): dt-bindings: iio: adc: Introduce ADS7138 iio: adc: Add driver for ADS7128 / ADS7138 .../devicetree/bindings/iio/adc/ti,ads7138.yaml | 64 ++ drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-ads7138.c | 796 +++++++++++++++++++++ 4 files changed, 871 insertions(+) --- base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623 change-id: 20241122-adc_ml-d1ce86e85b2c Best regards,