# Wolfson WM1811/WM8994/WM8958 audio codecs

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

> Device-tree binding reference for Wolfson WM1811/WM8994/WM8958 audio codecs.

<!-- 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;wlf&#44;wm8994&#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;patches&#64;opensource&#46;cirrus&#46;com&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">These devices support both I2C and SPI (configured with pin strapping on the
board).</p>
<p style="white-space: pre-wrap">Pins on the device (for linking into audio routes):
IN1LN, IN1LP, IN2LN, IN2LP:VXRN, IN1RN, IN1RP, IN2RN, IN2RP:VXRP, SPKOUTLP,
SPKOUTLN, SPKOUTRP, SPKOUTRN, HPOUT1L, HPOUT1R, HPOUT2P, HPOUT2N, LINEOUT1P,
LINEOUT1N, LINEOUT2P, LINEOUT2N.</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;wlf&#44;wm1811&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;wlf&#44;wm8994&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;wlf&#44;wm8958&#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-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as required here

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>2</code></span>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — not listed as required here

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;MCLK1&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;MCLK2&#34;</code></span>

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

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

### <code>interrupts</code> — not listed as required here

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

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

### <code>interrupt&#45;controller</code> — not listed as required here

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

<a id="dt-8586fac2d9a71adf4795"></a>

### <code>&#35;interrupt&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>2</code></span>

<div id="dt-0cc2c51365b6879fba3b">
<p style="white-space: pre-wrap">The first cell is the IRQ number. The second cell is the flags, encoded as the trigger masks.</p>
</div>

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

### <code>AVDD1&#45;supply</code> — not listed as required here

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

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

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

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

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

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

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

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

### <code>DBVDD&#45;supply</code> — not listed as required here

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

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

### <code>DBVDD1&#45;supply</code> — not listed as required here

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

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

### <code>DBVDD2&#45;supply</code> — not listed as required here

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

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

### <code>DBVDD3&#45;supply</code> — not listed as required here

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

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

### <code>DCVDD&#45;supply</code> — not listed as required here

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

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

### <code>LDO1VDD&#45;supply</code> — not listed as required here

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

<a id="dt-9544622de6607741b3b7"></a>

### <code>LDO2VDD&#45;supply</code> — not listed as required here

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

<a id="dt-60a31cfa6f6a94257956"></a>

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

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

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

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

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

<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-377a0729efe1531e7ae9"></a>

### <code>wlf&#44;gpio&#45;cfg</code> — not listed as required here

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-83eb6111b098e0993e75"><code>11</code></span>

<div id="dt-b5e93fd1a83d13e09e00">
<p style="white-space: pre-wrap">A list of GPIO configuration register values. If absent, no configuration of these registers is performed. If any value is over 0xffff then the register will be left as default. If present 11 values must be supplied.</p>
</div>

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

### <code>wlf&#44;micbias&#45;cfg</code> — not listed as required here

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c2f0d15d397440461a74"><code>2</code></span>

<div id="dt-d8f151c1c980d157fe5c">
<p style="white-space: pre-wrap">Two MICBIAS register values for WM1811 or WM8958.  If absent the register defaults will be used.</p>
</div>

<a id="dt-8907a1799f153f36b8b5"></a>

### <code>wlf&#44;ldo1ena&#45;gpios</code> — not listed as required here

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

<div id="dt-180536ef4de2645b54d4">
<p style="white-space: pre-wrap">Control of LDO1ENA input to device.</p>
</div>

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

### <code>wlf&#44;ldo2ena&#45;gpios</code> — not listed as required here

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

<div id="dt-b8b4ad0daaa502f1bf75">
<p style="white-space: pre-wrap">Control of LDO2ENA input to device.</p>
</div>

<a id="dt-437c53af0ad8f17dc952"></a>

### <code>wlf&#44;lineout1&#45;se</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-01a2e770ae2280d18967"><code>&#34;boolean&#34;</code></span>

<div id="dt-24b773869472e8ad71df">
<p style="white-space: pre-wrap">LINEOUT1 is in single ended mode.</p>
</div>

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

### <code>wlf&#44;lineout2&#45;se</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-6d2d99333cda2e612e7e"><code>&#34;boolean&#34;</code></span>

<div id="dt-9dc36dc4596032bd228b">
<p style="white-space: pre-wrap">INEOUT2 is in single ended mode.</p>
</div>

<a id="dt-3150d484723850331e98"></a>

### <code>wlf&#44;lineout1&#45;feedback</code> — not listed as required here

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

<div id="dt-1a20357322f67bf9165d">
<p style="white-space: pre-wrap">LINEOUT1 has common mode feedback connected.</p>
</div>

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

### <code>wlf&#44;lineout2&#45;feedback</code> — not listed as required here

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

<div id="dt-540ce93d2f3dfe365853">
<p style="white-space: pre-wrap">LINEOUT2 has common mode feedback connected.</p>
</div>

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

### <code>wlf&#44;ldoena&#45;always&#45;driven</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-702e5dd579c8e9dfc676"><code>&#34;boolean&#34;</code></span>

<div id="dt-eb4aa24cc027604333eb">
<p style="white-space: pre-wrap">LDOENA is always driven.</p>
</div>

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

### <code>wlf&#44;spkmode&#45;pu</code> — not listed as required here

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

<div id="dt-11c7b6b43cc04c3e3437">
<p style="white-space: pre-wrap">Enable the internal pull-up resistor on the SPKMODE pin.</p>
</div>

<a id="dt-351ec54264632c3f8426"></a>

### <code>wlf&#44;csnaddr&#45;pd</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-53e0cef7ddd039cb4585"><code>&#34;boolean&#34;</code></span>

<div id="dt-f72c9b525ca8ba9a7a17">
<p style="white-space: pre-wrap">Enable the internal pull-down resistor on the CS/ADDR pin.</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;AVDD2&#45;supply&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;CPVDD&#45;supply&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;SPKVDD1&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;SPKVDD2&#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-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-c0ab484bd71d0671c6ab"></a> <span id="dt-4eb87bb951292ac8d56d"><code>&#34;wlf&#44;wm1811&#34;</code></span>, <span id="dt-68ac103663508bfae0ff"><code>&#34;wlf&#44;wm8958&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-4189f8279995ebc61c2b"></a>
> >
> > **<code>DBVDD&#45;supply</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-2439b2e4be2f99090948"></a>
> >
> > **<code>LDO2VDD&#45;supply</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;DBVDD1&#45;supply&#34;</code></span>, <span id="dt-5daae4bef35eb1615659"><code>&#34;DBVDD2&#45;supply&#34;</code></span>, <span id="dt-dabdc46fe881a853c5d7"><code>&#34;DBVDD3&#45;supply&#34;</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-97ab691ce247686c044c"></a>
> >
> > **<code>DBVDD1&#45;supply</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-1e5163d9fe8d3d61533d"></a>
> >
> > **<code>DBVDD2&#45;supply</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-bbcf5751760ac5cd75f5"></a>
> >
> > **<code>DBVDD3&#45;supply</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > **Required in this object (<code>required</code>):** <a id="dt-fa517e64e1a26bde5333"></a> <span id="dt-3f0dc1b361e0cd17ff53"><code>&#34;DBVDD&#45;supply&#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;

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

    audio-codec@1a {
        compatible = "wlf,wm1811";
        reg = &lt;0x1a&gt;;
        clocks = &lt;&amp;i2s0 0&gt;;
        clock-names = "MCLK1";

        AVDD2-supply = &lt;&amp;main_dc_reg&gt;;
        CPVDD-supply = &lt;&amp;main_dc_reg&gt;;
        DBVDD1-supply = &lt;&amp;main_dc_reg&gt;;
        DBVDD2-supply = &lt;&amp;main_dc_reg&gt;;
        DBVDD3-supply = &lt;&amp;main_dc_reg&gt;;
        LDO1VDD-supply = &lt;&amp;main_dc_reg&gt;;
        SPKVDD1-supply = &lt;&amp;main_dc_reg&gt;;
        SPKVDD2-supply = &lt;&amp;main_dc_reg&gt;;

        wlf,ldo1ena-gpios = &lt;&amp;gpb0 0 GPIO_ACTIVE_HIGH&gt;;
        wlf,ldo2ena-gpios = &lt;&amp;gpb0 1 GPIO_ACTIVE_HIGH&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>

</details>
