# Awinic AW8738 Audio Amplifier

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

> Device-tree binding reference for Awinic AW8738 Audio 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;awinic&#44;aw8738&#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;Stephan Gerhold &#60;stephan&#64;gerhold&#46;net&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Awinic AW8738 is a simple audio amplifier with different operation modes (set using one-wire pulse control). The mode configures the speaker-guard function (primarily the power limit for the amplifier).</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>dai&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-sound/dai-common.md#dt-root>)</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;awinic&#44;aw8738&#34;</code></span>

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

### <code>mode&#45;gpios</code> — required here

<div id="dt-b965d256af8d9380b678">
<p style="white-space: pre-wrap">GPIO used for one-wire pulse control. The pin is typically called SHDN (active-low), but this is misleading since it is actually more than just a simple shutdown/enable control.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-8e89fc7fe511571b716e"><code>1</code></span>

<a id="dt-3973665195d666f135cc"></a>

### <code>awinic&#44;mode</code> — required here

<div id="dt-a6e9a9472376e28ceb79">
<p style="white-space: pre-wrap">Operation mode (number of pulses for one-wire pulse control)</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-9692e566c6c5a979a9e3"><code>7</code></span>

<a id="dt-11ee4a1accc23a0be61c"></a>

### <code>sound&#45;name&#45;prefix</code> — not listed as required here

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

**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;mode&#45;gpios&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;awinic&#44;mode&#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;
audio-amplifier {
    compatible = "awinic,aw8738";
    mode-gpios = &lt;&amp;msmgpio 114 GPIO_ACTIVE_HIGH&gt;;
    awinic,mode = &lt;5&gt;;
    sound-name-prefix = "Speaker Amp";
};
</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>
