Loongson-1 AC97 Controller

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

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

Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"

The Loongson-1 AC97 controller supports 2-channel stereo output and input. It is paired with the DMA engine to handle playback and capture functions.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "loongson,ls1b-ac97"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls1a-ac97", "loongson,ls1c-ac97"

Item 2

Exact value (const): "loongson,ls1b-ac97"

reg — required here #

Maximum number of items (maxItems): 3

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ac97"

Item 2

Exact value (const): "audio-tx"

Item 3

Exact value (const): "audio-rx"

dmas — required here #

Maximum number of items (maxItems): 2

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

#sound-dai-cells — required here #

Exact value (const): 0

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-controller@1fe74000 {
    compatible = "loongson,ls1b-ac97";
    reg = <0x1fe74000 0x60>, <0x1fe72420 0x4>, <0x1fe74c4c 0x4>;
    reg-names = "ac97", "audio-tx", "audio-rx";
    dmas = <&dma 1>, <&dma 2>;
    dma-names = "tx", "rx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page