Wolfson WM8978 Codec

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

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

Maintainers (maintainers): "patches@opensource.cirrus.com"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exact value (const): "wlf,wm8978"

reg — required here #

Maximum number of items (maxItems): 1

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

Maximum value (maximum): 526000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@0 {
        #sound-dai-cells = <0>;
        compatible = "wlf,wm8978";
        reg = <0>;
        spi-max-frequency = <500000>;
    };
};
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@1a {
        #sound-dai-cells = <0>;
        compatible = "wlf,wm8978";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page