GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / sound / audio-graph-card2.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/audio-graph-card2.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Audio Graph Card2
8
9 maintainers:
10   - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
11
12 properties:
13   compatible:
14     enum:
15       - audio-graph-card2
16   links:
17     $ref: /schemas/types.yaml#/definitions/phandle-array
18   label:
19     maxItems: 1
20   routing:
21     description: |
22       A list of the connections between audio components.
23       Each entry is a pair of strings, the first being the
24       connection's sink, the second being the connection's source.
25     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
26   multi:
27     type: object
28     description: Multi-CPU/Codec node
29   dpcm:
30     type: object
31     description: DPCM node
32   codec2codec:
33     type: object
34     description: Codec to Codec node
35
36 required:
37   - compatible
38   - links
39
40 additionalProperties: false
41
42 examples:
43   - |
44     sound {
45         compatible = "audio-graph-card2";
46
47         links = <&cpu_port>;
48     };
49
50     cpu {
51         compatible = "cpu-driver";
52
53         cpu_port: port { cpu_ep: endpoint { remote-endpoint = <&codec_ep>; }; };
54     };
55
56     codec {
57         compatible = "codec-driver";
58
59         port { codec_ep: endpoint { remote-endpoint = <&cpu_ep>; }; };
60     };