MediaTek MT8365 ASoC sound card

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8365-mt6357.yaml#"

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

Maintainers (maintainers): "Alexandre Mergnat <amergnat@baylibre.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8365-mt6357"

pinctrl-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "dmic"

Item 3

Exact value (const): "miso_off"

Item 4

Exact value (const): "miso_on"

Item 5

Exact value (const): "mosi_off"

Item 6

Exact value (const): "mosi_on"

mediatek,platform — required here #

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

The phandle of MT8365 ASoC platform.

Properties matching a name pattern (patternProperties) #

Value type (type): "object"

Container for dai-link level properties and CODEC sub-nodes.

Properties and child nodes (properties) #

codec — not listed as required here

Value type (type): "object"

Holds subnode which indicates codec dai.

Properties and child nodes (properties)

sound-dai — not listed as required here

Maximum number of items (maxItems): 1

phandle of the codec DAI

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

false

Not allowed by this rule.

link-name — required here

Indicates dai-link name and PCM stream name

Allowed values (enum): "I2S_IN_BE", "I2S_OUT_BE", "PCM1_BE", "PDM1_BE", "PDM2_BE", "PDM3_BE", "PDM4_BE", "SPDIF_IN_BE", "SPDIF_OUT_BE", "TDM_IN_BE", "TDM_OUT_BE"

sound-dai — required here

Maximum number of items (maxItems): 1

phandle of the CPU DAI

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

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "pinctrl-names", "mediatek,platform"

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

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "mediatek,mt8365-mt6357";
    pinctrl-names = "default",
                    "dmic",
                    "miso_off",
                    "miso_on",
                    "mosi_off",
                    "mosi_on";
    pinctrl-0 = <&aud_default_pins>;
    pinctrl-1 = <&aud_dmic_pins>;
    pinctrl-2 = <&aud_miso_off_pins>;
    pinctrl-3 = <&aud_miso_on_pins>;
    pinctrl-4 = <&aud_mosi_off_pins>;
    pinctrl-5 = <&aud_mosi_on_pins>;
    mediatek,platform = <&afe>;

    /* hdmi interface */
    dai-link-0 {
        link-name = "I2S_OUT_BE";
        sound-dai = <&afe>;

        codec {
            sound-dai = <&it66121hdmitx>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page