linux_dsm_epyc7002/drivers/iio/adc
Oleksandr Kozaruk 1696f36482 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>
2013-08-17 15:50:57 +01:00
..
ad7266.c iio: adc: ad7266: Use devm_* APIs 2013-08-03 18:40:38 +01:00
ad7298.c iio: adc: ad7298: Use devm_* APIs 2013-08-03 18:40:38 +01:00
ad7476.c iio: adc: ad7476: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7791.c iio: adc: ad7791: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7793.c iio: adc: ad7793: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7887.c iio: adc: ad7887: Use devm_* APIs 2013-08-03 18:40:40 +01:00
ad7923.c iio: adc: ad7923: Use devm_* APIs 2013-08-03 18:40:40 +01:00
ad_sigma_delta.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
at91_adc.c iio: at91: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00
exynos_adc.c iio: exynos_adc: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00
Kconfig iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
lp8788_adc.c iio: adc: lp8788_adc: Use devm_* APIs 2013-08-03 18:40:40 +01:00
Makefile iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
max1363.c iio: max1363: Use devm_iio_device_alloc 2013-08-03 18:40:49 +01:00
mcp320x.c iio: adc: mcp320x: Use devm_* APIs 2013-08-03 18:40:41 +01:00
nau7802.c iio: adc: nau7802: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00
ti_am335x_adc.c Merge 3.11-rc5 into staging-next 2013-08-12 10:22:49 -07:00
ti-adc081c.c iio: adc: ti-adc081c: Use devm_* APIs 2013-08-03 18:40:42 +01:00
twl6030-gpadc.c iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver 2013-08-17 15:50:57 +01:00
viperboard_adc.c iio: adc: viperboard_adc: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00