summaryrefslogtreecommitdiff
path: root/zephyr/projects/corsola
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2022-10-28 15:51:04 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-31 05:46:35 +0000
commitbb6a40d6df2ca23330ec4cdc7126ec4fd64285ad (patch)
treeb7f942f8ad699d0381fbe2f300b0ebc2022df6d4 /zephyr/projects/corsola
parent337d804a43fb8756c80dcc11a6d44c64838a1a79 (diff)
downloadchrome-ec-bb6a40d6df2ca23330ec4cdc7126ec4fd64285ad.tar.gz
krabby: increase keyscan task polling period
The default 3ms is too fast for krabby EC, follow jacuzzi's config to increase it to 10ms. BUG=b:256062554,b:254793052 TEST=press and hold any key during fw stage for at least 30 seconds, verify EC watchdog not triggered. BRANCH=corsola Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ie071d7f78cc370d2d385085e31cf4bbfaa30372d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3988194 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'zephyr/projects/corsola')
-rw-r--r--zephyr/projects/corsola/BUILD.py3
-rw-r--r--zephyr/projects/corsola/keyboard_krabby.dts28
2 files changed, 31 insertions, 0 deletions
diff --git a/zephyr/projects/corsola/BUILD.py b/zephyr/projects/corsola/BUILD.py
index 4e82ab7926..91bd8ab062 100644
--- a/zephyr/projects/corsola/BUILD.py
+++ b/zephyr/projects/corsola/BUILD.py
@@ -37,6 +37,7 @@ register_corsola_project(
here / "adc_krabby.dts",
here / "battery_krabby.dts",
here / "gpio_krabby.dts",
+ here / "keyboard_krabby.dts",
here / "i2c_krabby.dts",
here / "interrupts_krabby.dts",
here / "led_krabby.dts",
@@ -106,6 +107,7 @@ register_corsola_project(
here / "battery_tentacruel.dts",
here / "cbi_tentacruel.dts",
here / "gpio_tentacruel.dts",
+ here / "keyboard_krabby.dts",
here / "i2c_tentacruel.dts",
here / "interrupts_tentacruel.dts",
here / "led_tentacruel.dts",
@@ -126,6 +128,7 @@ register_corsola_project(
here / "battery_magikarp.dts",
here / "cbi_magikarp.dts",
here / "gpio_magikarp.dts",
+ here / "keyboard_krabby.dts",
here / "i2c_magikarp.dts",
here / "interrupts_magikarp.dts",
here / "led_magikarp.dts",
diff --git a/zephyr/projects/corsola/keyboard_krabby.dts b/zephyr/projects/corsola/keyboard_krabby.dts
new file mode 100644
index 0000000000..b1a9af6330
--- /dev/null
+++ b/zephyr/projects/corsola/keyboard_krabby.dts
@@ -0,0 +1,28 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/ {
+ cros-keyscan {
+ compatible = "cros-keyscan";
+
+ scan-period = <10000>;
+
+ actual-key-mask = <
+ 0x1c /* C0 */
+ 0xff /* C1 */
+ 0xff /* C2 */
+ 0xff /* C3 */
+ 0xff /* C4 */
+ 0xf5 /* C5 */
+ 0xff /* C6 */
+ 0xa4 /* C7 */
+ 0xff /* C8 */
+ 0xfe /* C9 */
+ 0x55 /* C10 */
+ 0xfa /* C11 */
+ 0xca /* C12 */
+ >;
+ };
+};