Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAX32: Add gpio wakeup option #77753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ozersa
Copy link
Collaborator

@ozersa ozersa commented Aug 29, 2024

GPIO pins can be used to wakeup device from sleep/deepsleep modes This commit add this feature in gpio driver.

Usage:

...
buttons {
    compatible = gpio-keys;
    pb1: pb1 {
         gpios = <&gpio0 18 MAX32_GPIO_WAKEUP_EN>;
    };
};
...

Can be tested with samples/basic/button with CONFIG_PM=y

image

Any gpio can be used to wakeup device from sleep/deepsleep modes
This commit add this feature inside driver.

Usage:
...
buttons {
 compatible = gpio-keys;
 pb1: pb1 {
   gpios = <&gpio0 18 MAX32_GPIO_WAKEUP_EN>;
};
...

Can be tested with samples/basic/button with CONFIG_PM=y

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
@ozersa ozersa changed the title drivers: gpio: max32: Add gpio wakeup option MAX32: Add gpio wakeup option Aug 29, 2024
@zephyrbot zephyrbot added the platform: ADI Analog Devices, Inc. label Aug 29, 2024
@ozersa
Copy link
Collaborator Author

ozersa commented Oct 9, 2024

@MaureenHelm please take a look when you get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: GPIO platform: ADI Analog Devices, Inc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants