cs42l52.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. CS42L52 audio CODEC
  2. Required properties:
  3. - compatible : "cirrus,cs42l52"
  4. - reg : the I2C address of the device for I2C
  5. Optional properties:
  6. - cirrus,reset-gpio : GPIO controller's phandle and the number
  7. of the GPIO used to reset the codec.
  8. - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency.
  9. Allowable values of 0x00 through 0x0F. These are raw values written to the
  10. register, not the actual frequency. The frequency is determined by the following.
  11. Frequency = (64xFs)/(N+2)
  12. N = chgfreq_val
  13. Fs = Sample Rate (variable)
  14. - cirrus,mica-differential-cfg : boolean, If present, then the MICA input is configured
  15. as a differential input. If not present then the MICA input is configured as
  16. Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input.
  17. - cirrus,micb-differential-cfg : boolean, If present, then the MICB input is configured
  18. as a differential input. If not present then the MICB input is configured as
  19. Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input.
  20. - cirrus,micbias-lvl: Set the output voltage level on the MICBIAS Pin
  21. 0 = 0.5 x VA
  22. 1 = 0.6 x VA
  23. 2 = 0.7 x VA
  24. 3 = 0.8 x VA
  25. 4 = 0.83 x VA
  26. 5 = 0.91 x VA
  27. Example:
  28. codec: codec@4a {
  29. compatible = "cirrus,cs42l52";
  30. reg = <0x4a>;
  31. reset-gpio = <&gpio 10 0>;
  32. cirrus,chgfreq-divisor = <0x05>;
  33. cirrus.mica-differential-cfg;
  34. cirrus,micbias-lvl = <5>;
  35. };