1# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/simple-audio-mux.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Simple Audio Multiplexer
8
9maintainers:
10  - Alexandre Belloni <aleandre.belloni@bootlin.com>
11
12description: |
13  Simple audio multiplexers are driven using gpios, allowing to select which of
14  their input line is connected to the output line.
15
16properties:
17  compatible:
18    const: simple-audio-mux
19
20  mux-gpios:
21    description: |
22      GPIOs used to select the input line.
23
24  sound-name-prefix:
25    $ref: /schemas/types.yaml#/definitions/string
26    description:
27      Used as prefix for sink/source names of the component. Must be a
28      unique string among multiple instances of the same component.
29
30required:
31  - compatible
32  - mux-gpios
33
34additionalProperties: false
35
36examples:
37  - |
38    mux {
39        compatible = "simple-audio-mux";
40        mux-gpios = <&gpio 3 0>;
41    };
42