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