summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-An Chen <yu-an.chen@quanta.corp-partner.google.com>2022-09-19 15:38:59 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-20 03:51:05 +0000
commit04aab947d6b7e9d835440cb272c572ff0eeeb375 (patch)
tree50c2b13f1349be1d811dda81efa058fa1e703e27
parent6d16bf185791f23952b8d6d438d97f364ea23b47 (diff)
downloadchrome-ec-04aab947d6b7e9d835440cb272c572ff0eeeb375.tar.gz
evoker: Change lid accel sensor to BMA422
Change lid accel sensor to BMA422 Update Rotation matrix BUG=b:238571776 BRANCH=none TEST=check sensor working via ‘accelinfo on’ Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ic3ee762c5a933ce14904ca14c0f8a5ae5a360510 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3903931 Reviewed-by: Sam Hurst <shurst@google.com> Reviewed-by: Bob Moragues <moragues@chromium.org>
-rw-r--r--zephyr/projects/herobrine/motionsense_evoker.dts22
-rw-r--r--zephyr/projects/herobrine/prj_evoker.conf3
2 files changed, 14 insertions, 11 deletions
diff --git a/zephyr/projects/herobrine/motionsense_evoker.dts b/zephyr/projects/herobrine/motionsense_evoker.dts
index 8d6eaf6cc9..aa7646e0b3 100644
--- a/zephyr/projects/herobrine/motionsense_evoker.dts
+++ b/zephyr/projects/herobrine/motionsense_evoker.dts
@@ -36,15 +36,15 @@
motionsense-rotation-ref {
compatible = "cros-ec,motionsense-rotation-ref";
lid_rot_ref: lid-rotation-ref {
- mat33 = <0 1 0
- 1 0 0
- 0 0 (-1)>;
+ mat33 = <(-1) 0 0
+ 0 (-1) 0
+ 0 0 1>;
};
base_rot_ref: base-rotation-ref {
- mat33 = <1 0 0
- 0 (-1) 0
- 0 0 (-1)>;
+ mat33 = <0 1 0
+ (-1) 0 0
+ 0 0 1>;
};
};
@@ -58,8 +58,8 @@
* "struct als_drv_data_t" in accelgyro.h
*/
motionsense-sensor-data {
- bma255_data: bma255-drv-data {
- compatible = "cros-ec,drvdata-bma255";
+ bma4xx_data: bma4xx-drv-data {
+ compatible = "cros-ec,drvdata-bma4xx";
status = "okay";
};
@@ -76,7 +76,7 @@
*/
motionsense-sensor {
lid_accel: lid-accel {
- compatible = "cros-ec,bma255";
+ compatible = "cros-ec,bma4xx";
status = "okay";
active-mask = "SENSOR_ACTIVE_S0_S3";
@@ -85,8 +85,8 @@
port = <&i2c_sensor>;
rot-standard-ref = <&lid_rot_ref>;
default-range = <2>;
- drv-data = <&bma255_data>;
- i2c-spi-addr-flags = "BMA2x2_I2C_ADDR1_FLAGS";
+ drv-data = <&bma4xx_data>;
+ i2c-spi-addr-flags = "BMA4_I2C_ADDR_PRIMARY";
configs {
compatible =
"cros-ec,motionsense-sensor-config";
diff --git a/zephyr/projects/herobrine/prj_evoker.conf b/zephyr/projects/herobrine/prj_evoker.conf
index b26fdf8c62..6a57333bfd 100644
--- a/zephyr/projects/herobrine/prj_evoker.conf
+++ b/zephyr/projects/herobrine/prj_evoker.conf
@@ -7,3 +7,6 @@ CONFIG_BOARD_EVOKER=y
# Disable type-c port sourcing 3A
CONFIG_PLATFORM_EC_CONFIG_USB_PD_3A_PORTS=0
+
+CONFIG_PLATFORM_EC_ACCEL_BMA255=n
+CONFIG_PLATFORM_EC_ACCEL_BMA4XX=y