# Qualcomm PM8916 WCD Analog Audio Codec

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

> Device-tree binding reference for Qualcomm PM8916 WCD Analog Audio 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;qcom&#44;pm8916&#45;wcd&#45;analog&#45;codec&#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;Konrad Dybcio &#60;konradybcio&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The analog WCD audio codec found on Qualcomm PM8916 PMIC.</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;qcom&#44;pm8916&#45;wcd&#45;analog&#45;codec&#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-c2de09e7f7fd211b679d"></a>

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

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

<a id="dt-8aa4fd7705c68de75d2b"></a>

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

<a id="dt-77e94e63ca0b20bb5ef1"></a>

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

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;cdc&#95;spk&#95;cnp&#95;int&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;cdc&#95;spk&#95;clip&#95;int&#34;</code></span>

<a id="dt-01a6f91e38388cdf0f5a"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-25e85adf3e7caf29cd92"><code>&#34;cdc&#95;spk&#95;ocp&#95;int&#34;</code></span>

<a id="dt-96b5fc50d1d5da0ddc64"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-bb507334c2bd56c85638"><code>&#34;mbhc&#95;ins&#95;rem&#95;det1&#34;</code></span>

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

**Item 5**

> **Exact value (<code>const</code>):** <span id="dt-24e24ae9c744f6d3404a"><code>&#34;mbhc&#95;but&#95;rel&#95;det&#34;</code></span>

<a id="dt-78538ebdcee0e6b3ee29"></a>

**Item 6**

> **Exact value (<code>const</code>):** <span id="dt-7cc2c08134dc2e073aa6"><code>&#34;mbhc&#95;but&#95;press&#95;det&#34;</code></span>

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

**Item 7**

> **Exact value (<code>const</code>):** <span id="dt-08fa51b24e80029ccaa4"><code>&#34;mbhc&#95;ins&#95;rem&#95;det&#34;</code></span>

<a id="dt-01720d94ef8e36f0fe37"></a>

**Item 8**

> **Exact value (<code>const</code>):** <span id="dt-b69442fc9d7cffb6c650"><code>&#34;mbhc&#95;switch&#95;int&#34;</code></span>

<a id="dt-489088339303f6d7dc09"></a>

**Item 9**

> **Exact value (<code>const</code>):** <span id="dt-4f107fa09e05a1c047ff"><code>&#34;cdc&#95;ear&#95;ocp&#95;int&#34;</code></span>

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

**Item 10**

> **Exact value (<code>const</code>):** <span id="dt-5d53e21360f7b4ffe0a1"><code>&#34;cdc&#95;hphr&#95;ocp&#95;int&#34;</code></span>

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

**Item 11**

> **Exact value (<code>const</code>):** <span id="dt-7ebecaeb00011c35a259"><code>&#34;cdc&#95;hphl&#95;ocp&#95;det&#34;</code></span>

<a id="dt-96033822c22f4987872c"></a>

**Item 12**

> **Exact value (<code>const</code>):** <span id="dt-64b86cf84502f107e52e"><code>&#34;cdc&#95;ear&#95;cnp&#95;int&#34;</code></span>

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

**Item 13**

> **Exact value (<code>const</code>):** <span id="dt-53e5fc3b9d428ca5aa0d"><code>&#34;cdc&#95;hphr&#95;cnp&#95;int&#34;</code></span>

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

**Item 14**

> **Exact value (<code>const</code>):** <span id="dt-0f937351ba7156a5e7aa"><code>&#34;cdc&#95;hphl&#95;cnp&#95;int&#34;</code></span>

<a id="dt-97fc84cb3799442c6e0a"></a>

### <code>vdd&#45;cdc&#45;io&#45;supply</code> — not listed as required here

<div id="dt-45133c93a09958c1220c">
<p style="white-space: pre-wrap">1.8V buck supply</p>
</div>

<a id="dt-409ff21a678d3d5494e2"></a>

### <code>vdd&#45;cdc&#45;tx&#45;rx&#45;cx&#45;supply</code> — not listed as required here

<div id="dt-919aa57c1ee7a5881702">
<p style="white-space: pre-wrap">1.8V SIDO buck supply</p>
</div>

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

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

<div id="dt-674e416e7b409f2e0cfe">
<p style="white-space: pre-wrap">micbias supply</p>
</div>

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

### <code>qcom&#44;mbhc&#45;vthreshold&#45;low</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-35ae9643e5f01602b19d">[<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-a78b84cb276af597f412">
<p style="white-space: pre-wrap">Array of 5 threshold voltages in mV for 5-button detection on headset when MBHC is powered by an internal current source.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-2f98450b5d9f2637914f"><code>5</code></span>

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

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

### <code>qcom&#44;mbhc&#45;vthreshold&#45;high</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7034172c3b17b6dcb477">[<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-4204ebea24b6a4e4d795">
<p style="white-space: pre-wrap">Array of 5 threshold voltages in mV for 5-button detection on headset when MBHC is powered from micbias.</p>
</div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-8ca816b66e9bc9937ae7"><code>5</code></span>

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

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

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

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

<div id="dt-1aecefaa05dd70f5ad27">
<p style="white-space: pre-wrap">Voltage (mV) for Mic Bias</p>
</div>

<a id="dt-589ae14b8db94d4a18af"></a>

### <code>qcom&#44;hphl&#45;jack&#45;type&#45;normally&#45;open</code> — not listed as required here

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

<div id="dt-79a26c7f384524422733">
<p style="white-space: pre-wrap">True if the HPHL pin on the jack is NO (Normally Open), false if it's NC (Normally Closed).</p>
</div>

<a id="dt-19e3f10dcd09755cdfbf"></a>

### <code>qcom&#44;gnd&#45;jack&#45;type&#45;normally&#45;open</code> — not listed as required here

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

<div id="dt-4037749367b7e00ec5b6">
<p style="white-space: pre-wrap">True if the GND pin on the jack is NO (Normally Open), false if it's NC (Normally Closed).</p>
</div>

<a id="dt-56611ab425aa4b3a0e19"></a>

### <code>qcom&#44;micbias1&#45;ext&#45;cap</code> — not listed as required here

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

<div id="dt-977eaba236e0a3d08177">
<p style="white-space: pre-wrap">True if micbias1 has an external capacitor.</p>
</div>

<a id="dt-69552ae397e65d266585"></a>

### <code>qcom&#44;micbias2&#45;ext&#45;cap</code> — not listed as required here

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

<div id="dt-da5fb0d57c66c4d8fae7">
<p style="white-space: pre-wrap">True if micbias2 has an external capacitor.</p>
</div>

<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>1</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;reg&#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">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/spmi/spmi.h&gt;

pmic@1 {
  compatible = "qcom,pm8916", "qcom,spmi-pmic";
  reg = &lt;0x1 SPMI_USID&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  audio-codec@f000 {
    compatible = "qcom,pm8916-wcd-analog-codec";
    reg = &lt;0xf000&gt;;
    qcom,mbhc-vthreshold-low = &lt;75 150 237 450 500&gt;;
    qcom,mbhc-vthreshold-high = &lt;75 150 237 450 500&gt;;
    interrupt-parent = &lt;&amp;spmi_bus&gt;;
    interrupts = &lt;0x1 0xf0 0x0 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x1 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x2 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x3 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x4 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x5 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x6 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf0 0x7 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf1 0x0 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf1 0x1 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf1 0x2 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf1 0x3 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf1 0x4 IRQ_TYPE_NONE&gt;,
          &lt;0x1 0xf1 0x5 IRQ_TYPE_NONE&gt;;
    interrupt-names = "cdc_spk_cnp_int",
                      "cdc_spk_clip_int",
                      "cdc_spk_ocp_int",
                      "mbhc_ins_rem_det1",
                      "mbhc_but_rel_det",
                      "mbhc_but_press_det",
                      "mbhc_ins_rem_det",
                      "mbhc_switch_int",
                      "cdc_ear_ocp_int",
                      "cdc_hphr_ocp_int",
                      "cdc_hphl_ocp_det",
                      "cdc_ear_cnp_int",
                      "cdc_hphr_cnp_int",
                      "cdc_hphl_cnp_int";
    vdd-cdc-io-supply = &lt;&amp;pm8916_l5&gt;;
    vdd-cdc-tx-rx-cx-supply = &lt;&amp;pm8916_l5&gt;;
    vdd-micbias-supply = &lt;&amp;pm8916_l13&gt;;
    #sound-dai-cells = &lt;1&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>
