# Texas Instruments SoC with twl4030 based audio setups

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

> Device-tree binding reference for Texas Instruments SoC with twl4030 based audio setups.

<!-- 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;omap&#45;twl4030&#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;Peter Ujfalusi &#60;peter&#46;ujfalusi&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Audio setups on TI OMAP SoCs using TWL4030-family audio codec connected via a McBSP port.</p>
</div>

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

## Properties and child nodes (<code>properties</code>)

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;ti&#44;omap&#45;twl4030&#34;</code></span>

<a id="dt-582f463502c0d3c9f799"></a>

### <code>ti&#44;model</code> — required here

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

<div id="dt-bcb2949861befb2d39f7">
<p style="white-space: pre-wrap">Name of the sound card (for example "omap3beagle").</p>
</div>

<a id="dt-0000ef4633dbfd28423d"></a>

### <code>ti&#44;mcbsp</code> — required here

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

<div id="dt-06dbd2164573b5059a5b">
<p style="white-space: pre-wrap">phandle for the McBSP node.</p>
</div>

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

### <code>ti&#44;codec</code> — not listed as required here

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

<div id="dt-916d5b09235c3c54faf1">
<p style="white-space: pre-wrap">phandle for the twl4030 audio node.</p>
</div>

<a id="dt-20de8e7f71f69ce3d09b"></a>

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

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

<div id="dt-2fb96eb633b555c30767">
<p style="white-space: pre-wrap">phandle to the McBSP node connected to the voice port.</p>
</div>

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

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

<div id="dt-552b27e1955ebf237512">
<p style="white-space: pre-wrap">GPIO specifier for jack detection.</p>
</div>

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

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

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

<div id="dt-b2a20d8ec80c96dfcec5">
<p style="white-space: pre-wrap">A list of audio routing connections. Each entry is a pair of strings,
with the first being the connection's sink and the second being the
source. If not provided, all possible connections are available.</p>
</div>

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

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-a50c01b6fc3d3a1c2492"></a> <span id="dt-6c41597b86374b989ef8"><code>&#34;Headset Stereophone&#34;</code></span>, <span id="dt-5a005c3293c1d215791d"><code>&#34;Earpiece Spk&#34;</code></span>, <span id="dt-8b06a341ec8a53a597ca"><code>&#34;Handsfree Spk&#34;</code></span>, <span id="dt-138991337727fd321d9d"><code>&#34;Ext Spk&#34;</code></span>, <span id="dt-b9bd5abc736f4af66bda"><code>&#34;Main Mic&#34;</code></span>, <span id="dt-f4aef2d83f33f47f8d50"><code>&#34;Sub Mic&#34;</code></span>, <span id="dt-2398a611a16c06e9a76a"><code>&#34;Headset Mic&#34;</code></span>, <span id="dt-3f62329b8350a1be1a1f"><code>&#34;Carkit Mic&#34;</code></span>, <span id="dt-202917243441be88ae68"><code>&#34;Digital0 Mic&#34;</code></span>, <span id="dt-90a821af3576a47f6185"><code>&#34;Digital1 Mic&#34;</code></span>, <span id="dt-134f1c24f604d05c2ddf"><code>&#34;Line In&#34;</code></span>, <span id="dt-6bfab95b0bdfdeb9306c"><code>&#34;HSOL&#34;</code></span>, <span id="dt-9ab7f65ffcaf83952dee"><code>&#34;HSOR&#34;</code></span>, <span id="dt-cb8b678dd1e6f99c0167"><code>&#34;EARPIECE&#34;</code></span>, <span id="dt-17ef8b572fd66451ba42"><code>&#34;HFL&#34;</code></span>, <span id="dt-19e322875f4b4a732b94"><code>&#34;HFR&#34;</code></span>, <span id="dt-e33d3c5461b1dd0c06cb"><code>&#34;PREDRIVEL&#34;</code></span>, <span id="dt-fc11d16bc035a70f2a30"><code>&#34;PREDRIVER&#34;</code></span>, <span id="dt-f243cea4277ef0b29ae4"><code>&#34;CARKITL&#34;</code></span>, <span id="dt-16b3da015e4a58ac0189"><code>&#34;CARKITR&#34;</code></span>, <span id="dt-656dcb43145246bc78df"><code>&#34;MAINMIC&#34;</code></span>, <span id="dt-16c38565cbfa1f735c0d"><code>&#34;SUBMIC&#34;</code></span>, <span id="dt-1d0eec0b235abddded9c"><code>&#34;HSMIC&#34;</code></span>, <span id="dt-e926611f455272d25563"><code>&#34;DIGIMIC0&#34;</code></span>, <span id="dt-4d3e4bb49863a9cc2759"><code>&#34;DIGIMIC1&#34;</code></span>, <span id="dt-805863df80e272500fea"><code>&#34;CARKITMIC&#34;</code></span>, <span id="dt-cfba9bee849915c3c7bd"><code>&#34;AUXL&#34;</code></span>, <span id="dt-f320a9d9a0d538f7e56a"><code>&#34;AUXR&#34;</code></span>, <span id="dt-78b35686acfbb935289a"><code>&#34;Mic Bias 1&#34;</code></span>, <span id="dt-a04b1abf7f6b99462a91"><code>&#34;Mic Bias 2&#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;ti&#44;model&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ti&#44;mcbsp&#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">sound {
    compatible = "ti,omap-twl4030";
    ti,model = "omap3beagle";
    ti,mcbsp = &lt;&amp;mcbsp2&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> Board Connectors</span></p>

<p id="dt-comment-2"><strong>Line 62:</strong> <span> CODEC Pins</span></p>

<p id="dt-comment-3"><strong>Line 81:</strong> <span> Headset Mic Bias</span></p>

<p id="dt-comment-4"><strong>Line 82:</strong> <span> Used for Main Mic or Digimic0</span></p>

<p id="dt-comment-5"><strong>Line 83:</strong> <span> Used for Sub Mic or Digimic1</span></p>

</details>
