]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/sound/nvidia,tegra-audio-wm8903.txt
Input: tsc2007: Add device tree support.
[karo-tx-linux.git] / Documentation / devicetree / bindings / sound / nvidia,tegra-audio-wm8903.txt
1 NVIDIA Tegra audio complex
2
3 Required properties:
4 - compatible : "nvidia,tegra-audio-wm8903"
5 - clocks : Must contain an entry for each entry in clock-names.
6 - clock-names : Must include the following entries:
7   "pll_a" (The Tegra clock of that name),
8   "pll_a_out0" (The Tegra clock of that name),
9   "mclk" (The Tegra cdev1/extern1 clock, which feeds the CODEC's mclk)
10 - nvidia,model : The user-visible name of this sound complex.
11 - nvidia,audio-routing : A list of the connections between audio components.
12   Each entry is a pair of strings, the first being the connection's sink,
13   the second being the connection's source. Valid names for sources and
14   sinks are the WM8903's pins (documented in the WM8903 binding document),
15   and the jacks on the board:
16
17   * Headphone Jack
18   * Int Spk
19   * Mic Jack
20
21 - nvidia,i2s-controller : The phandle of the Tegra I2S1 controller
22 - nvidia,audio-codec : The phandle of the WM8903 audio codec
23
24 Optional properties:
25 - nvidia,spkr-en-gpios : The GPIO that enables the speakers
26 - nvidia,hp-mute-gpios : The GPIO that mutes the headphones
27 - nvidia,hp-det-gpios : The GPIO that detect headphones are plugged in
28 - nvidia,int-mic-en-gpios : The GPIO that enables the internal microphone
29 - nvidia,ext-mic-en-gpios : The GPIO that enables the external microphone
30
31 Example:
32
33 sound {
34         compatible = "nvidia,tegra-audio-wm8903-harmony",
35                      "nvidia,tegra-audio-wm8903"
36         nvidia,model = "tegra-wm8903-harmony";
37
38         nvidia,audio-routing =
39                 "Headphone Jack", "HPOUTR",
40                 "Headphone Jack", "HPOUTL",
41                 "Int Spk", "ROP",
42                 "Int Spk", "RON",
43                 "Int Spk", "LOP",
44                 "Int Spk", "LON",
45                 "Mic Jack", "MICBIAS",
46                 "IN1L", "Mic Jack";
47
48         nvidia,i2s-controller = <&i2s1>;
49         nvidia,audio-codec = <&wm8903>;
50
51         nvidia,spkr-en-gpios = <&codec 2 0>;
52         nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
53         nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */
54         nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */
55
56         clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 93>;
57         clock-names = "pll_a", "pll_a_out0", "mclk";
58 };
59