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