Amlogic GX sound card

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

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "amlogic,gx-sound-card"

audio-aux-devs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

list of auxiliary devices

audio-widgets — not listed as required here #

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

A list off component DAPM widget. Each entry is a pair of strings, the first being the widget type, the second being the widget name

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

Base PLL clocks of audio susbsytem, used to configure base clock frequencies for different audio use-cases.

Properties matching a name pattern (patternProperties) #

Value type (type): "object"

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

false

Not allowed by this rule.

dai-link child nodes:
  Container for dai-link level properties and the CODEC sub-nodes.
  There should be at least one (and probably more) subnode of this type

Properties and child nodes (properties) #

dai-format — not listed as required here

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

Allowed values (enum): "i2s", "left-j", "dsp_a"

mclk-fs — not listed as required here

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

Multiplication factor between the frame rate and master clock rate

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the CPU DAI

Properties matching a name pattern (patternProperties) #

^codec(-[0-9]+)?$ — name matches this regular expression

Value type (type): "object"

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

false

Not allowed by this rule.

Codecs: dai-link representing backend links should have at least one subnode. One subnode for each codec of the dai-link. dai-link representing frontend links have no codec, therefore have no subnodes

Properties and child nodes (properties)

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the codec DAI

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

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

Required in this object (required): "model", "dai-link-0"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "amlogic,gx-sound-card";
    model = "GXL-ACME-S905X-FOO";
    audio-aux-devs = <&amp>;
    audio-routing = "I2S ENCODER I2S IN", "I2S FIFO Playback";

    dai-link-0 {
           sound-dai = <&i2s_fifo>;
    };

    dai-link-1 {
            sound-dai = <&i2s_encoder>;
            dai-format = "i2s";
            mclk-fs = <256>;

            codec-0 {
                    sound-dai = <&codec0>;
            };

            codec-1 {
                    sound-dai = <&codec1>;
            };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page