# Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter

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

> Device-tree binding reference for Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter.

<!-- 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;sound&#47;ti&#44;tlv320adcx140&#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;Andrew Davis &#60;afd&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital
PDM microphones recording), high-performance audio, analog-to-digital
converter (ADC) with analog inputs supporting up to 2V RMS. The TLV320ADCX140
family supports line and  microphone Inputs, and offers a programmable
microphone bias or supply voltage generation.</p>
<pre><code>Specifications can be found at:
  https://www.ti.com/lit/ds/symlink/tlv320adc3140.pdf
  https://www.ti.com/lit/ds/symlink/tlv320adc5140.pdf
  https://www.ti.com/lit/ds/symlink/tlv320adc6140.pdf</code></pre>
</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;ti&#44;tlv320adc3140&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;tlv320adc5140&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;tlv320adc6140&#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 of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f</p>
</div>

<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 used for hardware reset.</p>
</div>

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

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

<div id="dt-b3f235c9d0bc0d866008">
<p style="white-space: pre-wrap">External supply of 1.8V. If not defined then the internal regulator is
enabled instead.</p>
</div>

<a id="dt-14397a69ba55f41119c5"></a>

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

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

<a id="dt-79d466fdcccc88d28b5b"></a>

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

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

<a id="dt-027d0ea65a141e9aec15"></a>

### <code>ti&#44;mic&#45;bias&#45;source</code> — not listed as required here

<div id="dt-93239633ebc76a1da34d">
<p style="white-space: pre-wrap">Indicates the source for MIC Bias.
0 - Mic bias is set to VREF
1 - Mic bias is set to VREF × 1.096
6 - Mic bias is set to AVDD</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-528d9138389371c23217">[<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-62f41ca06d8c358dc3ce"></a> <span id="dt-b9030a97191b7a173642"><code>0</code></span>, <span id="dt-26f3eb158d9b37778af4"><code>1</code></span>, <span id="dt-e9ed645d7070aa0d5df6"><code>6</code></span>

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

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

<div id="dt-c9d17631fe770228bc3b">
<p style="white-space: pre-wrap">Indicates the source for MIC Bias.
0 - Set VREF to 2.75V
1 - Set VREF to 2.5V
2 - Set VREF to 1.375V</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ecf8717287680f97c9f0">[<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-94e081e1612cc0952996"></a> <span id="dt-5d4ec7cee65d45df08bc"><code>0</code></span>, <span id="dt-4808c6c6dedf03533788"><code>1</code></span>, <span id="dt-dc44bf9dd541dee0e4d6"><code>2</code></span>

<a id="dt-46b5f6080fbecf443bea"></a>

### <code>ti&#44;pdm&#45;edge&#45;select</code> — not listed as required here

<div id="dt-73fe9fba0f0d98bdd321">
<p style="white-space: pre-wrap">Defines the PDMCLK sampling edge configuration for the PDM inputs.  This
array is defined as &lt;PDMIN1 PDMIN2 PDMIN3 PDMIN4&gt;.</p>
<p style="white-space: pre-wrap">0 - (default) Odd channel is latched on the negative edge and even
channel is latched on the positive edge.
1 - Odd channel is latched on the positive edge and even channel is
latched on the negative edge.</p>
<p style="white-space: pre-wrap">PDMIN1 - PDMCLK latching edge used for channel 1 and 2 data
PDMIN2 - PDMCLK latching edge used for channel 3 and 4 data
PDMIN3 - PDMCLK latching edge used for channel 5 and 6 data
PDMIN4 - PDMCLK latching edge used for channel 7 and 8 data</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-568f5147f6a90a827436">[<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-cec1d8543d9557ea2dca"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-1820ab1b072ada9bf927"><code>4</code></span>

<a id="dt-8c08a5ff1da15f7a2604"></a>

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

> **Maximum value (<code>maximum</code>):** <span id="dt-572ae6991cab58c0bc89"><code>1</code></span>

**Default value (<code>default</code>):** <a id="dt-4095ab090d51dc85cb49"></a> <span id="dt-3a0a6532b285eb7fd6d8"><code>0</code></span>, <span id="dt-6bced234a43ec42fb3f9"><code>0</code></span>, <span id="dt-577bfafa571888064a59"><code>0</code></span>, <span id="dt-0a5dfd0fb50f755e2b42"><code>0</code></span>

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

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

<div id="dt-08c38e008c690554a3c2">
<p style="white-space: pre-wrap">Defines the configuration for the general purpose input pins (GPI).
The array is defined as &lt;GPI1 GPI2 GPI3 GPI4&gt;.</p>
<pre><code>0 - (default) disabled
1 - GPIX is configured as a general-purpose input (GPI)
2 - GPIX is configured as a master clock input (MCLK)
3 - GPIX is configured as an ASI input for daisy-chain (SDIN)
4 - GPIX is configured as a PDM data input for channel 1 and channel
     (PDMDIN1)
5 - GPIX is configured as a PDM data input for channel 3 and channel
     (PDMDIN2)
6 - GPIX is configured as a PDM data input for channel 5 and channel
     (PDMDIN3)
7 - GPIX is configured as a PDM data input for channel 7 and channel
     (PDMDIN4)</code></pre>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e05ef236038d84bba835">[<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-2c2632e5b29cc519bf53"><code>1</code></span>

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

<a id="dt-09c378838528a898a000"></a>

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

> **Maximum value (<code>maximum</code>):** <span id="dt-546ae532fe6013e2bfb3"><code>7</code></span>

**Default value (<code>default</code>):** <a id="dt-3f60732c1bfec416fc68"></a> <span id="dt-dc394052a602a1fc80cd"><code>0</code></span>, <span id="dt-c2f297a00b94d4e605eb"><code>0</code></span>, <span id="dt-c0d78b4e5534c6c60359"><code>0</code></span>, <span id="dt-984a1404094b98693220"><code>0</code></span>

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

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

<div id="dt-135e80f84e4c6c2e8939">
<p style="white-space: pre-wrap">Defines the configuration and output drive for the General Purpose
Input and Output pin (GPIO1). Its value is a pair, the first value is for
the configuration type and the second value is for the output drive
type. The array is defined as &lt;GPIO1_CFG GPIO1_DRV&gt;</p>
<pre><code>configuration for the GPIO pin can be one of the following:
0 - disabled
1 - GPIO1 is configured as a general-purpose output (GPO)
2 - (default) GPIO1 is configured as a device interrupt output (IRQ)
3 - GPIO1 is configured as a secondary ASI output (SDOUT2)
4 - GPIO1 is configured as a PDM clock output (PDMCLK)
8 - GPIO1 is configured as an input to control when MICBIAS turns on or
    off (MICBIAS_EN)
9 - GPIO1 is configured as a general-purpose input (GPI)
10 - GPIO1 is configured as a master clock input (MCLK)
11 - GPIO1 is configured as an ASI input for daisy-chain (SDIN)
12 - GPIO1 is configured as a PDM data input for channel 1 and channel 2
     (PDMDIN1)
13 - GPIO1 is configured as a PDM data input for channel 3 and channel 4
     (PDMDIN2)
14 - GPIO1 is configured as a PDM data input for channel 5 and channel 6
     (PDMDIN3)
15 - GPIO1 is configured as a PDM data input for channel 7 and channel 8
     (PDMDIN4)</code></pre>
<p style="white-space: pre-wrap">output drive type for the GPIO pin can be one of the following:
0 - Hi-Z output
1 - Drive active low and active high
2 - (default) Drive active low and weak high
3 - Drive active low and Hi-Z
4 - Drive weak low and active high
5 - Drive Hi-Z and active high</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7ead296a5f5362fed5ed">[<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-2d8f5b714e11e7631fb5"><code>2</code></span>

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

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

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

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

**Default value (<code>default</code>):** <a id="dt-290908da449043ee4894"></a> <span id="dt-a10383babdc7eb071260"><code>2</code></span>, <span id="dt-7b5b7f4a76a9a9d9faa7"><code>2</code></span>

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

### <code>ti&#44;asi&#45;tx&#45;drive</code> — not listed as required here

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

<div id="dt-9980942c558f4a650500">
<p style="white-space: pre-wrap">When set the device will set the Tx ASI output to a Hi-Z state for unused
data cycles. Default is to drive the output low on unused ASI cycles.</p>
</div>

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

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

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

### <code>&#94;ti&#44;gpo&#45;config&#45;&#91;1&#45;4&#93;&#36;</code> — name matches this regular expression

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-399385c483a847b3216e">[<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>

<div id="dt-94cab805695ea84e2b6f">
<p style="white-space: pre-wrap">Defines the configuration and output driver for the general purpose
output pins (GPO).  These values are pairs, the first value is for the
configuration type and the second value is for the output drive type.
The array is defined as &lt;GPO_CFG GPO_DRV&gt;</p>
<p style="white-space: pre-wrap">GPO output configuration can be one of the following:</p>
<p style="white-space: pre-wrap">0 - (default) disabled
1 - GPOX is configured as a general-purpose output (GPO)
2 - GPOX is configured as a device interrupt output (IRQ)
3 - GPOX is configured as a secondary ASI output (SDOUT2)
4 - GPOX is configured as a PDM clock output (PDMCLK)</p>
<p style="white-space: pre-wrap">GPO output drive configuration for the GPO pins can be one of the following:</p>
<p style="white-space: pre-wrap">0d - (default) Hi-Z output
1d - Drive active low and active high
2d - Drive active low and weak high
3d - Drive active low and Hi-Z
4d - Drive weak low and active high
5d - Drive Hi-Z and active high</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>

<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/gpio/gpio.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  codec: codec@4c {
    compatible = "ti,tlv320adc5140";
    reg = &lt;0x4c&gt;;
    ti,mic-bias-source = &lt;6&gt;;
    ti,pdm-edge-select = &lt;0 1 0 1&gt;;
    ti,gpi-config = &lt;4 5 6 7&gt;;
    ti,gpio-config = &lt;10 2&gt;;
    ti,gpo-config-1 = &lt;0 0&gt;;
    ti,gpo-config-2 = &lt;0 0&gt;;
    reset-gpios = &lt;&amp;gpio0 14 GPIO_ACTIVE_HIGH&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) 2019 Texas Instruments Incorporated</span></p>

</details>
