nvidia,tegra-audio-wm8903.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. See ../clocks/clock-bindings.txt for details.
  6. - clock-names : Must include the following entries:
  7. - pll_a
  8. - pll_a_out0
  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 (documented in the WM8903 binding document),
  15. and the jacks on the board:
  16. * Headphone Jack
  17. * Int Spk
  18. * Mic Jack
  19. - nvidia,i2s-controller : The phandle of the Tegra I2S1 controller
  20. - nvidia,audio-codec : The phandle of the WM8903 audio codec
  21. Optional properties:
  22. - nvidia,spkr-en-gpios : The GPIO that enables the speakers
  23. - nvidia,hp-mute-gpios : The GPIO that mutes the headphones
  24. - nvidia,hp-det-gpios : The GPIO that detect headphones are plugged in
  25. - nvidia,int-mic-en-gpios : The GPIO that enables the internal microphone
  26. - nvidia,ext-mic-en-gpios : The GPIO that enables the external microphone
  27. Example:
  28. sound {
  29. compatible = "nvidia,tegra-audio-wm8903-harmony",
  30. "nvidia,tegra-audio-wm8903"
  31. nvidia,model = "tegra-wm8903-harmony";
  32. nvidia,audio-routing =
  33. "Headphone Jack", "HPOUTR",
  34. "Headphone Jack", "HPOUTL",
  35. "Int Spk", "ROP",
  36. "Int Spk", "RON",
  37. "Int Spk", "LOP",
  38. "Int Spk", "LON",
  39. "Mic Jack", "MICBIAS",
  40. "IN1L", "Mic Jack";
  41. nvidia,i2s-controller = <&i2s1>;
  42. nvidia,audio-codec = <&wm8903>;
  43. nvidia,spkr-en-gpios = <&codec 2 0>;
  44. nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */
  45. nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */
  46. nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */
  47. clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 93>;
  48. clock-names = "pll_a", "pll_a_out0", "mclk";
  49. };