diff options
author | Keith Short <keithshort@chromium.org> | 2021-08-09 16:01:18 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-10 22:19:33 +0000 |
commit | eb78f35277bd7200450cd56b87a0747840204631 (patch) | |
tree | fc3fa3e742257334448a776abfe45c38ee99d2bc | |
parent | 8f1cc4196595280d5c5b817b4015b6d9a308e5c0 (diff) | |
download | chrome-ec-eb78f35277bd7200450cd56b87a0747840204631.tar.gz |
zephyr: volteer: add keyscan parameters
Add the keyscan parameters specific to the Volteer board.
BUG=b:195945894
BRANCH=none
TEST=verify keyboard on Volteer
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I36af888faf9a9401f61aee3c7ed5bd31cb308be0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083722
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/projects/volteer/volteer/keyboard.dts | 28 | ||||
-rw-r--r-- | zephyr/projects/volteer/volteer/zmake.yaml | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/zephyr/projects/volteer/volteer/keyboard.dts b/zephyr/projects/volteer/volteer/keyboard.dts new file mode 100644 index 0000000000..e9b5cdf0a1 --- /dev/null +++ b/zephyr/projects/volteer/volteer/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/volteer/volteer/zmake.yaml b/zephyr/projects/volteer/volteer/zmake.yaml index ace5404e29..031de05cca 100644 --- a/zephyr/projects/volteer/volteer/zmake.yaml +++ b/zephyr/projects/volteer/volteer/zmake.yaml @@ -6,8 +6,9 @@ board: volteer dts-overlays: - bb_retimer.dts - cbi_eeprom.dts - - gpio.dts - fan.dts + - gpio.dts + - keyboard.dts - motionsense.dts - pwm.dts supported-zephyr-versions: |