diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2021-04-12 17:22:58 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-14 17:47:42 +0000 |
commit | 8bd8010f6d54330fe4b42f8eb532dcb635cbca57 (patch) | |
tree | 630af4e6f97cb43065060ffe393cbf383eeacd12 /zephyr/projects/trogdor | |
parent | 41324a98518ae2f67352bac2110212e40f2b9fd7 (diff) | |
download | chrome-ec-8bd8010f6d54330fe4b42f8eb532dcb635cbca57.tar.gz |
zephyr: lazor: Set the hibernate wake-up gpios
Lazor uses power down RAM & deep sleep as hibernate implementation.
This sets the wake-up pins for non-psl hibernate.
BUG=b:183745774
BRANCH=none
TEST=hibernate & wake-up form
1. lid
2. power button
3. reset pin
4. AC adaptor
5. RTC wake-up by "hibernate 5"
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I2ad0a4f0f3dfd3d0f41e57fc215ad7a01e08aa9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821117
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor')
-rw-r--r-- | zephyr/projects/trogdor/lazor/gpio.dts | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/zephyr/projects/trogdor/lazor/gpio.dts b/zephyr/projects/trogdor/lazor/gpio.dts index 5e91c23d57..6b92f406f8 100644 --- a/zephyr/projects/trogdor/lazor/gpio.dts +++ b/zephyr/projects/trogdor/lazor/gpio.dts @@ -42,7 +42,7 @@ enum-name = "GPIO_USB_A0_OC_ODL"; label = "USB_A0_OC_ODL"; }; - acok_od { + gpio_acok_od: acok_od { gpios = <&gpio0 0 GPIO_INPUT>; enum-name = "GPIO_AC_PRESENT"; label = "ACOK_OD"; @@ -52,7 +52,7 @@ enum-name = "GPIO_CCD_MODE_ODL"; label = "CCD_MODE_ODL"; }; - ec_pwr_btn_odl { + gpio_ec_pwr_btn_odl: ec_pwr_btn_odl { gpios = <&gpio0 1 GPIO_INPUT>; enum-name = "GPIO_POWER_BUTTON_L"; label = "EC_PWR_BTN_ODL"; @@ -72,7 +72,7 @@ enum-name = "GPIO_WP_L"; label = "EC_WP_ODL"; }; - lid_open_ec { + gpio_lid_open_ec: lid_open_ec { gpios = <&gpiod 2 GPIO_INPUT>; enum-name = "GPIO_LID_OPEN"; label = "LID_OPEN_EC"; @@ -129,7 +129,7 @@ enum-name = "GPIO_SWITCHCAP_PG_INT_L"; label = "SWITCHCAP_PG_INT_L"; }; - ec_rst_odl { + gpio_ec_rst_odl: ec_rst_odl { gpios = <&gpio0 2 GPIO_INPUT>; enum-name = "GPIO_EC_RST_ODL"; label = "EC_RST_ODL"; @@ -372,4 +372,14 @@ &lvol_iob2 /* EC_I2C_SENSOR_SDA */ >; }; + + hibernate-wake-pins { + compatible = "cros-ec,hibernate-wake-pins"; + wakeup-pins = < + &gpio_acok_od + &gpio_ec_pwr_btn_odl + &gpio_lid_open_ec + &gpio_ec_rst_odl + >; + }; }; |