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

Cherry pick saadc pm device #2536

Merged

Conversation

bjarki-andreasen
Copy link
Contributor

Cherry pick saadc pm device

@bjarki-andreasen bjarki-andreasen force-pushed the cherry-pick-saadc-pm-device branch from e54d59e to 3475414 Compare February 21, 2025 15:21
Extend nrf saadc device driver with pm device runtime support.

To preserve previous behavior:

* if pm device is disabled, saadc is resumed on sampling start
  and suspended when sampling done.
* if pm device is enabled only, saadc does nothing on
  sampling start/stop. its resumed on init.
* if pm device runtime is enabled, saadc is got on
  sampling start, and put on sampling stop.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit 96c3cd6cd3302f353e7fe9ace842d66d207a4424)
Set pm device runtime runtime auto flag to ensure saadc instances
are initialized correctly if pm device runtime is used.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
(cherry picked from commit d01c93c120ff6e2e3428772d7af1936f2153f91f)
@bjarki-andreasen
Copy link
Contributor Author

ping @gmarull @anangl

@bjarki-andreasen bjarki-andreasen merged commit b36b947 into nrfconnect:main Feb 26, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants