Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / adc / adi,ad7606.txt
1 Analog Devices AD7606 Simultaneous Sampling ADC
2
3 Required properties for the AD7606:
4
5 - compatible: Must be one of
6         * "adi,ad7605-4"
7         * "adi,ad7606-8"
8         * "adi,ad7606-6"
9         * "adi,ad7606-4"
10         * "adi,ad7616"
11 - reg: SPI chip select number for the device
12 - spi-max-frequency: Max SPI frequency to use
13         see: Documentation/devicetree/bindings/spi/spi-bus.txt
14 - spi-cpha: See Documentation/devicetree/bindings/spi/spi-bus.txt
15 - avcc-supply: phandle to the Avcc power supply
16 - interrupts: IRQ line for the ADC
17         see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
18 - adi,conversion-start-gpios: must be the device tree identifier of the CONVST pin.
19                   This logic input is used to initiate conversions on the analog
20                   input channels. As the line is active high, it should be marked
21                   GPIO_ACTIVE_HIGH.
22
23 Optional properties:
24
25 - reset-gpios: must be the device tree identifier of the RESET pin. If specified,
26                it will be asserted during driver probe. As the line is active high,
27                it should be marked GPIO_ACTIVE_HIGH.
28 - standby-gpios: must be the device tree identifier of the STBY pin. This pin is used
29                 to place the AD7606 into one of two power-down modes, Standby mode or
30                 Shutdown mode. As the line is active low, it should be marked
31                 GPIO_ACTIVE_LOW.
32 - adi,first-data-gpios: must be the device tree identifier of the FRSTDATA pin.
33                     The FRSTDATA output indicates when the first channel, V1, is
34                     being read back on either the parallel, byte or serial interface.
35                     As the line is active high, it should be marked GPIO_ACTIVE_HIGH.
36 - adi,range-gpios: must be the device tree identifier of the RANGE pin. The polarity on
37               this pin determines the input range of the analog input channels. If
38               this pin is tied to a logic high, the analog input range is ±10V for
39               all channels. If this pin is tied to a logic low, the analog input range
40               is ±5V for all channels. As the line is active high, it should be marked
41               GPIO_ACTIVE_HIGH.
42 - adi,oversampling-ratio-gpios: must be the device tree identifier of the over-sampling
43                                 mode pins. As the line is active high, it should be marked
44                                 GPIO_ACTIVE_HIGH.
45
46 Example:
47
48         adc@0 {
49                 compatible = "adi,ad7606-8";
50                 reg = <0>;
51                 spi-max-frequency = <1000000>;
52                 spi-cpol;
53
54                 avcc-supply = <&adc_vref>;
55
56                 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
57                 interrupt-parent = <&gpio>;
58
59                 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
60                 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
61                 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
62                 adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH
63                                                 &gpio 23 GPIO_ACTIVE_HIGH
64                                                 &gpio 26 GPIO_ACTIVE_HIGH>;
65                 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
66         };