# Texas Instruments TLV320AIC3x Codec

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

> Device-tree binding reference for Texas Instruments TLV320AIC3x Codec.

<!-- 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;tlv320aic3x&#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">TLV320AIC3x are a series of low-power stereo audio codecs with stereo
headphone amplifier, as well as multiple inputs and outputs programmable in
single-ended or fully differential configurations.</p>
<p style="white-space: pre-wrap">The serial control bus supports SPI or I2C protocols, while the serial audio
data bus is programmable for I2S, left/right-justified, DSP, or TDM modes.</p>
<p style="white-space: pre-wrap">The following pins can be referred in the sound node's audio routing property:</p>
<pre><code>CODEC output pins:
   LLOUT
   RLOUT
   MONO_LOUT
   HPLOUT
   HPROUT
   HPLCOM
   HPRCOM</code></pre>
<pre><code>CODEC input pins for TLV320AIC3104:
   MIC2L
   MIC2R
   LINE1L
   LINE1R</code></pre>
<pre><code>CODEC input pins for other compatible codecs:
   MIC3L
   MIC3R
   LINE1L
   LINE2L
   LINE1R
   LINE2R</code></pre>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Jai Luthra &#60;j&#45;luthra&#64;ti&#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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;ti&#44;tlv320aic23&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;tlv320aic3x&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;tlv320aic33&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;tlv320aic3007&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;tlv320aic3106&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;tlv320aic3104&#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-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 specification for the active low RESET input.</p>
</div>

<a id="dt-31302fba4a1851663afe"></a>

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

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

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

<div id="dt-2eacd835c57f79dc2b37">
<p style="white-space: pre-wrap">Deprecated, please use reset-gpios instead.</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-3abde1c8cfa6bed5a11c"><code>true</code></span>

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

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

<div id="dt-7f957018ac8ecf153752">
<p style="white-space: pre-wrap">AIC3X_GPIO1 &amp; AIC3X_GPIO2 Functionality</p>
</div>

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

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

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

### <code>ai3x&#45;micbias&#45;vg</code> — not listed as required here

<div id="dt-90b86981c31d724777dc">
<p style="white-space: pre-wrap">MicBias required voltage. If node is omitted then MicBias is powered down.</p>
</div>

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

<a id="dt-377ae5d018a19a8fa1c9"></a>

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-16410afb1d138bebf9ca"><code>1</code></span>
>
> <div id="dt-8da2263db6c3f98980b4">
> <p style="white-space: pre-wrap">MICBIAS output is powered to 2.0V.</p>
> </div>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-daf0a3a2805eae2b53a1"><code>2</code></span>
>
> <div id="dt-83b085d2f40afd5f7bcb">
> <p style="white-space: pre-wrap">MICBIAS output is powered to 2.5V.</p>
> </div>

<a id="dt-527b92e2c9537ef1fc4a"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-cfccd04e28a11d6b96c0"><code>3</code></span>
>
> <div id="dt-55ae6d82eb261ff67463">
> <p style="white-space: pre-wrap">MICBIAS output is connected to AVDD.</p>
> </div>

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

### <code>ai3x&#45;ocmv</code> — not listed as required here

<div id="dt-4e4504dcf00b935fc0bb">
<p style="white-space: pre-wrap">Output Common-Mode Voltage selection.</p>
</div>

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

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

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-92d0950731b28fdceb62"><code>0</code></span>
>
> <div id="dt-97cec48554ae4007a960">
> <p style="white-space: pre-wrap">1.35V</p>
> </div>

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

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-3bfc7f5b9970d974b7c5"><code>1</code></span>
>
> <div id="dt-37211ce30087a4cd9bda">
> <p style="white-space: pre-wrap">1.5V</p>
> </div>

<a id="dt-729f6ed198c7d6093c63"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-8b5492f634ad80a457fe"><code>2</code></span>
>
> <div id="dt-89a172bd31693132aff1">
> <p style="white-space: pre-wrap">1.65V</p>
> </div>

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

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-f1e70eb34a6973bddb25"><code>3</code></span>
>
> <div id="dt-3f1e2e896241c0a20e4a">
> <p style="white-space: pre-wrap">1.8V</p>
> </div>

<a id="dt-108e4e3fba989bd6d0af"></a>

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

<div id="dt-89e7094c99037fa76d27">
<p style="white-space: pre-wrap">Analog DAC voltage.</p>
</div>

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

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

<div id="dt-2e72ee4576cbfa3e7a01">
<p style="white-space: pre-wrap">I/O voltage.</p>
</div>

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

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

<div id="dt-9b98d463cafd236f3eda">
<p style="white-space: pre-wrap">ADC analog and output driver voltage.</p>
</div>

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

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

<div id="dt-ef89d6f7bbce0e649a3a">
<p style="white-space: pre-wrap">Digital core voltage.</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-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as required here

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

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

### <code>port</code> — not listed as required here

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

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

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

  tlv320aic3x_i2c: audio-codec@1b {
    compatible = "ti,tlv320aic3x";
    reg = &lt;0x1b&gt;;

    reset-gpios = &lt;&amp;gpio1 17 GPIO_ACTIVE_LOW&gt;;

    AVDD-supply = &lt;&amp;regulator&gt;;
    IOVDD-supply = &lt;&amp;regulator&gt;;
    DRVDD-supply = &lt;&amp;regulator&gt;;
    DVDD-supply = &lt;&amp;regulator&gt;;
  };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
spi {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  tlv320aic3x_spi: audio-codec@0 {
    compatible = "ti,tlv320aic3x";
    reg = &lt;0&gt;; /* CS number */
    #sound-dai-cells = &lt;0&gt;;

    AVDD-supply = &lt;&amp;regulator&gt;;
    IOVDD-supply = &lt;&amp;regulator&gt;;
    DRVDD-supply = &lt;&amp;regulator&gt;;
    DVDD-supply = &lt;&amp;regulator&gt;;
    ai3x-ocmv = &lt;0&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 2:</strong> <span> Copyright (C) 2022 Texas Instruments Incorporated</span></p>

</details>
