Skip to content

Commit c38fe1b

Browse files
james1993lag-linaro
authored andcommitted
Input: cs40l50 - Add support for the CS40L50 haptic driver
Introduce support for Cirrus Logic Device CS40L50: a haptic driver with waveform memory, integrated DSP, and closed-loop algorithms. The input driver provides the interface for control of haptic effects through the device. Signed-off-by: James Ogletree <[email protected]> Reviewed-by: Jeff LaBundy <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent cb62637 commit c38fe1b

File tree

4 files changed

+567
-0
lines changed

4 files changed

+567
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5213,6 +5213,7 @@ M: Ben Bright <[email protected]>
52135213
52145214
S: Supported
52155215
F: Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml
5216+
F: drivers/input/misc/cs40l*
52165217
F: drivers/mfd/cs40l*
52175218
F: include/linux/mfd/cs40l*
52185219

drivers/input/misc/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ config INPUT_BMA150
140140
To compile this driver as a module, choose M here: the
141141
module will be called bma150.
142142

143+
config INPUT_CS40L50_VIBRA
144+
tristate "CS40L50 Haptic Driver support"
145+
depends on MFD_CS40L50_CORE
146+
help
147+
Say Y here to enable support for Cirrus Logic's CS40L50
148+
haptic driver.
149+
150+
To compile this driver as a module, choose M here: the
151+
module will be called cs40l50-vibra.
152+
143153
config INPUT_E3X0_BUTTON
144154
tristate "NI Ettus Research USRP E3xx Button support."
145155
default n

drivers/input/misc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ obj-$(CONFIG_INPUT_CMA3000) += cma3000_d0x.o
2828
obj-$(CONFIG_INPUT_CMA3000_I2C) += cma3000_d0x_i2c.o
2929
obj-$(CONFIG_INPUT_COBALT_BTNS) += cobalt_btns.o
3030
obj-$(CONFIG_INPUT_CPCAP_PWRBUTTON) += cpcap-pwrbutton.o
31+
obj-$(CONFIG_INPUT_CS40L50_VIBRA) += cs40l50-vibra.o
3132
obj-$(CONFIG_INPUT_DA7280_HAPTICS) += da7280.o
3233
obj-$(CONFIG_INPUT_DA9052_ONKEY) += da9052_onkey.o
3334
obj-$(CONFIG_INPUT_DA9055_ONKEY) += da9055_onkey.o

0 commit comments

Comments
 (0)