Skip to content

drivers: nrf_ironside dvfs service #90755

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

lstnl
Copy link
Contributor

@lstnl lstnl commented May 28, 2025

Added handling of new IRONside DVFS service.
NRFS DVFS is now not enabled by default.

@nashif
Copy link
Member

nashif commented May 29, 2025

This is adding a new public API, needs WG review...

@nashif nashif added the Architecture Review Discussion in the Architecture WG required label May 29, 2025
@lstnl lstnl force-pushed the move_DVFS_to_secdom branch 3 times, most recently from 3dd1d79 to c07633d Compare June 2, 2025 10:45
@carlescufi carlescufi removed the Architecture Review Discussion in the Architecture WG required label Jun 10, 2025
@carlescufi
Copy link
Member

carlescufi commented Jun 10, 2025

Long-term discussion here: #91373

For now this can go in as-is, since this is a completely SoC-specific API.

@lstnl lstnl force-pushed the move_DVFS_to_secdom branch from c07633d to 12cc67a Compare June 11, 2025 08:37
if (!sdfw_dvfs_is_abb_locked(NRF_ABB)) {
return -IRONSIDE_DVFS_ERROR_BUSY;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use k_is_in_isr here and remove mutex

@@ -28,7 +28,6 @@ config SOC_NRF54H20_CPUAPP_COMMON
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_AUDIOPLL_SERVICE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_DVFS_SERVICE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this, with #91187 it will not be needed :)

@lstnl lstnl force-pushed the move_DVFS_to_secdom branch 3 times, most recently from 61d636a to debce5e Compare June 11, 2025 13:19
@lstnl lstnl requested a review from bjarki-andreasen June 11, 2025 13:23
Added handling of new IRONside DVFS service.
NRFS DVFS is now not enabled by default.

Signed-off-by: Łukasz Stępnicki <[email protected]>
@lstnl lstnl force-pushed the move_DVFS_to_secdom branch from debce5e to 3fd61cb Compare June 11, 2025 15:08
Copy link

hsfll_trim.tcoef = NRF_FICR->TRIM.APPLICATION.HSFLL.TRIM.TCOEF;
#endif
#else
#error "Only application core is supported for DVFS"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check may be redundant since kconfig already depends on SOC_NRF54H_CPUAPP

@kartben kartben merged commit a077773 into zephyrproject-rtos:main Jun 12, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Architecture Review Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: nRF Nordic nRFx
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants