linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH RFC] Add support for the matrix keyboard used in Bachmann's OT200
Date: Wed, 12 Dec 2012 11:02:55 -0800	[thread overview]
Message-ID: <20121212190255.GB10583@core.coreip.homeip.net> (raw)
In-Reply-To: <1355319341-26597-1-git-send-email-christian.gmeiner@gmail.com>

Hi Christian,

On Wed, Dec 12, 2012 at 02:35:41PM +0100, Christian Gmeiner wrote:
> The used matrix keyboard controler (implemented via FPGA) supports
> two simultaneous key presses. The driver sends the raw register
> values for each key (row & column) to userspace.
> 
> In userspace a small tool is running, which reads a 'mapping'
> file, processes the key events and send the configured keycodes
> back to the kernel via uinput.

This is a bit roundabout way of doing it. Why can't the kernel driver
perform lookup in it's internal table and emit proper keycodes itself?
We have wealth of options for supplying keymaps to the kernel drivers,
including:

- platform data
- device tree data
- loading from userspace via EVIOCSKEYCODE ioctl.

Thanks.

-- 
Dmitry

  reply	other threads:[~2012-12-12 19:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 13:35 [PATCH RFC] Add support for the matrix keyboard used in Bachmann's OT200 Christian Gmeiner
2012-12-12 19:02 ` Dmitry Torokhov [this message]
2012-12-13  8:17   ` Christian Gmeiner
2012-12-16 13:33     ` Christian Gmeiner

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=20121212190255.GB10583@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=christian.gmeiner@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).