nvidia,tegra-audio-rt5677.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. NVIDIA Tegra audio complex, with RT5677 CODEC
  2. Required properties:
  3. - compatible : "nvidia,tegra-audio-rt5677"
  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 RT5677's pins (as documented in its binding), and the jacks
  15. on the board:
  16. * Headphone
  17. * Speaker
  18. * Headset Mic
  19. * Internal Mic 1
  20. * Internal Mic 2
  21. - nvidia,i2s-controller : The phandle of the Tegra I2S controller that's
  22. connected to the CODEC.
  23. - nvidia,audio-codec : The phandle of the RT5677 audio codec. This binding
  24. assumes that AIF1 on the CODEC is connected to Tegra.
  25. Optional properties:
  26. - nvidia,hp-det-gpios : The GPIO that detects headphones are plugged in
  27. - nvidia,hp-en-gpios : The GPIO that enables headphone amplifier
  28. - nvidia,mic-present-gpios: The GPIO that mic jack is plugged in
  29. - nvidia,dmic-clk-en-gpios : The GPIO that gates DMIC clock signal
  30. Example:
  31. sound {
  32. compatible = "nvidia,tegra-audio-rt5677-ryu",
  33. "nvidia,tegra-audio-rt5677";
  34. nvidia,model = "NVIDIA Tegra Ryu";
  35. nvidia,audio-routing =
  36. "Headphone", "LOUT2",
  37. "Headphone", "LOUT1",
  38. "Headset Mic", "MICBIAS1",
  39. "IN1P", "Headset Mic",
  40. "IN1N", "Headset Mic",
  41. "DMIC L1", "Internal Mic 1",
  42. "DMIC R1", "Internal Mic 1",
  43. "DMIC L2", "Internal Mic 2",
  44. "DMIC R2", "Internal Mic 2",
  45. "Speaker", "PDM1L",
  46. "Speaker", "PDM1R";
  47. nvidia,i2s-controller = <&tegra_i2s1>;
  48. nvidia,audio-codec = <&rt5677>;
  49. nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
  50. nvidia,mic-present-gpios = <&gpio TEGRA_GPIO(O, 5) GPIO_ACTIVE_LOW>;
  51. nvidia,hp-en-gpios = <&rt5677 1 GPIO_ACTIVE_HIGH>;
  52. nvidia,dmic-clk-en-gpios = <&rt5677 2 GPIO_ACTIVE_HIGH>;
  53. clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
  54. <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
  55. <&tegra_car TEGRA124_CLK_EXTERN1>;
  56. clock-names = "pll_a", "pll_a_out0", "mclk";
  57. };