rt5665.txt 1.3 KB

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