Samsung Exynos5433 TM2(E) audio complex with WM5110 codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,tm2.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 #

Exact value (const): "samsung,tm2-audio"

audio-amplifier — required here #

Phandle to the MAX98504 amplifier.

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

audio-codec — required here #

Phandles to the codecs.

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Phandle to the WM5110 audio codec.

Item 2

Array item rules (items)

Item 1

Phandle to the HDMI transmitter node.

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

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 WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main Mic, Sub Mic, Third Mic, Headset Mic. Deprecated, use audio-routing.

Deprecated (deprecated): true

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

i2s-controller — required here #

Phandles to the I2S controllers.

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

Array item rules (items) #

Item 1

Phandle to I2S0.

Item 2

Phandle to I2S1.

mic-bias-gpios — required here #

GPIO pin that enables the Main Mic bias regulator.

Required in this object (required): "compatible", "audio-amplifier", "audio-codec", "audio-routing", "i2s-controller", "mic-bias-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

sound {
    compatible = "samsung,tm2-audio";
    audio-codec = <&wm5110>, <&hdmi>;
    i2s-controller = <&i2s0 0>, <&i2s1 0>;
    audio-amplifier = <&max98504>;
    mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
    model = "wm5110";
    audio-routing = "HP", "HPOUT1L",
                            "HP", "HPOUT1R",
                            "SPK", "SPKOUT",
                            "SPKOUT", "HPOUT2L",
                            "SPKOUT", "HPOUT2R",
                            "RCV", "HPOUT3L",
                            "RCV", "HPOUT3R";
};

Source notes #

Annotations retained from the schema source

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

Edit this page