From: Stanislav Brabec <utx@penguin.cz>
To: Pavel Machek <pavel@ucw.cz>
Cc: Richard Purdie <rpurdie@rpsys.net>,
lenz@cs.wisc.edu, kernel list <linux-kernel@vger.kernel.org>,
Dirk@Opfer-Online.de, arminlitzel@web.de,
Cyril Hrubis <metan@ucw.cz>,
thommycheck@gmail.com,
linux-arm-kernel <linux-arm-kernel@lists.arm.linux.org.uk>,
dbaryshkov@gmail.com, omegamoon@gmail.com, eric.miao@marvell.com,
Andrea Adami <andrea.adami@gmail.com>
Subject: Re: Zaurus suspend saga
Date: Wed, 09 Sep 2009 11:28:12 +0200 [thread overview]
Message-ID: <1252488492.4267.40.camel@utx.utx.cz> (raw)
In-Reply-To: <20090908215306.GC17228@elf.ucw.cz>
Pavel Machek wrote:
>Well, overnight charge (online) seems to result in pretty much empty
>battery...
Which kernel? I did the same in 2.6.26-RP and the battery was charged
overnight from about 60% to 100%.
I think that it is not possible to drain battery if an AC adapter
provides a sufficient voltage. But it's possible to disable charging by
a bad setting of the software.
>Is CHRG_ON pin reversed?
I am not sure, but it looks so. Both CHRG_ON resp. JK_B travel from
SCOOP PA pins to the gate of FET transistors with pull-up (probably
acts as an invertor and voltage converter) and end in EN resp. PRGM pins
of in the charging chip (SC801). You have to consult SC801 data sheet.
You can also verify both with a voltmeter connected to the battery.
CHRG_ON should cause rise of voltage on the battery pins. The rise
value should be dependent on JK_B.
Also both CP resp. STAT pins of SC801 travel through FET transistors
before it become AC_IN and CHRG_FULL.
> With my AA charger, I get "AC Status: 0", as long as battery is not
> full. It draws power for it (and battery percentage goes higher) but
> it is not even detected as charger :-(.
You have to have about 4.2V on the AC connector to get AC_IN. When
trying fast online charging, your AA charger must provide more than 4.2V
at possibly more than 1A current. Switching to slow charging, it
decreases to say >500mA online and 120mA offline. In the worst case,
your Zaurus may need nearly 2A.
You can hack the kernel to send CHRG_ON even if AC_IN is 0. But I am not
sure what will charging chip do then (data sheet will probably tell it
to you).
You can try to set SPITZ_SCP_JK_B to slow charging. Maybe voltage will
become sufficient.
> [But charge LED is lit. WTF?]
One pole of the LED is connected to AC power input, the seconds one to
the GPIO. So the logic is following:
IF (kernel says that LED should light) AND (there is sufficient voltage
on AC input) THEN (LED lights)
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
prev parent reply other threads:[~2009-09-09 9:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-06 5:26 Pavel Machek
2009-09-06 17:03 ` Rafael J. Wysocki
2009-09-06 18:01 ` Stanislav Brabec
2009-09-07 10:04 ` Pavel Machek
2009-09-06 22:29 ` Richard Purdie
2009-09-07 1:06 ` Eric Miao
2009-09-07 11:03 ` Pavel Machek
2009-09-07 11:34 ` Stanislav Brabec
2009-09-07 11:48 ` Russell King - ARM Linux
2009-09-16 12:25 ` Stanislav Brabec
2009-10-02 4:13 ` Pavel Machek
2009-10-02 7:36 ` Joe Perches
2009-09-07 12:05 ` Dmitry Eremin-Solenikov
2009-09-07 11:31 ` Pavel Machek
2009-09-07 13:10 ` Stanislav Brabec
2009-09-07 14:07 ` Richard Purdie
2009-09-07 14:52 ` Eric Miao
2009-09-07 20:36 ` Dmitry Eremin-Solenikov
2009-09-07 14:46 ` Eric Miao
2009-09-08 21:19 ` Pavel Machek
2009-09-08 21:53 ` Pavel Machek
2009-09-09 9:28 ` Stanislav Brabec [this message]
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=1252488492.4267.40.camel@utx.utx.cz \
--to=utx@penguin.cz \
--cc=Dirk@Opfer-Online.de \
--cc=andrea.adami@gmail.com \
--cc=arminlitzel@web.de \
--cc=dbaryshkov@gmail.com \
--cc=eric.miao@marvell.com \
--cc=lenz@cs.wisc.edu \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=metan@ucw.cz \
--cc=omegamoon@gmail.com \
--cc=pavel@ucw.cz \
--cc=rpurdie@rpsys.net \
--cc=thommycheck@gmail.com \
/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
all inboxes | Powered by JetHome®