nvidia,tegra-audio-rt5640.txt 1.8 KB

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