Cirrus Logic CS35L45 Speaker Amplifier

Schema identifier ($id): "http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>", "Richard Fitzgerald <rf@opensource.cirrus.com>"

CS35L45 is a Boosted Mono Class D Amplifier with DSP Speaker Protection and Adaptive Battery Management.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cirrus,cs35l45"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

vdd-a-supply — not listed as required here #

voltage regulator phandle for the VDD_A supply

vdd-batt-supply — not listed as required here #

voltage regulator phandle for the VDD_BATT supply

spi-max-frequency — not listed as required here #

Maximum value (maximum): 5000000

cirrus,asp-sdout-hiz-ctrl — not listed as required here #

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.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 2

Properties matching a name pattern (patternProperties) #

^cirrus,gpio-ctrl[1-3]$ — name matches this regular expression #

GPIO pins configuration.

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

gpio-dir — not listed as required here

GPIO pin direction. Valid only when 'gpio-ctrl' is 1 0 = Output 1 = Input

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 1

gpio-lvl — not listed as required here

GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = Low 1 = High

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

gpio-op-cfg — not listed as required here

GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0 0 = CMOS 1 = Open Drain

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

gpio-pol — not listed as required here

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

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

gpio-ctrl — not listed as required here

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

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 7

Default value (default): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/sound/cs35l45.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

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

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page