Skip to content

Input: adafruit-seesaw: use dev_err_probe and add IRQ support

[email protected] linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Input: adafruit-seesaw - switch to using dev_err_probe()drivers/input/joystick/adafruit-seesaw.c+6 -130 replies
2/3Input: adafruit-seesaw - add interrupt supportdrivers/input/joystick/adafruit-seesaw.c+103 -384 replies
3/3dt-bindings: input: adafruit-seesaw-gamepad: fix interrupt polarityDocumentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml+10 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Input: adafruit-seesaw: use dev_err_probe and add IRQ support

From: Charles Dias <[email protected]>

This series improves the Adafruit seesaw gamepad driver in two steps.

The first patch switches to using dev_err_probe() in seesaw_probe() to improve error handling.

The second patch adds optional interrupt support for button events when an IRQ is described in DTS. Joystick axes remain polled because the default Adafruit seesaw gamepad firmware exposes button interrupts through the GPIO module, while the joystick positions are read from ADC channels.

When no IRQ is described in DTS, the driver continues to operate in pure polling mode.

This series was validated on a BeaglePlay board with the Adafruit Seesaw Gamepad, both with the interrupt enabled in DTS and without it.

Charles Dias (3):
Input: adafruit-seesaw - switch to using dev_err_probe()
Input: adafruit-seesaw - add interrupt support
dt-bindings: input: adafruit-seesaw-gamepad: fix interrupt polarity

 .../input/adafruit,seesaw-gamepad.yaml        |  12 +-
 drivers/input/joystick/adafruit-seesaw.c      | 160 ++++++++++++------
 2 files changed, 119 insertions(+), 53 deletions(-)