rt5677.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. RT5677 audio CODEC
  2. This device supports I2C only.
  3. Required properties:
  4. - compatible : "realtek,rt5677".
  5. - reg : The I2C address of the device.
  6. - interrupts : The CODEC's interrupt output.
  7. - gpio-controller : Indicates this device is a GPIO controller.
  8. - #gpio-cells : Should be two. The first cell is the pin number and the
  9. second cell is used to specify optional parameters (currently unused).
  10. Optional properties:
  11. - realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin.
  12. - realtek,reset-gpio : The GPIO that controls the CODEC's RESET pin.
  13. - realtek,in1-differential
  14. - realtek,in2-differential
  15. - realtek,lout1-differential
  16. - realtek,lout2-differential
  17. - realtek,lout3-differential
  18. Boolean. Indicate MIC1/2 input and LOUT1/2/3 outputs are differential,
  19. rather than single-ended.
  20. - realtek,gpio-config
  21. Array of six 8bit elements that configures GPIO.
  22. 0 - floating (reset value)
  23. 1 - pull down
  24. 2 - pull up
  25. - realtek,jd1-gpio
  26. Configures GPIO Mic Jack detection 1.
  27. Select 0 ~ 3 as OFF, GPIO1, GPIO2 and GPIO3 respectively.
  28. - realtek,jd2-gpio
  29. - realtek,jd3-gpio
  30. Configures GPIO Mic Jack detection 2 and 3.
  31. Select 0 ~ 3 as OFF, GPIO4, GPIO5 and GPIO6 respectively.
  32. Pins on the device (for linking into audio routes):
  33. * IN1P
  34. * IN1N
  35. * IN2P
  36. * IN2N
  37. * MICBIAS1
  38. * DMIC1
  39. * DMIC2
  40. * DMIC3
  41. * DMIC4
  42. * LOUT1
  43. * LOUT2
  44. * LOUT3
  45. Example:
  46. rt5677 {
  47. compatible = "realtek,rt5677";
  48. reg = <0x2c>;
  49. interrupt-parent = <&gpio>;
  50. interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
  51. gpio-controller;
  52. #gpio-cells = <2>;
  53. realtek,pow-ldo2-gpio =
  54. <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
  55. realtek,reset-gpio = <&gpio TEGRA_GPIO(BB, 3) GPIO_ACTIVE_LOW>;
  56. realtek,in1-differential = "true";
  57. realtek,gpio-config = /bits/ 8 <0 0 0 0 0 2>; /* pull up GPIO6 */
  58. realtek,jd2-gpio = <3>; /* Enables Jack detection for GPIO6 */
  59. };