summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2022-12-12 16:27:55 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-13 04:24:22 +0000
commit8b0598c4ae25a4d76cf5d6466f34b403a2120b0b (patch)
tree3be8796c67663f53004e75b9891fc4d7261377b9
parent481211819c33130dd2c8829d7da8f9f0cd83eed5 (diff)
downloadchrome-ec-8b0598c4ae25a4d76cf5d6466f34b403a2120b0b.tar.gz
geralt: change lid sensor to bmi323
component change requested in go/geralt-sheet. BUG=b:251747125 TEST=zmake build geralt BRANCH=none Change-Id: I3b3d36e1023c77b6d9c0a49cb321e78907ad5c97 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4094065 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Parker Lin <parkerlin@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--zephyr/program/geralt/interrupts.dtsi2
-rw-r--r--zephyr/program/geralt/motionsense.dtsi14
-rw-r--r--zephyr/program/geralt/program.conf4
3 files changed, 10 insertions, 10 deletions
diff --git a/zephyr/program/geralt/interrupts.dtsi b/zephyr/program/geralt/interrupts.dtsi
index a7f864c872..99c3cb7e56 100644
--- a/zephyr/program/geralt/interrupts.dtsi
+++ b/zephyr/program/geralt/interrupts.dtsi
@@ -24,7 +24,7 @@
int_lid_imu: lid-imu {
irq-pin = <&lid_imu_int_l>;
flags = <GPIO_INT_EDGE_FALLING>;
- handler = "icm42607_interrupt";
+ handler = "bmi3xx_interrupt";
};
int_ap_wdtrst: ap-wdtrst {
irq-pin = <&ap_ec_wdtrst_l>;
diff --git a/zephyr/program/geralt/motionsense.dtsi b/zephyr/program/geralt/motionsense.dtsi
index 9ec9faa038..1446d1cb22 100644
--- a/zephyr/program/geralt/motionsense.dtsi
+++ b/zephyr/program/geralt/motionsense.dtsi
@@ -13,7 +13,7 @@
* by alias. Using the alias, each driver creates
* its own <>_INT_EVENT.
*/
- icm42607-int = &lid_accel;
+ bmi3xx-int = &lid_accel;
};
/*
@@ -49,8 +49,8 @@
* "struct als_drv_data_t" in accelgyro.h
*/
motionsense-sensor-data {
- icm42607_data: icm42607-drv-data {
- compatible = "cros-ec,drvdata-icm42607";
+ bmi323_data: bmi323-drv-data {
+ compatible = "cros-ec,drvdata-bmi3xx";
status = "okay";
};
};
@@ -62,7 +62,7 @@
*/
motionsense-sensor {
lid_accel: lid-accel {
- compatible = "cros-ec,icm42607-accel";
+ compatible = "cros-ec,bmi3xx-accel";
status = "okay";
active-mask = "SENSOR_ACTIVE_S0_S3";
@@ -71,7 +71,7 @@
port = <&i2c_sensor>;
rot-standard-ref = <&lid_rot_ref>;
default-range = <2>;
- drv-data = <&icm42607_data>;
+ drv-data = <&bmi323_data>;
configs {
compatible =
"cros-ec,motionsense-sensor-config";
@@ -85,7 +85,7 @@
};
lid_gyro: lid-gyro {
- compatible = "cros-ec,icm42607-gyro";
+ compatible = "cros-ec,bmi3xx-gyro";
status = "okay";
active-mask = "SENSOR_ACTIVE_S0_S3";
@@ -93,7 +93,7 @@
mutex = <&lid_mutex>;
port = <&i2c_sensor>;
rot-standard-ref = <&lid_rot_ref>;
- drv-data = <&icm42607_data>;
+ drv-data = <&bmi323_data>;
};
};
diff --git a/zephyr/program/geralt/program.conf b/zephyr/program/geralt/program.conf
index 3c04005766..952bf11035 100644
--- a/zephyr/program/geralt/program.conf
+++ b/zephyr/program/geralt/program.conf
@@ -137,8 +137,8 @@ CONFIG_PLATFORM_EC_TABLET_MODE_SWITCH=y
CONFIG_PLATFORM_EC_MAX_SENSOR_FREQ_MILLIHZ=100000
# Sensor Drivers
-CONFIG_PLATFORM_EC_ACCELGYRO_ICM42607=y
-CONFIG_PLATFORM_EC_ACCELGYRO_ICM_COMM_I2C=y
+CONFIG_PLATFORM_EC_ACCELGYRO_BMI3XX=y
+CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_I2C=y
# Tasks
CONFIG_TASK_CHARGER_STACK_SIZE=1024