-
Notifications
You must be signed in to change notification settings - Fork 7.5k
modules: hal_nordic: nrf_802154: CCA threshold config in dBm + nRF54L15 clock latency #90795
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
base: main
Are you sure you want to change the base?
Conversation
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
@@ -18,7 +18,11 @@ static bool hfclk_is_running; | |||
|
|||
void nrf_802154_clock_init(void) | |||
{ | |||
/* Intentionally empty. */ | |||
#ifdef NRF54L_SERIES | |||
uint32_t clock_latency_us = z_nrf_clock_bt_ctlr_hf_get_startup_time_us(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just curious. Is there a reason to not do
#if DT_NODE_EXISTS(DT_NODELABEL(hfxo))
uint32_t clock_latency_us = DT_PROP(DT_NODELABEL(hfxo), startup_time_us);
nrf_802154_clock_hfclk_latency_set(clock_latency_us);
#endif
?
If you prefer to call z_nrf_clock_bt_ctlr_hf_get_startup_time_us
, note it is wrapped with
#if DT_NODE_EXISTS(DT_NODELABEL(hfxo))
https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/clock_control/clock_control_nrf.c#L440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property is marked as required on nordic,nrf54l-hfxo
binding. If there is no such property, the build will fail due to missing property.
The new hal_nordic revision brings changes in nrf-802154 component related to CCA threshold configuration. The CCA threshold configuration is now done in dBm units. Signed-off-by: Rafał Kuźnia <[email protected]>
The nrf-802154 component of hal_nordic is updated. The CCA threshold configuration is now done in dBm units, instead of hardware-dependent scale. Fixed a bug, where the CONFIG_NRF_802154_CCA_ED_THRESHOLD units were different from the NRF_802154_CCA_ED_THRESHOLD units. Now all configuration is done in dBm. Signed-off-by: Rafał Kuźnia <[email protected]>
The HFXO used on nRF54L15 DK has the typical startup latency of 854us. Signed-off-by: Rafał Kuźnia <[email protected]>
The clock startup latency is now obtained from the clock driver and the nrf-802154 is now set to a value that matches hardware capabilities. Signed-off-by: Rafał Kuźnia <[email protected]>
|
The nrf-802154 component of hal_nordic is updated. The CCA threshold configuration is now done in dBm units, instead of hardware-dependent scale.
Fixed a bug, where the CONFIG_NRF_802154_CCA_ED_THRESHOLD units were different from the NRF_802154_CCA_ED_THRESHOLD units. Now all configuration is done in dBm.
Addidtionally, added clock latency configuration and a more optimized HFXO startup time for nRF54L15 DK.