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-mixer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Tegra210 Mixer Device Tree Bindings
8
9description: |
10  The Mixer supports mixing of up to ten 7.1 audio input streams and
11  generate five outputs (each of which can be any combination of the
12  ten input streams).
13
14maintainers:
15  - Jon Hunter <jonathanh@nvidia.com>
16  - Mohan Kumar <mkumard@nvidia.com>
17  - Sameer Pujar <spujar@nvidia.com>
18
19allOf:
20  - $ref: name-prefix.yaml#
21
22properties:
23  $nodename:
24    pattern: "^amixer@[0-9a-f]*$"
25
26  compatible:
27    oneOf:
28      - const: nvidia,tegra210-amixer
29      - items:
30          - enum:
31              - nvidia,tegra194-amixer
32              - nvidia,tegra186-amixer
33          - const: nvidia,tegra210-amixer
34
35  reg:
36    maxItems: 1
37
38  sound-name-prefix:
39    pattern: "^MIXER[1-9]$"
40
41  ports:
42    $ref: /schemas/graph.yaml#/properties/ports
43    description: |
44      Mixer has ten inputs and five outputs. Accordingly ACIF (Audio
45      Client Interfaces) port nodes are defined to represent Mixer
46      inputs (port 0 to 9) and outputs (port 10 to 14). These are
47      connected to corresponding ports on AHUB (Audio Hub).
48
49    patternProperties:
50      '^port@[0-9]':
51        $ref: audio-graph-port.yaml#
52        unevaluatedProperties: false
53        description: Mixer ACIF input ports
54      '^port@[10-14]':
55        $ref: audio-graph-port.yaml#
56        unevaluatedProperties: false
57        description: Mixer ACIF output ports
58
59required:
60  - compatible
61  - reg
62
63additionalProperties: false
64
65examples:
66  - |
67
68    amixer@702dbb00 {
69        compatible = "nvidia,tegra210-amixer";
70        reg = <0x702dbb00 0x800>;
71        sound-name-prefix = "MIXER1";
72    };
73
74...
75