]> rtime.felk.cvut.cz Git - zynq/linux.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)
commit53db88586acd39400665d32914d1bb7b3da07276
treee5effebc7ed2108bbabedb273098f4af1b476e08
parent11ecb0d234ea7f3b33760281fd4113115c71d5f7
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]