Skip to content

Commit

Permalink
applications: nrf_desktop: Use high Global Domain frequency on nRF54H20
Browse files Browse the repository at this point in the history
In nRF Desktop application, the DVFS module running on the application
core selects clock control and enables automatic low GD frequency
request. Update IPC radio configuration to ensure high GD frequency,
which is required to ensure stability of the Bluetooth stack with
SoftDevice Link Layer.

Jira: NCSDK-31824

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
Signed-off-by: Pekka Niskanen <pekka.niskanen@nordicsemi.no>
  • Loading branch information
MarekPieta committed Feb 20, 2025
1 parent 11f3037 commit d1c1ae1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ CONFIG_SPEED_OPTIMIZATIONS=y
CONFIG_LTO=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

# Bluetooth stack with SoftDevice Link Layer requires high frequency in Global Domain (GD) to make L2 cache and MRAM run fast to avoid code execution delays.
CONFIG_CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_REQ_LOW_FREQ=n

################################################################################
# Debug logs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ CONFIG_SPEED_OPTIMIZATIONS=y
CONFIG_LTO=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

# Bluetooth stack with SoftDevice Link Layer requires high frequency in Global Domain (GD) to make L2 cache and MRAM run fast to avoid code execution delays.
CONFIG_CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_REQ_LOW_FREQ=n

################################################################################
# Disable unused features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ nRF Desktop
* Disabled Bluetooth long workqueue (:kconfig:option:`CONFIG_BT_LONG_WQ`).
* Limited the number of key slots in the PSA Crypto core to 10 (:kconfig:option:`CONFIG_MBEDTLS_PSA_KEY_SLOT_COUNT`).

* Disabled the :kconfig:option:`CONFIG_CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_REQ_LOW_FREQ` Kconfig option in the IPC radio image configuration for the nRF54H20 SoC.
This is done to ensure that the radio core requests high Global Domain (GD) frequency.
The option was enabled by default, because the clock control is enabled by the Multiprotocol Service Layer (MPSL).
Bluetooth stack with the SoftDevice Link Layer requires high frequency in GD to make the L2 cache and MRAM run fast to avoid code execution delays.
The :ref:`nrf_desktop_dvfs` running on the application core selects the clock control and enables an automatic low GD frequency request (:kconfig:option:`CONFIG_CLOCK_CONTROL_NRF2_GLOBAL_HSFLL_REQ_LOW_FREQ`), so the application core would not request high frequency in the GD.

* Added:

* System Power Management for the :ref:`zephyr:nrf54h20dk_nrf54h20` board target on the application and radio cores.
Expand Down

0 comments on commit d1c1ae1

Please sign in to comment.