From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Andres Salomon <dilinger@collabora.co.uk>,
cbou@mail.ru, dwmw2@infradead.org, linux-kernel@vger.kernel.org,
richard@laptop.org, Andrew Morton <akpm@linux-foundation.org>,
Paul Fox <pgf@laptop.org>,
dsaxena@laptop.org
Subject: Re: [PATCH 5/5] power_supply: add a charge_type status to the api, and use it for olpc driver
Date: Tue, 30 Jun 2009 23:02:39 +0400 [thread overview]
Message-ID: <20090630190239.GA21667@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20090630155713.GG13961@sirena.org.uk>
On Tue, Jun 30, 2009 at 04:57:14PM +0100, Mark Brown wrote:
> On Tue, Jun 30, 2009 at 07:37:19PM +0400, Anton Vorontsov wrote:
> > On Tue, Jun 30, 2009 at 11:04:30AM -0400, Andres Salomon wrote:
>
> > > As far as the slow type, I don't see the need either, but I assumed
> > > Anton was aware of devices that differentiated between slow and
> > > trickle charging.
>
> > Yep, there are two charging modes in Openmoko Neo FreeRunners:
>
> > - 100 mA. It's "slow" mode -- used when the Neo couldn't negotiate
> > with USB host, so it is permitted to only draw 100 mA from VBUS.
>
> I strongly suspect you will find that the "slow" mode there is actually
> a trickle charge. It's a lot more practical to trickle charge in mobile
> phone sized systems since the batteries are so much smaller than laptop
> batteries.
Could be.
Anyway, I was curious what terminology is used in specs, and so
I took a look at pcf50633 spec.
"When a suitable adapter or USB supply is detected, the battery is
charged with a constant precharge current (CC mode). The constant
current is selected via the prechgcur bits
...
For a Li-ion battery, the precharge current is typically 0.1C
(C = charge rate = the charge current which will fully charge the
battery in one hour)."
And then what is "fast" charge in pcf50633:
"Fast charging of a battery is only permitted within a certain
temperature window (typically between 0 and 50 °C).
...
If charging is via the adapter, the fast charge current is
determined by the fstchgcur1 bit settings. If charging is via
the USB connector, bits fstchgcur2 determine the fast charge
current. For a Li-Ion battery, the fast-charge current is
typically between 0.7 C and 1.0 C."
There is also precharge-wait and fastcharge-wait modes, FWIW.
But we don't expose this information to the userspace.
> > - 500/1000 mA. It's so-called "fast" mode, can be enabled after
> > successful negotiation with the USB host.
>
> Even if the 500mA is available you'll not always be able to do a fast
> charge from a USB supply - some systems draw enough current to require
> that the USB supply be suppliemented from battery when they're being
> heavily used.
True. Though, for these cases there is an AC charger that can
do 2A. ;-)
> > Well, this kind slow charging isn't official terminology, and
> > I'm not sure if we should use it. But I'm fine with it since we
> > can always remove "Slow" mode (i.e. report it as "Fast"), and
> > userspace won't break.
>
> I guess my main question was if it was distinguishable from trickle
> charging.
Probably not, Fast/Slow/Trickle are quite vague terms anyway.
I'd prefer if we could measure this in some real units, but alas...
Thanks,
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2009-06-30 19:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-30 6:17 [PATCH 5/5] power_supply: add a charge_type status to the api, and use it for olpc driver Andres Salomon
2009-06-30 11:31 ` Mark Brown
2009-06-30 15:04 ` Andres Salomon
2009-06-30 15:37 ` Anton Vorontsov
2009-06-30 15:57 ` Mark Brown
2009-06-30 19:02 ` Anton Vorontsov [this message]
2009-06-30 19:15 ` Mark Brown
2009-06-30 23:14 ` Anton Vorontsov
2009-07-02 13:45 ` Andres Salomon
2009-07-02 14:06 ` Mark Brown
2009-07-02 14:26 ` Anton Vorontsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090630190239.GA21667@oksana.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=akpm@linux-foundation.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbou@mail.ru \
--cc=dilinger@collabora.co.uk \
--cc=dsaxena@laptop.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pgf@laptop.org \
--cc=richard@laptop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox