diff options
author | Tim Lin <tim2.lin@ite.corp-partner.google.com> | 2021-09-08 09:34:01 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-10 17:35:07 +0000 |
commit | ca19275b9e9b86056783525bda71f610d798bd2b (patch) | |
tree | 99294c1fac6d2135505da48e76beb000107a7020 | |
parent | e0e63689bfd56b13a4b3a368adb766fe55c155fa (diff) | |
download | chrome-ec-ca19275b9e9b86056783525bda71f610d798bd2b.tar.gz |
zephyr: it8xxx2_evb: enable hibernate mode on it8xxx2_evb
The GPIO interrupts that can be waked up in hibernate mode
include GPIO_LID_OPEN and GPIO_POWER_BUTTON_L.
BUG=b:198305804
BRANCH=none
TEST=test1:
console command: hibernate
Wake-up GPIO interrupt: GPIO_LID_OPEN and GPIO_POWER_BUTTON_L test pass!
test2:
console command: hibernate [seconds] [microseconds]
After the specified seconds, the EC will wake-up from sleep mode.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Change-Id: I4069ec13d2681015a66fddf8d52666371da6048a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3146775
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r-- | zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts index de7d41abe7..a1b61d02ec 100644 --- a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts +++ b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb.dts @@ -23,12 +23,12 @@ named-gpios { compatible = "named-gpios"; - power_button_l { + power_button_l: power_button_l { gpios = <&gpioe 4 GPIO_INPUT_PULL_UP>; enum-name = "GPIO_POWER_BUTTON_L"; label = "POWER_BUTTON_L"; }; - lid_open { + lid_open: lid_open { gpios = <&gpioe 2 GPIO_INPUT_PULL_UP>; enum-name = "GPIO_LID_OPEN"; label = "LID_OPEN"; @@ -126,6 +126,12 @@ }; }; + hibernate-wake-pins { + compatible = "cros-ec,hibernate-wake-pins"; + wakeup-pins = <&power_button_l + &lid_open>; + }; + named-adc-channels { compatible = "named-adc-channels"; |