Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,odroid.yaml#"

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.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 #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "hardkernel,odroid-xu3-audio"

Rule 2

Exact value (const): "hardkernel,odroid-xu4-audio"

Deprecated (deprecated): true

Rule 3

Exact value (const): "samsung,odroid-xu3-audio"

Deprecated (deprecated): true

Rule 4

Exact value (const): "samsung,odroid-xu4-audio"

Deprecated (deprecated): true

cpu — required here #

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

phandles to the I2S controllers

codec — required here #

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

Array item rules (items)

Item 1

phandle of the HDMI IP block node

Item 2

phandle of the MAX98090 CODEC

samsung,audio-routing — not listed as required here #

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

Deprecated (deprecated): true

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 for sources and sinks are the MAX98090's pins (as documented in its binding), and the jacks on the board. For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC" For Odroid U3, XU3: "Headphone Jack", "Speakers" For Odroid XU4: no entries Deprecated, use audio-routing.

samsung,audio-widgets — not listed as required here #

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

This property specifies off-codec audio elements like headphones or speakers, for details see widgets.txt

Required in this object (required): "compatible", "cpu", "codec"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "hardkernel,odroid-xu3-audio";
    model = "Odroid-XU3";
    audio-routing =
            "Headphone Jack", "HPL",
            "Headphone Jack", "HPR",
            "IN1", "Mic Jack",
            "Mic Jack", "MICBIAS";

    cpu {
        sound-dai = <&i2s0 0>;
    };

    codec {
        sound-dai = <&hdmi>, <&max98090>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page