Samsung Midas audio complex with WM1811 codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung,midas-audio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "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,midas-audio"
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
Maximum number of items (maxItems): 1
phandle to the I2S controller
Required in this object (required): "sound-dai"
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 — required here
Maximum number of items (maxItems): 1
phandle to the WM1811 CODEC
Required in this object (required): "sound-dai"
samsung,audio-routing — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array
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 WM1811's pins (as documented in its binding), and the jacks on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic. Deprecated, use audio-routing.
mic-bias-supply — required here #
Supply for the micbias on the Main microphone
submic-bias-supply — required here #
Supply for the micbias on the Sub microphone
headset-mic-bias-supply — not listed as required here #
Supply for the micbias on the Headset microphone
fm-sel-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin for FM selection
lineout-sel-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin for line out selection
headset-detect-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO for detection of headset insertion
headset-key-gpios — not listed as 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"
samsung,headset-4pole-threshold-microvolt — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
Array containing minimum and maximum IO channel value for 4-pole (with microphone/button) headsets. If the IO channel value is outside of this range, a 3-pole headset is assumed.
samsung,headset-button-threshold-microvolt — not listed as required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
Array of minimum (inclusive) IO channel values for headset button detection, in order: "Media", "Volume Up" and "Volume Down".
Required in this object (required): "compatible", "cpu", "codec", "audio-routing", "mic-bias-supply", "submic-bias-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
sound {
compatible = "samsung,midas-audio";
model = "Midas";
fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>;
mic-bias-supply = <&mic_bias_reg>;
submic-bias-supply = <&submic_bias_reg>;
audio-routing =
"HP", "HPOUT1L",
"HP", "HPOUT1R",
"SPK", "SPKOUTLN",
"SPK", "SPKOUTLP",
"SPK", "SPKOUTRN",
"SPK", "SPKOUTRP",
"RCV", "HPOUT2N",
"RCV", "HPOUT2P",
"IN1LP", "Main Mic",
"IN1LN", "Main Mic",
"IN1RP", "Sub Mic",
"IN1LP", "Sub Mic";
cpu {
sound-dai = <&i2s0>;
};
codec {
sound-dai = <&wm1811>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)