nvidia,tegra-audio-wm8903.txt 2.1 KB

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