summaryrefslogtreecommitdiff
path: root/zephyr/projects/npcx_evb/npcx7/interrupts.dts
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-01-23 16:15:40 +1100
committerCommit Bot <commit-bot@chromium.org>2022-01-28 01:42:57 +0000
commit7be8e21ceb8d9b777b7ecdb207de024b771e465e (patch)
tree118727ad2b83f08615c137ccce9cb113cb05faa9 /zephyr/projects/npcx_evb/npcx7/interrupts.dts
parent20fc386d20a6b3cae93e426f62f95f74e6bcee70 (diff)
downloadchrome-ec-7be8e21ceb8d9b777b7ecdb207de024b771e465e.tar.gz
npcx_evb: Migrate interrupts to new framework
Migrate interrupts to new configuration framework. BUG=b:215259628,b:215259627 TEST=zmake configure -b {npcx9,npcx7} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I830e7d888c635fb943b1546d6d827de2c876d8b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3413596 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/projects/npcx_evb/npcx7/interrupts.dts')
-rw-r--r--zephyr/projects/npcx_evb/npcx7/interrupts.dts26
1 files changed, 26 insertions, 0 deletions
diff --git a/zephyr/projects/npcx_evb/npcx7/interrupts.dts b/zephyr/projects/npcx_evb/npcx7/interrupts.dts
new file mode 100644
index 0000000000..ee3fa90bd5
--- /dev/null
+++ b/zephyr/projects/npcx_evb/npcx7/interrupts.dts
@@ -0,0 +1,26 @@
+/* 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.
+ */
+
+/ {
+ gpio-interrupts {
+ compatible = "cros-ec,gpio-interrupts";
+
+ int_ac_present: ac_present {
+ irq-gpio = <&gpio_ac_present>;
+ flags = <GPIO_INT_EDGE_BOTH>;
+ handler = "extpower_interrupt";
+ };
+ int_lid_open: lid_open {
+ irq-gpio = <&gpio_lid_open>;
+ flags = <GPIO_INT_EDGE_BOTH>;
+ handler = "lid_interrupt";
+ };
+ int_power_button: power_button {
+ irq-gpio = <&gpio_power_button_l>;
+ flags = <GPIO_INT_EDGE_BOTH>;
+ handler = "power_button_interrupt";
+ };
+ };
+};