ltc3651-charger.txt 1007 B

123456789101112131415161718192021222324252627
  1. ltc3651-charger
  2. Required properties:
  3. - compatible: "lltc,ltc3651-charger"
  4. - lltc,acpr-gpios: Connect to ACPR output. See remark below.
  5. Optional properties:
  6. - lltc,fault-gpios: Connect to FAULT output. See remark below.
  7. - lltc,chrg-gpios: Connect to CHRG output. See remark below.
  8. The ltc3651 outputs are open-drain type and active low. The driver assumes the
  9. GPIO reports "active" when the output is asserted, so if the pins have been
  10. connected directly, the GPIO flags should be set to active low also.
  11. The driver will attempt to aquire interrupts for all GPIOs to detect changes in
  12. line state. If the system is not capabale of providing interrupts, the driver
  13. cannot report changes and userspace will need to periodically read the sysfs
  14. attributes to detect changes.
  15. Example:
  16. charger: battery-charger {
  17. compatible = "lltc,ltc3651-charger";
  18. lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
  19. lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
  20. lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
  21. };