power: supply: Add ltc3651-charger driver

The LTC3651 reports its status via GPIO lines. This driver translates
the GPIO levels to battery charger status information via sysfs.
It relies on devicetree to supply the IO configuration.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
Mike Looijmans 2017-05-09 07:44:17 +02:00 • committed by Sebastian Reichel
commit c94d4ed017
3 changed files with 218 additions and 0 deletions