Loongson 7axxx/2kxxx ASoC audio sound card driver

Schema identifier ($id): "http://devicetree.org/schemas/sound/loongson,ls-audio-card.yaml#"

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

Maintainers (maintainers): "Yingkun Meng <mengyingkun@loongson.cn>"

The binding describes the sound card present in loongson 7axxx/2kxxx platform. The sound card is an ASoC component which uses Loongson I2S controller to transfer the audio data.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "loongson,ls-audio-card"

model — required here #

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

User specified audio sound card name

mclk-fs — required here #

Shared schema rule ($ref): simple-card.yaml#/definitions/mclk-fs

cpu — required here #

Holds subnode which indicates cpu dai.

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) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

codec — required here #

Holds subnode which indicates codec dai.

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) #

sound-dai — required here

Maximum number of items (maxItems): 1

Required in this object (required): "sound-dai"

Required in this object (required): "compatible", "model", "mclk-fs", "cpu", "codec"

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

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "loongson,ls-audio-card";
    model = "loongson-audio";
    mclk-fs = <512>;

    cpu {
        sound-dai = <&i2s>;
    };
    codec {
         sound-dai = <&es8323>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page