]> git.baikalelectronics.ru Git - kernel.git/commit
power: Adds support for Smart Battery System Manager
authorKarl-Heinz Schneider <karl-heinz@schneider-inet.de>
Thu, 24 Aug 2017 09:31:08 +0000 (17:31 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 28 Oct 2017 21:43:19 +0000 (23:43 +0200)
commit99d71b43183e8314dec22e475e0e9ce7655a3381
tree4754218bfd650a7d09c595deb16e082c8fc04f4f
parentfdc340a3ba10783f5c0c190d9f4e7df77b1b7f2d
power: Adds support for Smart Battery System Manager

This patch adds support for Smart Battery System Manager.
A SBSM is a device listening at I2C/SMBus address 0x0a and is capable of
communicating up to four I2C smart battery devices. All smart battery
devices are listening at address 0x0b, so the SBSM muliplexes between
them. The driver makes use of the I2C-Mux framework to allow smart
batteries to be bound via device tree, i.e. the sbs-battery driver.

Via sysfs interface the online state and charge type are presented. If
the driver is bound as ltc1760 (an implementation of a Dual Smart Battery
System Manager) the charge type can also be changed from trickle to fast.

Signed-off-by: Karl-Heinz Schneider <karl-heinz@schneider-inet.de>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/sbs-manager.c [new file with mode: 0644]