forked from Minki/linux
a9e9c7153e
This adds max1117/max1118/max1119 8-bit, dual-channel ADC driver. This new driver uses the zero length spi_transfers with the cs_change flag set and/or the non-zero delay_usecs. 1. The zero length transfer with the spi_transfer.cs_change set is required in order to select CH1. The chip select line must be brought high and low again without transfer. 2. The zero length transfer with the spi_transfer.delay_usecs > 0 is required for waiting the conversion to be complete. The conversion begins with the falling edge of the chip select. During the conversion process, SCLK is ignored. These two usages are unusual. But the spi controller drivers that use a default implementation of transfer_one_message() are likely to work. (I've tested this adc driver with spi-omap2-mcspi and spi-xilinx) On the other hand, some spi controller drivers that have their own transfer_one_message() may not work. But at least for the zero length transfer with delay_usecs > 0, I'm proposing a new testcase for the spi-loopback-test that can test whether the delay_usecs setting has taken effect. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Jonathan Cameron <jic23@kernel.org> Cc: Hartmut Knaack <knaack.h@gmx.de> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mark Brown <broonie@kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
78 lines
3.0 KiB
Makefile
78 lines
3.0 KiB
Makefile
#
|
|
# Makefile for IIO ADC drivers
|
|
#
|
|
|
|
# When adding new entries keep the list in alphabetical order
|
|
obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
|
|
obj-$(CONFIG_AD7266) += ad7266.o
|
|
obj-$(CONFIG_AD7291) += ad7291.o
|
|
obj-$(CONFIG_AD7298) += ad7298.o
|
|
obj-$(CONFIG_AD7923) += ad7923.o
|
|
obj-$(CONFIG_AD7476) += ad7476.o
|
|
obj-$(CONFIG_AD7766) += ad7766.o
|
|
obj-$(CONFIG_AD7791) += ad7791.o
|
|
obj-$(CONFIG_AD7793) += ad7793.o
|
|
obj-$(CONFIG_AD7887) += ad7887.o
|
|
obj-$(CONFIG_AD799X) += ad799x.o
|
|
obj-$(CONFIG_ASPEED_ADC) += aspeed_adc.o
|
|
obj-$(CONFIG_AT91_ADC) += at91_adc.o
|
|
obj-$(CONFIG_AT91_SAMA5D2_ADC) += at91-sama5d2_adc.o
|
|
obj-$(CONFIG_AXP288_ADC) += axp288_adc.o
|
|
obj-$(CONFIG_BCM_IPROC_ADC) += bcm_iproc_adc.o
|
|
obj-$(CONFIG_BERLIN2_ADC) += berlin2-adc.o
|
|
obj-$(CONFIG_CC10001_ADC) += cc10001_adc.o
|
|
obj-$(CONFIG_CPCAP_ADC) += cpcap-adc.o
|
|
obj-$(CONFIG_DA9150_GPADC) += da9150-gpadc.o
|
|
obj-$(CONFIG_ENVELOPE_DETECTOR) += envelope-detector.o
|
|
obj-$(CONFIG_EXYNOS_ADC) += exynos_adc.o
|
|
obj-$(CONFIG_FSL_MX25_ADC) += fsl-imx25-gcq.o
|
|
obj-$(CONFIG_HI8435) += hi8435.o
|
|
obj-$(CONFIG_HX711) += hx711.o
|
|
obj-$(CONFIG_IMX7D_ADC) += imx7d_adc.o
|
|
obj-$(CONFIG_INA2XX_ADC) += ina2xx-adc.o
|
|
obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
|
|
obj-$(CONFIG_LPC18XX_ADC) += lpc18xx_adc.o
|
|
obj-$(CONFIG_LPC32XX_ADC) += lpc32xx_adc.o
|
|
obj-$(CONFIG_LTC2485) += ltc2485.o
|
|
obj-$(CONFIG_LTC2497) += ltc2497.o
|
|
obj-$(CONFIG_MAX1027) += max1027.o
|
|
obj-$(CONFIG_MAX11100) += max11100.o
|
|
obj-$(CONFIG_MAX1118) += max1118.o
|
|
obj-$(CONFIG_MAX1363) += max1363.o
|
|
obj-$(CONFIG_MAX9611) += max9611.o
|
|
obj-$(CONFIG_MCP320X) += mcp320x.o
|
|
obj-$(CONFIG_MCP3422) += mcp3422.o
|
|
obj-$(CONFIG_MEDIATEK_MT6577_AUXADC) += mt6577_auxadc.o
|
|
obj-$(CONFIG_MEN_Z188_ADC) += men_z188_adc.o
|
|
obj-$(CONFIG_MESON_SARADC) += meson_saradc.o
|
|
obj-$(CONFIG_MXS_LRADC) += mxs-lradc.o
|
|
obj-$(CONFIG_NAU7802) += nau7802.o
|
|
obj-$(CONFIG_PALMAS_GPADC) += palmas_gpadc.o
|
|
obj-$(CONFIG_QCOM_SPMI_IADC) += qcom-spmi-iadc.o
|
|
obj-$(CONFIG_QCOM_VADC_COMMON) += qcom-vadc-common.o
|
|
obj-$(CONFIG_QCOM_SPMI_VADC) += qcom-spmi-vadc.o
|
|
obj-$(CONFIG_QCOM_PM8XXX_XOADC) += qcom-pm8xxx-xoadc.o
|
|
obj-$(CONFIG_RCAR_GYRO_ADC) += rcar-gyroadc.o
|
|
obj-$(CONFIG_ROCKCHIP_SARADC) += rockchip_saradc.o
|
|
obj-$(CONFIG_SPEAR_ADC) += spear_adc.o
|
|
obj-$(CONFIG_STX104) += stx104.o
|
|
obj-$(CONFIG_SUN4I_GPADC) += sun4i-gpadc-iio.o
|
|
obj-$(CONFIG_STM32_ADC_CORE) += stm32-adc-core.o
|
|
obj-$(CONFIG_STM32_ADC) += stm32-adc.o
|
|
obj-$(CONFIG_TI_ADC081C) += ti-adc081c.o
|
|
obj-$(CONFIG_TI_ADC0832) += ti-adc0832.o
|
|
obj-$(CONFIG_TI_ADC12138) += ti-adc12138.o
|
|
obj-$(CONFIG_TI_ADC128S052) += ti-adc128s052.o
|
|
obj-$(CONFIG_TI_ADC161S626) += ti-adc161s626.o
|
|
obj-$(CONFIG_TI_ADS1015) += ti-ads1015.o
|
|
obj-$(CONFIG_TI_ADS7950) += ti-ads7950.o
|
|
obj-$(CONFIG_TI_ADS8688) += ti-ads8688.o
|
|
obj-$(CONFIG_TI_AM335X_ADC) += ti_am335x_adc.o
|
|
obj-$(CONFIG_TI_TLC4541) += ti-tlc4541.o
|
|
obj-$(CONFIG_TWL4030_MADC) += twl4030-madc.o
|
|
obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
|
|
obj-$(CONFIG_VF610_ADC) += vf610_adc.o
|
|
obj-$(CONFIG_VIPERBOARD_ADC) += viperboard_adc.o
|
|
xilinx-xadc-y := xilinx-xadc-core.o xilinx-xadc-events.o
|
|
obj-$(CONFIG_XILINX_XADC) += xilinx-xadc.o
|