Merge branch 'fixes-base' into fixes
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / adc / fsl,imx25-gcq.txt
1 Freescale i.MX25 ADC GCQ device
2
3 This is a generic conversion queue device that can convert any of the
4 analog inputs using the ADC unit of the i.MX25.
5
6 Required properties:
7  - compatible: Should be "fsl,imx25-gcq".
8  - reg: Should be the register range of the module.
9  - interrupts: Should be the interrupt number of the module.
10    Typically this is <1>.
11  - interrupt-parent: phandle to the tsadc module of the i.MX25.
12  - #address-cells: Should be <1> (setting for the subnodes)
13  - #size-cells: Should be <0> (setting for the subnodes)
14
15 Optional properties:
16  - vref-ext-supply: The regulator supplying the ADC reference voltage.
17    Required when at least one subnode uses the this reference.
18  - vref-xp-supply: The regulator supplying the ADC reference voltage on pin XP.
19    Required when at least one subnode uses this reference.
20  - vref-yp-supply: The regulator supplying the ADC reference voltage on pin YP.
21    Required when at least one subnode uses this reference.
22
23 Sub-nodes:
24 Optionally you can define subnodes which define the reference voltage
25 for the analog inputs.
26
27 Required properties for subnodes:
28  - reg: Should be the number of the analog input.
29      0: xp
30      1: yp
31      2: xn
32      3: yn
33      4: wiper
34      5: inaux0
35      6: inaux1
36      7: inaux2
37 Optional properties for subnodes:
38  - fsl,adc-refp: specifies the positive reference input as defined in
39      <dt-bindings/iio/adc/fsl-imx25-gcq.h>
40  - fsl,adc-refn: specifies the negative reference input as defined in
41      <dt-bindings/iio/adc/fsl-imx25-gcq.h>
42
43 Example:
44
45         adc: adc@50030800 {
46                 compatible = "fsl,imx25-gcq";
47                 reg = <0x50030800 0x60>;
48                 interrupt-parent = <&tscadc>;
49                 interrupts = <1>;
50                 #address-cells = <1>;
51                 #size-cells = <0>;
52
53                 inaux@5 {
54                         reg = <5>;
55                         fsl,adc-refp = <MX25_ADC_REFP_INT>;
56                         fsl,adc-refn = <MX25_ADC_REFN_NGND>;
57                 };
58         };