input: add driver for Bosch Sensortec's BMA150 accelerometer
Subsystems (2)
cover input: add driver for Bosch Sensortec's BMA150 accelerometer
This is version 4 of the driver for Bosch Sensortec's accelerometers BMA150 and SMB380.
I didn't really get an ack on my suggestions in the previous version, but I hope that this version covers the comments and suits your needs.
Here is the changelog:
* community review: added bma023 client id.
* community review: added irq handling for any-motion and high/low G interrupts.
* Added platfrom data struct for chip-configuration parameters.
* Removed the sysfs interfaces. These parameters are set through platform data instead.
* Removed pm_runtime, not needed if no sysfs interfaces.
* Populated default interrupt configurations as recommended by Bosch Sensortec.
--
Best regards,
Eric
Eric Andersson (1):
input: add driver for Bosch Sensortec's BMA150 accelerometer
drivers/input/misc/Kconfig | 11 + drivers/input/misc/Makefile | 1 + drivers/input/misc/bma150.c | 598 +++++++++++++++++++++++++++++++++++++++++++ include/linux/bma150.h | 62 +++++ 4 files changed, 672 insertions(+), 0 deletions(-) create mode 100644 drivers/input/misc/bma150.c create mode 100644 include/linux/bma150.h
Signature · 1 line
1.7.3.4
PATCH 1/1 input: add driver for Bosch Sensortec's BMA150 accelerometer
--- drivers/input/misc/Kconfig | 11 + drivers/input/misc/Makefile | 1 + drivers/input/misc/bma150.c | 653 +++++++++++++++++++++++++++++++++++++++++++ include/linux/bma150.h | 62 ++++ 4 files changed, 727 insertions(+), 0 deletions(-) create mode 100644 drivers/input/misc/bma150.c create mode 100644 include/linux/bma150.h
drivers/input/misc/Kconfig +11 -0
@@ -478,4 +478,15 @@ config INPUT_XEN_KBDDEV_FRONTEND To compile this driver as a module, choose M here: the module will be called xen-kbdfront. +config INPUT_BMA150 + tristate "BMA150/SMB380 acceleration sensor support" + depends on I2C + select INPUT_POLLDEV + help + Say Y here if you have Bosch Sensortec's BMA150 or SMB380 + acceleration sensor hooked to an I2C bus. + + To compile this driver as a module, choose M here: the + module will be called bma150. + endif
drivers/input/misc/Makefile +1 -0
@@ -45,4 +45,5 @@ obj-$(CONFIG_INPUT_WISTRON_BTNS) += wistron_btns.o obj-$(CONFIG_INPUT_WM831X_ON) += wm831x-on.o obj-$(CONFIG_INPUT_XEN_KBDDEV_FRONTEND) += xen-kbdfront.o obj-$(CONFIG_INPUT_YEALINK) += yealink.o +obj-$(CONFIG_INPUT_BMA150) += bma150.o
drivers/input/misc/bma150.c new file +653 -0
653 lines not on this page · raw message
include/linux/bma150.h new file +62 -0
62 lines not on this page · raw message
Signature · 1 line
1.7.3.4