Skip to content

RFC Input: adc-joystick: add detachable devices support

Siarhei Volkau linux-devicetree linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: adc-joystick: add valid-rangeDocumentation/devicetree/bindings/input/adc-joystick.yaml+62 -03 replies
2/2Input: adc-joystick - add detachable devices supportdrivers/input/joystick/adc-joystick.c+57 -10 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] Input: adc-joystick: add detachable devices support

For detachable or lock-able joysticks the ADC lanes might be biased to GND or AVDD when the joystick is detached/locked.

One such kind of joystick is found in the Ritmix RZX-50 handheld. The joystick is non-detachable, although ADC lane biased to power supply when the "Hold" switch is activated.

To avoid reporting old/broken measurements valid-range is introduced. When measured value is outside valid-range the driver reports safe center position for corresponding axis.

Siarhei Volkau (2):
dt-bindings: adc-joystick: add valid-range
Input: adc-joystick - add detachable devices support

 .../bindings/input/adc-joystick.yaml          | 62 +++++++++++++++++++
 drivers/input/joystick/adc-joystick.c         | 58 ++++++++++++++++-
 2 files changed, 119 insertions(+), 1 deletion(-)
Signature · 1 line
2.36.1