nvidia,tegra-audio-wm8903.txt 2.0 KB

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