bma023: Support for Bosch BMA023, BMA150 and SMB380 accelerometers
Subsystems (2)
PATCH 1/1 bma023: Support for Bosch BMA023, BMA150 and SMB380 accelerometers
From: Joseph Lai <[email protected]>
This patch supports driver for BOSCH BMA023 and SMB380 which are accelerometers.
We expose the data from this device to users through sysfs interface in baically the same manner as the lis drivers so that the data can be used for one off uses, and also as as an input device for joystick type uses.
The driver allows the setting and reading of the device's properties via sysfs attributes.
Now with documentation for the sysfs interface and pointer to BMA150 data sheet.
Based on an original driver
---
drivers/input/misc/Kconfig | 10 drivers/input/misc/Makefile | 1 drivers/input/misc/bma023.c | 1313 +++++++++++++++++++++++++++++++++++++++++++ include/linux/i2c/bma023.h | 44 + 4 files changed, 1368 insertions(+), 0 deletions(-) create mode 100644 drivers/input/misc/bma023.c create mode 100644 include/linux/i2c/bma023.h
drivers/input/misc/Kconfig +10 -0
@@ -467,4 +467,14 @@ config INPUT_XEN_KBDDEV_FRONTEND To compile this driver as a module, choose M here: the module will be called xen-kbdfront. +config INPUT_BMA023 + tristate "BMA023/SMB380 Triaxial acceleration sensor" + depends on I2C + help + Say Y here if you want to support Bosch BMA023/SMB380 + connected via an I2C bus. + + To compile this driver as a module, choose M here: the + module will be called bma023. + endif
drivers/input/misc/Makefile +1 -0
@@ -17,6 +17,7 @@ obj-$(CONFIG_INPUT_ATI_REMOTE) += ati_remote.o obj-$(CONFIG_INPUT_ATI_REMOTE2) += ati_remote2.o obj-$(CONFIG_INPUT_ATLAS_BTNS) += atlas_btns.o obj-$(CONFIG_INPUT_BFIN_ROTARY) += bfin_rotary.o +obj-$(CONFIG_INPUT_BMA023) += bma023.o obj-$(CONFIG_INPUT_CM109) += cm109.o obj-$(CONFIG_INPUT_CMA3000) += cma3000_d0x.o obj-$(CONFIG_INPUT_CMA3000_I2C) += cma3000_d0x_i2c.o
drivers/input/misc/bma023.c new file +1313 -0
1,313 lines not on this page · raw message
include/linux/i2c/bma023.h new file +44 -0
44 lines not on this page · raw message
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html