aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/Kconfig
diff options
context:
space:
mode:
authorOleksandr Kozaruk <oleksandr.kozaruk@ti.com>2013-07-25 09:26:00 -0400
committerJonathan Cameron <jic23@kernel.org>2013-08-17 10:50:57 -0400
commit1696f36482e7063051a1dad86a54be83fd847f4f (patch)
treea5ddf64d53e83ced8e050d4f650beb92905264d4 /drivers/iio/adc/Kconfig
parent1eb70a97452cacbe7aae752879b782e1e97a3484 (diff)
iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver
The GPADC is general purpose ADC found on TWL6030, and TWL6032 PMIC, known also as Phoenix and PhoenixLite. The TWL6030 and TWL6032 have GPADC with 17 and 19 channels respectively. Some channels have current source and are used for measuring voltage drop on resistive load for detecting battery ID resistance, or measuring voltage drop on NTC resistors for external temperature measurements. Some channels measure voltage, (i.e. battery voltage), and have voltage dividers, thus, capable to scale voltage. Some channels are dedicated for measuring die temperature. Some channels are calibrated in 2 points, having offsets from ideal values kept in trim registers. This is used to correct measurements. The differences between GPADC in TWL6030 and TWL6032: - 10 bit vs 12 bit ADC; - 17 vs 19 channels; - channels have different purpose(i.e. battery voltage channel 8 vs channel 18); - trim values are interpreted differently. Based on the driver patched from Balaji TK, Graeme Gregory, Ambresh K, Girish S Ghongdemath. Signed-off-by: Balaji T K <balajitk@ti.com> Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/Kconfig')
-rw-r--r--drivers/iio/adc/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index f725b4581f04..09371cbc9dc1 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -171,6 +171,20 @@ config TI_AM335X_ADC
171 Say yes here to build support for Texas Instruments ADC 171 Say yes here to build support for Texas Instruments ADC
172 driver which is also a MFD client. 172 driver which is also a MFD client.
173 173
174config TWL6030_GPADC
175 tristate "TWL6030 GPADC (General Purpose A/D Converter) Support"
176 depends on TWL4030_CORE
177 default n
178 help
179 Say yes here if you want support for the TWL6030/TWL6032 General
180 Purpose A/D Converter. This will add support for battery type
181 detection, battery voltage and temperature measurement, die
182 temperature measurement, system supply voltage, audio accessory,
183 USB ID detection.
184
185 This driver can also be built as a module. If so, the module will be
186 called twl6030-gpadc.
187
174config VIPERBOARD_ADC 188config VIPERBOARD_ADC
175 tristate "Viperboard ADC support" 189 tristate "Viperboard ADC support"
176 depends on MFD_VIPERBOARD && USB 190 depends on MFD_VIPERBOARD && USB