diff options
author | Keith Short <keithshort@chromium.org> | 2021-08-09 16:57:19 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-10 22:19:37 +0000 |
commit | 3855a14010276c60e687e3949eaf45f9ffd35baa (patch) | |
tree | 69ce77d32c4322273900033e27185fefb198e8cf | |
parent | eb78f35277bd7200450cd56b87a0747840204631 (diff) | |
download | chrome-ec-3855a14010276c60e687e3949eaf45f9ffd35baa.tar.gz |
zephyr: lazor: add keyscan parameters
Add the keyscan parameters specific to the Lazor board.
BUG=b:195945894
BRANCH=none
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I07718e093c2ac1c12f6af854d4656fb4f224db32
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083723
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/projects/trogdor/lazor/keyboard.dts | 28 | ||||
-rw-r--r-- | zephyr/projects/trogdor/lazor/zmake.yaml | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/zephyr/projects/trogdor/lazor/keyboard.dts b/zephyr/projects/trogdor/lazor/keyboard.dts new file mode 100644 index 0000000000..e9b5cdf0a1 --- /dev/null +++ b/zephyr/projects/trogdor/lazor/keyboard.dts @@ -0,0 +1,28 @@ +/* Copyright 2021 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. + */ + +/ { + cros-keyscan { + compatible = "cros-keyscan"; + + actual-key-mask = < + 0x14 /* 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 */ + 0 /* C13 - for keypad */ + 0 /* C14 - for keypad */ + >; + }; +}; diff --git a/zephyr/projects/trogdor/lazor/zmake.yaml b/zephyr/projects/trogdor/lazor/zmake.yaml index a013cce67b..f480a1e146 100644 --- a/zephyr/projects/trogdor/lazor/zmake.yaml +++ b/zephyr/projects/trogdor/lazor/zmake.yaml @@ -4,8 +4,9 @@ board: trogdor dts-overlays: - - gpio.dts - battery.dts + - gpio.dts + - keyboard.dts - motionsense.dts supported-zephyr-versions: - v2.5 |