2012-05-11 15:35:33 +02:00
|
|
|
#
|
|
|
|
|
# Makefile for IIO ADC drivers
|
|
|
|
|
#
|
|
|
|
|
|
2013-07-15 08:45:00 +01:00
|
|
|
# When adding new entries keep the list in alphabetical order
|
2012-08-10 17:36:00 +01:00
|
|
|
obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
|
2012-06-25 14:52:49 +02:00
|
|
|
obj-$(CONFIG_AD7266) += ad7266.o
|
2014-06-30 09:50:00 +01:00
|
|
|
obj-$(CONFIG_AD7291) += ad7291.o
|
2012-11-17 11:42:59 +00:00
|
|
|
obj-$(CONFIG_AD7298) += ad7298.o
|
2013-02-13 06:47:00 +00:00
|
|
|
obj-$(CONFIG_AD7923) += ad7923.o
|
2012-09-10 09:34:00 +01:00
|
|
|
obj-$(CONFIG_AD7476) += ad7476.o
|
2012-09-04 16:26:00 +01:00
|
|
|
obj-$(CONFIG_AD7791) += ad7791.o
|
2012-11-21 16:27:00 +00:00
|
|
|
obj-$(CONFIG_AD7793) += ad7793.o
|
2012-11-05 09:56:00 +00:00
|
|
|
obj-$(CONFIG_AD7887) += ad7887.o
|
2014-10-03 10:31:00 +01:00
|
|
|
obj-$(CONFIG_AD799X) += ad799x.o
|
2012-05-11 15:35:33 +02:00
|
|
|
obj-$(CONFIG_AT91_ADC) += at91_adc.o
|
2013-02-15 06:56:00 +00:00
|
|
|
obj-$(CONFIG_EXYNOS_ADC) += exynos_adc.o
|
iio: adc: add new lp8788 adc driver
TI LP8788 PMU provides regulators, battery charger, ADC,
RTC, backlight driver and current sinks.
This patch enables the LP8788 ADC functions.
The LP8788 ADC has several ADC input selection and supports 12bit resolution.
Internal operation of getting ADC is access to registers of LP8788.
The LP8788 ADC uses exported functions for accessing these registers.
(exported by LP8788 MFD device driver)
This driver supports IIO_CHAN_INFO_RAW and SCALE.
So the IIO consumer can calculate the value with raw and scale.
The unit of scale is micro.
(ADC Input Selection)
Voltage: battery voltage (MAX 5.0, 5.5 and 6.0V)
charger input voltage
four general ADC inputs
coin cell voltage
Current: battery charging current
Temperature: IC temperature
(The IIO map for the IIO consumer)
The ADC input is configurable in the platform side.
Even though this platform data is not defined,
the default IIO map is created for supporting the power supply driver.
The battery voltage and temperature are used inside this driver.
(History)
Patch v6.
(a) Fix scale value for each ADC input selection
Voltage and current type are mili unit and temperature is degree.
To calculate the IC temperature,
temp = raw * scaleint + (raw * scalepart)/ 1000000, scaleint is always 0.
= raw * 0.061050, raw: 0 ~ 4095
Then range of IC temperature(ADC result) is 0 ~ 250'C
(b) Reorganization of the IIO channel Spec
Remove address, scan_type and scan_index and rollback the datasheet name.
The reason why 'address' field is unnecessary is no relation with each channel.
Moreover, to get the raw ADC value, the address info is not only one register
but also several registers.
Therefore specific function(lp8788_get_adc_result) is called rather than
using one 'address' field.
(c) Fix coding style
Remove duplicated checking routine while unregistering the IIO map.
Fix code for space and parenthesis.
Patch v5.
Fix default consumer name as 'lp8788-charger'.
Add mutex for ADC read operation.
Reorganization on lp8788_adc_read_raw().
Patch v4.
Fix adc_raw function: support RAW and SCALE channel info.
Change LP8788 ADC platform data - iio map.
Enables the default IIO map.
Patch v3.
Fix wrong size of allocating iio private data.
Fix coding styles.
Patch v2.
Support RAW and SCALE interface for IIO consumer.
Clean up the iio channel spec macro.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-09-17 10:35:00 +01:00
|
|
|
obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
|
2014-06-14 23:27:00 +01:00
|
|
|
obj-$(CONFIG_MAX1027) += max1027.o
|
2012-10-06 14:42:27 +01:00
|
|
|
obj-$(CONFIG_MAX1363) += max1363.o
|
2013-05-03 10:58:00 +01:00
|
|
|
obj-$(CONFIG_MCP320X) += mcp320x.o
|
2013-09-02 15:00:00 +01:00
|
|
|
obj-$(CONFIG_MCP3422) += mcp3422.o
|
2014-02-26 17:29:07 +01:00
|
|
|
obj-$(CONFIG_MEN_Z188_ADC) += men_z188_adc.o
|
2013-06-24 18:24:00 +01:00
|
|
|
obj-$(CONFIG_NAU7802) += nau7802.o
|
2014-07-23 22:24:00 +01:00
|
|
|
obj-$(CONFIG_ROCKCHIP_SARADC) += rockchip_saradc.o
|
2012-11-23 15:13:00 +00:00
|
|
|
obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
|
2014-03-08 18:38:00 +00:00
|
|
|
obj-$(CONFIG_TI_ADC128S052) += ti-adc128s052.o
|
2012-10-16 12:55:45 +05:30
|
|
|
obj-$(CONFIG_TI_AM335X_ADC) += ti_am335x_adc.o
|
2014-03-16 02:43:31 +01:00
|
|
|
obj-$(CONFIG_TWL4030_MADC) += twl4030-madc.o
|
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-07-25 14:26:00 +01:00
|
|
|
obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
|
2014-01-26 05:39:00 +00:00
|
|
|
obj-$(CONFIG_VF610_ADC) += vf610_adc.o
|
2012-12-16 18:55:20 -08:00
|
|
|
obj-$(CONFIG_VIPERBOARD_ADC) += viperboard_adc.o
|
2014-02-17 14:10:00 +00:00
|
|
|
xilinx-xadc-y := xilinx-xadc-core.o xilinx-xadc-events.o
|
|
|
|
|
obj-$(CONFIG_XILINX_XADC) += xilinx-xadc.o
|