as3711.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. AS3711 is an I2C PMIC from Austria MicroSystems with multiple DCDC and LDO power
  2. supplies, a battery charger and an RTC. So far only bindings for the two stepup
  3. DCDC converters are defined. Other DCDC and LDO supplies are configured, using
  4. standard regulator properties, they must belong to a sub-node, called
  5. "regulators" and be called "sd1" to "sd4" and "ldo1" to "ldo8." Stepup converter
  6. configuration should be placed in a subnode, called "backlight."
  7. Compulsory properties:
  8. - compatible : must be "ams,as3711"
  9. - reg : specifies the I2C address
  10. To use the SU1 converter as a backlight source the following two properties must
  11. be provided:
  12. - su1-dev : framebuffer phandle
  13. - su1-max-uA : maximum current
  14. To use the SU2 converter as a backlight source the following two properties must
  15. be provided:
  16. - su2-dev : framebuffer phandle
  17. - su1-max-uA : maximum current
  18. Additionally one of these properties must be provided to select the type of
  19. feedback used:
  20. - su2-feedback-voltage : voltage feedback is used
  21. - su2-feedback-curr1 : CURR1 input used for current feedback
  22. - su2-feedback-curr2 : CURR2 input used for current feedback
  23. - su2-feedback-curr3 : CURR3 input used for current feedback
  24. - su2-feedback-curr-auto: automatic current feedback selection
  25. and one of these to select the over-voltage protection pin
  26. - su2-fbprot-lx-sd4 : LX_SD4 is used for over-voltage protection
  27. - su2-fbprot-gpio2 : GPIO2 is used for over-voltage protection
  28. - su2-fbprot-gpio3 : GPIO3 is used for over-voltage protection
  29. - su2-fbprot-gpio4 : GPIO4 is used for over-voltage protection
  30. If "su2-feedback-curr-auto" is selected, one or more of the following properties
  31. have to be specified:
  32. - su2-auto-curr1 : use CURR1 input for current feedback
  33. - su2-auto-curr2 : use CURR2 input for current feedback
  34. - su2-auto-curr3 : use CURR3 input for current feedback
  35. Example:
  36. as3711@40 {
  37. compatible = "ams,as3711";
  38. reg = <0x40>;
  39. regulators {
  40. sd4 {
  41. regulator-name = "1.215V";
  42. regulator-min-microvolt = <1215000>;
  43. regulator-max-microvolt = <1235000>;
  44. };
  45. ldo2 {
  46. regulator-name = "2.8V CPU";
  47. regulator-min-microvolt = <2800000>;
  48. regulator-max-microvolt = <2800000>;
  49. regulator-always-on;
  50. regulator-boot-on;
  51. };
  52. };
  53. backlight {
  54. compatible = "ams,as3711-bl";
  55. su2-dev = <&lcdc>;
  56. su2-max-uA = <36000>;
  57. su2-feedback-curr-auto;
  58. su2-fbprot-gpio4;
  59. su2-auto-curr1;
  60. su2-auto-curr2;
  61. su2-auto-curr3;
  62. };
  63. };