-
Notifications
You must be signed in to change notification settings - Fork 1.4k
mpsl: nrf2220 temperature compensation #22143
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
mpsl: nrf2220 temperature compensation #22143
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 46ef7329fc7bcf319ae3244181b12b47017c70c6 more detailssdk-nrf:
Github labels
List of changed files detected by CI (8)Outputs:ToolchainVersion: 1d2c5d0ab5 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
89dd65d to
d549926
Compare
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.
Looks good from the Muffin point of view
|
You can find the documentation preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsdoc.z6.web.core.windows.net/PR-22143/nrf/app_dev/device_guides/fem/fem_nrf2220.html |
d549926 to
33a016d
Compare
33a016d to
c6cfd4e
Compare
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.
alignment of these are all off
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.
fixed
For the nRF2220 the temperature compensation feature is added. It allows to achieve better output power accuracy among the whole supported temperature range. The feature is enabled by the MPSL_FEM_NRF2220_TEMPERATURE_COMPENSATION Kconfig option. It relies on functions provided by MPSL in the sdk-nrfxlib. The temperature source can be taken from the SoC or can be set by custom implementation. Signed-off-by: Andrzej Kuros <[email protected]>
The nRF2220 temperature compensation is recently added. The protocols relying on the fem_al do not use the MPSL scheduler. In this case the function `mpsl_fem_nrf2220_temperature_changed_update_now` must be called by a protocol driver which for this case is the fem_al. Signed-off-by: Andrzej Kuros <[email protected]>
The changelog entry is added. Signed-off-by: Andrzej Kuros <[email protected]>
c6cfd4e to
46ef732
Compare
This PR brings in a temperature compensation feature for the nrf2220 Front-End Module allowing better accuracy of output power setting.
The API exposed by the MPSL https://github.com/nrfconnect/sdk-nrfxlib/blob/main/mpsl/fem/nrf2220/include/protocol/mpsl_fem_nrf2220_protocol_api.h
is used.
The nRF2220 temperature compensation feature is enabled by the new Kconfig option
MPSL_FEM_NRF2220_TEMPERATURE_COMPENSATION.The temperature is provided by either taking the SoC temperature (default) Kconfig option
MPSL_FEM_NRF2220_TEMPERATURE_SOURCE_SOCor is provided by userMPSL_FEM_NRF2220_TEMPERATURE_SOURCE_CUSTOM.The feature requires a i2c_nrfx_twim driver extension covered by PR nrfconnect/sdk-zephyr#2585 (already in sdk-zephyr). This extension provides just the ability to take exclusive access to the TWIM bus. Extending the i2c_nrfx_twim driver in upstream was considered inappropriate. It was agreed that whil having exclusive access to the i2c bus, the feature will use the nrfx_twim driver directly.
Note: This is a new PR for #20960 that has been partially reviewed (closed by bot NordicBuilder), I can't reopen that PR.