# Freescale ADC GCQ device

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc_

> Device-tree binding reference for Freescale ADC GCQ device.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;iio&#47;adc&#47;fsl&#44;imx25&#45;gcq&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This is a generic conversion queue device that can convert any of the analog inputs using the ADC unit of the i.MX25.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Jonathan Cameron &#60;jic23&#64;kernel&#46;org&#62;&#34;</code></span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;fsl&#44;imx25&#45;gcq&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

<a id="dt-0cc1876d17f35cd67fbf"></a>

### <code>vref&#45;ext&#45;supply</code> — not listed as required here

<div id="dt-a6065a7f730688f93faf">
<p style="white-space: pre-wrap">The regulator supplying the ADC reference voltage. Required when at least one subnode uses the this reference.</p>
</div>

<a id="dt-1ca85d2ffd34588c4d48"></a>

### <code>vref&#45;xp&#45;supply</code> — not listed as required here

<div id="dt-150ab6c3b463fe41cc5d">
<p style="white-space: pre-wrap">The regulator supplying the ADC reference voltage on pin XP. Required when at least one subnode uses this reference.</p>
</div>

<a id="dt-5fdae1d1ad7d19e7d23e"></a>

### <code>vref&#45;yp&#45;supply</code> — not listed as required here

<div id="dt-67a65ede6f94a28e7e4e">
<p style="white-space: pre-wrap">The regulator supplying the ADC reference voltage on pin YP. Required when at least one subnode uses this reference.</p>
</div>

<a id="dt-6971e222e0082656e9f5"></a>

### <code>&#35;io&#45;channel&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-d32aef3dfe12cf2b3de1"><code>1</code></span>

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-e6e6af09ab617572731b"><code>1</code></span>

<a id="dt-ee0e5bf71366d312f1dc"></a>

### <code>&#35;size&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;size&#45;cells&#34;</code></span>

<a id="dt-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-6cd2798b0fb1bb6cc241"></a>

### <code>&#91;a&#45;z&#93;&#91;a&#45;z0&#45;9&#93;&#43;&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-e824e30eceb98d708a92"><code>&#34;object&#34;</code></span>

<div id="dt-5340e255db99acea999c">
<p style="white-space: pre-wrap">Child nodes used to define the reference voltages used for each channel</p>
</div>

<a id="dt-528e4c6b4922d359714a"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-dc7298038168fe55b7c8"></a>

**<code>reg</code> — required here**

<div id="dt-4a0652d327bb543370bc">
<p style="white-space: pre-wrap">Number of the analog input.
0: xp
1: yp
2: xn
3: yn
4: wiper
5: inaux0
6: inaux1
7: inaux2</p>
</div>

<a id="dt-d38b4c9eea715c69ba56"></a>

**Array item rules (<code>items</code>)**

<a id="dt-1dc7bc65500cd0cb4ee9"></a>

**Item 1**

> **Minimum value (<code>minimum</code>):** <span id="dt-0f700d95ee05632bc4cf"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-d1b06d49f494f5fbe488"><code>7</code></span>

<a id="dt-2e241dec174ebf2883fc"></a>

**<code>fsl&#44;adc&#45;refp</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7d012d1515dc0674b983">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-ac916cd0625de5592529">
<p style="white-space: pre-wrap">Specifies the positive reference input as defined in
&lt;dt-bindings/iio/adc/fsl-imx25-gcq.h&gt;
0: YP voltage reference
1: XP voltage reference
2: External voltage reference
3: Internal voltage reference (default)</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-95a3a9b9d8bba54ed0ae"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-b3cdc60838da901a642b"><code>3</code></span>

<a id="dt-e4cead83e1f3227e35ac"></a>

**<code>fsl&#44;adc&#45;refn</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-57f15bdbd3352390dac0">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-5334827da17dffe88886">
<p style="white-space: pre-wrap">Specifies the negative reference input as defined in
&lt;dt-bindings/iio/adc/fsl-imx25-gcq.h&gt;
0: XN ground reference
1: YN ground reference
2: Internal ground reference
3: External ground reference (default)</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-49c6cd0bce2505fdf6da"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-dc08f84d3a17f89b5978"><code>3</code></span>

**Required in this object (<code>required</code>):** <a id="dt-5667d1e2509953e97727"></a> <span id="dt-7f97cf9f6f7134cd7ebc"><code>&#34;reg&#34;</code></span>

<a id="dt-f2a49652cfb5f24101c0"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/iio/adc/fsl-imx25-gcq.h&gt;
soc {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    adc@50030800 {
        compatible = "fsl,imx25-gcq";
        reg = &lt;0x50030800 0x60&gt;;
        interrupt-parent = &lt;&amp;tscadc&gt;;
        interrupts = &lt;1&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        inaux@5 {
            reg = &lt;5&gt;;
            fsl,adc-refp = &lt;MX25_ADC_REFP_INT&gt;;
            fsl,adc-refn = &lt;MX25_ADC_REFN_NGND&gt;;
        };
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)</span></p>

</details>
