diff options
author | Yuval Peress <peress@chromium.org> | 2021-06-08 00:21:03 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-09 19:30:16 +0000 |
commit | e380bf638f7db25e5d66f3b9a11f8840807f2b1b (patch) | |
tree | 6a3dae901d728a098eb348999d49ba8a623a7c7d /zephyr/projects/trogdor | |
parent | 40f5e322b2b03f1b9523a1bd503278b5b391cf6d (diff) | |
download | chrome-ec-e380bf638f7db25e5d66f3b9a11f8840807f2b1b.tar.gz |
zepyr: npcx: clean keyboard driver
The current cros,kb-raw-npcx driver relies on the label cros_kb_raw
instead of the compatible string like it should. Since currently, it
doesn't make sense for there to be more than one instance of the
driver, a new BUILD_ASSERT check is added to make sure that if the
driver is added via Kconfig, it is also used exactly once. Further,
the creation of the driver via DEVICE_DEFINE is now using
DT_DRV_COMPAT to create the instance.
BRANCH=none
BUG=b:190457512
TEST=build brya, volteer, and lazor
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I242c0f2f20a6d89cad7ab4269fc4c854aa29554b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944624
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Dawid Niedzwiecki <dawidn@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor')
-rw-r--r-- | zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts b/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts index 93cd180ce3..27b53d62b9 100644 --- a/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts +++ b/zephyr/projects/trogdor/boards/arm/trogdor/trogdor.dts @@ -206,6 +206,7 @@ }; &cros_kb_raw { + status = "okay"; /* No KSO2 (it's inverted and implemented by GPIO) */ pinctrl-0 = <&alt7_no_ksi0_sl &alt7_no_ksi1_sl |