1 Analog Devices AD7124 ADC device driver
3 Required properties for the AD7124:
4 - compatible: Must be one of "adi,ad7124-4" or "adi,ad7124-8"
5 - reg: SPI chip select number for the device
6 - spi-max-frequency: Max SPI frequency to use
7 see: Documentation/devicetree/bindings/spi/spi-bus.txt
8 - clocks: phandle to the master clock (mclk)
9 see: Documentation/devicetree/bindings/clock/clock-bindings.txt
10 - clock-names: Must be "mclk".
11 - interrupts: IRQ line for the ADC
12 see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
15 * #address-cells: Must be 1.
16 * #size-cells: Must be 0.
18 Subnode(s) represent the external channels which are connected to the ADC.
19 Each subnode represents one channel and has the following properties:
21 * reg: The channel number. It can have up to 4 channels on ad7124-4
22 and 8 channels on ad7124-8, numbered from 0 to 15.
23 * diff-channels: see: Documentation/devicetree/bindings/iio/adc/adc.txt
26 * bipolar: see: Documentation/devicetree/bindings/iio/adc/adc.txt
27 * adi,reference-select: Select the reference source to use when
28 converting on the the specific channel. Valid values are:
29 0: REFIN1(+)/REFIN1(−).
30 1: REFIN2(+)/REFIN2(−).
32 If this field is left empty, internal reference is selected.
35 - refin1-supply: refin1 supply can be used as reference for conversion.
36 - refin2-supply: refin2 supply can be used as reference for conversion.
37 - avdd-supply: avdd supply can be used as reference for conversion.
41 compatible = "adi,ad7124-4";
43 spi-max-frequency = <5000000>;
45 interrupt-parent = <&gpio>;
46 refin1-supply = <&adc_vref>;
47 clocks = <&ad7124_mclk>;
55 diff-channels = <0 1>;
56 adi,reference-select = <0>;
62 diff-channels = <2 3>;
63 adi,reference-select = <0>;
68 diff-channels = <4 5>;
73 diff-channels = <6 7>;