Skip to content

[nrf fromlist] drivers: nrf_ironside dvfs service #2921

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 24, 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.

Upstream PR #: 90755

Copilot

This comment was marked as outdated.

@lstnl lstnl force-pushed the move_DVFS_to_secdom branch from d7a066a to 8daeb2e Compare June 11, 2025 08:45
@lstnl lstnl requested a review from jonathannilsen June 11, 2025 08:45
Copy link
Contributor

@jonathannilsen jonathannilsen left a comment

Choose a reason for hiding this comment

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

Looks good, some minor stuff

@lstnl lstnl force-pushed the move_DVFS_to_secdom branch 3 times, most recently from 824b852 to 7a4a910 Compare June 11, 2025 15:11
@lstnl lstnl force-pushed the move_DVFS_to_secdom branch 3 times, most recently from d416e17 to 726cc7e Compare June 23, 2025 12:50
@lstnl lstnl marked this pull request as ready for review June 23, 2025 12:51
@lstnl lstnl requested review from jonathannilsen and Copilot June 23, 2025 12:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds new support for the IRONside DVFS service by introducing DVFS service API, configuration options, and driver implementation while making NRFS DVFS not enabled by default.

  • Conditional inclusion of DVFS service headers and sources in Nordic HAL CMake configurations.
  • New header and driver implementation to define DVFS oppoints, error codes, and DVFS operations.
  • Addition of Kconfig options to enable the DVFS service and set the oppoint change mutex timeout.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
modules/hal_nordic/nrfs/CMakeLists.txt Replaces unconditional includes with conditional ones for DVFS service support.
include/zephyr/drivers/firmware/nrf_ironside/dvfs.h Introduces DVFS API definitions, error codes, and inline validations.
drivers/firmware/nrf_ironside/dvfs.c Implements DVFS oppoint change flow and related hardware configurations.
drivers/firmware/nrf_ironside/Kconfig Adds configuration options for the DVFS service and timeout parameter.
drivers/firmware/nrf_ironside/CMakeLists.txt Conditionally includes the DVFS driver source based on the service configuration.
Comments suppressed due to low confidence (2)

modules/hal_nordic/nrfs/CMakeLists.txt:17

  • The conditional macro 'CONFIG_NRFS_HAS_DVFS_SERVICE' used here differs from the Kconfig option 'NRF_IRONSIDE_DVFS_SERVICE'. Consider aligning the configuration macro names for consistency.
    zephyr_include_directories_ifdef(CONFIG_NRFS_HAS_DVFS_SERVICE ${HELPERS_DIR})

modules/hal_nordic/nrfs/CMakeLists.txt:22

  • The use of 'CONFIG_NRFS_HAS_DVFS_SERVICE' here is inconsistent with the Kconfig definition 'NRF_IRONSIDE_DVFS_SERVICE'. Standardize the configuration macro across the codebase.
    zephyr_library_sources_ifdef(CONFIG_NRFS_HAS_DVFS_SERVICE ${HELPERS_DIR}/dvfs_oppoint.c)

int "IRONSside DVFS change oppoint mutex timeout"
default 100
help
Maximum tiemout when waiting for DVFS oppoint change mutex lock.
Copy link
Preview

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

The word 'tiemout' appears to be a misspelling. It should be corrected to 'timeout'.

Suggested change
Maximum tiemout when waiting for DVFS oppoint change mutex lock.
Maximum timeout when waiting for DVFS oppoint change mutex lock.

Copilot uses AI. Check for mistakes.

@lstnl lstnl force-pushed the move_DVFS_to_secdom branch from 726cc7e to 1af32a0 Compare June 23, 2025 12:54
Added handling of new IRONside DVFS service.
NRFS DVFS is now not enabled by default.

Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
(cherry picked from commit a0777734de0c33a1341ce57747590fc268cf85ea)
@lstnl lstnl force-pushed the move_DVFS_to_secdom branch from 1af32a0 to a66fce3 Compare June 24, 2025 08:20
Copy link

@bjarki-andreasen bjarki-andreasen merged commit dfccb09 into nrfconnect:main Jun 24, 2025
20 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.

5 participants