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,tegra234-amixer
32              - nvidia,tegra194-amixer
33              - nvidia,tegra186-amixer
34          - const: nvidia,tegra210-amixer
35
36  reg:
37    maxItems: 1
38
39  sound-name-prefix:
40    pattern: "^MIXER[1-9]$"
41
42  ports:
43    $ref: /schemas/graph.yaml#/properties/ports
44    description: |
45      Mixer has ten inputs and five outputs. Accordingly ACIF (Audio
46      Client Interfaces) port nodes are defined to represent Mixer
47      inputs (port 0 to 9) and outputs (port 10 to 14). These are
48      connected to corresponding ports on AHUB (Audio Hub).
49
50    patternProperties:
51      '^port@[0-9]':
52        $ref: audio-graph-port.yaml#
53        unevaluatedProperties: false
54        description: Mixer ACIF input ports
55      '^port@[10-14]':
56        $ref: audio-graph-port.yaml#
57        unevaluatedProperties: false
58        description: Mixer ACIF output ports
59
60required:
61  - compatible
62  - reg
63
64additionalProperties: false
65
66examples:
67  - |
68
69    amixer@702dbb00 {
70        compatible = "nvidia,tegra210-amixer";
71        reg = <0x702dbb00 0x800>;
72        sound-name-prefix = "MIXER1";
73    };
74
75...
76