CS42L51 audio codec

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

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

Maintainers (maintainers): "Olivier Moysan <olivier.moysan@foss.st.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cirrus,cs42l51"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "MCLK"

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

VL-supply — not listed as required here #

phandle to voltage regulator of digital interface section

VD-supply — not listed as required here #

phandle to voltage regulator of digital internal section

VA-supply — not listed as required here #

phandle to voltage regulator of analog internal section

VAHP-supply — not listed as required here #

phandle to voltage regulator of headphone

port — not listed as required here #

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  cs42l51@4a {
    compatible = "cirrus,cs42l51";
    reg = <0x4a>;
    #sound-dai-cells = <0>;
    clocks = <&mclk_prov>;
    clock-names = "MCLK";
    VL-supply = <&reg_audio>;
    VD-supply = <&reg_audio>;
    VA-supply = <&reg_audio>;
    VAHP-supply = <&reg_audio>;
    reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;

    /* assume audio-graph */
    port {
      cpu_endpoint: endpoint {
        remote-endpoint = <&cpu_endpoint>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page