# Cirrus Logic CS35L41 Speaker Amplifier

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

> Device-tree binding reference for Cirrus Logic CS35L41 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;cs35l41&#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&#46;rhodes&#64;cirrus&#46;com&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">CS35L41 is a boosted mono Class D amplifier with DSP
speaker protection and equalization</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;cirrus&#44;cs35l40&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;cirrus&#44;cs35l41&#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

<div id="dt-c6fec2b67f85839e5c16">
<p style="white-space: pre-wrap">The first cell indicating the audio interface.</p>
</div>

**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-921c71e4dcb08aa4da1c"></a>

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

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

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

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

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

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

### <code>cirrus&#44;boost&#45;peak&#45;milliamp</code> — not listed as required here

<div id="dt-b4b7e0bfdfdccd8c96c7">
<p style="white-space: pre-wrap">Boost-converter peak current limit in mA. Configures the peak current by monitoring the current through the boost FET. Range starts at 1600 mA and goes to a maximum of 4500 mA with increments of 50 mA. See section 4.3.6 of the datasheet for details.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1e09543e886a3d890c32">[<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-91fad8d2d30d8e81cc50"><code>1600</code></span>

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

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

<a id="dt-64d0f533e4a3f948334f"></a>

### <code>cirrus&#44;boost&#45;ind&#45;nanohenry</code> — not listed as required here

<div id="dt-2229dda9f6a392c35385">
<p style="white-space: pre-wrap">Boost inductor value, expressed in nH. Valid values include 1000, 1200, 1500 and 2200.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-492d41c9d139a890da1f"><code>2200</code></span>

<a id="dt-8267cc941b54fcfbbf04"></a>

### <code>cirrus&#44;boost&#45;cap&#45;microfarad</code> — not listed as required here

<div id="dt-6aa98a68fafc912fab5f">
<p style="white-space: pre-wrap">Total equivalent boost capacitance on the VBST and VAMP pins, derated at 11 volts DC. The value must be rounded to the nearest integer and expressed in uF.</p>
</div>

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

<a id="dt-78f4cab5ec91c3016cb7"></a>

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

<div id="dt-5df671c273e874268bf6">
<p style="white-space: pre-wrap">Audio serial port SDOUT Hi-Z control. Sets the Hi-Z configuration for SDOUT pin of amplifier. 0 = Logic 0 during unused slots, and while all transmit channels disabled 1 = Hi-Z during unused slots but logic 0 while all transmit channels disabled 2 = (Default) Logic 0 during unused slots, but Hi-Z while all transmit channels disabled 3 = Hi-Z during unused slots and while all transmit channels disabled</p>
</div>

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

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

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

<a id="dt-91ac23868a2be4fa0562"></a>

### <code>cirrus&#44;boost&#45;type</code> — not listed as required here

<div id="dt-20744abeb0bbb75fd6c1">
<p style="white-space: pre-wrap">Configures the type of Boost being used. Internal boost requires boost-peak-milliamp, boost-ind-nanohenry and boost-cap-microfarad. External Boost must have GPIO1 as GPIO output. GPIO1 will be set high to enable boost voltage. Shared boost allows two amplifiers to share a single boost circuit by communicating on the MDSYNC bus. The active amplifier controls the boost circuit using combined data from both amplifiers. GPIO1 should be configured for Sync when shared boost is used. Shared boost is not compatible with External boost. Active amplifier requires boost-peak-milliamp, boost-ind-nanohenry and boost-cap-microfarad. 0 = Internal Boost 1 = External Boost 2 = Shared Boost Active 3 = Shared Boost Passive</p>
</div>

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

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

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

### <code>cirrus&#44;gpio1&#45;polarity&#45;invert</code> — not listed as required here

<div id="dt-6825c7573af515bb0034">
<p style="white-space: pre-wrap">Boolean which specifies whether the GPIO1 level is inverted. If this property is not present the level is not inverted.</p>
</div>

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

<a id="dt-81ba72987629b0e6462e"></a>

### <code>cirrus&#44;gpio1&#45;output&#45;enable</code> — not listed as required here

<div id="dt-c715f00e63389c845fea">
<p style="white-space: pre-wrap">Boolean which specifies whether the GPIO1 pin is configured as an output. If this property is not present the pin will be configured as an input.</p>
</div>

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

<a id="dt-188454808c8ba11219d3"></a>

### <code>cirrus&#44;gpio1&#45;src&#45;select</code> — not listed as required here

<div id="dt-ab5fe755d20d9de2e0a1">
<p style="white-space: pre-wrap">Configures the function of the GPIO1 pin. Note that the options are different from the GPIO2 pin 0 = High Impedance (Default) 1 = GPIO 2 = Sync 3 = MCLK input</p>
</div>

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

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

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

### <code>cirrus&#44;gpio2&#45;polarity&#45;invert</code> — not listed as required here

<div id="dt-42e8ed5cb7fdcf7de734">
<p style="white-space: pre-wrap">Boolean which specifies whether the GPIO2 level is inverted. If this property is not present the level is not inverted.</p>
</div>

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

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

### <code>cirrus&#44;gpio2&#45;output&#45;enable</code> — not listed as required here

<div id="dt-74717bac59fdf055d5cc">
<p style="white-space: pre-wrap">Boolean which specifies whether the GPIO2 pin is configured as an output. If this property is not present the pin will be configured as an input.</p>
</div>

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

<a id="dt-66341e2790fa2a03b9b8"></a>

### <code>cirrus&#44;gpio2&#45;src&#45;select</code> — not listed as required here

<div id="dt-227309dd435bfc744c88">
<p style="white-space: pre-wrap">Configures the function of the GPIO2 pin. Note that the options are different from the GPIO1 pin. 0 = High Impedance (Default) 1 = GPIO 2 = Open Drain INTB 3 = MCLK input 4 = Push-pull INTB (active low) 5 = Push-pull INT (active high)</p>
</div>

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

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

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

### <code>cirrus&#44;subsystem&#45;id</code> — not listed as required here

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

<div id="dt-f9c2b2add5671ce16033">
<p style="white-space: pre-wrap">Subsystem ID. If this property is present, it sets the system name, used to identify the firmware and tuning to load.</p>
</div>

**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-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-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-2c230101ec74573e450b"></a>
> >
> > **<code>cirrus&#44;boost&#45;type</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-9ced72bb896251737239"><code>0</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;cirrus&#44;boost&#45;peak&#45;milliamp&#34;</code></span>, <span id="dt-5daae4bef35eb1615659"><code>&#34;cirrus&#44;boost&#45;ind&#45;nanohenry&#34;</code></span>, <span id="dt-dabdc46fe881a853c5d7"><code>&#34;cirrus&#44;boost&#45;cap&#45;microfarad&#34;</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-8cc174c4b4adce46c891"></a>
> >
> > **Condition (<code>if</code>)**
> >
> > > <a id="dt-515a12751a12dc4c7100"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-d475419281957785dec8"></a>
> > >
> > > **<code>cirrus&#44;boost&#45;type</code> — not listed as required here**
> > >
> > > **Exact value (<code>const</code>):** <span id="dt-bbd282f3bbc821760026"><code>1</code></span>
> >
> > <a id="dt-9b83293bcfd549f28e1c"></a>
> >
> > **When the condition matches (<code>then</code>)**
> >
> > > **Required in this object (<code>required</code>):** <a id="dt-8f1d6cf8942c4296b997"></a> <span id="dt-a8c484f5b9b41d7c61d9"><code>&#34;cirrus&#44;gpio1&#45;output&#45;enable&#34;</code></span>, <span id="dt-f43889bf53938255d7af"><code>&#34;cirrus&#44;gpio1&#45;src&#45;select&#34;</code></span>
> > >
> > > <a id="dt-202592b5a5b4b784436e"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-21b1dcdc124b9b406f82"></a>
> > >
> > > **<code>cirrus&#44;boost&#45;peak&#45;milliamp</code> — not listed as required here**
> > >
> > > <code>false</code> — Not permitted by this property rule.
> > >
> > > <a id="dt-3b2b714f2bc484c66b7c"></a>
> > >
> > > **<code>cirrus&#44;boost&#45;ind&#45;nanohenry</code> — not listed as required here**
> > >
> > > <code>false</code> — Not permitted by this property rule.
> > >
> > > <a id="dt-83876049a87a2e998297"></a>
> > >
> > > **<code>cirrus&#44;boost&#45;cap&#45;microfarad</code> — not listed as required here**
> > >
> > > <code>false</code> — Not permitted by this property rule.
> > >
> > > <a id="dt-a4b5e08b91f864c8d9b2"></a>
> > >
> > > **<code>cirrus&#44;gpio1&#45;src&#45;select</code> — required here**
> > >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b26a3ff325fd58e7ccfe"></a> <span id="dt-4896a4eb5423bb827d1b"><code>1</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/gpio/gpio.h&gt;

spi {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    cs35l41: speaker-amp@2 {
        #sound-dai-cells = &lt;1&gt;;
        compatible = "cirrus,cs35l41";
        reg = &lt;2&gt;;
        VA-supply = &lt;&amp;dummy_vreg&gt;;
        VP-supply = &lt;&amp;dummy_vreg&gt;;
        reset-gpios = &lt;&amp;gpio 110 GPIO_ACTIVE_HIGH&gt;;

        cirrus,boost-type = &lt;0&gt;;
        cirrus,boost-peak-milliamp = &lt;4500&gt;;
        cirrus,boost-ind-nanohenry = &lt;1000&gt;;
        cirrus,boost-cap-microfarad = &lt;15&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>
