# Cirrus Logic CS35L45 Speaker Amplifier

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

> Device-tree binding reference for Cirrus Logic CS35L45 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;cirrus&#44;cs35l45&#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;Ricardo Rivera&#45;Matos &#60;rriveram&#64;opensource&#46;cirrus&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Richard Fitzgerald &#60;rf&#64;opensource&#46;cirrus&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">CS35L45 is a Boosted Mono Class D Amplifier with DSP
Speaker Protection and Adaptive Battery Management.</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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;cirrus&#44;cs35l45&#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>1</code></span>

<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>1</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>

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

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

<div id="dt-fc64819461e958b5d536">
<p style="white-space: pre-wrap">voltage regulator phandle for the VDD_A supply</p>
</div>

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

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

<div id="dt-f7626b4f8e0ccfd07686">
<p style="white-space: pre-wrap">voltage regulator phandle for the VDD_BATT supply</p>
</div>

<a id="dt-03a3b4f56bf191dde680"></a>

### <code>spi&#45;max&#45;frequency</code> — not listed as required here

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

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

### <code>cirrus&#44;asp&#45;sdout&#45;hiz&#45;ctrl</code> — not listed as required here

<div id="dt-65c36d37e5e4a43c29a5">
<p style="white-space: pre-wrap">Audio serial port SDOUT Hi-Z control. Sets the Hi-Z configuration for SDOUT pin of amplifier. Logical OR of CS35L45_ASP_TX_HIZ_xxx values.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-57fcf57e330f4ea2e39c">[<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-9301ddeb906327ab666d"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-0cfc19fcefbd9de9aafa"><code>3</code></span>

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

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

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-334d150ded81ea9b7344"></a>

### <code>&#94;cirrus&#44;gpio&#45;ctrl&#91;1&#45;3&#93;&#36;</code> — name matches this regular expression

<div id="dt-b1bc2ead0fd548bc1ffa">
<p style="white-space: pre-wrap">GPIO pins configuration.</p>
</div>

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

<a id="dt-ddb9c301b23707011e18"></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-4b3101ec6a671e034eea"></a>

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

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

**<code>gpio&#45;dir</code> — not listed as required here**

<div id="dt-9c85574e28a2f2c92ca8">
<p style="white-space: pre-wrap">GPIO pin direction. Valid only when 'gpio-ctrl' is 1 0 = Output 1 = Input</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-45d04d6b9810d92011b4">[<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-7436324cea52c9800f31"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-33388d85e102ba5a38ab"><code>1</code></span>

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

<a id="dt-5873226cb23bcd7bbfa8"></a>

**<code>gpio&#45;lvl</code> — not listed as required here**

<div id="dt-2783cb7bf3093283a1cb">
<p style="white-space: pre-wrap">GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = Low 1 = High</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f3e21da45aa3d816475b">[<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-bdbba7414ece9c470806"><code>0</code></span>

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

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

<a id="dt-979deda4cb38e87a862f"></a>

**<code>gpio&#45;op&#45;cfg</code> — not listed as required here**

<div id="dt-0fbd34baf4a71de6ff88">
<p style="white-space: pre-wrap">GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = CMOS 1 = Open Drain</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c5655d26dd07d2415363">[<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-9b35f5d46d6862a8567e"><code>0</code></span>

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

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

<a id="dt-48fbb8c39428f830f64e"></a>

**<code>gpio&#45;pol</code> — not listed as required here**

<div id="dt-60891205a2790336bb7f">
<p style="white-space: pre-wrap">GPIO output polarity select. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = Non-inverted, Active High 1 = Inverted, Active Low</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e88d350522dab47bfe0c">[<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-57f4cac53a8fed5c65df"><code>0</code></span>

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

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

<a id="dt-3faa844109b53353b0b9"></a>

**<code>gpio&#45;ctrl</code> — not listed as required here**

<div id="dt-c0f5864f7ae170740ab9">
<p style="white-space: pre-wrap">Defines the function of the GPIO pin. GPIO1 0 = High impedance input 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' 2 = Pin acts as MDSYNC, direction controlled by MDSYNC 3-7 = Reserved GPIO2 0 = High impedance input 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' 2 = Pin acts as open drain INT 3 = Reserved 4 = Pin acts as push-pull output INT. Active low. 5 = Pin acts as push-pull output INT. Active high. 6,7 = Reserved GPIO3 0 = High impedance input 1 = Pin acts as a GPIO, direction controlled by 'gpio-dir' 2-7 = Reserved</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-80ae80e47e12dd86c27f">[<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-bec2ad875583c0fdf7be"><code>0</code></span>

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

**Default value (<code>default</code>):** <span id="dt-709425de026feb0f47a8"><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-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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/sound/cs35l45.h&gt;
spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    cs35l45: cs35l45@2 {
      #sound-dai-cells = &lt;1&gt;;
      compatible = "cirrus,cs35l45";
      reg = &lt;2&gt;;
      spi-max-frequency = &lt;5000000&gt;;
      vdd-a-supply = &lt;&amp;dummy_vreg&gt;;
      vdd-batt-supply = &lt;&amp;dummy_vreg&gt;;
      reset-gpios = &lt;&amp;gpio 110 0&gt;;
      cirrus,asp-sdout-hiz-ctrl = &lt;(CS35L45_ASP_TX_HIZ_UNUSED |
                                    CS35L45_ASP_TX_HIZ_DISABLED)&gt;;
      cirrus,gpio-ctrl1 {
         gpio-ctrl = &lt;0x2&gt;;
      };
      cirrus,gpio-ctrl2 {
         gpio-ctrl = &lt;0x2&gt;;
      };
      cirrus,gpio-ctrl3 {
         gpio-ctrl = &lt;0x1&gt;;
         gpio-dir = &lt;0x1&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>
