diff options
author | Diana Z <dzigterman@chromium.org> | 2021-12-01 14:52:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-07 23:54:10 +0000 |
commit | daa44fea70b0b60fa1c098e1e711038aba1331b1 (patch) | |
tree | f061bceac873ea17850da8aa1ff7545bbe30da98 | |
parent | 612f4ea7497c62686d248a29464386aa43b7d271 (diff) | |
download | chrome-ec-daa44fea70b0b60fa1c098e1e711038aba1331b1.tar.gz |
Zephyr: Guybrush: Configure hibernate
Configure the PSL_IN pins for hibernate.
BRANCH=None
BUG=b:195137794,b:208706360
TEST=load onto guybrush, and verify the EC can go into hibernate and all
wake sources are able to wake from it
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I470e5bd945f1a7e33c6940e04bdff8f791ca28f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3311884
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/projects/skyrim/gpio.dts | 21 | ||||
-rw-r--r-- | zephyr/projects/skyrim/prj.conf | 4 |
2 files changed, 25 insertions, 0 deletions
diff --git a/zephyr/projects/skyrim/gpio.dts b/zephyr/projects/skyrim/gpio.dts index 8781885759..bbe49469ea 100644 --- a/zephyr/projects/skyrim/gpio.dts +++ b/zephyr/projects/skyrim/gpio.dts @@ -346,4 +346,25 @@ label = "EC_PWM7"; }; }; + + vsby-psl-in-list { + /* PSL_IN1/2/4 are used to wake */ + psl-in-pads = <&psl_in1 &psl_in2 &psl_in4>; + }; +}; + +/* PSL input pads*/ +&psl_in1 { + /* MECH_PWR_BTN_ODL */ + flag = <NPCX_PSL_FALLING_EDGE>; +}; + +&psl_in2 { + /* ACOK_OD */ + flag = <NPCX_PSL_RISING_EDGE>; +}; + +&psl_in4 { + /* LID_OPEN */ + flag = <NPCX_PSL_RISING_EDGE>; }; diff --git a/zephyr/projects/skyrim/prj.conf b/zephyr/projects/skyrim/prj.conf index 74c39fab12..b0592a37a6 100644 --- a/zephyr/projects/skyrim/prj.conf +++ b/zephyr/projects/skyrim/prj.conf @@ -100,6 +100,10 @@ CONFIG_PLATFORM_EC_USB_PD_TCPC_RUNTIME_CONFIG=n CONFIG_PLATFORM_EC_USB_PD_USB4=n CONFIG_PLATFORM_EC_USB_PD_VBUS_MEASURE_CHARGER=y +# Hibernate and wake +CONFIG_PLATFORM_EC_BOARD_RESET_AFTER_POWER_ON=y +CONFIG_PLATFORM_EC_HIBERNATE_PSL=y + # This is not yet supported CONFIG_PLATFORM_EC_BOARD_VERSION_CBI=n CONFIG_PLATFORM_EC_BOARD_VERSION_GPIO=n |