tegra-audio-wm8903.txt 1.8 KB

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