]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-palmas.c: support for backup battery charging
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 11 Sep 2013 21:24:19 +0000 (14:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:55 +0000 (15:58 -0700)
commit79b1e3f553ff9bced9960be341860146c8afcffd
tree44075201728ea751d07c63ce5458e4cfd0404e92
parent2676dab983ed6bc1bff24722feb2c4e6757bc574
drivers/rtc/rtc-palmas.c: support for backup battery charging

Palmas series device like TPS65913, TPS80036 supports the backup battery
for powering the RTC when no other energy source is available.

The backup battery is optional, connected to the VBACKUP pin, and can be
nonrechargeable or rechargeable.  The rechargeable battery can be charged
from the system supply using the backup battery charger.

Add support for enabling charging of this backup battery.  Also add the DT
binding document and the new properties to have this support.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Acked-by: Kumar Gala <galak@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/devicetree/bindings/rtc/rtc-palmas.txt [new file with mode: 0644]
drivers/rtc/rtc-palmas.c