# Analog Devices MAX98396 Speaker Amplifier

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

> Device-tree binding reference for Analog Devices MAX98396 Speaker Amplifier.

<!-- 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;adi&#44;max98396&#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;Ryan Lee &#60;ryans&#46;lee&#64;analog&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. The device provides a PCM interface for audio data and a standard I2C interface for control data communication. The MAX98397 is a variant of MAX98396 with wide input supply range.</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;adi&#44;max98396&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;adi&#44;max98397&#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>

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">I2C address of the device.</p>
</div>

<a id="dt-14397a69ba55f41119c5"></a>

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

<div id="dt-c928412db05126ef65e3">
<p style="white-space: pre-wrap">A 1.8V supply that powers up the AVDD pin.</p>
</div>

<a id="dt-84a2bc358063a1a7c956"></a>

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

<div id="dt-593261d208e8b7fb5f26">
<p style="white-space: pre-wrap">A 1.2V supply that powers up the DVDD pin.</p>
</div>

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

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

<div id="dt-a36a67f86b833fbcd6b5">
<p style="white-space: pre-wrap">A 1.2V or 1.8V supply that powers up the VDDIO pin.</p>
</div>

<a id="dt-722272e0225afab3aadc"></a>

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

<div id="dt-2483fddb14d539d108cf">
<p style="white-space: pre-wrap">A 3.0V to 20V supply that powers up the PVDD pin.</p>
</div>

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

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

<div id="dt-70f59e95d51a4e05ddcd">
<p style="white-space: pre-wrap">A 3.3V to 5.5V supply that powers up the VBAT pin.</p>
</div>

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

### <code>adi&#44;vmon&#45;slot&#45;no</code> — not listed as required here

<div id="dt-592cd43c856855ee3d21">
<p style="white-space: pre-wrap">slot number of the voltage sense monitor</p>
</div>

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

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

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

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

<a id="dt-097bbb1a72acb828d8d4"></a>

### <code>adi&#44;imon&#45;slot&#45;no</code> — not listed as required here

<div id="dt-89e01f7ff8aecdf2ec9b">
<p style="white-space: pre-wrap">slot number of the current sense monitor</p>
</div>

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

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

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

**Default value (<code>default</code>):** <span id="dt-2e0fd8fa68d254a4267f"><code>1</code></span>

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

### <code>adi&#44;spkfb&#45;slot&#45;no</code> — not listed as required here

<div id="dt-e0b965dc83945ce6ba99">
<p style="white-space: pre-wrap">slot number of speaker DSP monitor</p>
</div>

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

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

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

**Default value (<code>default</code>):** <span id="dt-282af70b2bcd33de2522"><code>2</code></span>

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

### <code>adi&#44;bypass&#45;slot&#45;no</code> — not listed as required here

<div id="dt-0264b7b51e42ab92154b">
<p style="white-space: pre-wrap">Selects the PCM data input channel that is routed to the speaker audio processing bypass path.</p>
</div>

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

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

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

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

<a id="dt-90b1b027f01267f1e41a"></a>

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

<div id="dt-4a9835543550e6b9b723">
<p style="white-space: pre-wrap">For cases where a single combined channel for the I/V sense data is not sufficient, the device can also be configured to share a single data output channel on alternating frames. In this configuration, the current and voltage data will be frame interleaved on a single output channel.</p>
</div>

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

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

### <code>adi&#44;dmon&#45;stuck&#45;enable</code> — not listed as required here

<div id="dt-117fc312b298da18aab2">
<p style="white-space: pre-wrap">Enables the "data monitor stuck" feature. Once the data monitor is enabled, it actively monitors the selected input data (from DIN) to the speaker amplifier. Once a data error is detected, the data monitor automatically places the device into software shutdown.</p>
</div>

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

<a id="dt-63b1e70baf1138d6a73b"></a>

### <code>adi&#44;dmon&#45;stuck&#45;threshold&#45;bits</code> — not listed as required here

<div id="dt-4bb66cfc06847dfe80c4">
<p style="white-space: pre-wrap">Sets the threshold for the "data monitor stuck" feature, in bits.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-fb58cb72d0e27b14f6cb"></a> <span id="dt-0aba54bec9bd881b9597"><code>9</code></span>, <span id="dt-9b69c4edec8f0f533a43"><code>11</code></span>, <span id="dt-a5288dfc9b12e17a097c"><code>13</code></span>, <span id="dt-fc97a4e4079a1d356aec"><code>15</code></span>

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

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

### <code>adi&#44;dmon&#45;magnitude&#45;enable</code> — not listed as required here

<div id="dt-5d4b7365a8bbd54ce37b">
<p style="white-space: pre-wrap">Enables the "data monitor magnitude" feature. Once the data monitor is enabled, it actively monitors the selected input data (from DIN) to the speaker amplifier. Once a data error is detected, the data monitor automatically places the device into software shutdown.</p>
</div>

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

<a id="dt-38b8944a861c11a9a542"></a>

### <code>adi&#44;dmon&#45;magnitude&#45;threshold&#45;bits</code> — not listed as required here

<div id="dt-c556e16dc24c56030699">
<p style="white-space: pre-wrap">Sets the threshold for the "data monitor magnitude" feature, in bits.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-f6f61550a63feb146735"></a> <span id="dt-85521f79f2414f54479b"><code>2</code></span>, <span id="dt-5b040c1e241dfbdd6f7d"><code>3</code></span>, <span id="dt-4522f5d084765a765c3e"><code>4</code></span>, <span id="dt-7fe5aac9f56764b4ed04"><code>5</code></span>

**Default value (<code>default</code>):** <span id="dt-3dde8cfd77559a910c57"><code>5</code></span>

<a id="dt-00339519ad787f9ed5fd"></a>

### <code>adi&#44;dmon&#45;duration&#45;ms</code> — not listed as required here

<div id="dt-767bbcdf9f413df13f8b">
<p style="white-space: pre-wrap">Sets the duration for the "data monitor" feature, in milliseconds.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-aca81f1fdfb8770a8268"></a> <span id="dt-18b7541b46e7cc570837"><code>64</code></span>, <span id="dt-65ec7953a2e366f1aa96"><code>256</code></span>, <span id="dt-eefb029036710c51da69"><code>1024</code></span>, <span id="dt-27bc291c6ffbce4ee0de"><code>4096</code></span>

**Default value (<code>default</code>):** <span id="dt-6b1ab2fdd615b1ec1739"><code>64</code></span>

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

### <code>reset&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-140c9736042c6903f7ff"><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/gpio/gpio.h&gt;
i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    max98396: amplifier@39 {
        compatible = "adi,max98396";
        reg = &lt;0x39&gt;;
        dvdd-supply = &lt;&amp;regulator_1v2&gt;;
        dvddio-supply = &lt;&amp;regulator_1v8&gt;;
        avdd-supply = &lt;&amp;regulator_1v8&gt;;
        pvdd-supply = &lt;&amp;regulator_pvdd&gt;;
        adi,vmon-slot-no = &lt;0&gt;;
        adi,imon-slot-no = &lt;1&gt;;
        reset-gpios = &lt;&amp;gpio 4 GPIO_ACTIVE_LOW&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>
