cs35l32.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. CS35L32 audio CODEC
  2. Required properties:
  3. - compatible : "cirrus,cs35l32"
  4. - reg : the I2C address of the device for I2C. Address is determined by the level
  5. of the AD0 pin. Level 0 is 0x40 while Level 1 is 0x41.
  6. - VA-supply, VP-supply : power supplies for the device,
  7. as covered in Documentation/devicetree/bindings/regulator/regulator.txt.
  8. Optional properties:
  9. - reset-gpios : a GPIO spec for the reset pin. If specified, it will be
  10. deasserted before communication to the codec starts.
  11. - cirrus,boost-manager : Boost voltage control.
  12. 0 = Automatically managed. Boost-converter output voltage is the higher
  13. of the two: Class G or adaptive LED voltage.
  14. 1 = Automatically managed irrespective of audio, adapting for low-power
  15. dissipation when LEDs are ON, and operating in Fixed-Boost Bypass Mode
  16. if LEDs are OFF (VBST = VP).
  17. 2 = (Default) Boost voltage fixed in Bypass Mode (VBST = VP).
  18. 3 = Boost voltage fixed at 5 V.
  19. - cirrus,sdout-datacfg : Data configuration for dual CS35L32 applications only.
  20. Determines the data packed in a two-CS35L32 configuration.
  21. 0 = Left/right channels VMON[11:0], IMON[11:0], VPMON[7:0].
  22. 1 = Left/right channels VMON[11:0], IMON[11:0], STATUS.
  23. 2 = (Default) left/right channels VMON[15:0], IMON [15:0].
  24. 3 = Left/right channels VPMON[7:0], STATUS.
  25. - cirrus,sdout-share : SDOUT sharing. Determines whether one or two CS35L32
  26. devices are on board sharing SDOUT.
  27. 0 = (Default) One IC.
  28. 1 = Two IC's.
  29. - cirrus,battery-recovery : Low battery nominal recovery threshold, rising VP.
  30. 0 = 3.1V
  31. 1 = 3.2V
  32. 2 = 3.3V (Default)
  33. 3 = 3.4V
  34. - cirrus,battery-threshold : Low battery nominal threshold, falling VP.
  35. 0 = 3.1V
  36. 1 = 3.2V
  37. 2 = 3.3V
  38. 3 = 3.4V (Default)
  39. 4 = 3.5V
  40. 5 = 3.6V
  41. Example:
  42. codec: codec@40 {
  43. compatible = "cirrus,cs35l32";
  44. reg = <0x40>;
  45. reset-gpios = <&gpio 10 0>;
  46. cirrus,boost-manager = <0x03>;
  47. cirrus,sdout-datacfg = <0x02>;
  48. VA-supply = <&reg_audio>;
  49. };