diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-06-17 18:57:32 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-05 02:33:31 +0000 |
commit | 4053f907a135b00adbe824f4b944e5a8aa84306f (patch) | |
tree | eaaf17c317536502a461c06af317b5796ce6126e | |
parent | 2dc04680f63d8f27cd8354e6ce6d2185fba4e9da (diff) | |
download | chrome-ec-4053f907a135b00adbe824f4b944e5a8aa84306f.tar.gz |
zephyr: npcx_evb: Set the hibernate wake-up pins
Currently, npcx7/9_evb choose low-power RAM as hibernate method. This
CL sets the hibernate wake-up pins for npcx7/9_evb.
BUG=none
BRANCH=none
TEST='hibernate' & wake-up ec by ac_present, power_button_l, lid_open
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I5a3f5f0e7346040853bd035ca559b7e997c5b07b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3070800
Reviewed-by: Yuval Peress <peress@chromium.org>
-rw-r--r-- | zephyr/projects/npcx_evb/npcx7/gpio.dts | 15 | ||||
-rw-r--r-- | zephyr/projects/npcx_evb/npcx9/gpio.dts | 15 |
2 files changed, 24 insertions, 6 deletions
diff --git a/zephyr/projects/npcx_evb/npcx7/gpio.dts b/zephyr/projects/npcx_evb/npcx7/gpio.dts index 51b58c5392..006fb8fd06 100644 --- a/zephyr/projects/npcx_evb/npcx7/gpio.dts +++ b/zephyr/projects/npcx_evb/npcx7/gpio.dts @@ -16,17 +16,17 @@ enum-name = "GPIO_WP_L"; label = "WP_L"; }; - ac_present { + gpio_ac_present: ac_present { gpios = <&gpio7 4 (GPIO_INPUT | GPIO_PULL_UP)>; enum-name = "GPIO_AC_PRESENT"; label = "AC_PRESENT"; }; - power_button_l { + gpio_power_button_l: power_button_l { gpios = <&gpio7 5 (GPIO_INPUT | GPIO_PULL_UP)>; enum-name = "GPIO_POWER_BUTTON_L"; label = "POWER_BUTTON_L"; }; - lid_open { + gpio_lid_open: lid_open { gpios = <&gpioa 6 (GPIO_INPUT | GPIO_PULL_DOWN)>; enum-name = "GPIO_LID_OPEN"; label = "LID_OPEN"; @@ -65,4 +65,13 @@ label = "BOARD_VERSION3"; }; }; + + hibernate-wake-pins { + compatible = "cros-ec,hibernate-wake-pins"; + wakeup-pins = < + &gpio_ac_present + &gpio_power_button_l + &gpio_lid_open + >; + }; }; diff --git a/zephyr/projects/npcx_evb/npcx9/gpio.dts b/zephyr/projects/npcx_evb/npcx9/gpio.dts index 51b58c5392..006fb8fd06 100644 --- a/zephyr/projects/npcx_evb/npcx9/gpio.dts +++ b/zephyr/projects/npcx_evb/npcx9/gpio.dts @@ -16,17 +16,17 @@ enum-name = "GPIO_WP_L"; label = "WP_L"; }; - ac_present { + gpio_ac_present: ac_present { gpios = <&gpio7 4 (GPIO_INPUT | GPIO_PULL_UP)>; enum-name = "GPIO_AC_PRESENT"; label = "AC_PRESENT"; }; - power_button_l { + gpio_power_button_l: power_button_l { gpios = <&gpio7 5 (GPIO_INPUT | GPIO_PULL_UP)>; enum-name = "GPIO_POWER_BUTTON_L"; label = "POWER_BUTTON_L"; }; - lid_open { + gpio_lid_open: lid_open { gpios = <&gpioa 6 (GPIO_INPUT | GPIO_PULL_DOWN)>; enum-name = "GPIO_LID_OPEN"; label = "LID_OPEN"; @@ -65,4 +65,13 @@ label = "BOARD_VERSION3"; }; }; + + hibernate-wake-pins { + compatible = "cros-ec,hibernate-wake-pins"; + wakeup-pins = < + &gpio_ac_present + &gpio_power_button_l + &gpio_lid_open + >; + }; }; |