# Mediatek MT6359 Codec

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

> Device-tree binding reference for Mediatek MT6359 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;mt6359&#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;Eason Yen &#60;eason&#46;yen&#64;mediatek&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Jiaxin Yu &#60;jiaxin&#46;yu&#64;mediatek&#46;com&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Shane Chien &#60;shane&#46;chien&#64;mediatek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The communication between MT6359 and SoC is through Mediatek PMIC wrapper.
For more detail, please visit Mediatek PMIC wrapper documentation.
Must be a child node of PMIC wrapper.</p>
</div>

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

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

<a id="dt-076ff1aa0a3bb813d598"></a>

### <code>mediatek&#44;dmic&#45;mode</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-02ee060b29568798b6a0">[<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-3ab534585add973f346a">
<p style="white-space: pre-wrap">Indicates how many data pins are used to transmit two channels of PDM
signal. 0 means two wires, 1 means one wire. Default value is 0.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-d90841188e52c337fe2e"></a> <span id="dt-46e55ab2ab2445fc9192"><code>0</code></span>, <span id="dt-d1e648aa58175c533bea"><code>1</code></span>

<a id="dt-51638c159e50dfe30e6d"></a>

### <code>mediatek&#44;mic&#45;type&#45;0</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ffab9f1858e0625bc87b">[<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-544682c9ec350ab3bb50">
<p style="white-space: pre-wrap">Specifies the type of mic type connected to adc0</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-e28e0d1f7dc56bc5ce0f"></a> <span id="dt-d9e639c6b9bafbf05e9d"><code>0</code></span>, <span id="dt-224c5876dfebfb7b5d54"><code>1</code></span>, <span id="dt-8c3830a9a98e951bfeca"><code>2</code></span>, <span id="dt-4a6e00e3178ad38420a6"><code>3</code></span>, <span id="dt-12d196c7cc30eb067a3b"><code>4</code></span>, <span id="dt-96d5ba00b67943f879b4"><code>5</code></span>

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

### <code>mediatek&#44;mic&#45;type&#45;1</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-32c971098d15ebc48ae7">[<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-7724b755bfaac0dce695">
<p style="white-space: pre-wrap">Specifies the type of mic type connected to adc1</p>
</div>

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

### <code>mediatek&#44;mic&#45;type&#45;2</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1a25021ef1dcb12228c0">[<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-09e2026250f241dd73be">
<p style="white-space: pre-wrap">Specifies the type of mic type connected to adc2</p>
</div>

<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">mt6359codec: audio-codec {
    mediatek,dmic-mode = &lt;0&gt;;
    mediatek,mic-type-0 = &lt;2&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>

<p id="dt-comment-1"><strong>Line 26:</strong> <span> two wires</span></p>

<p id="dt-comment-2"><strong>Line 27:</strong> <span> one wire</span></p>

<p id="dt-comment-3"><strong>Line 35:</strong> <span> IDLE - mic in turn-off status</span></p>

<p id="dt-comment-4"><strong>Line 36:</strong> <span> ACC - analog mic with alternating coupling</span></p>

<p id="dt-comment-5"><strong>Line 37:</strong> <span> DMIC - digital mic</span></p>

<p id="dt-comment-6"><strong>Line 38:</strong> <span> DCC - analog mic with direct couping</span></p>

<p id="dt-comment-7"><strong>Line 39:</strong> <span> DCC_ECM_DIFF - analog electret condenser mic with differential mode</span></p>

<p id="dt-comment-8"><strong>Line 40:</strong> <span> DCC_ECM_SINGLE - analog electret condenser mic with single mode</span></p>

</details>
