rt5659.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. RT5659/RT5658 audio CODEC
  2. This device supports I2C only.
  3. Required properties:
  4. - compatible : One of "realtek,rt5659" or "realtek,rt5658".
  5. - reg : The I2C address of the device.
  6. - interrupts : The CODEC's interrupt output.
  7. Optional properties:
  8. - clocks: The phandle of the master clock to the CODEC
  9. - clock-names: Should be "mclk"
  10. - realtek,in1-differential
  11. - realtek,in3-differential
  12. - realtek,in4-differential
  13. Boolean. Indicate MIC1/3/4 input are differential, rather than single-ended.
  14. - realtek,dmic1-data-pin
  15. 0: dmic1 is not used
  16. 1: using IN2N pin as dmic1 data pin
  17. 2: using GPIO5 pin as dmic1 data pin
  18. 3: using GPIO9 pin as dmic1 data pin
  19. 4: using GPIO11 pin as dmic1 data pin
  20. - realtek,dmic2-data-pin
  21. 0: dmic2 is not used
  22. 1: using IN2P pin as dmic2 data pin
  23. 2: using GPIO6 pin as dmic2 data pin
  24. 3: using GPIO10 pin as dmic2 data pin
  25. 4: using GPIO12 pin as dmic2 data pin
  26. - realtek,jd-src
  27. 0: No JD is used
  28. 1: using JD3 as JD source
  29. - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
  30. - realtek,reset-gpios : The GPIO that controls the CODEC's RESET pin.
  31. Pins on the device (for linking into audio routes) for RT5659/RT5658:
  32. * DMIC L1
  33. * DMIC R1
  34. * DMIC L2
  35. * DMIC R2
  36. * IN1P
  37. * IN1N
  38. * IN2P
  39. * IN2N
  40. * IN3P
  41. * IN3N
  42. * IN4P
  43. * IN4N
  44. * HPOL
  45. * HPOR
  46. * SPOL
  47. * SPOR
  48. * LOUTL
  49. * LOUTR
  50. * MONOOUT
  51. * PDML
  52. * PDMR
  53. * SPDIF
  54. Example:
  55. rt5659 {
  56. compatible = "realtek,rt5659";
  57. reg = <0x1b>;
  58. interrupt-parent = <&gpio>;
  59. interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
  60. realtek,ldo1-en-gpios =
  61. <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
  62. };