Simple Audio Multiplexer
Schema identifier ($id): "http://devicetree.org/schemas/sound/simple-audio-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Belloni <aleandre.belloni@bootlin.com>"
Simple audio multiplexers are driven using gpios, allowing to select which of their input line is connected to the output line.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "simple-audio-mux"
mux-gpios — required here #
GPIOs used to select the input line.
state-labels — not listed as required here #
State of input line. default is "Input 1", "Input 2"
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Maximum number of items (maxItems): 2
idle-state — not listed as required here #
If present specifies the state when the mux is powered down
Shared schema rule ($ref): /schemas/mux/mux-controller.yaml#/properties/idle-state
sound-name-prefix — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "mux-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mux {
compatible = "simple-audio-mux";
mux-gpios = <&gpio 3 0>;
state-labels = "Label_A", "Label_B";
idle-state = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)