]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: Add support for MAX14656 USB charger detector
authorAlexander Kurz <akurz@blala.de>
Wed, 19 Oct 2016 16:04:49 +0000 (18:04 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 16 Jan 2017 22:03:11 +0000 (23:03 +0100)
commit9d60595a069b1a71b33dabed8053b378c325cb4a
tree4a93789ec34a6a96b17532598e970279bc268ded
parent0f36ba6185b13e32c2243e8e6cbd1e82801b5aa5
power: supply: Add support for MAX14656 USB charger detector

The MAX14656 USB charger detector, also known as "AL32" is used to detect
the presence and capabilities of attached USB chargers. The device is
attached via I2C plus one interrupt line to signalize events.

The device can be found in LG smartphones like LS665 and LS770, compatible
devices are present in 4th/5th generation Amazon Kindle readers referenced
in source code packages as "Maxim AL32".

The initial version of this driver has been extracted from LG source code
package LGLS665_Android_Lollipop_LS665ZV3, enriched with information from
the Kindle_src_4.1.3 source code package and adapted to the current power
class sysfs interface. Non-Standard Apple chargers which the device may
detect are mapped to the USB Battery Charging Specification Revision 1.2
class USB_DCP.

Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/max14656_charger_detector.c [new file with mode: 0644]