# Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec

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

> Device-tree binding reference for Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;odroid&#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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;hardkernel&#44;odroid&#45;xu3&#45;audio&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;hardkernel&#44;odroid&#45;xu4&#45;audio&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-7a0984fd34c2f9bbace7"><code>true</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Exact value (<code>const</code>):** <span id="dt-710bc579d54b8b6b1f6c"><code>&#34;samsung&#44;odroid&#45;xu3&#45;audio&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-0ced5c7fccd8fc640f58"><code>true</code></span>

<a id="dt-61219c29f99de6d21702"></a>

**Rule 4**

> **Exact value (<code>const</code>):** <span id="dt-bb8aa9a35453860e510c"><code>&#34;samsung&#44;odroid&#45;xu4&#45;audio&#34;</code></span>
>
> **Deprecated (<code>deprecated</code>):** <span id="dt-ba05b6c8f32e17e92b62"><code>true</code></span>

<a id="dt-04b422a940a732dc566a"></a>

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

**Value type (<code>type</code>):** <span id="dt-2e150d640874679a3deb"><code>&#34;object&#34;</code></span>

<a id="dt-512ea5fe7417e34aff51"></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-04b86380754f3d28fabf"></a>

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

<a id="dt-83919e46621447566035"></a>

**<code>sound&#45;dai</code> — not listed as required here**

<div id="dt-8fc1c495f8b37577e338">
<p style="white-space: pre-wrap">phandles to the I2S controllers</p>
</div>

<a id="dt-4d93ba21e7a2d03aa4e1"></a>

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

**Value type (<code>type</code>):** <span id="dt-54f8798581324c75f1b8"><code>&#34;object&#34;</code></span>

<a id="dt-b99d5f0fdb9f9922c358"></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-689bd98d988b5ce4bf07"></a>

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

<a id="dt-8906a371a28515f3547c"></a>

**<code>sound&#45;dai</code> — not listed as required here**

**Minimum number of items (<code>minItems</code>):** <span id="dt-eccb3bc7d0bb64f0dd47"><code>1</code></span>

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

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

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

**Item 1**

> <div id="dt-9cf00fa7dcfe86464f3b">
> <p style="white-space: pre-wrap">phandle of the HDMI IP block node</p>
> </div>

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

**Item 2**

> <div id="dt-4d9a9cc0a1844db1c536">
> <p style="white-space: pre-wrap">phandle of the MAX98090 CODEC</p>
> </div>

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

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

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

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

<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 MAX98090's pins (as
documented in its binding), and the jacks on the board.
For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC"
For Odroid U3, XU3: "Headphone Jack", "Speakers"
For Odroid XU4: no entries
Deprecated, use audio-routing.</p>
</div>

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

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

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

<div id="dt-ade5b60aa03ac27c0e2a">
<p style="white-space: pre-wrap">This property specifies off-codec audio elements
like headphones or speakers, for details see widgets.txt</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;cpu&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;codec&#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">sound {
    compatible = "hardkernel,odroid-xu3-audio";
    model = "Odroid-XU3";
    audio-routing =
            "Headphone Jack", "HPL",
            "Headphone Jack", "HPR",
            "IN1", "Mic Jack",
            "Mic Jack", "MICBIAS";

    cpu {
        sound-dai = &lt;&amp;i2s0 0&gt;;
    };

    codec {
        sound-dai = &lt;&amp;hdmi&gt;, &lt;&amp;max98090&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</span></p>

</details>
