# Samsung Exynos5433 TM2(E) audio complex with WM5110 codec

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

> Device-tree binding reference for Samsung Exynos5433 TM2(E) audio complex with WM5110 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;samsung&#44;tm2&#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;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Sylwester Nawrocki &#60;s&#46;nawrocki&#64;samsung&#46;com&#62;&#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>sound&#45;card&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-sound/sound-card-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

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

<a id="dt-7d3127c3d6637fd875fb"></a>

### <code>audio&#45;amplifier</code> — required here

<div id="dt-52e16d59463cdb087232">
<p style="white-space: pre-wrap">Phandle to the MAX98504 amplifier.</p>
</div>

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

<a id="dt-037f77ca863f57929bdb"></a>

### <code>audio&#45;codec</code> — required here

<div id="dt-043c653ef01ced47bdc2">
<p style="white-space: pre-wrap">Phandles to the codecs.</p>
</div>

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

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

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

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

**Item 1**

> <a id="dt-80e4b5d0ff3f43413203"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-bd32d1fd21037f8d2314"></a>
>
> **Item 1**
>
> > <div id="dt-5fbd6e810f4763435651">
> > <p style="white-space: pre-wrap">Phandle to the WM5110 audio codec.</p>
> > </div>

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

**Item 2**

> <a id="dt-b53ca2749fd5d76df284"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-7586bf9998a04bb6643e"></a>
>
> **Item 1**
>
> > <div id="dt-d5071b1e528ca9c7b9ac">
> > <p style="white-space: pre-wrap">Phandle to the HDMI transmitter node.</p>
> > </div>

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

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

<div id="dt-01d254f31e597787718a">
<p style="white-space: pre-wrap">List of the connections between audio components; each entry is
a pair of strings, the first being the connection's sink, the second
being the connection's source; valid names for sources and sinks are the
WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main
Mic, Sub Mic, Third Mic, Headset Mic.
Deprecated, use audio-routing.</p>
</div>

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

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

### <code>i2s&#45;controller</code> — required here

<div id="dt-81d464cd5631d8fb61e3">
<p style="white-space: pre-wrap">Phandles to the I2S controllers.</p>
</div>

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

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

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

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

**Item 1**

> <div id="dt-0abe585b14f1fb84cfbe">
> <p style="white-space: pre-wrap">Phandle to I2S0.</p>
> </div>

<a id="dt-55abee3fa95f41eef3a4"></a>

**Item 2**

> <div id="dt-99e27dbd8b4fbf29bb07">
> <p style="white-space: pre-wrap">Phandle to I2S1.</p>
> </div>

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

### <code>mic&#45;bias&#45;gpios</code> — required here

<div id="dt-6343dcd37a4a11ca8953">
<p style="white-space: pre-wrap">GPIO pin that enables the Main Mic bias regulator.</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;audio&#45;amplifier&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;audio&#45;codec&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;audio&#45;routing&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;i2s&#45;controller&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;mic&#45;bias&#45;gpios&#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;

sound {
    compatible = "samsung,tm2-audio";
    audio-codec = &lt;&amp;wm5110&gt;, &lt;&amp;hdmi&gt;;
    i2s-controller = &lt;&amp;i2s0 0&gt;, &lt;&amp;i2s1 0&gt;;
    audio-amplifier = &lt;&amp;max98504&gt;;
    mic-bias-gpios = &lt;&amp;gpr3 2 GPIO_ACTIVE_HIGH&gt;;
    model = "wm5110";
    audio-routing = "HP", "HPOUT1L",
                            "HP", "HPOUT1R",
                            "SPK", "SPKOUT",
                            "SPKOUT", "HPOUT2L",
                            "SPKOUT", "HPOUT2R",
                            "RCV", "HPOUT3L",
                            "RCV", "HPOUT3R";
};
</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>

</details>
