1/* 2 * AD7780/AD7781 SPI ADC driver 3 * 4 * Copyright 2011 Analog Devices Inc. 5 * 6 * Licensed under the GPL-2. 7 */ 8#ifndef IIO_ADC_AD7780_H_ 9#define IIO_ADC_AD7780_H_ 10 11/* 12 * TODO: struct ad7780_platform_data needs to go into include/linux/iio 13 */ 14 15/* NOTE: 16 * The AD7780 doesn't feature a dedicated SPI chip select, in addition it 17 * features a dual use data out ready DOUT/RDY output. 18 * In order to avoid contentions on the SPI bus, it's therefore necessary 19 * to use spi bus locking combined with a dedicated GPIO to control the 20 * power down reset signal of the AD7780. 21 * 22 * The DOUT/RDY output must also be wired to an interrupt capable GPIO. 23 */ 24 25struct ad7780_platform_data { 26 u16 vref_mv; 27 int gpio_pdrst; 28}; 29 30#endif /* IIO_ADC_AD7780_H_ */ 31