linux/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-wm8903.txt
<<
>>
Prefs
   1NVIDIA Tegra audio complex
   2
   3Required 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, and the jacks on the board:
  15
  16  WM8903 pins:
  17
  18  * IN1L
  19  * IN1R
  20  * IN2L
  21  * IN2R
  22  * IN3L
  23  * IN3R
  24  * DMICDAT
  25  * HPOUTL
  26  * HPOUTR
  27  * LINEOUTL
  28  * LINEOUTR
  29  * LOP
  30  * LON
  31  * ROP
  32  * RON
  33  * MICBIAS
  34
  35  Board connectors:
  36
  37  * Headphone Jack
  38  * Int Spk
  39  * Mic Jack
  40
  41- nvidia,i2s-controller : The phandle of the Tegra I2S1 controller
  42- nvidia,audio-codec : The phandle of the WM8903 audio codec
  43
  44Optional properties:
  45- nvidia,spkr-en-gpios : The GPIO that enables the speakers
  46- nvidia,hp-mute-gpios : The GPIO that mutes the headphones
  47- nvidia,hp-det-gpios : The GPIO that detect headphones are plugged in
  48- nvidia,int-mic-en-gpios : The GPIO that enables the internal microphone
  49- nvidia,ext-mic-en-gpios : The GPIO that enables the external microphone
  50
  51Example:
  52
  53sound {
  54        compatible = "nvidia,tegra-audio-wm8903-harmony",
  55                     "nvidia,tegra-audio-wm8903"
  56        nvidia,model = "tegra-wm8903-harmony";
  57
  58        nvidia,audio-routing =
  59                "Headphone Jack", "HPOUTR",
  60                "Headphone Jack", "HPOUTL",
  61                "Int Spk", "ROP",
  62                "Int Spk", "RON",
  63                "Int Spk", "LOP",
  64                "Int Spk", "LON",
  65                "Mic Jack", "MICBIAS",
  66                "IN1L", "Mic Jack";
  67
  68        nvidia,i2s-controller = <&i2s1>;
  69        nvidia,audio-codec = <&wm8903>;
  70
  71        nvidia,spkr-en-gpios = <&codec 2 0>;
  72        nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
  73        nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */
  74        nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */
  75
  76        clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 93>;
  77        clock-names = "pll_a", "pll_a_out0", "mclk";
  78};
  79
  80