rt5645.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. RT5650/RT5645 audio CODEC
  2. This device supports I2C only.
  3. Required properties:
  4. - compatible : One of "realtek,rt5645" or "realtek,rt5650".
  5. - reg : The I2C address of the device.
  6. - interrupts : The CODEC's interrupt output.
  7. Optional properties:
  8. - hp-detect-gpios:
  9. a GPIO spec for the external headphone detect pin. If jd-mode = 0,
  10. we will get the JD status by getting the value of hp-detect-gpios.
  11. - realtek,in2-differential
  12. Boolean. Indicate MIC2 input are differential, rather than single-ended.
  13. - realtek,dmic1-data-pin
  14. 0: dmic1 is not used
  15. 1: using IN2P pin as dmic1 data pin
  16. 2: using GPIO6 pin as dmic1 data pin
  17. 3: using GPIO10 pin as dmic1 data pin
  18. 4: using GPIO12 pin as dmic1 data pin
  19. - realtek,dmic2-data-pin
  20. 0: dmic2 is not used
  21. 1: using IN2N pin as dmic2 data pin
  22. 2: using GPIO5 pin as dmic2 data pin
  23. 3: using GPIO11 pin as dmic2 data pin
  24. -- realtek,jd-mode : The JD mode of rt5645/rt5650
  25. 0 : rt5645/rt5650 JD function is not used
  26. 1 : Mode-0 (VDD=3.3V), two port jack detection
  27. 2 : Mode-1 (VDD=3.3V), one port jack detection
  28. 3 : Mode-2 (VDD=1.8V), one port jack detection
  29. Pins on the device (for linking into audio routes) for RT5645/RT5650:
  30. * DMIC L1
  31. * DMIC R1
  32. * DMIC L2
  33. * DMIC R2
  34. * IN1P
  35. * IN1N
  36. * IN2P
  37. * IN2N
  38. * Haptic Generator
  39. * HPOL
  40. * HPOR
  41. * LOUTL
  42. * LOUTR
  43. * PDM1L
  44. * PDM1R
  45. * SPOL
  46. * SPOR
  47. Example:
  48. codec: rt5650@1a {
  49. compatible = "realtek,rt5650";
  50. reg = <0x1a>;
  51. hp-detect-gpios = <&gpio 19 0>;
  52. interrupt-parent = <&gpio>;
  53. interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
  54. realtek,dmic-en = "true";
  55. realtek,en-jd-func = "true";
  56. realtek,jd-mode = <3>;
  57. };