Skip to content

Commit 3b7e11a

Browse files
Hendrik v. Ravenbroonie
authored andcommitted
ASoC: dt-bindings: simple-mux: add idle-state property
simple-mux immediately activates the new output, even when it is powered down. This can be undesirable in some cases, for example when a mechanical relais is used. Adds "idle-state" property from the mux controller to select the output state to be used when the mux is powered down. Signed-off-by: Hendrik v. Raven <h.v.raven@merzmedtech.de> Link: https://patch.msgid.link/20241114-simple-mux-idle-state-v2-2-a30cb37d2be2@merzmedtech.de Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 2b97428 commit 3b7e11a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/devicetree/bindings/sound/simple-audio-mux.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ properties:
2929
$ref: /schemas/types.yaml#/definitions/string-array
3030
maxItems: 2
3131

32+
idle-state:
33+
description: If present specifies the state when the mux is powered down
34+
$ref: /schemas/mux/mux-controller.yaml#/properties/idle-state
35+
3236
sound-name-prefix: true
3337

3438
required:
@@ -43,4 +47,5 @@ examples:
4347
compatible = "simple-audio-mux";
4448
mux-gpios = <&gpio 3 0>;
4549
state-labels = "Label_A", "Label_B";
50+
idle-state = <0>;
4651
};

0 commit comments

Comments
 (0)