# TI AM3359 ADC

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

> Device-tree binding reference for TI AM3359 ADC.

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;ti&#44;am3359&#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;Miquel Raynal &#60;miquel&#46;raynal&#64;bootlin&#46;com&#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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;ti&#44;am3359&#45;adc&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;ti&#44;am4372&#45;adc&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;ti&#44;am654&#45;adc&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;ti&#44;am3359&#45;adc&#34;</code></span>

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

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

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

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

### <code>ti&#44;adc&#45;channels</code> — required here

<div id="dt-fb20956fb2c66f22a4b4">
<p style="white-space: pre-wrap">List of analog inputs available for ADC. AIN0 = 0, AIN1 = 1 and so on until AIN7 = 7.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-04094c4c0214ce8f3d3c"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-4560512be86184e13127"><code>8</code></span>

<a id="dt-831018df3ae0935fefdf"></a>

### <code>ti&#44;chan&#45;step&#45;opendelay</code> — not listed as required here

<div id="dt-0549d538f5b19d5cfab7">
<p style="white-space: pre-wrap">List of open delays for each channel of ADC in the order of ti,adc-channels. The value corresponds to the number of ADC clock cycles to wait after applying the step configuration registers and before sending the start of ADC conversion. Maximum value is 0x3FFFF.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-1d021261651d6f7674f9"><code>1</code></span>

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

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

### <code>ti&#44;chan&#45;step&#45;sampledelay</code> — not listed as required here

<div id="dt-5a8f79dfd73cbcf28fa1">
<p style="white-space: pre-wrap">List of sample delays for each channel of ADC in the order of ti,adc-channels. The value corresponds to the number of ADC clock cycles to sample (to hold start of conversion high). Maximum value is 0xFF.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-7f45f1e8696bcc458aa9"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-41ff2724f7af9502f74c"><code>8</code></span>

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

### <code>ti&#44;chan&#45;step&#45;avg</code> — not listed as required here

<div id="dt-f2559c872986506d8124">
<p style="white-space: pre-wrap">Number of averages to be performed for each channel of ADC. If average is 16 (this is also the maximum) then input is sampled 16 times and averaged to get more accurate value. This increases the time taken by ADC to generate a sample. Maximum value is 16.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-aece44e1f096b47f5c3a"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-f167c905e26779bf73c2"><code>8</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;&#35;io&#45;channel&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ti&#44;adc&#45;channels&#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 {
    compatible = "ti,am3359-adc";
    #io-channel-cells = &lt;1&gt;;
    ti,adc-channels = &lt;4 5 6 7&gt;;
    ti,chan-step-opendelay = &lt;0x098 0x3ffff 0x098 0x0&gt;;
    ti,chan-step-sampledelay = &lt;0xff 0x0 0xf 0x0&gt;;
    ti,chan-step-avg = &lt;16 2 4 8&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-only OR BSD-2-Clause)</span></p>

</details>
