max8903-charger.txt 877 B

12345678910111213141516171819202122232425
  1. Maxim Semiconductor MAX8903 Battery Charger bindings
  2. Required properties:
  3. - compatible: "maxim,max8903" for MAX8903 Battery Charger
  4. - dok-gpios: Valid DC power has been detected (active low, input), optional if uok-gpios is provided
  5. - uok-gpios: Valid USB power has been detected (active low, input), optional if dok-gpios is provided
  6. Optional properties:
  7. - cen-gpios: Charge enable pin (active low, output)
  8. - chg-gpios: Charger status pin (active low, input)
  9. - flt-gpios: Fault pin (active low, output)
  10. - dcm-gpios: Current limit mode setting (DC=1 or USB=0, output)
  11. - usus-gpios: USB suspend pin (active high, output)
  12. Example:
  13. max8903-charger {
  14. compatible = "maxim,max8903";
  15. dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  16. flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
  17. chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
  18. cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
  19. status = "okay";
  20. };