]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: imu: smi240: add driver
authorShen Jianping <Jianping.Shen@de.bosch.com>
Fri, 18 Oct 2024 13:52:34 +0000 (15:52 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Oct 2024 18:19:24 +0000 (19:19 +0100)
commit99918e786a765824246633afbad9b4c69063c593
tree159c27e9f4565550387afdce9b0f28c415fba47e
parent80467bdb75cb69ffe6b0a9bc8b6eecd8c247daff
iio: imu: smi240: add driver

add the iio driver for bosch imu smi240. The smi240 is a combined
three axis angular rate and three axis acceleration sensor module
with a measurement range of +/-300°/s and up to 16g. A synchronous
acc and gyro sampling can be triggered by setting the capture bit
in spi read command.

Implemented features:
* raw data access for each axis through sysfs
* tiggered buffer for continuous sampling
* synchronous acc and gyro data from tiggered buffer

Signed-off-by: Shen Jianping <Jianping.Shen@de.bosch.com>
Link: https://patch.msgid.link/20241018135234.5446-3-Jianping.Shen@de.bosch.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/Kconfig
drivers/iio/imu/Makefile
drivers/iio/imu/smi240.c [new file with mode: 0644]