Commit 9337f15f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: dt-bindings: simple-audio-mux: add state-labels property

simple-audio-mux is designed to be used generally, thus "Input 1" or
"Input 2" are used to selecting MUX input. This numbered inputs would
work, but might be not user friendly in some case, for example in case
of system hardware design has some clear labels.
Adds new "state-labels" property and enable to select MUX by own state
names.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/87le2m7xp8.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3913ecb3
...@@ -24,6 +24,11 @@ properties: ...@@ -24,6 +24,11 @@ properties:
description: | description: |
GPIOs used to select the input line. GPIOs used to select the input line.
state-labels:
description: State of input line. default is "Input 1", "Input 2"
$ref: /schemas/types.yaml#/definitions/string-array
maxItems: 2
sound-name-prefix: true sound-name-prefix: true
required: required:
...@@ -37,4 +42,5 @@ examples: ...@@ -37,4 +42,5 @@ examples:
mux { mux {
compatible = "simple-audio-mux"; compatible = "simple-audio-mux";
mux-gpios = <&gpio 3 0>; mux-gpios = <&gpio 3 0>;
state-labels = "Label_A", "Label_B";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment