DA9058 ONKEY driver
Subsystems (3)
PATCH v3 3/8 DA9058 ONKEY driver
This is the ONKEY component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD.
Signed-off-by Anthony Olech <[email protected]>
Signed-off-by David Dajun Chen <[email protected]>
--- drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/da9058_onkey.c | 177 +++++++++++++++++++++++++++++++++++++ 3 files changed, 188 insertions(+), 0 deletions(-) create mode 100644 drivers/input/misc/da9058_onkey.c
drivers/input/misc/Kconfig +10 -0
@@ -73,6 +73,16 @@ config INPUT_BMA150 To compile this driver as a module, choose M here: the module will be called bma150. +config INPUT_DA9058_ONKEY + tristate "DA9058 ONKEY support" + depends on MFD_DA9058 + help + Support the ONKEY of DA9058 PMICs as an input device + reporting power button status. + + To compile this driver as a module, choose M here: the module + will be called da9058_onkey. + config INPUT_PCSPKR tristate "PC Speaker support" depends on PCSPKR_PLATFORM
drivers/input/misc/Makefile +1 -0
@@ -41,6 +41,7 @@ obj-$(CONFIG_INPUT_PCF8574) += pcf8574_keypad.o obj-$(CONFIG_INPUT_PCSPKR) += pcspkr.o obj-$(CONFIG_INPUT_PM8XXX_VIBRATOR) += pm8xxx-vibrator.o obj-$(CONFIG_INPUT_PMIC8XXX_PWRKEY) += pmic8xxx-pwrkey.o +obj-$(CONFIG_INPUT_DA9058_ONKEY) += da9058_onkey.o obj-$(CONFIG_INPUT_POWERMATE) += powermate.o obj-$(CONFIG_INPUT_PWM_BEEPER) += pwm-beeper.o obj-$(CONFIG_INPUT_RB532_BUTTON) += rb532_button.o
drivers/input/misc/da9058_onkey.c new file +177 -0
177 lines not on this page · raw message
Signature · 1 line
end-of-patch for NEW DRIVER V3
Dmitry Torokhov
maintainerQuoted 6 lines · Anthony Olech
This is the ONKEY component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD.
Signed-off-by Anthony Olech <[email protected]>Signed-off-by David Dajun Chen <[email protected]>
This is almost exact copy of da9052_onkey, can they be merged together?
Thanks.
Signature · 1 line
Dmitry