rt5663.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. RT5663 audio CODEC
  2. This device supports I2C only.
  3. Required properties:
  4. - compatible : "realtek,rt5663".
  5. - reg : The I2C address of the device.
  6. - interrupts : The CODEC's interrupt output.
  7. Optional properties:
  8. - "realtek,dc_offset_l_manual"
  9. - "realtek,dc_offset_r_manual"
  10. - "realtek,dc_offset_l_manual_mic"
  11. - "realtek,dc_offset_r_manual_mic"
  12. Based on the different PCB layout, add the manual offset value to
  13. compensate the DC offset for each L and R channel, and they are different
  14. between headphone and headset.
  15. - "realtek,impedance_sensing_num"
  16. The matrix row number of the impedance sensing table.
  17. If the value is 0, it means the impedance sensing is not supported.
  18. - "realtek,impedance_sensing_table"
  19. The matrix rows of the impedance sensing table are consisted by impedance
  20. minimum, impedance maximun, volume, DC offset w/o and w/ mic of each L and
  21. R channel accordingly. Example is shown as following.
  22. < 0 300 7 0xffd160 0xffd1c0 0xff8a10 0xff8ab0
  23. 301 65535 4 0xffe470 0xffe470 0xffb8e0 0xffb8e0>
  24. The first and second column are defined for the impedance range. If the
  25. detected impedance value is in the range, then the volume value of the
  26. third column will be set to codec. In our codec design, each volume value
  27. should compensate different DC offset to avoid the pop sound, and it is
  28. also different between headphone and headset. In the example, the
  29. "realtek,impedance_sensing_num" is 2. It means that there are 2 ranges of
  30. impedance in the impedance sensing function.
  31. Pins on the device (for linking into audio routes) for RT5663:
  32. * IN1P
  33. * IN1N
  34. * IN2P
  35. * IN2N
  36. * HPOL
  37. * HPOR
  38. Example:
  39. rt5663: codec@12 {
  40. compatible = "realtek,rt5663";
  41. reg = <0x12>;
  42. interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
  43. };