Mediatek MT8192 with MT6359, RT1015 and RT5682 ASoC sound card driver
Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8192-mt6359-rt1015-rt5682.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>", "Shane Chien <shane.chien@mediatek.com>"
This binding describes the MT8192 sound card.
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): "mediatek,mt8192_mt6359_rt1015_rt5682", "mediatek,mt8192_mt6359_rt1015p_rt5682", "mediatek,mt8192_mt6359_rt1015p_rt5682s"
audio-routing — not listed as required here #
A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.
Minimum number of items (minItems): 2
Array item rules (items) #
Allowed values (
enum):"Speakers","Headphone Jack","IN1P","Left Spk","Right Spk","Headset Mic","HPOL","HPOR","Left SPO","Right SPO","Speaker"
mediatek,platform — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of MT8192 ASoC platform.
mediatek,hdmi-codec — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of HDMI codec.
Deprecated (deprecated): true
headset-codec — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Deprecated (deprecated): true
Properties and child nodes (properties) #
sound-dai — required here
Maximum number of items (maxItems): 1
Required in this object (required): "sound-dai"
speaker-codecs — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Deprecated (deprecated): true
Properties and child nodes (properties) #
sound-dai — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items)
Maximum number of items (
maxItems):1
Required in this object (required): "sound-dai"
Properties matching a name pattern (patternProperties) #
.*-dai-link$ — 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.
Container for dai-link level properties and CODEC sub-nodes.
Properties and child nodes (properties) #
link-name — required here
Indicates dai-link name and PCM stream name
Allowed values (enum): "I2S0", "I2S1", "I2S2", "I2S3", "I2S4", "I2S5", "I2S6", "I2S7", "I2S8", "I2S9", "TDM"
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 — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "sound-dai"
dai-format — not listed as required here
audio format
Allowed values (enum): "i2s", "right_j", "left_j", "dsp_a", "dsp_b"
mediatek,clk-provider — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Indicates dai-link clock master.
Allowed values (enum): "cpu", "codec"
Required in this object (required): "link-name"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "mediatek,platform"
Condition (if) #
This rule must not match (
not) #Properties matching a name pattern (
patternProperties) #
.*-dai-link$— name matches this regular expression
false— Not permitted by this property rule.
When the condition matches (then) #
Properties and child nodes (
properties) #
headset-codec— not listed as required here #
false— Not permitted by this property rule.
speaker-codecs— not listed as required here #
false— Not permitted by this property rule.
mediatek,hdmi-codec— not listed as required here #
false— Not permitted by this property rule.
Examples (examples) #
sound: mt8192-sound {
compatible = "mediatek,mt8192_mt6359_rt1015_rt5682";
model = "mt8192_mt6359_rt1015_rt5682";
pinctrl-names = "aud_clk_mosi_off",
"aud_clk_mosi_on";
pinctrl-0 = <&aud_clk_mosi_off>;
pinctrl-1 = <&aud_clk_mosi_on>;
mediatek,platform = <&afe>;
audio-routing =
"Headphone Jack", "HPOL",
"Headphone Jack", "HPOR",
"IN1P", "Headset Mic",
"Speakers", "Speaker";
spk-playback-dai-link {
link-name = "I2S3";
dai-format = "i2s";
mediatek,clk-provider = "cpu";
codec {
sound-dai = <&rt1015p>;
};
};
hs-playback-dai-link {
link-name = "I2S8";
dai-format = "i2s";
mediatek,clk-provider = "cpu";
codec {
sound-dai = <&rt5682 0>;
};
};
hs-capture-dai-link {
link-name = "I2S9";
dai-format = "i2s";
mediatek,clk-provider = "cpu";
codec {
sound-dai = <&rt5682 0>;
};
};
displayport-dai-link {
link-name = "TDM";
dai-format = "dsp_a";
codec {
sound-dai = <&anx_bridge_dp>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 36: Sinks
Line 43: Sources
Line 138: Disallow legacy properties if xxx-dai-link nodes are specified