xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/fsl,imx25-gcq.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1*6be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*6be33864SEmmanuel Vadot%YAML 1.2
3*6be33864SEmmanuel Vadot---
4*6be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/fsl,imx25-gcq.yaml#
5*6be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*6be33864SEmmanuel Vadot
7*6be33864SEmmanuel Vadottitle: Freescale ADC GCQ device
8*6be33864SEmmanuel Vadot
9*6be33864SEmmanuel Vadotdescription:
10*6be33864SEmmanuel Vadot  This is a generic conversion queue device that can convert any of the
11*6be33864SEmmanuel Vadot  analog inputs using the ADC unit of the i.MX25.
12*6be33864SEmmanuel Vadot
13*6be33864SEmmanuel Vadotmaintainers:
14*6be33864SEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
15*6be33864SEmmanuel Vadot
16*6be33864SEmmanuel Vadotproperties:
17*6be33864SEmmanuel Vadot  compatible:
18*6be33864SEmmanuel Vadot    const: fsl,imx25-gcq
19*6be33864SEmmanuel Vadot
20*6be33864SEmmanuel Vadot  reg:
21*6be33864SEmmanuel Vadot    maxItems: 1
22*6be33864SEmmanuel Vadot
23*6be33864SEmmanuel Vadot  interrupts:
24*6be33864SEmmanuel Vadot    maxItems: 1
25*6be33864SEmmanuel Vadot
26*6be33864SEmmanuel Vadot  vref-ext-supply:
27*6be33864SEmmanuel Vadot    description:
28*6be33864SEmmanuel Vadot      The regulator supplying the ADC reference voltage.
29*6be33864SEmmanuel Vadot      Required when at least one subnode uses the this reference.
30*6be33864SEmmanuel Vadot
31*6be33864SEmmanuel Vadot  vref-xp-supply:
32*6be33864SEmmanuel Vadot    description:
33*6be33864SEmmanuel Vadot      The regulator supplying the ADC reference voltage on pin XP.
34*6be33864SEmmanuel Vadot      Required when at least one subnode uses this reference.
35*6be33864SEmmanuel Vadot
36*6be33864SEmmanuel Vadot  vref-yp-supply:
37*6be33864SEmmanuel Vadot    description:
38*6be33864SEmmanuel Vadot      The regulator supplying the ADC reference voltage on pin YP.
39*6be33864SEmmanuel Vadot      Required when at least one subnode uses this reference.
40*6be33864SEmmanuel Vadot
41*6be33864SEmmanuel Vadot  "#io-channel-cells":
42*6be33864SEmmanuel Vadot    const: 1
43*6be33864SEmmanuel Vadot
44*6be33864SEmmanuel Vadot  "#address-cells":
45*6be33864SEmmanuel Vadot    const: 1
46*6be33864SEmmanuel Vadot
47*6be33864SEmmanuel Vadot  "#size-cells":
48*6be33864SEmmanuel Vadot    const: 0
49*6be33864SEmmanuel Vadot
50*6be33864SEmmanuel Vadotrequired:
51*6be33864SEmmanuel Vadot  - compatible
52*6be33864SEmmanuel Vadot  - reg
53*6be33864SEmmanuel Vadot  - interrupts
54*6be33864SEmmanuel Vadot  - "#address-cells"
55*6be33864SEmmanuel Vadot  - "#size-cells"
56*6be33864SEmmanuel Vadot
57*6be33864SEmmanuel VadotpatternProperties:
58*6be33864SEmmanuel Vadot  "[a-z][a-z0-9]+@[0-9a-f]+$":
59*6be33864SEmmanuel Vadot    type: object
60*6be33864SEmmanuel Vadot    description:
61*6be33864SEmmanuel Vadot      Child nodes used to define the reference voltages used for each channel
62*6be33864SEmmanuel Vadot
63*6be33864SEmmanuel Vadot    properties:
64*6be33864SEmmanuel Vadot      reg:
65*6be33864SEmmanuel Vadot        description: |
66*6be33864SEmmanuel Vadot          Number of the analog input.
67*6be33864SEmmanuel Vadot          0: xp
68*6be33864SEmmanuel Vadot          1: yp
69*6be33864SEmmanuel Vadot          2: xn
70*6be33864SEmmanuel Vadot          3: yn
71*6be33864SEmmanuel Vadot          4: wiper
72*6be33864SEmmanuel Vadot          5: inaux0
73*6be33864SEmmanuel Vadot          6: inaux1
74*6be33864SEmmanuel Vadot          7: inaux2
75*6be33864SEmmanuel Vadot        items:
76*6be33864SEmmanuel Vadot          - minimum: 0
77*6be33864SEmmanuel Vadot            maximum: 7
78*6be33864SEmmanuel Vadot
79*6be33864SEmmanuel Vadot      fsl,adc-refp:
80*6be33864SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
81*6be33864SEmmanuel Vadot        description: |
82*6be33864SEmmanuel Vadot          Specifies the positive reference input as defined in
83*6be33864SEmmanuel Vadot          <dt-bindings/iio/adc/fsl-imx25-gcq.h>
84*6be33864SEmmanuel Vadot          0: YP voltage reference
85*6be33864SEmmanuel Vadot          1: XP voltage reference
86*6be33864SEmmanuel Vadot          2: External voltage reference
87*6be33864SEmmanuel Vadot          3: Internal voltage reference (default)
88*6be33864SEmmanuel Vadot        minimum: 0
89*6be33864SEmmanuel Vadot        maximum: 3
90*6be33864SEmmanuel Vadot
91*6be33864SEmmanuel Vadot      fsl,adc-refn:
92*6be33864SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
93*6be33864SEmmanuel Vadot        description: |
94*6be33864SEmmanuel Vadot          Specifies the negative reference input as defined in
95*6be33864SEmmanuel Vadot          <dt-bindings/iio/adc/fsl-imx25-gcq.h>
96*6be33864SEmmanuel Vadot          0: XN ground reference
97*6be33864SEmmanuel Vadot          1: YN ground reference
98*6be33864SEmmanuel Vadot          2: Internal ground reference
99*6be33864SEmmanuel Vadot          3: External ground reference (default)
100*6be33864SEmmanuel Vadot        minimum: 0
101*6be33864SEmmanuel Vadot        maximum: 3
102*6be33864SEmmanuel Vadot
103*6be33864SEmmanuel Vadot    required:
104*6be33864SEmmanuel Vadot      - reg
105*6be33864SEmmanuel Vadot
106*6be33864SEmmanuel Vadot    additionalProperties: false
107*6be33864SEmmanuel Vadot
108*6be33864SEmmanuel VadotadditionalProperties: false
109*6be33864SEmmanuel Vadot
110*6be33864SEmmanuel Vadotexamples:
111*6be33864SEmmanuel Vadot  - |
112*6be33864SEmmanuel Vadot    #include <dt-bindings/iio/adc/fsl-imx25-gcq.h>
113*6be33864SEmmanuel Vadot    soc {
114*6be33864SEmmanuel Vadot        #address-cells = <1>;
115*6be33864SEmmanuel Vadot        #size-cells = <1>;
116*6be33864SEmmanuel Vadot        adc@50030800 {
117*6be33864SEmmanuel Vadot            compatible = "fsl,imx25-gcq";
118*6be33864SEmmanuel Vadot            reg = <0x50030800 0x60>;
119*6be33864SEmmanuel Vadot            interrupt-parent = <&tscadc>;
120*6be33864SEmmanuel Vadot            interrupts = <1>;
121*6be33864SEmmanuel Vadot            #address-cells = <1>;
122*6be33864SEmmanuel Vadot            #size-cells = <0>;
123*6be33864SEmmanuel Vadot
124*6be33864SEmmanuel Vadot            inaux@5 {
125*6be33864SEmmanuel Vadot                reg = <5>;
126*6be33864SEmmanuel Vadot                fsl,adc-refp = <MX25_ADC_REFP_INT>;
127*6be33864SEmmanuel Vadot                fsl,adc-refn = <MX25_ADC_REFN_NGND>;
128*6be33864SEmmanuel Vadot            };
129*6be33864SEmmanuel Vadot        };
130*6be33864SEmmanuel Vadot    };
131*6be33864SEmmanuel Vadot...
132