Skip to content

GPIO driver support for RW61x PM3 #89355

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

davidmissael
Copy link
Contributor

THIS IS A PRELIMINARY SOLUTION TO HELP CONTINUE THE DRIVER'S SUPPORT FOR POWER MANAGEMENT ON RW61x DEVICES
On RW61x devices, when entering in PM3, all peripheral lose their state/context. After exiting from this power mode, that context needs to be restored. This PR saves the GPIOs registers before entering to PM3 and restores the registers after exiting PM3, this helps the application recover all GPIOs configurations when returning from this power mode.

DerekSnell and others added 2 commits April 28, 2025 08:33
…x devices.

RW61x devices loses peripheral context when entering into PowerMode 3, so when
exiting form this power mode, it is necesary to restore all context. This is a
preliminary solution until who is responsible to restore this context and to
know the zephyr's contract for Power Management.

Signed-off-by: Missael Maciel <[email protected]>
…x devices

RW61x devices loses peripheral context when entering into PowerMode 3, so when
exiting from this power mode, it is necesary to restore all context.
This is a preliminary solution until definition on the responsible to
save the context for the GPIO peripheral.

Signed-off-by: Missael Maciel <[email protected]>
… devices

RW61x devices loses peripheral context when entering into PowerMode3, so when
exiting from this power mode, it is necessary to restore all context.
This is a preliminary solution until zephyr contract defines whis is responsible
to save and restore context for GPIO peripheral.

Signed-off-by: Missael Maciel <[email protected]>
@DerekSnell DerekSnell marked this pull request as draft May 1, 2025 16:06
@davidmissael
Copy link
Contributor Author

Test conditions:
For this PR the "samples/basic/blinky" was used, overlay added to enable "standby" (PM3) and CONFIG_PM=y
CONFIG_PM_DEVICE=y added to the project config. The kernel uses the k_msleep(SLEEP_TIME_MS) code to enter into PM3. After this time expires the GPIO is reconfigured as output using the changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: GPIO platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants