# Texas Instruments TLV320ADC3001/TLV320ADC3101 Stereo ADC

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Audio bindings_

> Device-tree binding reference for Texas Instruments TLV320ADC3001/TLV320ADC3101 Stereo 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;sound&#47;ti&#44;tlv320adc3xxx&#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;Ricard Wanderlof &#60;ricardw&#64;axis&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Texas Instruments TLV320ADC3001 and TLV320ADC3101 Stereo ADC
https://www.ti.com/product/TLV320ADC3001
https://www.ti.com/product/TLV320ADC3101</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>dai&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-sound/dai-common.md#dt-root>)</span>

<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;ti&#44;tlv320adc3001&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;tlv320adc3101&#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>

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">I2C address</p>
</div>

<a id="dt-4a22cdb1eade348ac0d4"></a>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

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

### <code>gpio&#45;controller</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>reset&#45;gpios</code> — not listed as required here

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO pin used for codec reset (RESET pin)</p>
</div>

<a id="dt-4e9a371963ac013ad39d"></a>

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Master clock (MCLK)</p>
</div>

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

### <code>ti&#44;dmdin&#45;gpio1</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-704afdd3bfba58ae127c"></a> <span id="dt-951491b5d78ad1da4ead"><code>0</code></span>, <span id="dt-0456d1f6ffd3e51515f6"><code>1</code></span>, <span id="dt-8dcf175505b3f95b241d"><code>2</code></span>, <span id="dt-3e42ff647ed3240a640e"><code>3</code></span>, <span id="dt-1e4ededd34a4d7132fbd"><code>4</code></span>, <span id="dt-fb7004b8f2c334bc462e"><code>5</code></span>, <span id="dt-4701b5f094415a8d04f5"><code>6</code></span>, <span id="dt-06cd5ef48d4f0cdb56af"><code>7</code></span>

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

<div id="dt-75bd3df244aabf056d38">
<p style="white-space: pre-wrap">Configuration for DMDIN/GPIO1 pin.</p>
<p style="white-space: pre-wrap">When ADC3XXX_GPIO_GPO is selected, the pin may be controlled via the
GPIO framework, as pin number 0 on the device.</p>
</div>

<a id="dt-86e444e60336579da8cc"></a>

### <code>ti&#44;dmclk&#45;gpio2</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-e203fb830fe1b6f542eb"></a> <span id="dt-ff949ea1c3384944d054"><code>0</code></span>, <span id="dt-a0e4a0ab803c1b775979"><code>1</code></span>, <span id="dt-f4e727bd6be3626de2c1"><code>2</code></span>, <span id="dt-605824c07dbea48a9ad6"><code>3</code></span>, <span id="dt-5464b411a6d144097a54"><code>4</code></span>, <span id="dt-d8079627f32e25c37d3a"><code>5</code></span>, <span id="dt-e4d0cf96c649d6706a25"><code>6</code></span>, <span id="dt-70e59becb9417cdc60e5"><code>7</code></span>

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

<div id="dt-fa2c33d626dc4312bf5e">
<p style="white-space: pre-wrap">Configuration for DMCLK/GPIO2 pin.</p>
<p style="white-space: pre-wrap">When ADC3XXX_GPIO_GPO is selected, the pin may be controlled via the
GPIO framework, as pin number 1 on the device.</p>
<p style="white-space: pre-wrap">Note that there is currently no support for reading the GPIO pins as
inputs.</p>
</div>

<a id="dt-710d9ebdf5716cd0da9e"></a>

### <code>ti&#44;micbias1&#45;gpo</code> — not listed as required here

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

<div id="dt-493e1dc9071ee0113634">
<p style="white-space: pre-wrap">When set, the MICBIAS1 pin may be controlled via the GPIO framework,
as pin number 3 on the device.</p>
<p style="white-space: pre-wrap">In this mode, when the pin is activated, it will be set to the voltage
specified by the ti,micbias1-vg property. When deactivated, the pin will
float.</p>
</div>

<a id="dt-3483f1414e7fce713bd8"></a>

### <code>ti&#44;micbias2&#45;gpo</code> — not listed as required here

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

<div id="dt-18f96578eb3ec1cb8feb">
<p style="white-space: pre-wrap">When set, the MICBIAS2 pin may be controlled via the GPIO framework,
as pin number 4 on the device.</p>
<p style="white-space: pre-wrap">In this mode, when the pin is activated, it will be set to the voltage
specified by the ti,micbias2-vg property. When deactivated, the pin will
float.</p>
</div>

<a id="dt-3bd232deecab4a5f2dc0"></a>

### <code>ti&#44;micbias1&#45;vg</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-d09c7b9ed0e94f501dc3"></a> <span id="dt-537fe635b39ed1427f69"><code>0</code></span>, <span id="dt-a4b644e14e4a3dfa8c13"><code>1</code></span>, <span id="dt-373dd66c6874a35595da"><code>2</code></span>, <span id="dt-433b78a95fd453dbfed5"><code>3</code></span>

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

<div id="dt-a1ef00195553d52a5018">
<p style="white-space: pre-wrap">Mic bias voltage output on MICBIAS1 pin</p>
</div>

<a id="dt-638f581201424a0f9a4b"></a>

### <code>ti&#44;micbias2&#45;vg</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-217b47968a10c59ec7bf"></a> <span id="dt-5c979d45a9fad8b46a5f"><code>0</code></span>, <span id="dt-f0f2f7cac7d2780ed5ae"><code>1</code></span>, <span id="dt-f05c13c64f7ee1faeac5"><code>2</code></span>, <span id="dt-0b2a6671fe4a2a971258"><code>3</code></span>

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

<div id="dt-d514f3f11941e5be0a91">
<p style="white-space: pre-wrap">Mic bias voltage output on MICBIAS2 pin</p>
</div>

<a id="dt-3d235861b18e278e9c09"></a>

## Property dependencies (<code>dependencies</code>)

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

### <code>ti&#44;micbias1&#45;gpo</code> — applies when this property is present

Also requires: <span id="dt-385904043ef51138281c"><code>&#34;ti&#44;micbias1&#45;vg&#34;</code></span>

<a id="dt-24ea9ff42b30a3c9c01e"></a>

### <code>ti&#44;micbias2&#45;gpo</code> — applies when this property is present

Also requires: <span id="dt-50d7528fab35cbec399e"><code>&#34;ti&#44;micbias2&#45;vg&#34;</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;clocks&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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/gpio/gpio.h&gt;
#include &lt;dt-bindings/sound/tlv320adc3xxx.h&gt;

i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    tlv320adc3101: audio-codec@18 {
        compatible = "ti,tlv320adc3101";
        reg = &lt;0x18&gt;;
        reset-gpios = &lt;&amp;gpio_pc 3 GPIO_ACTIVE_LOW&gt;;
        clocks = &lt;&amp;audio_mclk&gt;;
        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        ti,dmdin-gpio1 = &lt;ADC3XXX_GPIO_GPO&gt;;
        ti,micbias1-vg = &lt;ADC3XXX_MICBIAS_AVDD&gt;;
    };
};

audio_mclk: clock {
    compatible = "fixed-clock";
    #clock-cells = &lt;0&gt;;
    clock-frequency = &lt;24576000&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>

<p id="dt-comment-1"><strong>Line 49:</strong> <span> ADC3XXX_GPIO_DISABLED       - I/O buffers powered down and not used</span></p>

<p id="dt-comment-2"><strong>Line 50:</strong> <span> ADC3XXX_GPIO_INPUT          - Various non-GPIO input functions</span></p>

<p id="dt-comment-3"><strong>Line 51:</strong> <span> ADC3XXX_GPIO_GPI            - General purpose input</span></p>

<p id="dt-comment-4"><strong>Line 52:</strong> <span> ADC3XXX_GPIO_GPO            - General purpose output</span></p>

<p id="dt-comment-5"><strong>Line 53:</strong> <span> ADC3XXX_GPIO_CLKOUT         - Clock source set in CLKOUT_MUX reg</span></p>

<p id="dt-comment-6"><strong>Line 54:</strong> <span> ADC3XXX_GPIO_INT1           - INT1 output</span></p>

<p id="dt-comment-7"><strong>Line 55:</strong> <span> ADC3XXX_GPIO_SECONDARY_BCLK - Codec interface secondary BCLK</span></p>

<p id="dt-comment-8"><strong>Line 56:</strong> <span> ADC3XXX_GPIO_SECONDARY_WCLK - Codec interface secondary WCLK</span></p>

<p id="dt-comment-9"><strong>Line 67:</strong> <span> ADC3XXX_GPIO_DISABLED       - I/O buffers powered down and not used</span></p>

<p id="dt-comment-10"><strong>Line 68:</strong> <span> ADC3XXX_GPIO_INPUT          - Various non-GPIO input functions</span></p>

<p id="dt-comment-11"><strong>Line 69:</strong> <span> ADC3XXX_GPIO_GPI            - General purpose input</span></p>

<p id="dt-comment-12"><strong>Line 70:</strong> <span> ADC3XXX_GPIO_GPO            - General purpose output</span></p>

<p id="dt-comment-13"><strong>Line 71:</strong> <span> ADC3XXX_GPIO_CLKOUT         - Clock source set in CLKOUT_MUX reg</span></p>

<p id="dt-comment-14"><strong>Line 72:</strong> <span> ADC3XXX_GPIO_INT1           - INT1 output</span></p>

<p id="dt-comment-15"><strong>Line 73:</strong> <span> ADC3XXX_GPIO_SECONDARY_BCLK - Codec interface secondary BCLK</span></p>

<p id="dt-comment-16"><strong>Line 74:</strong> <span> ADC3XXX_GPIO_SECONDARY_WCLK - Codec interface secondary WCLK</span></p>

<p id="dt-comment-17"><strong>Line 108:</strong> <span> ADC3XXX_MICBIAS_OFF		- Mic bias is powered down</span></p>

<p id="dt-comment-18"><strong>Line 109:</strong> <span> ADC3XXX_MICBIAS_2_0V	- Mic bias is set to 2.0V</span></p>

<p id="dt-comment-19"><strong>Line 110:</strong> <span> ADC3XXX_MICBIAS_2_5V	- Mic bias is set to 2.5V</span></p>

<p id="dt-comment-20"><strong>Line 111:</strong> <span> ADC3XXX_MICBIAS_AVDD	- Mic bias is same as AVDD supply</span></p>

<p id="dt-comment-21"><strong>Line 119:</strong> <span> ADC3XXX_MICBIAS_OFF		- Mic bias is powered down</span></p>

<p id="dt-comment-22"><strong>Line 120:</strong> <span> ADC3XXX_MICBIAS_2_0V	- Mic bias is set to 2.0V</span></p>

<p id="dt-comment-23"><strong>Line 121:</strong> <span> ADC3XXX_MICBIAS_2_5V	- Mic bias is set to 2.5V</span></p>

<p id="dt-comment-24"><strong>Line 122:</strong> <span> ADC3XXX_MICBIAS_AVDD	- Mic bias is same as AVDD supply</span></p>

</details>
