gpio-charger.txt 605 B

123456789101112131415161718192021222324252627
  1. gpio-charger
  2. Required properties :
  3. - compatible : "gpio-charger"
  4. - gpios : GPIO indicating the charger presence.
  5. See GPIO binding in bindings/gpio/gpio.txt .
  6. - charger-type : power supply type, one of
  7. unknown
  8. battery
  9. ups
  10. mains
  11. usb-sdp (USB standard downstream port)
  12. usb-dcp (USB dedicated charging port)
  13. usb-cdp (USB charging downstream port)
  14. usb-aca (USB accessory charger adapter)
  15. Example:
  16. usb_charger: charger {
  17. compatible = "gpio-charger";
  18. charger-type = "usb-sdp";
  19. gpios = <&gpf0 2 0 0 0>;
  20. }
  21. battery {
  22. power-supplies = <&usb_charger>;
  23. };