pujjo: modify rotation matrix for 2nd g-sensor
Modify rotation matrix for 2nd g-sensor.
BRANCH=none
TEST=zmake build pujjo
TEST=check g-sensor data is currect by ectool motionsense
0 0 (-1)>;
};
+ lid_rot_lis2dw12: lid-rotation-lis2dw12 {
+ mat33 = <0 (-1) 0
+ (-1) 0 0
+ 0 0 (-1)>;
+ };
+
base_rot_ref: base-rotation-ref {
mat33 = <0 1 0
(-1) 0 0
0 0 1>;
};
+
+ base_rot_lsm6dsm: base-rotation-lsm6dsm {
+ mat33 = <1 0 0
+ 0 1 0
+ 0 0 1>;
+ };
};
/*
location = "MOTIONSENSE_LOC_LID";
mutex = <&lid_mutex>;
port = <&i2c_ec_i2c_sensor>;
- rot-standard-ref = <&lid_rot_ref>;
+ rot-standard-ref = <&lid_rot_lis2dw12>;
default-range = <2>;
drv-data = <&lis2dw12_data>;
i2c-spi-addr-flags = "LIS2DWL_ADDR1_FLAGS";
location = "MOTIONSENSE_LOC_BASE";
mutex = <&base_mutex>;
port = <&i2c_ec_i2c_sensor>;
- rot-standard-ref = <&base_rot_ref>;
+ rot-standard-ref = <&base_rot_lsm6dsm>;
drv-data = <&lsm6dsm_data_accel>;
alternate-for = <&base_accel>;
alternate-ssfc-indicator = <&base_sensor_1>;
location = "MOTIONSENSE_LOC_BASE";
mutex = <&base_mutex>;
port = <&i2c_ec_i2c_sensor>;
- rot-standard-ref = <&base_rot_ref>;
+ rot-standard-ref = <&base_rot_lsm6dsm>;
drv-data = <&lsm6dsm_data_gyro>;
alternate-for = <&base_gyro>;
alternate-ssfc-indicator = <&base_sensor_1>;
