# ST SPEAr ADC device driver

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

> Device-tree binding reference for ST SPEAr ADC device driver.

<!-- 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;st&#44;spear600&#45;adc&#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>

**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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Integrated ADC inside the ST SPEAr SoC, SPEAr600, supporting
10-bit resolution. Datasheet can be found here:
https://www.st.com/resource/en/datasheet/spear600.pdf</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;st&#44;spear600&#45;adc&#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-e7868febf05bfa45b365"></a>

### <code>sampling&#45;frequency</code> — required here

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

**Minimum value (<code>minimum</code>):** <span id="dt-545b3ca95d4208c17712"><code>2500000</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-07dfd833e9a66cf4cf85"><code>20000000</code></span>

<div id="dt-930d6e721731e9b3d2a0">
<p style="white-space: pre-wrap">Default sampling frequency of the ADC in Hz.</p>
</div>

<a id="dt-18e1aed3dbfb03550682"></a>

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

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

**Minimum value (<code>minimum</code>):** <span id="dt-c0969852507912411c57"><code>1000</code></span>

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

<div id="dt-a2db8b9d8aaf620f7882">
<p style="white-space: pre-wrap">External voltage reference in milli-volts. If omitted the internal voltage reference will be used.</p>
</div>

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

### <code>average&#45;samples</code> — not listed as required here

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

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

**Maximum value (<code>maximum</code>):** <span id="dt-98ca3ea7fb3ca6bff66e"><code>15</code></span>

**Default value (<code>default</code>):** <span id="dt-b900da7e96fda3594f81"><code>0</code></span>

<div id="dt-da662105f4045bd70b14">
<p style="white-space: pre-wrap">Number of samples to generate an average value. If omitted, single data conversion will be used.</p>
</div>

**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;sampling&#45;frequency&#34;</code></span>

<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">adc@d8200000 {
    compatible = "st,spear600-adc";
    reg = &lt;0xd8200000 0x1000&gt;;
    interrupt-parent = &lt;&amp;vic1&gt;;
    interrupts = &lt;6&gt;;
    sampling-frequency = &lt;5000000&gt;;
    vref-external = &lt;2500&gt;;	/* 2.5V VRef */
};
</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>
