mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vignesh R <vigneshr@ti.com>
To: Daniel Mack <daniel@zonque.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: "Rob Herring" <robh+dt@kernel.org>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Russell King" <linux@armlinux.org.uk>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"Daniel Hung-yu Wu" <hywu@google.com>,
	"Grant Grundler" <grundler@chromium.org>,
	"S Twiss" <stwiss.opensource@diasemi.com>,
	"Moritz Fischer" <moritz.fischer@ettus.com>,
	"Jorge Ramirez-Ortiz" <jorge.ramirez-ortiz@linaro.org>,
	"John Stultz" <john.stultz@linaro.org>,
	"Andrew F . Davis" <afd@ti.com>,
	linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Subject: Re: [PATCH v3 0/2] AM335x-ICE: Add support for rotary switch
Date: Wed, 24 Aug 2016 14:45:17 +0530	[thread overview]
Message-ID: <5294e820-4946-a196-549f-76a349b6606d@ti.com> (raw)
In-Reply-To: <c5385d42-14e4-d5ca-370e-5b04e37d873d@zonque.org>

Hi,

On Wednesday 24 August 2016 02:05 PM, Daniel Mack wrote:
> Hi,
> 
> On 08/24/2016 09:58 AM, Vignesh R wrote:
>> This series adds support for rotary-switch on AM335x-ICE that is
>> connected to TI PCA9536 I2C GPIO expander.
>> First patch adds new generic driver to read status of group of GPIO
>> lines and report the value as an input event. The second patch adds DT
>> entries for the same.
>>
>> v2: https://lkml.org/lkml/2016/8/23/111
>> v1: https://lkml.org/lkml/2016/8/12/7
> 
> Is there a reason why the rotary-encoder driver cannot handle this?
> Commit 7dde4e74744 ("Input: rotary-encoder - support more than 2 gpios
> as input") added support for that mode AFAIU.
> 

Rotary encoder driver handles incremental encoders only and does not
support absolute encoders. The rotary switch on am335x-ice is different
from the incremental encoders in the
sense that GPIO line status directly reflect the position(number)
pointed by the dial of the encoder. So, there is no need to count steps
or know the direction of rotation as it does not matter.

I did try to enhance rotary-encoder driver to support absolute
encoder[1] but the comment there was to write new driver that simply
translates gpio-encoded value into ABS* event. Indeed, the new driver
looks more simple and can handle more such hardwares.

[1] https://lkml.org/lkml/2016/5/19/98


-- 
Regards
Vignesh

  reply	other threads:[~2016-08-24  9:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24  7:58 Vignesh R
2016-08-24  7:58 ` [PATCH v3 1/2] input: misc: Add generic input driver to read encoded GPIO lines Vignesh R
2016-08-25 16:56   ` Dmitry Torokhov
2016-08-29  4:20     ` Vignesh R
2016-08-30  3:25       ` Dmitry Torokhov
2016-08-30 18:45         ` Tony Lindgren
2016-08-24  7:58 ` [PATCH v3 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder Vignesh R
2016-08-24  8:35 ` [PATCH v3 0/2] AM335x-ICE: Add support for rotary switch Daniel Mack
2016-08-24  9:15   ` Vignesh R [this message]
2016-08-24 11:01     ` Daniel Mack
2016-09-05  7:50     ` Uwe Kleine-König

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=5294e820-4946-a196-549f-76a349b6606d@ti.com \
    --to=vigneshr@ti.com \
    --cc=afd@ti.com \
    --cc=arnd@arndb.de \
    --cc=daniel@zonque.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=grundler@chromium.org \
    --cc=hywu@google.com \
    --cc=john.stultz@linaro.org \
    --cc=jorge.ramirez-ortiz@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=moritz.fischer@ettus.com \
    --cc=robh+dt@kernel.org \
    --cc=stwiss.opensource@diasemi.com \
    --cc=tony@atomide.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /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®