# echo mem > /sys/power/stateYou can use the WAKE UP button to wake up from the ULP1 mode.
# echo standby > /sys/power/stateYou can use the PB_USER button to wake from the standby mode.
rtcwake -m mem -s 5 rtcwake -m standby -s 5
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 953aad4..1a16145 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -628,7 +628,7 @@ void __init at91sam9x5_pm_init(void) at91_pm_init(); if (readl(pmc + AT91_PMC_VERSION) >= SAMA5D2_PMC_VERSION) - at91_pm_data.ulp_mode = ULP1_MODE; + at91_pm_data.ulp_mode = ULP0_MODE; at91_pmc_fast_startup_init(); }Configuration the PB_USER button to wake up from the ULP0 mode.
gpio_keys { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_key_gpio_default>; bp1 { label = "PB_USER"; gpios = <&pioA 41 GPIO_ACTIVE_LOW>; linux,code = <0x104>; gpio-key,wakeup; }; };The ULP0 mode can not be woken up by the WAKE UP button. It can be woken up by the PB_USER button and rtc alarm event.
WebFaqBaseForm | |
---|---|
Boards | Sama5d2-icp, Sama5d27WLSom1EK, Sama5d27Som1EK, Sama5d2PtcEK, Sama5d2Xplained |
Components | Kernel, linux-4.1-at91, linux-4.4-at91 |
Summary | Using Ultra Low Power mode 1 (ULP1) |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.