summaryrefslogtreecommitdiff
path: root/zephyr/projects/npcx_evb/npcx7/gpio.dts
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-06-17 18:39:39 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-28 18:37:47 +0000
commitb13e3b69fda40e60b33cc9963e8f05916f1f56b9 (patch)
tree06b1502add60fa0468d6a8475eb09545b406ebb1 /zephyr/projects/npcx_evb/npcx7/gpio.dts
parent5a3123ae33b5208b83698dd837f0ac57e4da8a91 (diff)
downloadchrome-ec-b13e3b69fda40e60b33cc9963e8f05916f1f56b9.tar.gz
zephyr: npcx_evb: Enable external power presence detection via GPIO
Enable the extpower_gpio.c module and connect the corresponding GPIOs and interrupts for npcx7/9_evb. BUG=none BRANCH=none TEST=saw the host event information when toggle the AC_PRESENT gpio Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ib9a74bffb34fdfca8ec307abfd33a4d09a960843 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058716 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/npcx_evb/npcx7/gpio.dts')
-rw-r--r--zephyr/projects/npcx_evb/npcx7/gpio.dts1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/npcx_evb/npcx7/gpio.dts b/zephyr/projects/npcx_evb/npcx7/gpio.dts
index 37676efec4..3f10215613 100644
--- a/zephyr/projects/npcx_evb/npcx7/gpio.dts
+++ b/zephyr/projects/npcx_evb/npcx7/gpio.dts
@@ -18,6 +18,7 @@
};
ac_present {
gpios = <&gpio7 4 (GPIO_INPUT | GPIO_PULL_UP)>;
+ enum-name = "GPIO_AC_PRESENT";
label = "AC_PRESENT";
};
power_button_l {