Re: [PATCH] rtc: bq32000: add support to enable disable the trickle charge FET bypass.

From: Alexandre Belloni
Date: Tue Jan 31 2017 - 16:03:34 EST


On 27/01/2017 at 18:43:46 +0100, Enric Balletbo i Serra wrote:
> The bq32000 includes a trickle charge circuit to maintain the charge of the
> backup supply when a super capacitor is used.
>
> You can enable the charging circuit by setting 'trickle-resistor-ohms',
> additionally you can set TCFE to 1 to bypass the internal diode and boost
> the charge voltage of the backup supply. You might want to enable/disable
> the TCFE switch from userspace (e.g when device is only connected to a
> battery)
>
> This patch introduces a new sysfs entry to enable and disable this FET
> form userspace.
>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@xxxxxxxxxxxxx>
> ---
> .../ABI/testing/sysfs-bus-i2c-devices-bq32k | 7 ++
> drivers/rtc/rtc-bq32k.c | 76 ++++++++++++++++++++++
> 2 files changed, 83 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-bq32k
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com