[nrf fromlist] drivers: timer: nrf_grtc: Add app-defined post-init function#3443
Closed
57300 wants to merge 1984 commits intonrfconnect:mainfrom
Closed
[nrf fromlist] drivers: timer: nrf_grtc: Add app-defined post-init function#344357300 wants to merge 1984 commits intonrfconnect:mainfrom
57300 wants to merge 1984 commits intonrfconnect:mainfrom
Conversation
… on devicetree Upstream PR #: 95915 Add build system support for populating the PERIPHCONF (global domain peripheral configuration), based on nodes and properties found in the devicetree. This should make it so all samples and tests that were broken by the move to IronSide SE now function correctly without workarounds or manual steps. When enabled, a new python script called gen_periphconf_entries.py is run when building. The script iterates over nodes and properties in the devicetree and generates a C file called periphconf_entries_generated.c in the build directory, which is added as a source file. The C file uses the macros from uicr.h to configure the global domain according to the devicetree. The PERIPHCONF entry generation is enabled by default when building for nrf54h20dk/nrf54h20/cpuapp and nrf54h20dk/nrf54h20/cpurad. It will also be used on nrf9280 soon, therefore it is placed in the common uicr directory. This new feature does the same job as nrf-regtool did when building for nrf54h20 before, and is compatible by the bindings that were used by nrf-regtool. Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
…ut sysbuild Upstream PR #: 95915 Because generation and programming of UICR + PERIPHCONF artifacts depend on the 'uicr' image which in turn must be included by Sysbuild, many if not most nrf54h20 applications will need to be built using Sysbuild to function as intended. To make this known to the user, print a CMake warning whenever CONFIG_NRF_PERIPHCONF_SECTION=y but Sysbuild is not being used. Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
… code The transmit functions will return an error code, instead of a boolean value. To prepare for this, the API calls are temporarily implemented in two variants, for old and new API declarations. The presence of new API will be detected by the use of NRF_802154_TX_FUNCTIONS_RETURN_ERROR_CODE macro, which will be unconditionally defined by a newer nrf-802154 driver. Upstream PR #: 96219 Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
In case of nRF TWIS i2c shim, SoC header include is needed for memory region property presence checker macro. Upstream PR #: 96413 Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
…inal data Add a test case for a scenario where the final data sent by one peer is acknowledged in the FIN,ACK response from the other peer. Verify that the acknowledgment is handled correctly, and a consecutive sequence number sent by the TCP stack in such case is set correctly. This complements the other existing test for FIN packet handling, which verified that data received in a FIN packet is handled correctly. With those tests in place it should be safer to update any logic related to FIN packet handling. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> (cherry picked from commit 99b4357)
In case FIN packed also acknowledged most recently sent data, not all ack-related TCP context variables were updated, resulting in invalid SEQ number values sent in consecutive packets. Fix this by refactoring the FIN handling in TCP_ESTABLISHED state. Instead of having a separate block strictly for FIN packet processing, let the packet be processed by common code responsible for regular data/ack processing. This should be less error-prone for any future modifications or not-yet-discovered issues. Only after the common processing of data/ack is done, we check whether FIN flag was present in the packet, and mark the connection for closing. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> (cherry picked from commit 1781505)
dns_unpack_query() no longer prepends the unpacked query with extra dot, therefore mDNS responder needs to be aligned with this change when parsing result and preparing response. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> (cherry picked from commit 9e59229)
…ange dns_unpack_query() no longer prepends the unpacked query with extra dot, therefore LLMNR responder needs to be aligned with this change when parsing result and preparing response. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> (cherry picked from commit fda8247)
…_query() change Not sure why didn't this cause the test to fail, but just for completeness, align this test suite with dns_unpack_query() change as well. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> (cherry picked from commit c885844)
nrf-squash! [nrf noup] dts: Select SoftDevice Controller DTS binding as default nrf54l20_cpuapp_common.dtsi file was added unnecessarily in this [nrf noup] commit nrfconnect@e9c0ac1 Target nrf54l20pdk has been replaced with target nrf54lm20dk. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Requesting/releasing QDEC device may be ISR safe, but it cannot be reliably known whether managing its power domain is. Is is then assumed that if power domains are used, device is no longer ISR safe. This macro let's us check if we will be requesting/releasing power domains and determines PM device ISR safety value. Upstream PR #: 96402 Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
…fety Requesting/releasing SPIM device may be ISR safe, but it cannot be reliably known whether managing its power domain is. Is is then assumed that if power domains are used, device is no longer ISR safe. This macro let's us check if we will be requesting/releasing power domains and determines PM device ISR safety value. Upstream PR #: 96402 Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
…fety Requesting/releasing TWIM device may be ISR safe, but it cannot be reliably known whether managing its power domain is. Is is then assumed that if power domains are used, device is no longer ISR safe. This macro let's us check if we will be requesting/releasing power domains and determines PM device ISR safety value. Upstream PR #: 96402 Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Added missing cpuapp/iron and cpuppr/xip overlays for rev. 0.2.0. Signed-off-by: Tommi Kangas <tommi.kangas@nordicsemi.no> (cherry picked from commit 9d10d67)
This potentially fixes an issues whereby when sysbuild projects import dts configuration from images and images are reconfigured, that sysbuild will needlessly rerun even if the output has not changed by using a temporary output file and then only updating the actual file if the contents have changed Upstream PR #: 96259 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
…utton/LED Adds aliases so that these can be used by MCUboot Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no> (cherry picked from commit b6e0913)
Some applications need to throttle RRAM writes to handle peak current management. Add CONFIG_NRF_RRAM_THROTTLING_DATA_BLOCK which defines the maximum chunk length that can be written at once. Add CONFIG_NRF_RRAM_THROTTLING_DELAY which configures the sleep delay in microseconds after each write. Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no> (cherry picked from commit a4f5d9f)
Provide a Kconfig option that allows offloading handling of the SSI FIFOs, which the driver normally executes in the interrupt handler, to the system workqueue. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no> (cherry picked from commit 30c4130)
Add test scenario for a Kconfig option that was recently added to the mspi_dw driver. Testing it requires performing some transfers on the MSPI bus with some device, hence flash chip test used. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no> (cherry picked from commit b624a07)
…irements Gitlint-core has loose requirements and not conflicting with scancode-toolkit v32.4.1 (click==8.1.3 vs click>=8.2.0). Signed-off-by: Nicolae Dicu <nicolae.dicu@nordicsemi.no> (cherry picked from commit 67b4063)
…Nuvoton platforms NPCX7, NPCX9, and NPCK3 platforms have their (NUM_IRQS-1) IRQ taken, so set CONFIG_TEST_IRQ_NUM to a different available IRQ. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org> (cherry picked from commit f8e183c)
…nxp_k32l2b3 soc (NUM_IRQS-1) IRQ is taken on this soc, so set CONFIG_TEST_IRQ_NUM to a different available IRQ to avoid test failure. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org> (cherry picked from commit 6610b8c)
Picked IRQ number available on all platforms. Upstream PR #: 96531 Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Add the mapping for the GRTC_CLKOUT_FAST pinctrl mapping to the periphconf generation. This allows clocking out the 16MHz clock with a user selectable divider. Signed-off-by: Karsten Koenig <karsten.koenig@nordicsemi.no> (cherry picked from commit 19f7099)
Added missing features and configuration to support Direct ISRs Signed-off-by: Rafal Dyla <rafal.dyla@nordicsemi.no> (cherry picked from commit 3cf2627)
Enable all possible i2c tests on CPUPPR Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no> (cherry picked from commit b60633b)
add support for gpregret1, nfct Signed-off-by: Matthias Hauser <Matthias.Hauser@we-online.de> Signed-off-by: Matthias Hauser <Matthias.Hauser@we-online.de> (cherry picked from commit 17e1429)
This reverts commit b407648. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This reverts commit 2b3a0c6. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
…y each board Sets the default of this Kconfig for the SoC itself as a default, rather than each board setting it, which minimises the change Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no> (cherry picked from commit 69ce66d)
…runtime Allow to set input or output report polling period at runtime. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> (cherry picked from commit bca0ce0)
…d at runtime Add an example of how to set the polling period at runtime. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> (cherry picked from commit e295a38)
…HY_UPDATE=n Fix inter-operability, when BT_PHY_UPDATE=n the feature bits contained 2M and Coded PHY when Advertising Extensions where enabled, and Central devices did not progress with any data packet transfers when PHY_REQ was rejected as unknown PDU. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 15d3b57) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Fix the issue reported by Coverity CID 487708. The LL_ASSERT was performed on lll->ptc, which is a 4-bit bitfield and therefore always succeeds. Instead, the computation (lll->nse - nse) should be checked to ensure it falls within the 4-bit value range before assigning it to lll->ptc. Signed-off-by: Loic Domaigne <tech@domaigne.com> (cherry picked from commit bfbc636) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Added a check for null pointer in ull_sync_iso.c file to avoid potential crashes. Fixes: #81997 Signed-off-by: Ashirwad Paswan <ashi06712@gmail.com> (cherry picked from commit 21da2d0) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
… req When `CONFIG_NRF_SYS_EVENT` is enabled, route constant latency requests through the reference counted API. Signed-off-by: Jordan Yates <jordan@embeint.com> (cherry picked from commit 1f3ce81) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
ll_length_req_send and ll_length_default_set were defined to return a uint32_t, but only returned a uint8_t HCI error code and was the return value was always stored as such. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no> (cherry picked from commit 4b9bc7d) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…ISO Sync Fix implementation of Broadcast ISO Synchronized Receiver using single switch timer to consider minimum compare value requirement. This fix reduces latencies to setup radio receptions and fixes an assertion in lll_sync_iso when radio_tmr_start_us() is checked for latencies. Relates to commit 5dfc58c ("Bluetooth: Controller: Fix single switch timer minimum compare value"). Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 8eae0bf) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…interface Cosmetic changes to the Link Layer interface header file. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 7fd5dea) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…40_CPUNET Use CONFIG_SOC_COMPATIBLE_NRF5340_CPUNET for nRF53 SoC conditional compilations. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 1fe79a6) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…ignment deadline Reverts relaxed radio packet assignment deadline as it is too risky and can cause invalid bits be transmitted and/or cause MIC failures. Reverts commit 4dbfb22 ("Bluetooth: Controller: Relax radio packet pointer assignment deadline"), and commit 230df77 ("Bluetooth: Controller: Relax radio packet pointer assignment deadline"). Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit a5e1f59) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…on speed Fix to improve decryption speed. Decryption starts after payload reception, hence use fastest mode to decrypt PDUs. nRF54Lx only supports decryption after payload reception, this implementation was already there in the code. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 9b26e96) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…ude cond compile Fix trivial PPIB interface include conditional compile. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 625f305) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Introduce development and fatal assertion classification in the Controller implementation. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 796c000) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Reduce Controller assertion check code size for ARM Cortex-M CPUs by using the undefined instruction exception. `arm-none-eabi-addr2line` commandline can be used to get the source file and line number. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 5db80f0) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…c h/w error event Enable HCI vendor-specific h/w error event generation in samples and tests. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 29cf367) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…ort prepare Add code comments explaining the handling of short prepare that can be enqueued out of order and present in use of FIFO for prepare pipeline. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit d737e28) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
… Support Add Controller Privacy support for nRF54Lx by porting to use NRF_AAR00 h/w peripheral. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 6d79d52) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…er Privacy Conditionally compile Controller Privacy testing and enable advertising test for nRF54L15bsim. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 7a1e7c9) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…acy Support Enable Controller Privacy support for nRF54Lx as default. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 4428c1a) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
If the CIG and ACL overlap each other when the CIS is starting zephyr will assert on negative time, so fit this special case. Signed-off-by: Lars Segerlund <lrsu@demant.com> (cherry picked from commit fc813d9) Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…an/lll_scan_aux Fix use-after-release in lll_scan/lll_scan_aux when using mayfly_enqueue to defer execution of the offset calculation using ull_sched_mfy_after_cen_offset_get(). Apply suggestion from @Copilot Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no> (cherry picked from commit 533ef58) Signed-off-by: Vinayak Kariappa Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
This reverts commit 0e41517. Signed-off-by: Sergey Korotkov <sergey.korotkov@nordicsemi.no>
This reverts commit 6e1d274. Signed-off-by: Sergey Korotkov <sergey.korotkov@nordicsemi.no>
…nction Upstream PR #: 98505 When CONFIG_NRF_GRTC_TIMER_APP_DEFINED_INIT=y, the compiler would warn that `grtc_post_init()` was unused, because this feature was not updated to account for the fact that clock init has been split into two stages. Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no> (cherry picked from commit c161040a28871438dc92b977c37f7df9794f1a40)
9dbc113 to
a137016
Compare
bjarki-andreasen
approved these changes
Nov 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream PR #: 98505
When CONFIG_NRF_GRTC_TIMER_APP_DEFINED_INIT=y, the compiler would warn that
grtc_post_init()was unused, because this feature was not updated to account for the fact that clock init has been split into two stages.manifest-pr-skip