NXP i.MX audio sound card.
Schema identifier ($id): "http://devicetree.org/schemas/sound/imx-audio-card.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):sound-card-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,imx-audio-card"
Properties matching a name pattern (patternProperties) #
.*-dai-link$ — name matches this regular expression #
Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.
Value type (type): "object"
Properties and child nodes (properties) #
link-name — required here
Indicates dai-link name and PCM stream name.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Maximum number of items (maxItems): 1
format — not listed as required here
audio format.
Array item rules (items)
dai-tdm-slot-num — not listed as required here
see tdm-slot.txt.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
dai-tdm-slot-width — not listed as required here
see tdm-slot.txt.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
playback-only — not listed as required here
link is used only for playback
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
capture-only — not listed as required here
link is used only for capture
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
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 — not listed as required here
Maximum number of items (maxItems): 1
codec — not listed as 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 — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
fsl,mclk-equal-bclk — not listed as required here
Indicates mclk can be equal to bclk, especially for sai interface
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Required in this object (required): "link-name", "cpu"
All of these rules must match (allOf) #
Rule 1
This rule must not match (
not)Required in this object (
required):"playback-only","capture-only"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
sound-ak4458 {
compatible = "fsl,imx-audio-card";
model = "ak4458-audio";
pri-dai-link {
link-name = "akcodec";
format = "i2s";
fsl,mclk-equal-bclk;
cpu {
sound-dai = <&sai1>;
};
codec {
sound-dai = <&ak4458_1>, <&ak4458_2>;
};
};
fe-dai-link {
link-name = "HiFi-ASRC-FE";
format = "i2s";
cpu {
sound-dai = <&easrc>;
};
};
be-dai-link {
link-name = "HiFi-ASRC-BE";
format = "dsp_b";
dai-tdm-slot-num = <8>;
dai-tdm-slot-width = <32>;
fsl,mclk-equal-bclk;
cpu {
sound-dai = <&sai1>;
};
codec {
sound-dai = <&ak4458_1>, <&ak4458_2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)