mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 16:53:59 -04:00
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/87le2m7xp8.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
47 lines
1009 B
YAML
47 lines
1009 B
YAML
# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/simple-audio-mux.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Simple Audio Multiplexer
|
|
|
|
maintainers:
|
|
- Alexandre Belloni <aleandre.belloni@bootlin.com>
|
|
|
|
description: |
|
|
Simple audio multiplexers are driven using gpios, allowing to select which of
|
|
their input line is connected to the output line.
|
|
|
|
allOf:
|
|
- $ref: dai-common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: simple-audio-mux
|
|
|
|
mux-gpios:
|
|
description: |
|
|
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
|
|
|
|
required:
|
|
- compatible
|
|
- mux-gpios
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
mux {
|
|
compatible = "simple-audio-mux";
|
|
mux-gpios = <&gpio 3 0>;
|
|
state-labels = "Label_A", "Label_B";
|
|
};
|