Commit 09a642b7 authored by Ge Gao's avatar Ge Gao Committed by Jonathan Cameron
Browse files

Invensense MPU6050 Device Driver.



This the basic functional Invensense MPU6050 Device driver.

Signed-off-by: default avatarGe Gao <ggao@invensense.com>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 8ce4a56a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
What:           /sys/bus/iio/devices/iio:deviceX/in_gyro_matrix
What:           /sys/bus/iio/devices/iio:deviceX/in_accel_matrix
What:           /sys/bus/iio/devices/iio:deviceX/in_magn_matrix
KernelVersion:  3.4.0
Contact:        linux-iio@vger.kernel.org
Description:
		This is mounting matrix for motion sensors. Mounting matrix
		is a 3x3 unitary matrix. A typical mounting matrix would look like
		[0, 1, 0; 1, 0, 0; 0, 0, -1]. Using this information, it would be
		easy to tell the relative positions among sensors as well as their
		positions relative to the board that holds these sensors. Identity matrix
		[1, 0, 0; 0, 1, 0; 0, 0, 1] means sensor chip and device are perfectly
		aligned with each other. All axes are exactly the same.
+2 −0
Original line number Diff line number Diff line
@@ -36,3 +36,5 @@ config IIO_ADIS_LIB_BUFFER
	help
	  A set of buffer helper functions for the Analog Devices ADIS* device
	  family.

source "drivers/iio/imu/inv_mpu6050/Kconfig"
+2 −0
Original line number Diff line number Diff line
@@ -11,3 +11,5 @@ adis_lib-y += adis.o
adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_trigger.o
adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_buffer.o
obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o

obj-y += inv_mpu6050/
+13 −0
Original line number Diff line number Diff line
#
# inv-mpu6050 drivers for Invensense MPU devices and combos
#

config INV_MPU6050_IIO
	tristate "Invensense MPU6050 devices"
	depends on I2C && SYSFS
	select IIO_TRIGGERED_BUFFER
	help
	  This driver supports the Invensense MPU6050 devices.
	  It is a gyroscope/accelerometer combo device.
	  This driver can be built as a module. The module will be called
	  inv-mpu6050.
+6 −0
Original line number Diff line number Diff line
#
# Makefile for Invensense MPU6050 device.
#

obj-$(CONFIG_INV_MPU6050_IIO) += inv-mpu6050.o
inv-mpu6050-objs := inv_mpu_core.o inv_mpu_ring.o inv_mpu_trigger.o
Loading