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)
commit666a584d3a765a914642f80deef7a33fb309df5d
tree44075201728ea751d07c63ce5458e4cfd0404e92
parent8af750e3f5ca21eaa5595a96a4cf5eaa996deed4
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