Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436967

Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver

From Bruno Prémont <bonbons@linux-vserver.org>
Newsgroups linux.kernel
Subject Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver
Date 2016-07-05 14:50 +0200
Message-ID <rRxXz-2Re-5@gated-at.bofh.it> (permalink)
References <rRrfr-73n-3@gated-at.bofh.it> <rRrfr-73n-5@gated-at.bofh.it> <rRrfr-73n-1@gated-at.bofh.it> <rRxXz-2Re-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 05 Jul 2016 16:47:38 +0800 Icenowy Zheng wrote:
> I read the datasheet of axp20x, and then found that this driver does
> not support backup RTC battery.
> (But maybe backup battery do not need a driver -- at least on IBM PC
> it has no driver)

A driver is needed to enable/disable the RTC battery charging (unless
uboot does it).
However all the driver can do according to datasheet is configure the
charge voltage/current or disable charging completely.
Monitoring RTC battery is not possible, neither is presence detection.

So driver should just apply configuration it finds in device-tree and
eventually share that information via power supply class.

> And I don't know whether the axp20x has default Li-ion/LiPo battery
> OCV parameter. (axp22x seems to be have a set of default OCV)

It seems to have default OCV parameters as well. With empty RTC
battery OCV values are present.

> You can test this driver on AXP20x. (I think I didn't access to
> AXP22x-specified registers in the power supply code)

Bruno

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver Michael Haas <michael.haas@mailbox.org> - 2016-07-05 07:40 +0200
  Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver "maxime.ripard@free-electrons.com" <maxime.ripard@free-electrons.com> - 2016-07-05 11:30 +0200
    Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver Bruno Prémont <bonbons@linux-vserver.org> - 2016-07-05 15:00 +0200
  Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver Bruno Prémont <bonbons@linux-vserver.org> - 2016-07-05 14:50 +0200
  Re: [linux-sunxi] [PATCH 2/4] power: add axp20x-battery driver Michael Haas <haas@computerlinguist.org> - 2016-07-06 06:40 +0200

csiph-web