2012-05-11 21:35:33 +08:00
|
|
|
#
|
|
|
|
# Makefile for IIO ADC drivers
|
|
|
|
#
|
|
|
|
|
2013-07-15 15:45:00 +08:00
|
|
|
# When adding new entries keep the list in alphabetical order
|
2012-08-11 00:36:00 +08:00
|
|
|
obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
|
2012-06-25 20:52:49 +08:00
|
|
|
obj-$(CONFIG_AD7266) += ad7266.o
|
2014-06-30 16:50:00 +08:00
|
|
|
obj-$(CONFIG_AD7291) += ad7291.o
|
2012-11-17 19:42:59 +08:00
|
|
|
obj-$(CONFIG_AD7298) += ad7298.o
|
2013-02-13 14:47:00 +08:00
|
|
|
obj-$(CONFIG_AD7923) += ad7923.o
|
2012-09-10 16:34:00 +08:00
|
|
|
obj-$(CONFIG_AD7476) += ad7476.o
|
2016-09-23 23:19:44 +08:00
|
|
|
obj-$(CONFIG_AD7766) += ad7766.o
|
2012-09-04 23:26:00 +08:00
|
|
|
obj-$(CONFIG_AD7791) += ad7791.o
|
2012-11-22 00:27:00 +08:00
|
|
|
obj-$(CONFIG_AD7793) += ad7793.o
|
2012-11-05 17:56:00 +08:00
|
|
|
obj-$(CONFIG_AD7887) += ad7887.o
|
2014-10-03 17:31:00 +08:00
|
|
|
obj-$(CONFIG_AD799X) += ad799x.o
|
2012-05-11 21:35:33 +08:00
|
|
|
obj-$(CONFIG_AT91_ADC) += at91_adc.o
|
2016-01-14 23:38:13 +08:00
|
|
|
obj-$(CONFIG_AT91_SAMA5D2_ADC) += at91-sama5d2_adc.o
|
2014-10-07 12:17:15 +08:00
|
|
|
obj-$(CONFIG_AXP288_ADC) += axp288_adc.o
|
2016-06-28 15:40:35 +08:00
|
|
|
obj-$(CONFIG_BCM_IPROC_ADC) += bcm_iproc_adc.o
|
2015-05-18 17:19:18 +08:00
|
|
|
obj-$(CONFIG_BERLIN2_ADC) += berlin2-adc.o
|
2015-01-07 04:47:35 +08:00
|
|
|
obj-$(CONFIG_CC10001_ADC) += cc10001_adc.o
|
2015-06-21 18:15:51 +08:00
|
|
|
obj-$(CONFIG_DA9150_GPADC) += da9150-gpadc.o
|
2016-11-08 19:58:58 +08:00
|
|
|
obj-$(CONFIG_ENVELOPE_DETECTOR) += envelope-detector.o
|
2013-02-15 14:56:00 +08:00
|
|
|
obj-$(CONFIG_EXYNOS_ADC) += exynos_adc.o
|
2015-12-14 21:53:51 +08:00
|
|
|
obj-$(CONFIG_FSL_MX25_ADC) += fsl-imx25-gcq.o
|
2015-08-28 22:27:52 +08:00
|
|
|
obj-$(CONFIG_HI8435) += hi8435.o
|
2017-01-06 01:51:57 +08:00
|
|
|
obj-$(CONFIG_HX711) += hx711.o
|
2015-12-08 18:26:20 +08:00
|
|
|
obj-$(CONFIG_IMX7D_ADC) += imx7d_adc.o
|
2015-12-07 17:09:34 +08:00
|
|
|
obj-$(CONFIG_INA2XX_ADC) += ina2xx-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 17:35:00 +08:00
|
|
|
obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
|
2016-03-12 20:30:14 +08:00
|
|
|
obj-$(CONFIG_LPC18XX_ADC) += lpc18xx_adc.o
|
2016-08-25 13:48:43 +08:00
|
|
|
obj-$(CONFIG_LTC2485) += ltc2485.o
|
2014-06-15 06:27:00 +08:00
|
|
|
obj-$(CONFIG_MAX1027) += max1027.o
|
2017-01-19 00:30:52 +08:00
|
|
|
obj-$(CONFIG_MAX11100) += max11100.o
|
2012-10-06 21:42:27 +08:00
|
|
|
obj-$(CONFIG_MAX1363) += max1363.o
|
2013-05-03 17:58:00 +08:00
|
|
|
obj-$(CONFIG_MCP320X) += mcp320x.o
|
2013-09-02 22:00:00 +08:00
|
|
|
obj-$(CONFIG_MCP3422) += mcp3422.o
|
2016-08-18 15:11:36 +08:00
|
|
|
obj-$(CONFIG_MEDIATEK_MT6577_AUXADC) += mt6577_auxadc.o
|
2014-02-27 00:29:07 +08:00
|
|
|
obj-$(CONFIG_MEN_Z188_ADC) += men_z188_adc.o
|
2016-02-07 06:23:23 +08:00
|
|
|
obj-$(CONFIG_MXS_LRADC) += mxs-lradc.o
|
2013-06-25 01:24:00 +08:00
|
|
|
obj-$(CONFIG_NAU7802) += nau7802.o
|
2015-10-16 20:53:38 +08:00
|
|
|
obj-$(CONFIG_PALMAS_GPADC) += palmas_gpadc.o
|
2014-10-22 22:13:33 +08:00
|
|
|
obj-$(CONFIG_QCOM_SPMI_IADC) += qcom-spmi-iadc.o
|
2015-01-20 18:15:22 +08:00
|
|
|
obj-$(CONFIG_QCOM_SPMI_VADC) += qcom-spmi-vadc.o
|
2014-07-24 05:24:00 +08:00
|
|
|
obj-$(CONFIG_ROCKCHIP_SARADC) += rockchip_saradc.o
|
iio: stx104: Add IIO support for the ADC channels
The Apex Embedded Systems STX104 features 16 channels of single-ended (8
channels of true differential) 16-bit analog input. Differential input
configuration may be selected via a physical jumper on the device.
Similarly, input polarity (unipolar/bipolar) is configured via a
physical jumper on the device.
Input gain selection is available to the user via software, thus
allowing eight possible input ranges: +-10V, +-5V, +-2.5V, +-1.25V,
0 to 10V, 0 to 5V, 0 to 2.5V, and 0 to 1.25V. Four input gain
configurations are supported: x1, x2, x4, and x8.
This ADC resolution is 16-bits (1/65536 of full scale). Analog input
samples are taken on software trigger; neither FIFO sampling nor
interrupt triggering is supported by this driver.
The Apex Embedded Systems STX104 is primarily an analog-to-digital
converter device. The STX104 IIO driver was initially placed in the DAC
directory because only the DAC portion of the STX104 was supported at
the time. Now that ADC support has been added to the STX104 IIO driver,
the driver should be moved to the more appropriate ADC directory.
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-08-30 04:22:56 +08:00
|
|
|
obj-$(CONFIG_STX104) += stx104.o
|
2016-11-15 23:30:57 +08:00
|
|
|
obj-$(CONFIG_STM32_ADC_CORE) += stm32-adc-core.o
|
2016-11-15 23:30:58 +08:00
|
|
|
obj-$(CONFIG_STM32_ADC) += stm32-adc.o
|
2012-11-23 23:13:00 +08:00
|
|
|
obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
|
2016-02-07 17:14:16 +08:00
|
|
|
obj-$(CONFIG_TI_ADC0832) += ti-adc0832.o
|
2016-08-28 22:52:49 +08:00
|
|
|
obj-$(CONFIG_TI_ADC12138) += ti-adc12138.o
|
2014-03-09 02:38:00 +08:00
|
|
|
obj-$(CONFIG_TI_ADC128S052) += ti-adc128s052.o
|
2016-08-20 11:17:03 +08:00
|
|
|
obj-$(CONFIG_TI_ADC161S626) += ti-adc161s626.o
|
2016-02-11 21:49:54 +08:00
|
|
|
obj-$(CONFIG_TI_ADS1015) += ti-ads1015.o
|
2016-11-29 00:58:15 +08:00
|
|
|
obj-$(CONFIG_TI_ADS7950) += ti-ads7950.o
|
2015-11-09 20:52:59 +08:00
|
|
|
obj-$(CONFIG_TI_ADS8688) += ti-ads8688.o
|
2012-10-16 15:25:45 +08:00
|
|
|
obj-$(CONFIG_TI_AM335X_ADC) += ti_am335x_adc.o
|
2014-03-16 09:43:31 +08: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 21:26:00 +08:00
|
|
|
obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
|
2014-01-26 13:39:00 +08:00
|
|
|
obj-$(CONFIG_VF610_ADC) += vf610_adc.o
|
This is the MFD patch set for the 3.8 merge window.
We have several new drivers, most of the time coming with their sub devices
drivers:
- Austria Microsystem's AS3711
- Nano River's viperboard
- TI's TPS80031, AM335x TS/ADC,
- Realtek's MMC/memstick card reader
- Nokia's retu
We also got some notable cleanups and improvements:
- tps6586x got converted to IRQ domains.
- tps65910 and tps65090 moved to the regmap IRQ API.
- STMPE is now Device Tree aware.
- A general twl6040 and twl-core cleanup, with moves to the regmap I/O and IRQ
APIs and a conversion to the recently added PWM framework.
- sta2x11 gained regmap support.
Then the rest is mostly tiny cleanups and fixes, among which we have Mark's
wm5xxx and wm8xxx patchset.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAABAgAGBQJQznPnAAoJEIqAPN1PVmxKuA8P/0nOJduXFM1c0Gy+DD5DnJnG
cXzzeSTV8iO3a3sHIye43QPJ5V2YUR5uxLTUEOo/G7my/MoZ/azeNidkUD3qLVlm
wVIq35lcS8dWTZaY7nlpBcWc6e39UB0sEueuJNxyhOv5lnMKdi2tAow5f4vIRQnd
Q67/EbrgqdltcOpGmVuCdQcvphvWgy+K65jzbJG5zXs7hGX13Q+M5RnYhx76kc8f
TDd0APZ71n5/RyISFSBSu2vfl2kES6o47aMgqqXMEHri6d3puAaXM0rFoMzXg/4G
eBdxndN25H7rW7xvt9tuUod2rn1AO7tif5d7jal3Cfj61y3iqKY30yb3OzS9XQXH
9WZ2qDst11zvzQivxIkMGvfRXRfncNLWR4DrBSqVfSbYV2uQj2eS8C6ONwKVMXsQ
5tjNp91PFqN19sWQjIjSMcrNswxgpvdQ9mqFTyOGmISbqrpPSTi+MuO8r9+xTfUF
PnzUX2nVOW/i9NcI7uotjzh8jiw6t8XMVHhkehiSYR9hzCb6MaPsFPN4jWq9XA2m
1htCHylNpHqHQ3Mup7Is6j0Li1ahdwfm4lbrgiVEA4t4Mqs5E/Ka+3V8laNAKylW
PfCP/VmnJYzmgVTK/qobFNeKzRqR0i4WTL6T7oAxGL87Q4TJaqKpEkXWne8UXV+Q
yIbN0fmWfCveCetM+vaf
=F790
-----END PGP SIGNATURE-----
Merge tag 'mfd-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
Pull MFS update from Samuel Ortiz:
"This is the MFD patch set for the 3.8 merge window.
We have several new drivers, most of the time coming with their sub
devices drivers:
- Austria Microsystem's AS3711
- Nano River's viperboard
- TI's TPS80031, AM335x TS/ADC,
- Realtek's MMC/memstick card reader
- Nokia's retu
We also got some notable cleanups and improvements:
- tps6586x got converted to IRQ domains.
- tps65910 and tps65090 moved to the regmap IRQ API.
- STMPE is now Device Tree aware.
- A general twl6040 and twl-core cleanup, with moves to the regmap
I/O and IRQ APIs and a conversion to the recently added PWM
framework.
- sta2x11 gained regmap support.
Then the rest is mostly tiny cleanups and fixes, among which we have
Mark's wm5xxx and wm8xxx patchset."
Far amount of annoying but largely trivial conflicts. Many due to
__devinit/exit removal, others due to one or two of the new drivers also
having come in through another tree.
* tag 'mfd-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (119 commits)
mfd: tps6507x: Convert to devm_kzalloc
mfd: stmpe: Update DT support for stmpe driver
mfd: wm5102: Add readback of DSP status 3 register
mfd: arizona: Log if we fail to create the primary IRQ domain
mfd: tps80031: MFD_TPS80031 needs to select REGMAP_IRQ
mfd: tps80031: Add terminating entry for tps80031_id_table
mfd: sta2x11: Fix potential NULL pointer dereference in __sta2x11_mfd_mask()
mfd: wm5102: Add tuning for revision B
mfd: arizona: Defer patch initialistation until after first device boot
mfd: tps65910: Fix wrong ack_base register
mfd: tps65910: Remove unused data
mfd: stmpe: Get rid of irq_invert_polarity
mfd: ab8500-core: Fix invalid free of devm_ allocated data
mfd: wm5102: Mark DSP memory regions as volatile
mfd: wm5102: Correct default for LDO1_CONTROL_2
mfd: arizona: Register haptics devices
mfd: wm8994: Make current device behaviour the default
mfd: tps65090: MFD_TPS65090 needs to select REGMAP_IRQ
mfd: Fix stmpe.c build when OF is not enabled
mfd: jz4740-adc: Use devm_kzalloc
...
2012-12-17 10:55:20 +08:00
|
|
|
obj-$(CONFIG_VIPERBOARD_ADC) += viperboard_adc.o
|
2014-02-17 22:10:00 +08:00
|
|
|
xilinx-xadc-y := xilinx-xadc-core.o xilinx-xadc-events.o
|
|
|
|
obj-$(CONFIG_XILINX_XADC) += xilinx-xadc.o
|