# Texas Instruments - tlv320aic31xx Codec module

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

> Device-tree binding reference for Texas Instruments - tlv320aic31xx Codec module.

<!-- 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;tlv320dac3100&#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;Shenghao Ding &#60;shenghao&#45;ding&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>CODEC output pins:
  * HPL
  * HPR
  * SPL, devices with stereo speaker amp
  * SPR, devices with stereo speaker amp
  * SPK, devices with mono speaker amp
  * MICBIAS</code></pre>
<pre><code>CODEC input pins:
  * MIC1LP, devices with ADC
  * MIC1RP, devices with ADC
  * MIC1LM, devices with ADC
  * AIN1, devices without ADC
  * AIN2, devices without ADC</code></pre>
<p style="white-space: pre-wrap">The pins can be used in referring sound node's audio-routing property.</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;ti&#44;tlv320aic310x&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;tlv320aic311x&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;tlv320aic3100&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;tlv320aic3110&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;tlv320aic3120&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;tlv320aic3111&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;ti&#44;tlv320dac3100&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;ti&#44;tlv320dac3101&#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-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-e77c9a02a579ccfcd83e"></a>

### <code>HPVDD&#45;supply</code> — required here

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

<a id="dt-94a4e1850c3d84bd5541"></a>

### <code>SPRVDD&#45;supply</code> — required here

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

<a id="dt-61898b488aee19f72fc5"></a>

### <code>SPLVDD&#45;supply</code> — required here

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

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

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

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

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

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

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

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

### <code>DVDD&#45;supply</code> — 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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO specification for the active low RESET input.</p>
</div>

<a id="dt-0a5ad6a1e45e47d004dc"></a>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-8df1b6cc002fe610244c"></a> <span id="dt-dd72a53f073ac1f9bb8c"><code>1</code></span>, <span id="dt-93019fa96d41810e371e"><code>2</code></span>, <span id="dt-60923ab74a3786486b78"><code>3</code></span>

<div id="dt-56d020ada8990f304264">
<pre><code>MicBias Voltage setting
  1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V
  2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V
  3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD</code></pre>
</div>

<a id="dt-74432993cb33cd376fb4"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2b0935fc939d4f8faaca">[<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-d901e2541031b8c31cf3"></a> <span id="dt-8828233e3a112e5b7c10"><code>0</code></span>, <span id="dt-b53eba264703381cf66b"><code>1</code></span>, <span id="dt-199a55f32622d39d5f22"><code>2</code></span>, <span id="dt-58cf11453a9e7f107623"><code>3</code></span>

<div id="dt-170df9bc1acf3daf266f">
<pre><code>output common-mode voltage setting
  0 - 1.35V,
  1 - 1.5V,
  2 - 1.65V,
  3 - 1.8V</code></pre>
</div>

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

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

<div id="dt-2eacd835c57f79dc2b37">
<p style="white-space: pre-wrap">gpio pin number used for codec reset</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-3abde1c8cfa6bed5a11c"><code>true</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;HPVDD&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;SPRVDD&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;SPLVDD&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;AVDD&#45;supply&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;IOVDD&#45;supply&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;DVDD&#45;supply&#34;</code></span>

<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-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/tlv320aic31xx.h&gt;

i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    sound@18 {
        compatible = "ti,tlv320aic311x";
        reg = &lt;0x18&gt;;

        ai31xx-micbias-vg = &lt;MICBIAS_2_0V&gt;;
        reset-gpios = &lt;&amp;gpio1 17 GPIO_ACTIVE_LOW&gt;;

        HPVDD-supply = &lt;&amp;regulator&gt;;
        SPRVDD-supply = &lt;&amp;regulator&gt;;
        SPLVDD-supply = &lt;&amp;regulator&gt;;
        AVDD-supply = &lt;&amp;regulator&gt;;
        IOVDD-supply = &lt;&amp;regulator&gt;;
        DVDD-supply = &lt;&amp;regulator&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 33:</strong> <span> - Generic TLV320AIC31xx with mono speaker amp</span></p>

<p id="dt-comment-2"><strong>Line 34:</strong> <span> - Generic TLV320AIC31xx with stereo speaker amp</span></p>

<p id="dt-comment-3"><strong>Line 35:</strong> <span> - TLV320AIC3100 (mono speaker amp, no MiniDSP)</span></p>

<p id="dt-comment-4"><strong>Line 36:</strong> <span> - TLV320AIC3110 (stereo speaker amp, no MiniDSP)</span></p>

<p id="dt-comment-5"><strong>Line 37:</strong> <span> - TLV320AIC3120 (mono speaker amp, MiniDSP)</span></p>

<p id="dt-comment-6"><strong>Line 38:</strong> <span> - TLV320AIC3111 (stereo speaker amp, MiniDSP)</span></p>

<p id="dt-comment-7"><strong>Line 39:</strong> <span> - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP)</span></p>

<p id="dt-comment-8"><strong>Line 40:</strong> <span> - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP)</span></p>

</details>
