linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Fritz <chf.fritz@googlemail.com>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	"device-drivers-devel@blackfin.uclinux.org"
	<device-drivers-devel@blackfin.uclinux.org>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: RE: adp5588-keys datasheet and driver question
Date: Mon, 05 Dec 2011 11:06:34 +0100	[thread overview]
Message-ID: <1323079594.2989.51.camel@mars> (raw)
In-Reply-To: <544AC56F16B56944AEC3BD4E3D59177148733EAB39@LIMKCMBX1.ad.analog.com>

On Sun, 2011-12-04 at 21:12 +0000, Hennerich, Michael wrote:
> Christoph Fritz wrote on 2011-12-03:
> > Hi Michael,
> >
> >  I had a look at the adp5588-keys driver and its datasheet.
> > There are some "slips of the pen" in it (adp5588 Rev.b):
> 
> Hi Christoph,
> 
> Good catch - however typos in datasheets shouldn't be discussed here, unless it
> influences the vital state of this driver.
> 
> >   - Page 8, Table 12, "E4 pressed" refers to binary 1000 instead of 100
> 
> Not only this obvious one - all others are wrong as well...
> 
> >   - Page 17, Table 22, Register Descriptions are mostly wrong
> 
> What's wrong with Table 22?

The column "Register Description" says "Key Event Register B [..]" for
register names KEY_EVENTD to KEY_EVENTJ. But for row KEY_EVENTA to
KEY_EVENTC it seems to be correct.

> 
> 
> > Another thing I'm curious about is in adp5588_report_events():
> >
> > int key = adp5588_read(kpad->client, Key_EVENTA + i); int key_val = key
> > & KEY_EV_MASK; [...] input_report_key(kpad->input, kpad->keycode[key_val
> > - 1], key & KEY_EV_PRESSED);
> >
> > Why is there a -1 for key_val?
> 
> Key_val == 0, is not a valid event code!
> The part emits 1..80 for keys and 97..114 for GPI events.

ah, so mark ² below Table 22 is correct :)

> So bottom line - the driver is correct but Table 12 is completely wrong.

Thanks,
 -- Christoph


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-12-05 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-03 16:00 adp5588-keys datasheet and driver question Christoph Fritz
2011-12-04 11:39 ` Christoph Fritz
2011-12-04 21:12 ` Hennerich, Michael
2011-12-05 10:06   ` Christoph Fritz [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=1323079594.2989.51.camel@mars \
    --to=chf.fritz@googlemail.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=device-drivers-devel@blackfin.uclinux.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).