Samsung Aries audio complex with WM8994 codec

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

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

Maintainers (maintainers): "Jonathan Bakker <xc-racer2@live.ca>"

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): "samsung,aries-wm8994", "samsung,fascinate4g-wm8994"

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 — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

phandles to the I2S controller and bluetooth codec, in that order

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

codec — required here #

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

false

Not allowed by this rule.

Value type (type): "object"

Properties and child nodes (properties) #

sound-dai — required here

Maximum number of items (maxItems): 1

phandle to the WM8994 CODEC

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

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 WM8994's pins (as documented in its binding), and the jacks on the board - For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic, or FM In For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic, or HeadsetMic Deprecated, use audio-routing.

extcon — required here #

Extcon phandle for dock detection

main-micbias-supply — required here #

Supply for the micbias on the main mic

headset-micbias-supply — required here #

Supply for the micbias on the headset mic

earpath-sel-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for switching between tv-out and mic paths

headset-detect-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for detection of headset insertion

headset-key-gpios — required here #

Maximum number of items (maxItems): 1

GPIO for detection of headset key press

io-channels — not listed as required here #

Maximum number of items (maxItems): 1

IO channel to read micbias voltage for headset detection

io-channel-names — not listed as required here #

Exact value (const): "headset-detect"

Required in this object (required): "compatible", "cpu", "codec", "audio-routing", "extcon", "main-micbias-supply", "headset-micbias-supply", "earpath-sel-gpios", "headset-detect-gpios", "headset-key-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,fascinate4g-wm8994";

    model = "Fascinate4G";

    extcon = <&fsa9480>;

    main-micbias-supply = <&main_micbias_reg>;
    headset-micbias-supply = <&headset_micbias_reg>;

    earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>;

    io-channels = <&adc 3>;
    io-channel-names = "headset-detect";
    headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>;
    headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>;

    audio-routing =
        "HP", "HPOUT1L",
        "HP", "HPOUT1R",

        "SPK", "SPKOUTLN",
        "SPK", "SPKOUTLP",

        "RCV", "HPOUT2N",
        "RCV", "HPOUT2P",

        "LINE", "LINEOUT2N",
        "LINE", "LINEOUT2P",

        "IN1LP", "Main Mic",
        "IN1LN", "Main Mic",

        "IN1RP", "Headset Mic",
        "IN1RN", "Headset Mic";

    pinctrl-names = "default";
    pinctrl-0 = <&headset_det &earpath_sel>;

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

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

Source notes #

Annotations retained from the schema source

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

Line 18: With FM radio and modem master

Line 20: Without FM radio and modem slave

Edit this page