diff options
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/gpio.dts | 26 | ||||
-rw-r--r-- | zephyr/projects/herobrine/herobrine_npcx9/prj.conf | 3 |
2 files changed, 29 insertions, 0 deletions
diff --git a/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts b/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts index 9373d1fa6c..1c63f3875c 100644 --- a/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts +++ b/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts @@ -306,6 +306,11 @@ >; }; + vsby-psl-in-list { + /* Use PSL_IN1/2/3/4 as detection pins from hibernate mode */ + psl-in-pads = <&psl_in1 &psl_in2 &psl_in3 &psl_in4>; + }; + sku { compatible = "cros-ec,gpio-id"; @@ -359,3 +364,24 @@ <&gpio8 1 0>; }; }; + +/* Power switch logic input pads */ +&psl_in1 { + /* ACOK_OD */ + flag = <NPCX_PSL_RISING_EDGE>; +}; + +&psl_in2 { + /* EC_PWR_BTN_ODL */ + flag = <NPCX_PSL_FALLING_EDGE>; +}; + +&psl_in3 { + /* LID_OPEN_EC */ + flag = <NPCX_PSL_RISING_EDGE>; +}; + +&psl_in4 { + /* RTC_EC_WAKE_ODL */ + flag = <NPCX_PSL_FALLING_EDGE>; +}; diff --git a/zephyr/projects/herobrine/herobrine_npcx9/prj.conf b/zephyr/projects/herobrine/herobrine_npcx9/prj.conf index 692e384e2e..bcaa22fad0 100644 --- a/zephyr/projects/herobrine/herobrine_npcx9/prj.conf +++ b/zephyr/projects/herobrine/herobrine_npcx9/prj.conf @@ -19,6 +19,9 @@ CONFIG_SHELL_HISTORY=y CONFIG_SHELL_TAB=y CONFIG_SHELL_TAB_AUTOCOMPLETION=y +# Miscellaneous configs +CONFIG_PLATFORM_EC_HIBERNATE_PSL=y + # LED CONFIG_PLATFORM_EC_LED_COMMON=y |