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-common.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Common properties for NVIDIA Tegra audio complexes
8
9maintainers:
10  - Jon Hunter <jonathanh@nvidia.com>
11  - Thierry Reding <thierry.reding@gmail.com>
12
13properties:
14  clocks:
15    items:
16      - description: PLL A clock
17      - description: PLL A OUT0 clock
18      - description: The Tegra cdev1/extern1 clock, which feeds the card's mclk
19
20  clock-names:
21    items:
22      - const: pll_a
23      - const: pll_a_out0
24      - const: mclk
25
26  nvidia,model:
27    $ref: /schemas/types.yaml#/definitions/string
28    description: The user-visible name of this sound complex.
29
30  nvidia,audio-routing:
31    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
32    description: |
33      A list of the connections between audio components.
34      Each entry is a pair of strings, the first being the connection's sink,
35      the second being the connection's source. Valid names for sources and
36      sinks are the pins (documented in the binding document),
37      and the jacks on the board.
38
39  nvidia,ac97-controller:
40    $ref: /schemas/types.yaml#/definitions/phandle
41    description: The phandle of the AC97 controller
42
43  nvidia,i2s-controller:
44    $ref: /schemas/types.yaml#/definitions/phandle
45    description: The phandle of the Tegra I2S controller
46
47  nvidia,audio-codec:
48    $ref: /schemas/types.yaml#/definitions/phandle
49    description: The phandle of audio codec
50
51  nvidia,spkr-en-gpios:
52    maxItems: 1
53    description: The GPIO that enables the speakers
54
55  nvidia,hp-mute-gpios:
56    maxItems: 1
57    description: The GPIO that mutes the headphones
58
59  nvidia,hp-det-gpios:
60    maxItems: 1
61    description: The GPIO that detect headphones are plugged in
62
63  nvidia,mic-det-gpios:
64    maxItems: 1
65    description: The GPIO that detect microphone is plugged in
66
67  nvidia,ear-sel-gpios:
68    maxItems: 1
69    description: The GPIO that switch between the microphones
70
71  nvidia,int-mic-en-gpios:
72    maxItems: 1
73    description: The GPIO that enables the internal microphone
74
75  nvidia,ext-mic-en-gpios:
76    maxItems: 1
77    description: The GPIO that enables the external microphone
78
79  nvidia,headset:
80    type: boolean
81    description: The Mic Jack represents state of the headset microphone pin
82
83additionalProperties: true
84