From: Stanislav Brabec <utx@penguin.cz>
To: Pavel Machek <pavel@ucw.cz>
Cc: 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.infradead.org>,
dbaryshkov@gmail.com, omegamoon@gmail.com, eric.y.miao@gmail.com
Subject: Re: spitz: add gpio button support (AK_INT and remote control description)
Date: Tue, 06 Oct 2009 13:48:52 +0200 [thread overview]
Message-ID: <1254829732.3546.35.camel@utx.utx.cz> (raw)
In-Reply-To: <20091006074635.GA2775@ucw.cz>
Pavel Machek wrote:
> I'm not sure what AK_INT is, nor what event it should
> generate.
AK_INT: remote control detect
How it should work on spitz:
The default state of the remote pin of audio barrel connector is a weak
pull-up.
Button is pressed. => Voltage on remote pin decreases. => Hardware
defined threshold voltage is reached. => AK_INT is triggered. => Driver
sets SPITZ_SCP2_AKIN_PULLUP (it connects stronger and more power hungry
pull-up), ignores AK_INT change, sets MAX1111 to channel 0, reads value
from A/D converter.
After some debouncing:
The value is below threshold. => Decode the value and generate input
event.
The value is over threshold. => Switch SPITZ_SCP2_AKIN_PULLUP back,
activate AK_INT interrupt and wait for next edge.
The value is near zero. => A standard 3-ring earphone connector seems
to be inserted. AK_INT will be "active" all the time. To save stronger
pull-up power, behave like the value over threshold and ignore AK_INT
until possible next change (remove earphone, insert remote).
Some of these actions should probably cause wake-up. It would be nice to
wake-up sleeping Zaurus by pressing Play button and start to play.
The driver is available e. g. in 2.6.26-RP kernel as
sharpsl-rc-r1.patch. I plan to rewrite it to a generic "resistor matrix
keyboard" and then sent to vanilla.
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx
next prev parent reply other threads:[~2009-10-06 11:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-06 7:46 spitz: add gpio button support Pavel Machek
2009-10-06 11:48 ` Stanislav Brabec [this message]
2009-10-07 8:58 ` spitz: add gpio button support (AK_INT and remote control description) Pavel Machek
2009-10-07 11:29 ` Stanislav Brabec
2009-10-07 12:06 ` Mark Brown
2009-10-07 14:27 ` Eric Miao
2009-10-06 20:09 ` spitz: add gpio button support (fixes regression) Pavel Machek
2009-10-15 21:16 ` Stanislav Brabec
2009-10-15 21:20 ` Pavel Machek
2009-10-15 21:47 ` Stanislav Brabec
2009-10-15 21:52 ` Pavel Machek
2009-10-16 3:01 ` Eric Miao
2009-10-16 9:28 ` Stanislav Brabec
2009-10-16 9:39 ` Pavel Machek
2009-10-16 18:50 ` [PATCH] " Stanislav Brabec
2009-10-16 19:05 ` Russell King - ARM Linux
2009-10-16 22:22 ` Stanislav Brabec
2009-10-17 4:42 ` Eric Miao
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=1254829732.3546.35.camel@utx.utx.cz \
--to=utx@penguin.cz \
--cc=Dirk@Opfer-Online.de \
--cc=arminlitzel@web.de \
--cc=dbaryshkov@gmail.com \
--cc=eric.y.miao@gmail.com \
--cc=lenz@cs.wisc.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--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®