summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/audio-graph-card2.yaml
blob: 3de7b36829da7606b2188a751b867bcbdf5c3286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/audio-graph-card2.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Audio Graph Card2

maintainers:
  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

properties:
  compatible:
    enum:
      - audio-graph-card2
  links:
    $ref: /schemas/types.yaml#/definitions/phandle-array
  label:
    maxItems: 1
  routing:
    description: |
      A list of the connections between audio components.
      Each entry is a pair of strings, the first being the
      connection's sink, the second being the connection's source.
    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
  multi:
    type: object
    description: Multi-CPU/Codec node
  dpcm:
    type: object
    description: DPCM node
  codec2codec:
    type: object
    description: Codec to Codec node

required:
  - compatible
  - links

additionalProperties: false

examples:
  - |
    sound {
        compatible = "audio-graph-card2";

        links = <&cpu_port>;
    };

    cpu {
        compatible = "cpu-driver";

        cpu_port: port { cpu_ep: endpoint { remote-endpoint = <&codec_ep>; }; };
    };

    codec {
        compatible = "codec-driver";

        port { codec_ep: endpoint { remote-endpoint = <&cpu_ep>; }; };
    };