summaryrefslogtreecommitdiff
path: root/zephyr/projects/herobrine/common.dts
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2022-01-18 14:03:30 -0800
committerCommit Bot <commit-bot@chromium.org>2022-01-26 22:11:56 +0000
commite4c338faea87a3a1e49ece6571191c8353e0ec68 (patch)
treede10e77b0cdcffdd05c0736668f46fa1b5c9dd89 /zephyr/projects/herobrine/common.dts
parentcd3abc8c897058767930787c808a974da4026f7b (diff)
downloadchrome-ec-e4c338faea87a3a1e49ece6571191c8353e0ec68.tar.gz
Reland "herobrine: Move the common EC nodes from board to project"
This is a reland of af1da08a314b7bdf6bfa8044d19aa80f471ec3fb. Original change's description: > herobrine: Move the common EC nodes from board to project > > Make the board independent from the hardware project. Move > several common EC nodes to the project directory. > > BRANCH=None > BUG=b:214613810 > TEST=Built the herobrine_npcx9 project and checked generated > source.dts unchanged. > > Change-Id: Icc89a5fbf53cc26dd5f06c4919c4ec416d6a91be > Signed-off-by: Wai-Hong Tam <waihong@google.com> > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3400545 > Reviewed-by: Keith Short <keithshort@chromium.org> Bug: b:214613810 Change-Id: Ie7abb5a04f5c456e0fd46430b86759d520dee826 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3417020 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/projects/herobrine/common.dts')
-rw-r--r--zephyr/projects/herobrine/common.dts37
1 files changed, 37 insertions, 0 deletions
diff --git a/zephyr/projects/herobrine/common.dts b/zephyr/projects/herobrine/common.dts
new file mode 100644
index 0000000000..cc75e8e89b
--- /dev/null
+++ b/zephyr/projects/herobrine/common.dts
@@ -0,0 +1,37 @@
+/* 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.
+ */
+
+#include <dt-bindings/wake_mask_event_defines.h>
+
+/ {
+ chosen {
+ cros,rtc = &pcf85063a;
+ };
+
+ ec-console {
+ compatible = "ec-console";
+ disabled = "hostcmd";
+ };
+
+ ec-mkbp-host-event-wakeup-mask {
+ compatible = "ec-wake-mask-event";
+ wakeup-mask = <(
+ HOST_EVENT_MASK(HOST_EVENT_LID_OPEN) |
+ HOST_EVENT_MASK(HOST_EVENT_POWER_BUTTON) |
+ HOST_EVENT_MASK(HOST_EVENT_AC_CONNECTED) |
+ HOST_EVENT_MASK(HOST_EVENT_AC_DISCONNECTED) |
+ HOST_EVENT_MASK(HOST_EVENT_HANG_DETECT) |
+ HOST_EVENT_MASK(HOST_EVENT_RTC) |
+ HOST_EVENT_MASK(HOST_EVENT_MODE_CHANGE) |
+ HOST_EVENT_MASK(HOST_EVENT_DEVICE))>;
+ };
+
+ ec-mkbp-event-wakeup-mask {
+ compatible = "ec-wake-mask-event";
+ wakeup-mask = <(MKBP_EVENT_KEY_MATRIX | \
+ MKBP_EVENT_HOST_EVENT | \
+ MKBP_EVENT_SENSOR_FIFO)>;
+ };
+};