xref: /freebsd/sys/contrib/device-tree/Bindings/sound/nvidia,tegra-audio-alc5632.yaml (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
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-alc5632.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NVIDIA Tegra audio complex with ALC5632 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-alc5632(-[a-z0-9]+)+$'
20      - const: nvidia,tegra-audio-alc5632
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        - "Headset Stereophone"
35        - "Int Spk"
36        - "Headset Mic"
37        - "Digital Mic"
38
39        # CODEC Pins
40        - SPKOUT
41        - SPKOUTN
42        - MICBIAS1
43        - MIC1
44        - HPR
45        - HPL
46        - DMICDAT
47
48required:
49  - nvidia,i2s-controller
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    sound {
56        compatible = "nvidia,tegra-audio-alc5632-paz00",
57                     "nvidia,tegra-audio-alc5632";
58
59        nvidia,model = "Compal PAZ00";
60
61        nvidia,audio-routing = "Int Spk", "SPKOUT",
62                               "Int Spk", "SPKOUTN",
63                               "Headset Mic", "MICBIAS1",
64                               "MIC1", "Headset Mic",
65                               "Headset Stereophone", "HPR",
66                               "Headset Stereophone", "HPL",
67                               "DMICDAT", "Digital Mic";
68
69        nvidia,i2s-controller = <&i2s>;
70        nvidia,audio-codec = <&codec>;
71
72        clocks = <&clk 112>, <&clk 113>, <&clk 93>;
73        clock-names = "pll_a", "pll_a_out0", "mclk";
74    };
75