cs42l56.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. CS42L52 audio CODEC
  2. Required properties:
  3. - compatible : "cirrus,cs42l56"
  4. - reg : the I2C address of the device for I2C
  5. - VA-supply, VCP-supply, VLDO-supply : power supplies for the device,
  6. as covered in Documentation/devicetree/bindings/regulator/regulator.txt.
  7. Optional properties:
  8. - cirrus,gpio-nreset : GPIO controller's phandle and the number
  9. of the GPIO used to reset the codec.
  10. - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency.
  11. Allowable values of 0x00 through 0x0F. These are raw values written to the
  12. register, not the actual frequency. The frequency is determined by the following.
  13. Frequency = MCLK / 4 * (N+2)
  14. N = chgfreq_val
  15. MCLK = Where MCLK is the frequency of the mclk signal after the MCLKDIV2 circuit.
  16. - cirrus,ain1a-ref-cfg, ain1b-ref-cfg : boolean, If present, AIN1A or AIN1B are configured
  17. as a pseudo-differential input referenced to AIN1REF/AIN3A.
  18. - cirrus,ain2a-ref-cfg, ain2b-ref-cfg : boolean, If present, AIN2A or AIN2B are configured
  19. as a pseudo-differential input referenced to AIN2REF/AIN3B.
  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. - cirrus,adaptive-pwr-cfg : Configures how the power to the Headphone and Lineout
  28. Amplifiers adapt to the output signal levels.
  29. 0 = Adapt to Volume Mode. Voltage level determined by the sum of the relevant volume settings.
  30. 1 = Fixed - Headphone and Line Amp supply = + or - VCP/2.
  31. 2 = Fixed - Headphone and Line Amp supply = + or - VCP.
  32. 3 = Adapted to Signal; Voltage level is dynamically determined by the output signal.
  33. - cirrus,hpf-left-freq, hpf-right-freq : Sets the corner frequency (-3dB point) for the internal High-Pass
  34. Filter.
  35. 0 = 1.8Hz
  36. 1 = 119Hz
  37. 2 = 236Hz
  38. 3 = 464Hz
  39. Example:
  40. codec: codec@4b {
  41. compatible = "cirrus,cs42l56";
  42. reg = <0x4b>;
  43. gpio-reset = <&gpio 10 0>;
  44. cirrus,chgfreq-divisor = <0x05>;
  45. cirrus.ain1_ref_cfg;
  46. cirrus,micbias-lvl = <5>;
  47. VA-supply = <&reg_audio>;
  48. };