mbox series

[v1,0/3] iio: adc: ti-ads7924: add ADS7924 driver

Message ID 20221222203610.2571287-1-hugo@hugovil.com
Headers show
Series iio: adc: ti-ads7924: add ADS7924 driver | expand

Message

Hugo Villeneuve Dec. 22, 2022, 8:36 p.m. UTC
From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Hello,
this patch series adds the driver for the Texas Instruments ADS7924.

The Texas Instruments ADS7924 is a 4 channels, 12-bit analog to
digital converter (ADC) with an I2C interface.

Patch 1 adds a Kconfig comment to help differentiate between the Analog
      Devices AD7924 (SPI) and the TI ADS7924 (I2C).

Patch 2 contains the driver for the ADS7924.

Patch 3 add the dt-bindings for the ADS7924.

I have tested the driver using the Texas Instruments ADS7924EVM board connected
to a Variscite Symphony EVK with a IMX8MN NANO SOM:
  - Tested reset pin Ok
  - Tested regulator setup Ok
  - Tested reading sysfs in_voltage_scale Ok
  - Tested reading sysfs in_voltageX_raw (x=0 to 3) Ok


Thank you.

Hugo Villeneuve (3):
  iio: adc: Kconfig: add SPI interface mention to AD7924 description
  iio: adc: ti-ads7924: add ADS7924 driver
  dt-bindings: iio: adc: add ADS7924

 .../bindings/iio/adc/ti,ads7924.yaml          | 103 ++++
 MAINTAINERS                                   |   7 +
 drivers/iio/adc/Kconfig                       |  15 +-
 drivers/iio/adc/Makefile                      |   1 +
 drivers/iio/adc/ti-ads7924.c                  | 514 ++++++++++++++++++
 5 files changed, 639 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads7924.yaml
 create mode 100644 drivers/iio/adc/ti-ads7924.c


base-commit: 4652bc537a2e0b44959489f45e4684fa4f143a45