Skip to content

RFC AM335x-ICE: Add support for rotary-encoder

Vignesh R linux-arm-kernel linux-devicetree linux-input linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Input: rotary-encoder- Add support for absolute encoderDocumentation/devicetree/bindings/input/rotary-encoder.txt Documentation/input/rotary-encoder.txt drivers/input/misc/Kconfig +1 more+155 -3414 replies
2/2ARM: dts: am335x-icev2: Add rotary-encoder nodearch/arm/boot/dts/am335x-icev2.dts+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] AM335x-ICE: Add support for rotary-encoder

This series adds support for rotary-encoder on AM335x-ICE that is connected to TI PCA9536 I2C GPIO expander.

The rotary encoder 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. Patch 1/2 adds DT property "rotary-encoder,absolute-encoder" to support this encoder. Since, such encoders do not actually require IRQ lines (as the encoder state can always be known by reading GPIO lines at that moment), support for polling based input is added.
The second patch adds DT entry for the rotary-encoder present on AM335x ICE board.

Tested on AM335x ICE board that has above described rotary-encoder without IRQs (polling mode).
I don't have hardware with incremental encoder or encoder with IRQ, please give it a spin on incremental encoders for sanity.

Vignesh R (2):
Input: rotary-encoder- Add support for absolute encoder
ARM: dts: am335x-icev2: Add rotary-encoder node

 .../devicetree/bindings/input/rotary-encoder.txt   |   4 +
 Documentation/input/rotary-encoder.txt             |   9 ++
 arch/arm/boot/dts/am335x-icev2.dts                 |  11 ++
 drivers/input/misc/Kconfig                         |  11 ++
 drivers/input/misc/rotary_encoder.c                | 165 ++++++++++++++++-----
 5 files changed, 166 insertions(+), 34 deletions(-)
Signature · 1 line
2.8.2