]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: New driver for LEGO MINDSTORMS EV3 battery
authorDavid Lechner <david@lechnology.com>
Tue, 11 Apr 2017 21:05:22 +0000 (16:05 -0500)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:35 +0000 (01:41 +0200)
commitd142977a775214835582aaf2e11e2bf959ec73f8
treee5effebc7ed2108bbabedb273098f4af1b476e08
parentdeebb0f0c891db3ca007712bb5db008e1ec9117a
power: supply: New driver for LEGO MINDSTORMS EV3 battery

This adds a new driver for the LEGO MINDSTORMS EV3 battery. The EV3 is
an embedded ARM device that can use 6 AA batteries or a special rechargeable
Li-ion battery pack. The rechargeable battery pack presses a special key
switch in the battery compartment to indicate that it is present.

The EV3 is only capable of monitoring battery voltage and current. The
charging circuit is built into the rechargeable battery pack and there is
no way to communicate with is, so we can't provide any information about
charging status.

When not using the rechargeable battery pack, it is most common to use
alkaline batteries to power the device, but it is also common for people to
use rechargeable NiMH batteries. Since there is not a way to automatically
differentiate between these, the technology property is made writable.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/lego_ev3_battery.c [new file with mode: 0644]