xref: /linux/Documentation/devicetree/bindings/sound/audio-graph-card2.yaml (revision b83deaa741558babf4b8d51d34f6637ccfff1b26)
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
7title: Audio Graph Card2 Device Tree Bindings
8
9maintainers:
10  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
11
12properties:
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    description: Multi-CPU/Codec node
28  dpcm:
29    description: DPCM node
30  codec2codec:
31    description: Codec to Codec node
32
33required:
34  - compatible
35  - links
36
37additionalProperties: false
38
39examples:
40  - |
41    sound {
42        compatible = "audio-graph-card2";
43
44        links = <&cpu_port>;
45    };
46
47    cpu {
48        compatible = "cpu-driver";
49
50        cpu_port: port { cpu_ep: endpoint { remote-endpoint = <&codec_ep>; }; };
51    };
52
53    codec {
54        compatible = "codec-driver";
55
56        port { codec_ep: endpoint { remote-endpoint = <&cpu_ep>; }; };
57    };
58