linux/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5640.txt
<<
>>
Prefs
   1NVIDIA Tegra audio complex, with RT5640 CODEC
   2
   3Required properties:
   4- compatible : "nvidia,tegra-audio-rt5640"
   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 RT5640's pins, and the jacks on the board:
  15
  16  RT5640 pins:
  17
  18  * DMIC1
  19  * DMIC2
  20  * MICBIAS1
  21  * IN1P
  22  * IN1R
  23  * IN2P
  24  * IN2R
  25  * HPOL
  26  * HPOR
  27  * LOUTL
  28  * LOUTR
  29  * MONOP
  30  * MONON
  31  * SPOLP
  32  * SPOLN
  33  * SPORP
  34  * SPORN
  35
  36  Board connectors:
  37
  38  * Headphones
  39  * Speakers
  40
  41- nvidia,i2s-controller : The phandle of the Tegra I2S controller that's
  42  connected to the CODEC.
  43- nvidia,audio-codec : The phandle of the RT5640 audio codec. This binding
  44  assumes that AIF1 on the CODEC is connected to Tegra.
  45
  46Optional properties:
  47- nvidia,hp-det-gpios : The GPIO that detects headphones are plugged in
  48
  49Example:
  50
  51sound {
  52        compatible = "nvidia,tegra-audio-rt5640-dalmore",
  53                        "nvidia,tegra-audio-rt5640";
  54        nvidia,model = "NVIDIA Tegra Dalmore";
  55
  56        nvidia,audio-routing =
  57                "Headphones", "HPOR",
  58                "Headphones", "HPOL",
  59                "Speakers", "SPORP",
  60                "Speakers", "SPORN",
  61                "Speakers", "SPOLP",
  62                "Speakers", "SPOLN";
  63
  64        nvidia,i2s-controller = <&tegra_i2s1>;
  65        nvidia,audio-codec = <&rt5640>;
  66
  67        nvidia,hp-det-gpios = <&gpio 143 0>; /* GPIO PR7 */
  68
  69        clocks = <&tegra_car 216>, <&tegra_car 217>, <&tegra_car 120>;
  70        clock-names = "pll_a", "pll_a_out0", "mclk";
  71};
  72