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

[nrf fromtree] modules: hal_nordic: use CLOCK_CONTROL_NRF2 for HFCLK … #2437

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

piotrkoziar
Copy link
Contributor

…request/release

Makes 802.15.4 use the API under CONFIG_CLOCK_CONTROL_NRF2 in nrf_clock_control.h to request/release HFCLK.

Previous HFCLK requesting/releasing on nRF54H20 was more of a workaround and could produce issues when
comes to sharing the resources.

Signed-off-by: Piotr Koziar [email protected]
(cherry picked from commit b6ca9db)

…request/release

Makes 802.15.4 use the API under CONFIG_CLOCK_CONTROL_NRF2
in nrf_clock_control.h to request/release HFCLK.

Previous HFCLK requesting/releasing on nRF54H20 was more
of a workaround and could produce issues when
comes to sharing the resources.

Signed-off-by: Piotr Koziar <[email protected]>
(cherry picked from commit b6ca9dbc713bffd80ad6a5d5b4cb4564fd192042)
@piotrkoziar
Copy link
Contributor Author

FYI @ankuns

@ankuns
Copy link
Contributor

ankuns commented Jan 22, 2025

Some fix is missing, see CI:

zephyr/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c:36:13: warning: 'hfclk_on_callback' defined but not used [-Wunused-function]

zephyr/modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c:34:28: warning: 'hfclk_cli' defined but not used

The upstream commit is not enough. Please make it build in our CI here, then put necessary fix in upstream, then replace the fix commit with the cherrypick.

Copy link
Contributor

@ankuns ankuns left a comment

Choose a reason for hiding this comment

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

fix required

…4 RD

Selects CLOCK_CONTROL config whenever nRF 802.15.4 Radio Driver
is enabled.

The driver requires HFCLK api available under the config switch.

Upstream PR #: 84343

Signed-off-by: Piotr Koziar <[email protected]>
@piotrkoziar
Copy link
Contributor Author

Decided to go with zephyrproject-rtos/zephyr#84343 that will enable the CLOCK_CONTROL required to use the zephyr's changes.
This should make the CI green, instead of enabling CLOCK_CONTROL in every sample that uses nRF 802.15.4 Radio Driver

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.

2 participants