# Atmel wm8904 audio codec complex

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

> Device-tree binding reference for Atmel wm8904 audio codec complex.

<!-- 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;atmel&#44;asoc&#45;wm8904&#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;Dharma Balasubiramani &#60;dharma&#46;b&#64;microchip&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The ASoC audio complex configuration for Atmel with WM8904 audio codec.</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;atmel&#44;asoc&#45;wm8904&#34;</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b2b96320d17ca64eeb3f">[<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-51f7572871193845a185">
<p style="white-space: pre-wrap">The user-visible name of this sound complex.</p>
</div>

<a id="dt-17acba1af86d88d6de8a"></a>

### <code>atmel&#44;ssc&#45;controller</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bf20062a9e98aae6a48c">[<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-2a47413970e26497f7c2">
<p style="white-space: pre-wrap">The phandle of the SSC controller.</p>
</div>

<a id="dt-170962ecbfbea0fe083e"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-75ccf31bfb674823275c">[<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-5c7f746444aa02f2401f">
<p style="white-space: pre-wrap">The phandle of the WM8731 audio codec.</p>
</div>

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

### <code>atmel&#44;audio&#45;routing</code> — required here

<div id="dt-2088ab9b9ce06782c91b">
<p style="white-space: pre-wrap">A 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.</p>
</div>

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-6acb303e8c957b611042"></a> <span id="dt-6878975e77392c5923ce"><code>&#34;Headphone Jack&#34;</code></span>, <span id="dt-7fb7c9a1fb7de399e63f"><code>&#34;Line In Jack&#34;</code></span>, <span id="dt-f4a0f2604fd89b73c2e8"><code>&#34;Mic&#34;</code></span>, <span id="dt-544e96a78e27fb62fd34"><code>&#34;IN1L&#34;</code></span>, <span id="dt-acd048f5177210394e5a"><code>&#34;IN1R&#34;</code></span>, <span id="dt-0e1e1665141035d200e2"><code>&#34;IN2L&#34;</code></span>, <span id="dt-5f45f3cd4b340f8bed7e"><code>&#34;IN2R&#34;</code></span>, <span id="dt-aa5a7e90ca31a99c4837"><code>&#34;IN3L&#34;</code></span>, <span id="dt-3cf75b03dc94ced3d7c0"><code>&#34;IN3R&#34;</code></span>, <span id="dt-92e7c8e98d138ba45556"><code>&#34;HPOUTL&#34;</code></span>, <span id="dt-56b3cf426529f83b3961"><code>&#34;HPOUTR&#34;</code></span>, <span id="dt-4550a9c33b7a2ad700b3"><code>&#34;LINEOUTL&#34;</code></span>, <span id="dt-c1de7b1c755fbb8513d4"><code>&#34;LINEOUTR&#34;</code></span>, <span id="dt-a6eb05b972db621f876b"><code>&#34;MICBIAS&#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;atmel&#44;model&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;atmel&#44;audio&#45;routing&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;atmel&#44;ssc&#45;controller&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;atmel&#44;audio&#45;codec&#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 = "atmel,asoc-wm8904";
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;pinctrl_pck0_as_mck&gt;;

    atmel,model = "wm8904 @ AT91SAM9N12EK";

    atmel,audio-routing =
            "Headphone Jack", "HPOUTL",
            "Headphone Jack", "HPOUTR",
            "IN2L", "Line In Jack",
            "IN2R", "Line In Jack",
            "Mic", "MICBIAS",
            "IN1L", "Mic";

    atmel,ssc-controller = &lt;&amp;ssc0&gt;;
    atmel,audio-codec = &lt;&amp;wm8904&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 39:</strong> <span> Board Connectors</span></p>

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

</details>
