History

iio:imu:mpu6050: enhance mounting matrix support

Add a new rotation matrix sysfs attribute compliant with IIO core mounting matrix API. Matrix is retrieved from "in_anglvel_mount_matrix" and "in_accel_mount_matrix" sysfs attributes. It is declared into mpu6050 DTS entry as a "mount-matrix" property. Old interface is kept for backward userspace compatibility and may be retrieved from legacy platform_data mechanism only.

Gregor Boirie committed 10 years ago

Commit eb379841 parent 97eacb95 files · +55 −5Browse files

Showing the changes to include/linux/platform_data (1 of 5 files). Show all

Unified · Split

include/linux/platform_data/invensense_mpu6050.h+4−1
@@ -16,13 +16,16 @@ · 15 unmodified lines
1616
1717 /**
1818 * struct inv_mpu6050_platform_data - Platform data for the mpu driver
19− * @orientation: Orientation matrix of the chip
19+ * @orientation: Orientation matrix of the chip (deprecated in favor of
20+ * mounting matrix retrieved from device-tree)
2021 *
2122 * Contains platform specific information on how to configure the MPU6050 to
2223 * work on this platform. The orientation matricies are 3x3 rotation matricies
2324 * that are applied to the data to rotate from the mounting orientation to the
2425 * platform orientation. The values must be one of 0, 1, or -1 and each row and
2526 * column should have exactly 1 non-zero value.
27+ *
28+ * Deprecated in favor of mounting matrix retrieved from device-tree.
2629 */
2730 struct inv_mpu6050_platform_data {
2831 __s8 orientation[9];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t