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