iio: adc: Add QCOM SPMI PMIC5 ADC driver
authorSiddartha Mohanadoss <smohanad@codeaurora.org>
Fri, 3 Aug 2018 01:43:53 +0000 (18:43 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Aug 2018 17:11:43 +0000 (18:11 +0100)
commite13d757279bbc59776c8435fb94e54b5a58bdd0b
tree82a059a180b0dae280fe34239114a15ee4f6be18
parent2fca585502716c25c52ad4fe54207f80762bc7b4
iio: adc: Add QCOM SPMI PMIC5 ADC driver

This patch adds support for QCOM SPMI PMIC5 family
of ADC driver that supports hardware based offset and
gain compensation. The ADC peripheral can measure both
voltage and current channels whose input signal is
connected to the PMIC ADC AMUX.

The register set and configuration has been refreshed
compared to the prior QCOM PMIC ADC family. Register
ADC5 as part of the IIO framework.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/qcom-spmi-adc5.c [new file with mode: 0644]
drivers/iio/adc/qcom-vadc-common.c
drivers/iio/adc/qcom-vadc-common.h