1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/nvidia,tegra210-adx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Tegra210 ADX Device Tree Bindings
8
9description: |
10  The Audio Demultiplexer (ADX) block takes an input stream with up to
11  16 channels and demultiplexes it into four output streams of up to 16
12  channels each. A byte RAM helps to form output frames by any combination
13  of bytes from the input frame. Its design is identical to that of byte
14  RAM in the AMX except that the data flow direction is reversed.
15
16maintainers:
17  - Jon Hunter <jonathanh@nvidia.com>
18  - Mohan Kumar <mkumard@nvidia.com>
19  - Sameer Pujar <spujar@nvidia.com>
20
21allOf:
22  - $ref: name-prefix.yaml#
23
24properties:
25  $nodename:
26    pattern: "^adx@[0-9a-f]*$"
27
28  compatible:
29    oneOf:
30      - const: nvidia,tegra210-adx
31      - items:
32          - enum:
33              - nvidia,tegra194-adx
34              - nvidia,tegra186-adx
35          - const: nvidia,tegra210-adx
36
37  reg:
38    maxItems: 1
39
40  sound-name-prefix:
41    pattern: "^ADX[1-9]$"
42
43  ports:
44    $ref: /schemas/graph.yaml#/properties/ports
45    description: |
46      ADX has one input and four outputs. Accordingly ACIF (Audio Client
47      Interface) port nodes are defined to represent ADX input (port 0)
48      and outputs (ports 1 to 4). These are connected to corresponding
49      ports on AHUB (Audio Hub).
50    properties:
51      port@0:
52        $ref: audio-graph-port.yaml#
53        unevaluatedProperties: false
54        description: ADX ACIF input port
55    patternProperties:
56      '^port@[1-4]':
57        $ref: audio-graph-port.yaml#
58        unevaluatedProperties: false
59        description: ADX ACIF output ports
60
61required:
62  - compatible
63  - reg
64
65additionalProperties: false
66
67examples:
68  - |
69
70    adx@702d3800 {
71        compatible = "nvidia,tegra210-adx";
72        reg = <0x702d3800 0x100>;
73        sound-name-prefix = "ADX1";
74    };
75
76...
77