aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick/Kconfig
diff options
context:
space:
mode:
authorCharles Mirabile <cmirabil@redhat.com>2022-04-20 14:00:20 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-04-24 18:25:02 -0700
commit41657514c796e1f0a8cf289780aff8f79643b7e5 (patch)
tree96764b7b47efd153e99d3bf0c3ab82d495bc03da /drivers/input/joystick/Kconfig
parentInput: clps711x-keypad - use syscon_regmap_lookup_by_phandle (diff)
downloadlinux-dev-41657514c796e1f0a8cf289780aff8f79643b7e5.tar.xz
linux-dev-41657514c796e1f0a8cf289780aff8f79643b7e5.zip
Input: add Raspberry Pi Sense HAT joystick driver
This patch adds the driver for the Sense HAT joystick. It outputs BTN_DPAD key events when moved in any of the four directions and the BTN_SELECT event when depressed. Co-developed-by: Daniel Bauman <dbauman@redhat.com> Signed-off-by: Daniel Bauman <dbauman@redhat.com> Co-developed-by: Mwesigwa Guma <mguma@redhat.com> Signed-off-by: Mwesigwa Guma <mguma@redhat.com> Co-developed-by: Joel Savitz <jsavitz@redhat.com> Signed-off-by: Joel Savitz <jsavitz@redhat.com> Signed-off-by: Charles Mirabile <cmirabil@redhat.com> Link: https://lore.kernel.org/r/20220419205158.28088-3-cmirabil@redhat.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/joystick/Kconfig')
-rw-r--r--drivers/input/joystick/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig
index 3b23078bc7b5..505a032e2786 100644
--- a/drivers/input/joystick/Kconfig
+++ b/drivers/input/joystick/Kconfig
@@ -399,4 +399,15 @@ config JOYSTICK_N64
Say Y here if you want enable support for the four
built-in controller ports on the Nintendo 64 console.
+config JOYSTICK_SENSEHAT
+ tristate "Raspberry Pi Sense HAT joystick"
+ depends on INPUT && I2C
+ select MFD_SIMPLE_MFD_I2C
+ help
+ Say Y here if you want to enable the driver for the
+ the Raspberry Pi Sense HAT.
+
+ To compile this driver as a module, choose M here: the
+ module will be called sensehat_joystick.
+
endif