Skip to content

[nrf fromlist] drivers: clock control: ironside dvfs hsfll #3006

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

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

Conversation

lstnl
Copy link
Contributor

@lstnl lstnl commented Jun 30, 2025

Extended clock control driver to support new DVFS service from IronSide secure domain. Added new compatible nrf-iron-hsfll-local which can be used to enable new DVFS service support in local domain.

Upstream PR #: 92239

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 extends the clock control driver to support the new IronSide DVFS service in the local domain by introducing a new binding and driver specifically for Nordic nRF IronSide HSFLL. Key changes include:

  • Adding the new DTS binding file for "nordic,nrf-iron-hsfll-local"
  • Implementing the new clock control driver in clock_control_nrf_iron_hsfll_local.c to integrate the DVFS service
  • Updating Kconfig, CMakeLists.txt, and board DTS files to enable and configure the new driver

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
dts/bindings/clock/nordic,nrf-iron-hsfll-local.yaml New binding to describe the clock frequency and FICR properties
drivers/clock_control/clock_control_nrf_iron_hsfll_local.c New driver implementing DVFS changes and clock configuration
drivers/clock_control/Kconfig.nrf New Kconfig options to enable the local HSFLL driver and DVFS setup
drivers/clock_control/CMakeLists.txt Updated build definitions to include the new driver
boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp_iron.dts Updated board DTS to use the new "nordic,nrf-iron-hsfll-local"
Comments suppressed due to low confidence (1)

drivers/clock_control/Kconfig.nrf:296

  • [nitpick] Consider expanding the help text for CLOCK_CONTROL_NRF_IRON_HSFLL_LOCAL_REQ_LOW_FREQ to clarify its usage and the implications of scaling down to the lowest operating point after DVFS initialization.
	help

return i;
}

LOG_ERR("invalid frequency");
Copy link
Preview

Copilot AI Jun 30, 2025

Choose a reason for hiding this comment

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

Consider improving the error message in hsfll_resolve_spec_to_idx to indicate the acceptable frequency range or valid values, which may help integrators diagnose configuration issues.

Suggested change
LOG_ERR("invalid frequency");
LOG_ERR("invalid frequency. Valid frequencies are: %u, %u, %u MHz",
HSFLL_FREQ_LOW / MHZ(1), HSFLL_FREQ_MEDLOW / MHZ(1), HSFLL_FREQ_HIGH / MHZ(1));

Copilot uses AI. Check for mistakes.

@lstnl lstnl force-pushed the nrf-clock-ctrl-ironside-hsfll branch 5 times, most recently from f27c3f3 to c12816a Compare July 2, 2025 10:26
Copy link

sonarqubecloud bot commented Jul 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
17.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Extended clock control driver to support new DVFS service
from IronSide secure domain. Added new compatible nrf-iron-hsfll-local
which can be used to enable new DVFS service support in local
domain.

Upstream PR #: 92239

Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
@lstnl lstnl force-pushed the nrf-clock-ctrl-ironside-hsfll branch from c12816a to a2f3084 Compare July 4, 2025 09:34
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.

1 participant