xref: /freebsd/sys/contrib/device-tree/Bindings/sound/nvidia,tegra-audio-wm9712.yaml (revision a18b956b73cee784e5c422d20fd0e4dabebd7eee)
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,tegra-audio-wm9712.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NVIDIA Tegra audio complex with WM9712 CODEC
8
9maintainers:
10  - Jon Hunter <jonathanh@nvidia.com>
11  - Thierry Reding <thierry.reding@gmail.com>
12
13allOf:
14  - $ref: nvidia,tegra-audio-common.yaml#
15
16properties:
17  compatible:
18    items:
19      - pattern: '^[a-z0-9]+,tegra-audio-wm9712([-_][a-z0-9]+)+$'
20      - const: nvidia,tegra-audio-wm9712
21
22  nvidia,audio-routing:
23    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
24    description: |
25      A list of the connections between audio components.
26      Each entry is a pair of strings, the first being the connection's sink,
27      the second being the connection's source. Valid names for sources and
28      sinks are the pins (documented in the binding document),
29      and the jacks on the board.
30    minItems: 2
31    items:
32      enum:
33        # Board Connectors
34        - "Headphone"
35        - "LineIn"
36        - "Mic"
37
38        # CODEC Pins
39        - MONOOUT
40        - HPOUTL
41        - HPOUTR
42        - LOUT2
43        - ROUT2
44        - OUT3
45        - LINEINL
46        - LINEINR
47        - PHONE
48        - PCBEEP
49        - MIC1
50        - MIC2
51        - "Mic Bias"
52
53required:
54  - nvidia,ac97-controller
55
56unevaluatedProperties: false
57
58examples:
59  - |
60    sound {
61        compatible = "nvidia,tegra-audio-wm9712-colibri_t20",
62                     "nvidia,tegra-audio-wm9712";
63        nvidia,model = "Toradex Colibri T20";
64
65        nvidia,audio-routing =
66                "Headphone", "HPOUTL",
67                "Headphone", "HPOUTR",
68                "LineIn", "LINEINL",
69                "LineIn", "LINEINR",
70                "Mic", "MIC1";
71
72        nvidia,ac97-controller = <&ac97>;
73
74        clocks = <&clk 112>, <&clk 113>, <&clk 93>;
75        clock-names = "pll_a", "pll_a_out0", "mclk";
76    };
77