Input: new da7280 haptic driver

Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with
multiple mode and integrated waveform memory and wideband support.
It communicates via an I2C bus to the device.

Signed-off-by: Roy Im <roy.im.opensource@diasemi.com>
Reviewed-by: Jes Sorensen <Jes.Sorensen@gmail.com>.
Link: https://lore.kernel.org/r/1e293e8c4830b09255af3b7e1721b73afaefdfa3.1606320459.git.Roy.Im@diasemi.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Roy Im 2020-11-28 19:36:26 -08:00 committed by Dmitry Torokhov
parent 4f3c429ec7
commit cd3f609823
3 changed files with 1342 additions and 0 deletions

View File

@ -620,6 +620,18 @@ config INPUT_RB532_BUTTON
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called rb532_button. module will be called rb532_button.
config INPUT_DA7280_HAPTICS
tristate "Dialog Semiconductor DA7280 haptics support"
depends on INPUT && I2C
select REGMAP_I2C
help
Say Y to enable support for the Dialog DA7280 haptics driver.
The haptics can be controlled by PWM or GPIO
with I2C communication.
To compile this driver as a module, choose M here: the
module will be called da7280.
config INPUT_DA9052_ONKEY config INPUT_DA9052_ONKEY
tristate "Dialog DA9052/DA9053 Onkey" tristate "Dialog DA9052/DA9053 Onkey"
depends on PMIC_DA9052 depends on PMIC_DA9052

View File

@ -26,6 +26,7 @@ obj-$(CONFIG_INPUT_CMA3000) += cma3000_d0x.o
obj-$(CONFIG_INPUT_CMA3000_I2C) += cma3000_d0x_i2c.o obj-$(CONFIG_INPUT_CMA3000_I2C) += cma3000_d0x_i2c.o
obj-$(CONFIG_INPUT_COBALT_BTNS) += cobalt_btns.o obj-$(CONFIG_INPUT_COBALT_BTNS) += cobalt_btns.o
obj-$(CONFIG_INPUT_CPCAP_PWRBUTTON) += cpcap-pwrbutton.o obj-$(CONFIG_INPUT_CPCAP_PWRBUTTON) += cpcap-pwrbutton.o
obj-$(CONFIG_INPUT_DA7280_HAPTICS) += da7280.o
obj-$(CONFIG_INPUT_DA9052_ONKEY) += da9052_onkey.o obj-$(CONFIG_INPUT_DA9052_ONKEY) += da9052_onkey.o
obj-$(CONFIG_INPUT_DA9055_ONKEY) += da9055_onkey.o obj-$(CONFIG_INPUT_DA9055_ONKEY) += da9055_onkey.o
obj-$(CONFIG_INPUT_DA9063_ONKEY) += da9063_onkey.o obj-$(CONFIG_INPUT_DA9063_ONKEY) += da9063_onkey.o

1329
drivers/input/misc/da7280.c Normal file

File diff suppressed because it is too large Load Diff