diff options
author | wen zhang <zhangwen6@huaqin.corp-partner.google.com> | 2022-06-07 21:11:22 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-08 10:16:53 +0000 |
commit | 61317784689d7624b7fceda3b2878d7522fab98c (patch) | |
tree | 344084b20d22f05b10e908137c81380be44d05a4 | |
parent | b69c7b023fcc8002c9e697c5f025df281fd77285 (diff) | |
download | chrome-ec-61317784689d7624b7fceda3b2878d7522fab98c.tar.gz |
steelix: modify motionsense rotation matrix
The rotation matrix of steelix is different from reference board
inherit the motionsense_kingler.dts and modify its rotation matrix
BUG=b:232050545
TEST=rotate the DUT and check the direction of the frame
BRANCH=none
Change-Id: Iccb02a51487564a66dd22f23dcecf5a5493498f0
Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3686720
Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
-rw-r--r-- | zephyr/projects/corsola/BUILD.py | 1 | ||||
-rw-r--r-- | zephyr/projects/corsola/motionsense_steelix.dts | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/zephyr/projects/corsola/BUILD.py b/zephyr/projects/corsola/BUILD.py index c75418f294..02b9f8a409 100644 --- a/zephyr/projects/corsola/BUILD.py +++ b/zephyr/projects/corsola/BUILD.py @@ -79,6 +79,7 @@ register_corsola_project( here / "gpio_steelix.dts", here / "led_steelix.dts", here / "motionsense_kingler.dts", + here / "motionsense_steelix.dts", here / "usba_steelix.dts", here / "usbc_kingler.dts", here / "default_gpio_pinctrl_kingler.dts", diff --git a/zephyr/projects/corsola/motionsense_steelix.dts b/zephyr/projects/corsola/motionsense_steelix.dts new file mode 100644 index 0000000000..70aa3679fb --- /dev/null +++ b/zephyr/projects/corsola/motionsense_steelix.dts @@ -0,0 +1,17 @@ +/* Copyright 2022 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +&lid_rot_ref { + mat33 = <0 1 0 + 1 0 0 + 0 0 (-1)>; +}; + +&base_rot_ref { + mat33 = <1 0 0 + 0 (-1) 0 + 0 0 (-1)>; +}; + |