Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: Tegra210 Mixer |
| 8 | |
| 9 | description: | |
| 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 | |
| 14 | maintainers: |
| 15 | - Jon Hunter <jonathanh@nvidia.com> |
| 16 | - Mohan Kumar <mkumard@nvidia.com> |
| 17 | - Sameer Pujar <spujar@nvidia.com> |
| 18 | |
| 19 | allOf: |
| 20 | - $ref: dai-common.yaml# |
| 21 | |
| 22 | properties: |
| 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 | |
| 60 | required: |
| 61 | - compatible |
| 62 | - reg |
| 63 | |
| 64 | additionalProperties: false |
| 65 | |
| 66 | examples: |
| 67 | - | |
| 68 | |
| 69 | amixer@702dbb00 { |
| 70 | compatible = "nvidia,tegra210-amixer"; |
| 71 | reg = <0x702dbb00 0x800>; |
| 72 | sound-name-prefix = "MIXER1"; |
| 73 | }; |
| 74 | |
| 75 | ... |