# WM8903 audio codec

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

> Device-tree binding reference for WM8903 audio codec.

<!-- 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;wlf&#44;wm8903&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>This device supports I2C only.
Pins on the device (for linking into audio routes):
    * IN1L
    * IN1R
    * IN2L
    * IN2R
    * IN3L
    * IN3R
    * DMICDAT
    * HPOUTL
    * HPOUTR
    * LINEOUTL
    * LINEOUTR
    * LOP
    * LON
    * ROP
    * RON
    * MICBIAS</code></pre>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;patches&#64;opensource&#46;cirrus&#46;com&#34;</code></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;wlf&#44;wm8903&#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-f5d51cae76398cdb9d95"></a>

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

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

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

### <code>&#35;gpio&#45;cells</code> — 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-e11d4ae3ccfdad4572bd"></a>

### <code>micdet&#45;cfg</code> — not listed as required here

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

**Default value (<code>default</code>):** <span id="dt-40550f85668d1707923d"><code>0</code></span>

<div id="dt-f70a24da0ad094ffbc7d">
<p style="white-space: pre-wrap">Default register value for R6 (Mic Bias).</p>
</div>

<a id="dt-9ad7e6dd4458f32541bd"></a>

### <code>micdet&#45;delay</code> — not listed as required here

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

**Default value (<code>default</code>):** <span id="dt-ee0c7e9805bd039d6f87"><code>100</code></span>

<div id="dt-711c3bf2e99e9842390e">
<p style="white-space: pre-wrap">The debounce delay for microphone detection in mS.</p>
</div>

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

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

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

<div id="dt-9bdd0720898fc3217519">
<p style="white-space: pre-wrap">minItems: 5
maxItems: 5
A list of GPIO configuration register values.
If absent, no configuration of these registers is performed.
If any entry has the value 0xffffffff, that GPIO's
configuration will not be modified.</p>
</div>

<a id="dt-108e4e3fba989bd6d0af"></a>

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

<div id="dt-89e7094c99037fa76d27">
<p style="white-space: pre-wrap">Analog power supply regulator on the AVDD pin.</p>
</div>

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

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

<div id="dt-843dfcc834734cb90b44">
<p style="white-space: pre-wrap">Charge pump supply regulator on the CPVDD pin.</p>
</div>

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

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

<div id="dt-da8631045899fc03bff5">
<p style="white-space: pre-wrap">Digital buffer supply regulator for the DBVDD pin.</p>
</div>

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

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

<div id="dt-c74a4be16d81d6c4e145">
<p style="white-space: pre-wrap">Digital core supply regulator for the DCVDD 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;gpio&#45;controller&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;gpio&#45;cells&#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">i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  wm8903: codec@1a {
    compatible = "wlf,wm8903";
    reg = &lt;0x1a&gt;;
    interrupts = &lt;347&gt;;

    AVDD-supply = &lt;&amp;fooreg_a&gt;;
    CPVDD-supply = &lt;&amp;fooreg_b&gt;;
    DBVDD-supply = &lt;&amp;fooreg_c&gt;;
    DCVDD-supply = &lt;&amp;fooreg_d&gt;;

    gpio-controller;
    #gpio-cells = &lt;2&gt;;

    micdet-cfg = &lt;0&gt;;
    micdet-delay = &lt;100&gt;;
    gpio-cfg = &lt;
      0x0600 /* DMIC_LR, output */
      0x0680 /* DMIC_DAT, input */
      0x0000 /* GPIO, output, low */
      0x0200 /* Interrupt, output */
      0x01a0 /* BCLK, input, 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 OR BSD-2-Clause)</span></p>

</details>
