# Everest ES8326 audio CODEC

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

> Device-tree binding reference for Everest ES8326 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;everest&#44;es8326&#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;David Yang &#60;yangxiaohua&#64;everest&#45;semi&#46;com&#62;&#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;everest&#44;es8326&#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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">clock for master clock (MCLK)</p>
> </div>

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

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

<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;mclk&#34;</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>

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">interrupt output for headset detection</p>
</div>

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

### <code>&#35;sound&#45;dai&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-06650c5e4c981bc2a500"><code>0</code></span>

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

### <code>everest&#44;jack&#45;pol</code> — not listed as required here

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

<div id="dt-8632e23ac24fcee809df">
<p style="white-space: pre-wrap">just the value of reg 57. Bit(3) decides whether the jack polarity is inverted.
Bit(2) decides whether the button on the headset is inverted.
Bit(1)/(0) decides the mic property to be OMTP/CTIA or auto.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-541e4aef693f2df94261"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-98187e35382a934277d8"><code>15</code></span>

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

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

### <code>everest&#44;mic1&#45;src</code> — not listed as required here

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

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

<div id="dt-a26562ea2b19a9196c5e">
<p style="white-space: pre-wrap">the value of reg 2A when headset plugged.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-1cd160d5e95032d0ddb6"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-89c055e71dad2a4f1356"><code>119</code></span>

**Default value (<code>default</code>):** <span id="dt-27f6cd4a037e2c34bf1b"><code>34</code></span>

<a id="dt-1844e5bd9ca900af5b4e"></a>

### <code>everest&#44;mic2&#45;src</code> — not listed as required here

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

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

<div id="dt-72f48952aed531c5e643">
<p style="white-space: pre-wrap">the value of reg 2A when headset unplugged.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-4a5ba0b66c3b858a09ec"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-9efaaed57cd6c1f28a37"><code>119</code></span>

**Default value (<code>default</code>):** <span id="dt-8b4b1140a90085293538"><code>68</code></span>

<a id="dt-6f4af99da6610365510c"></a>

### <code>everest&#44;jack&#45;detect&#45;inverted</code> — not listed as required here

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

<div id="dt-c447b36e8636f1e36ae7">
<p style="white-space: pre-wrap">Defined to invert the jack detection.</p>
</div>

<a id="dt-693d07530a2d11f0ac28"></a>

### <code>everest&#44;interrupt&#45;src</code> — not listed as required here

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

<div id="dt-ee3cdf88764ba349311d">
<p style="white-space: pre-wrap">value of reg 0x58, Defines the interrupt source.
Bit(2) 1 means button press triggers irq, 0 means not.
Bit(3) 1 means PIN9 is the irq source for jack detection. When set to 0,
bias change on PIN9 do not triggers irq.
Bit(4) 1 means PIN27 is the irq source for jack detection.
Bit(5) 1 means PIN9 is the irq source after MIC detect.
Bit(6) 1 means PIN27 is the irq source after MIC detect.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-5c57e0b4354fa581e252"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-39797857df1d0fdc810d"><code>60</code></span>

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

<a id="dt-1b4907bb919678223c48"></a>

### <code>everest&#44;interrupt&#45;clk</code> — not listed as required here

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

<div id="dt-302b659bf76bece46b7a">
<pre><code>value of reg 0x59, Defines the interrupt output behavior.
Bit(0-3) 0 means irq pulse equals 512*internal clock
  1 means irq pulse equals 1024*internal clock
  2 means ...
  7 means irq pulse equals 65536*internal clock
  8 means irq mutes PA
  9 means irq mutes PA and DAC output
Bit(4) 1 means we invert the interrupt output.
Bit(6) 1 means the chip do not detect jack type after button released.
  0 means the chip detect jack type again after button released.</code></pre>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-db3692008f2fabcb2931"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-85e23d3be2b12ce307fd"><code>127</code></span>

**Default value (<code>default</code>):** <span id="dt-f2802d6a384095c56212"><code>0</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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;sound&#45;dai&#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;;
  es8326: codec@19 {
    compatible = "everest,es8326";
    reg = &lt;0x19&gt;;
    clocks = &lt;&amp;clks 10&gt;;
    clock-names = "mclk";
    #sound-dai-cells = &lt;0&gt;;
    everest,jack-pol = [0e];
    everest,interrupt-src = [08];
    everest,interrupt-clk = [00];
  };
};
</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>
