Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1406747
| From | Vignesh R <vigneshr@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder |
| Date | 2016-05-25 10:50 +0200 |
| Message-ID | <rCCFQ-7fL-1@gated-at.bofh.it> (permalink) |
| References | <rAs7T-6aN-5@gated-at.bofh.it> <rAs7U-6aN-29@gated-at.bofh.it> <rAVCW-7On-23@gated-at.bofh.it> <rBUlr-427-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Dmitry, On 05/23/2016 02:48 PM, R, Vignesh wrote: > > > On 5/20/2016 10:04 PM, Dmitry Torokhov wrote: >> On Thu, May 19, 2016 at 02:34:00PM +0530, Vignesh R wrote: >>> There are rotary-encoders where GPIO lines reflect the actual position >>> of the rotary encoder dial. For example, if dial points to 9, then four >>> GPIO lines connected to the rotary encoder will read HLLH(1001b = 9). >>> Add support for such rotary-encoder. >>> The driver relies on rotary-encoder,absolute-encoder DT property to >>> detect such encoders. >>> Since, GPIO IRQs are not necessary to work with >>> such encoders, optional polling mode support is added using >>> input_poll_dev skeleton. This is can be used by enabling >>> CONFIG_INPUT_GPIO_ROTARY_ENCODER_POLL_MODE_SUPPORT. >> >> Does this really belong to a rotary encoder and not a new driver that >> simply translates gpio-encoded value into ABS* event? >> > > Currently rotary encoder driver only supports incremental/step counting > rotary devices. However, the device that is there on am335x-ice is an > absolute encoder but, IMO, nevertheless a kind of rotary encoder. The > only difference is that there is no need to count steps and the absolute > position value is always available as binary encoded state of connected > GPIOs. > The hardware on am335x-ice is a mechanical rotary encoder switch > connected over 4 GPIOs. It is same as binary encoder described at [1] > (except there are 4 GPIO lines), so this lead me to add support in > rotary-encoder. > > [1]https://en.wikipedia.org/wiki/Rotary_encoder#Standard_binary_encoding > Could you please comment on how would you like to support above described encoder: As a new driver or with existing driver with new compatible/mode setting via DT or as suggest by Uwe in another reply? IMHO, supporting using existing driver with new mode/compatible string looks a better option as the hardware is a kind of rotary-encoder. -- Regards Vignesh
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 0/2] AM335x-ICE: Add support for rotary-encoder Vignesh R <vigneshr@ti.com> - 2016-05-19 11:10 +0200
[RFC PATCH 2/2] ARM: dts: am335x-icev2: Add rotary-encoder node Vignesh R <vigneshr@ti.com> - 2016-05-19 11:10 +0200
[RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Vignesh R <vigneshr@ti.com> - 2016-05-19 11:10 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-05-19 13:30 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Vignesh R <vigneshr@ti.com> - 2016-05-19 13:50 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-05-20 18:40 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder "R, Vignesh" <vigneshr@ti.com> - 2016-05-23 11:30 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Vignesh R <vigneshr@ti.com> - 2016-05-25 10:50 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Rob Herring <robh@kernel.org> - 2016-05-20 23:50 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Uwe Kleine-König <u.kleine-koenig@pengutronix.de> - 2016-05-22 12:30 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder "R, Vignesh" <vigneshr@ti.com> - 2016-05-23 13:30 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Uwe Kleine-König <u.kleine-koenig@pengutronix.de> - 2016-05-23 15:20 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Vignesh R <vigneshr@ti.com> - 2016-05-24 07:20 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Uwe Kleine-König <u.kleine-koenig@pengutronix.de> - 2016-05-24 10:30 +0200
Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder Vignesh R <vigneshr@ti.com> - 2016-05-25 10:50 +0200
csiph-web