modules: fix compile error if don't have strict module rwx
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / adc / adi,ad7124.txt
1 Analog Devices AD7124 ADC device driver
2
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
13
14           Required properties:
15                 * #address-cells: Must be 1.
16                 * #size-cells: Must be 0.
17
18           Subnode(s) represent the external channels which are connected to the ADC.
19           Each subnode represents one channel and has the following properties:
20                 Required 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
24
25                 Optional properties:
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(−).
31                           3: AVDD
32                           If this field is left empty, internal reference is selected.
33
34 Optional properties:
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.
38
39 Example:
40         adc@0 {
41                 compatible = "adi,ad7124-4";
42                 reg = <0>;
43                 spi-max-frequency = <5000000>;
44                 interrupts = <25 2>;
45                 interrupt-parent = <&gpio>;
46                 refin1-supply = <&adc_vref>;
47                 clocks = <&ad7124_mclk>;
48                 clock-names = "mclk";
49
50                 #address-cells = <1>;
51                 #size-cells = <0>;
52
53                 channel@0 {
54                         reg = <0>;
55                         diff-channels = <0 1>;
56                         adi,reference-select = <0>;
57                 };
58
59                 channel@1 {
60                         reg = <1>;
61                         bipolar;
62                         diff-channels = <2 3>;
63                         adi,reference-select = <0>;
64                 };
65
66                 channel@2 {
67                         reg = <2>;
68                         diff-channels = <4 5>;
69                 };
70
71                 channel@3 {
72                         reg = <3>;
73                         diff-channels = <6 7>;
74                 };
75         };