RE: [PATCH 0/2] GPIO joystick driver

2015-02-18 Thread Holmberg, Hans
A digital joystick driver needs to report three states per axis: min, max and neutral. The hardware only have two signals per axis(i.e. up and down) however. See http://wiki.icomp.de/wiki/DB9-Joystick This makes gpio-keys pretty much impossible to use for joysticks - as the driver only

Re: [PATCH 0/2] GPIO joystick driver

2015-02-11 Thread 'Dmitry Torokhov'
On Wed, Feb 11, 2015 at 08:49:16AM +, Holmberg, Hans wrote: As far as I can tell, there is no way to specify values for ABS-keys in the device tree binding. It may not be present in device tree binding, but the driver does support it, so I would rather extend the binding than

RE: [PATCH 0/2] GPIO joystick driver

2015-02-11 Thread Holmberg, Hans
As far as I can tell, there is no way to specify values for ABS-keys in the device tree binding. It may not be present in device tree binding, but the driver does support it, so I would rather extend the binding than have a brand new driver. All right, I find it a bit like whacking

RE: [PATCH 0/2] GPIO joystick driver

2015-02-09 Thread Holmberg, Hans
As far as I can tell, there is no way to specify values for ABS-keys in the device tree binding. It may not be present in device tree binding, but the driver does support it, so I would rather extend the binding than have a brand new driver. All right, I find it a bit like whacking a

Re: [PATCH 0/2] GPIO joystick driver

2015-02-07 Thread Dmitry Torokhov
Hi Hans, On Sat, Feb 07, 2015 at 07:35:46AM +, Holmberg, Hans wrote: Hi Dmitry, Why do we need this new driver when we have gpio-keys driver that can be configured to emit ABS_* events? As far as I can tell, there is no way to specify values for ABS-keys in the device tree

RE: [PATCH 0/2] GPIO joystick driver

2015-02-06 Thread Holmberg, Hans
Hi Dmitry, Why do we need this new driver when we have gpio-keys driver that can be configured to emit ABS_* events? As far as I can tell, there is no way to specify values for ABS-keys in the device tree binding. While both the device tree binding and the gpio-keys driver could possibly

[PATCH 0/2] GPIO joystick driver

2015-02-06 Thread Hans Holmberg
This series adds a driver for digital joysticks connected via GPIOs. Tested on Rasperry Pi and Minnowboard MAX using evtest. The DSDT AML-code snippet below illustrates how to configure a joystick on the Minnowboard MAX, using the new _DSD support in the kernel. Scope (_SB) { Device

Re: [PATCH 0/2] GPIO joystick driver

2015-02-06 Thread Dmitry Torokhov
Hi Hans, On February 6, 2015 1:32:00 AM PST, Hans Holmberg hans.holmb...@intel.com wrote: This series adds a driver for digital joysticks connected via GPIOs. Why do we need this new driver when we have gpio-keys driver that can be configured to emit ABS_* events? Thanks. -- Dmitry -- To