linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Xiaolong CHEN <a21785@motorola.com>
Cc: linux-input@vger.kernel.org,
	Michael Hennerich <hennerich@blackfin.uclinux.org>,
	TAO HU <taohu@motorola.com>,
	"Yuan.Bo YE" <yuan-bo.ye@motorola.com>
Subject: Re: [RFC] Input: ADP5588 - Support GPI event for ADP5588 devices
Date: Thu, 10 Jun 2010 12:28:03 -0700	[thread overview]
Message-ID: <201006101228.03993.dmitry.torokhov@gmail.com> (raw)
In-Reply-To: <AANLkTinaguxmGVrx3lWqNT__xE6S2CIjoLc69TrS-yyN@mail.gmail.com>

Hi Xiaolong,

On Wednesday, June 09, 2010 07:36:14 pm Xiaolong CHEN wrote:
> Hi,
> 
> This patch supports GPI event for ADP5588 devices.
> 
> Kernel Version: 2.6.34
> 
> A column or row configured as a GPI can be programmed to be part of
> the key event table and therefore also capable of generating a key
> event interrupt. A key event interrupt caused by a GPI follows the
> same process flow as a key event interrupt caused by a key press. GPIs
> configured as part of the key event table allow single key switches
> and other GPI interrupts to bemonitored. As part of the event table,
> GPIs are represented by the decimal value 97 (0x61or 1100001) through
> the decimal value 114 (0x72 or 1110010). See Table as below for GPI
> event number assignments for rows and columns.
> 
> GPI Event Number Assignments for Rows
> Row0 Row1 Row2 Row3 Row4 Row5 Row6 Row7
> 97       98       99       100     101     102     103    104
> 
> GPI Event Number Assignments for Cols
> Col0 Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9
> 105  106   107   108   109   110   111   112  113  114
> 
> Usage:
> 1. Enable CONFIG_KEYBOARD_ADP5588_GPI_EVENT
> 2. Add gpimap and gpimapsize setting in adp5588_kpad_platform_data
> (The settings should not conflict with rows/cols for keymap)

A couple of questions:

1. Why did you go with a compile option? Is it possible to enable this
   functionality unconditionally and let board setup code specify what
   it wants to use?

2. Why did you decide to make the events switches and not keys?

Thanks.

-- 
Dmitry

  reply	other threads:[~2010-06-15  3:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10  2:36 [RFC] Input: ADP5588 - Support GPI event for ADP5588 devices Xiaolong CHEN
2010-06-10 19:28 ` Dmitry Torokhov [this message]
2010-06-17  7:33   ` Xiaolong CHEN
2010-06-22 11:12     ` [PATCH] " Xiaolong CHEN
2010-06-24  4:11     ` [RFC] " TAO HU
2010-06-25  8:15       ` Dmitry Torokhov
2010-06-11  2:39 ` TAO HU
     [not found]   ` <544AC56F16B56944AEC3BD4E3D5917712E66C5BE31@LIMKCMBX1.ad.analog.com>
2010-06-11 12:04     ` TAO HU
  -- strict thread matches above, loose matches on Subject: below --
2010-06-09 10:37 Xiaolong CHEN

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=201006101228.03993.dmitry.torokhov@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=a21785@motorola.com \
    --cc=hennerich@blackfin.uclinux.org \
    --cc=linux-input@vger.kernel.org \
    --cc=taohu@motorola.com \
    --cc=yuan-bo.ye@motorola.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;
as well as URLs for NNTP newsgroup(s).