Google SC7180-Trogdor ASoC sound card driver

Schema identifier ($id): "http://devicetree.org/schemas/sound/google,sc7180-trogdor.yaml#"

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

Maintainers (maintainers): "Rohit kumar <quic_rohkumar@quicinc.com>", "Cheng-Yi Chiang <cychiang@chromium.org>"

This binding describes the SC7180 sound card which uses LPASS for audio.

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): "google,sc7180-trogdor", "google,sc7180-coachz"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

dmic-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO for switching between DMICs

Properties matching a name pattern (patternProperties) #

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

reg — not listed as required here

Maximum number of items (maxItems): 1

dai link address.

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 — 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): 4

Required in this object (required): "link-name", "cpu", "codec"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "google,sc7180-trogdor";
    model = "sc7180-rt5682-max98357a-2mic";

    audio-routing =
                "Headphone Jack", "HPOL",
                "Headphone Jack", "HPOR";

    #address-cells = <1>;
    #size-cells = <0>;

    dmic-gpios = <&tlmm 86 0>;

    dai-link@0 {
        link-name = "MultiMedia0";
        reg = <0>;
        cpu {
            sound-dai = <&lpass_cpu 0>;
        };

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

    dai-link@1 {
        link-name = "MultiMedia1";
        reg = <1>;
        cpu {
            sound-dai = <&lpass_cpu 1>;
        };

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

    dai-link@2 {
        link-name = "MultiMedia2";
        reg = <2>;
        cpu {
            sound-dai = <&lpass_hdmi 0>;
        };

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

Source notes #

Annotations retained from the schema source

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

Edit this page