summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarthur.lin <arthur.lin@lcfc.corp-partner.google.com>2022-10-05 15:22:33 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-05 10:54:36 +0000
commit284362b55afed23932d3d55a09d7b39ac1e322a8 (patch)
treede96eafeed9dc8a104c38fbff1bac7f8868e8f2f
parent82a2fc58c43da29d1f57c0bf1f9790885b1153e7 (diff)
downloadchrome-ec-284362b55afed23932d3d55a09d7b39ac1e322a8.tar.gz
pujjo: modify rotation matrix for 2nd g-sensor
Modify rotation matrix for 2nd g-sensor. BUG=none BRANCH=none TEST=zmake build pujjo TEST=check g-sensor data is currect by ectool motionsense Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com> Change-Id: I8d925f3ae78d18b0d2417667eb3aed402052d75e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935983 Reviewed-by: Andrew McRae <amcrae@google.com>
-rw-r--r--zephyr/projects/nissa/pujjo/motionsense.dts18
1 files changed, 15 insertions, 3 deletions
diff --git a/zephyr/projects/nissa/pujjo/motionsense.dts b/zephyr/projects/nissa/pujjo/motionsense.dts
index d5719ef08f..ce4a6babe0 100644
--- a/zephyr/projects/nissa/pujjo/motionsense.dts
+++ b/zephyr/projects/nissa/pujjo/motionsense.dts
@@ -41,11 +41,23 @@
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>;
+ };
};
/*
@@ -160,7 +172,7 @@
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";
@@ -186,7 +198,7 @@
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>;
@@ -212,7 +224,7 @@
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>;