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/fromlist] add dmm component #1817

Closed
wants to merge 504 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 1, 2024

  1. [nrf noup] tree-wide: support NCS Partition Manager (PM) definitions

    Partition Manager (PM) is a component of the nRF Connect SDK (NCS)
    which uses yaml files to resolve flash partition placement with a
    holistic view of the entire device, including each firmware image
    present on the flash device, and various subsystems, such as settings
    and NFFS.
    
    When this NCS extension is used, various source files which would use
    partition information from devicetree in "vanilla" zephyr instead use
    defines generated by PM instead.
    
    This commit removes support for HEX_FILES_TO_MERGE, as it conflicts
    with PM.
    
    The settings subsystem pm.yml defines a partition 'settings_storage'.
    The nffs subsystem pm.yml defines 'nffs_storage'.
    
    Leverage label translation to avoid patching partition names.
    
    Refer to the NCS documentation page for this feature for more details.
    
    This is a long-running out of tree patch which has been worked on by
    several people. The following sign-offs are in alphabetical order by
    first name.
    
    Signed-off-by: Andrzej Głąbek <[email protected]>
    Signed-off-by: Andrzej Puzdrowski <[email protected]>
    Signed-off-by: Håkon Øye Amundsen <[email protected]>
    Signed-off-by: Ioannis Glaropoulos <[email protected]>
    Signed-off-by: Joakim Andersson <[email protected]>
    Signed-off-by: Johann Fischer <[email protected]>
    Signed-off-by: Martí Bolívar <[email protected]>
    Signed-off-by: Ole Sæther <[email protected]>
    Signed-off-by: Robert Lubos <[email protected]>
    Signed-off-by: Sebastian Bøe <[email protected]>
    Signed-off-by: Sigvart Hovland <[email protected]>
    Signed-off-by: Thomas Stenersen <[email protected]>
    Signed-off-by: Torsten Rasmussen <[email protected]>
    Signed-off-by: Øyvind Rønningstad <[email protected]>
    Signed-off-by: Trond Einar Snekvik <[email protected]>
    Signed-off-by: Gerard Marull-Paretas <[email protected]>
    Signed-off-by: Tomasz Moń <[email protected]>
    Signed-off-by: Dominik Ermel <[email protected]>
    (cherry picked from commit fbfb4df)
    sigvartmh authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    e683785 View commit details
    Browse the repository at this point in the history
  2. [nrf noup] boards: add nrf54l15/nrf54l15/cpuapp/ns as board variant

    This commit adds the nRF54l15//nrf54l15/cpuapp/ns board variant to
    sdk-zephyr. It allows to build nRF54l15pdk with TF-M in nRF Connect SDK.
    
    This is done as a nrf noup patch as the out-of-tree board extension
    feature is not available. When zephyrproject-rtos/zephyr#69548 is
    completed, then this commit can be reverted and the variant be placed in
    sdk-nrf repository.
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit 8217fd3)
    tejlmand authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    8dd103c View commit details
    Browse the repository at this point in the history
  3. [nrf noup] kernel: Disable boot banner if NCS_BOOT_BANNER is enabled

    Zephyr's boot banner should not be used if NCS boot banner is enabled.
    
    Signed-off-by: Robert Lubos <[email protected]>
    (cherry picked from commit 67b7cca)
    rlubos authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    9408e84 View commit details
    Browse the repository at this point in the history
  4. [nrf noup] boards: nordic: 54L: Complete rewrite of the 54l_ns DT

    Complete rewrite of the 54l_ns DT board definition.
    
    Now the secure board and non-secure board re-use a lot more code,
    giving us a more maintainable solution.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    (cherry picked from commit 5e11b5f)
    SebastianBoe authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    0fb8231 View commit details
    Browse the repository at this point in the history
  5. [nrf noup] Revert "modules: mbedtls: fix pk ecc functions undefined r…

    …eferences"
    
    This reverts commit b876bd2.
    
    That needs mbed TLS 3.6.0 to work, as pk_ecc.c was added in that
    version.
    
    To be reverted, when mbed TLS is updated to 3.6.0 in NCS.
    
    Signed-off-by: Robert Lubos <[email protected]>
    (cherry picked from commit 590a64a)
    rlubos authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    9558189 View commit details
    Browse the repository at this point in the history
  6. [nrf noup] Bluetooth: Mesh: remove legacy adv support

    Removes explicit support for the legacy advertiser due
    to incompatibility with SDC.
    
    The legacy advertiser can be used (experimentally) with the
    Zephyr Link Layer enabled, but is not recommended.
    
    Signed-off-by: Håvard Reierstad <[email protected]>
    (cherry picked from commit 60fce5e)
    HaavardRei authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    86abcc0 View commit details
    Browse the repository at this point in the history
  7. [nrf noup] Bluetooth: Mesh: Disable processing of ext ADV packets

    Disable processing of extended ADV packets by mesh scanner.
    This is done to prevent loss of scan time due to reception
    of pointer packets while scanning for mesh packets.
    
    Signed-off-by: Ingar Kulbrandstad <[email protected]>
    (cherry picked from commit 18285a0)
    Balaklaka authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    ee9d284 View commit details
    Browse the repository at this point in the history
  8. [nrf noup] board: nordic: thingy53: Default to update only MCUboot type

    Changes the default MCUboot mode to update only for the thingy53,
    to align with previous bootloader builds
    
    Signed-off-by: Jamie McCrae <[email protected]>
    (cherry picked from commit 48cb4e7)
    nordicjm authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    51bda5d View commit details
    Browse the repository at this point in the history
  9. [nrf noup] samples/../smp_svr: fix nrf54l15pdk ext flash dts overlay

    Align to changes in DTS:
      renamed: rram0 -> cpuapp_rram
      sized up cpauapp_rram region szie as part of it was reserved for
      cpuflpr_rram (which is not used by this config).
    
    Signed-off-by: Andrzej Puzdrowski <[email protected]>
    (cherry picked from commit c3898cc)
    nvlsianpu authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    685a735 View commit details
    Browse the repository at this point in the history
  10. [nrf noup] dts: nordic: Add support for BICR generation

    This will be replaced by a different solution upstream (NCSDK-27673).
    
    Migrate the existing BICR bindings from NCS 2.4.99-cs3 to NCS 2.7.0.
    They are updated to remove obsoleted values. Enable generating bicr.hex
    for Application core by default.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit eb8e8ef)
    57300 authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    95fbf6c View commit details
    Browse the repository at this point in the history
  11. [nrf noup] dts: nordic: LFXO crystal settings adjustment

    Adjustment LFXO CLOAD value. New value is a resualt of DK's characterization.
    
    Signed-off-by: Karol Lisak <[email protected]>
    (cherry picked from commit fa10fde)
    karl-nordic authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    0ad36a6 View commit details
    Browse the repository at this point in the history
  12. [nrf noup] samples: sysbuild: hello_world: support PM on nRF53

    PM support is still required for nRF53 in the context of NCS.
    
    Signed-off-by: Gerard Marull-Paretas <[email protected]>
    (cherry picked from commit b42e02d)
    gmarull authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    e8a7c17 View commit details
    Browse the repository at this point in the history
  13. [nrf noup] settings: nvs: use dedicated lookup cache hash function

    Introduce NVS_LOOKUP_CACHE_FOR_SETTINGS Kconfig option that
    enables a dedicated hash function for the NVS lookup cache
    that takes advantage of the NVS ID allocation scheme used
    by the NVS settings backend. As such, this option should
    only be used if an application uses NVS via the settings
    layer.
    
    Signed-off-by: Damian Krolik <[email protected]>
    (cherry picked from commit 3198700)
    Damian-Nordic authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    83f3672 View commit details
    Browse the repository at this point in the history
  14. [nrf noup] entropy: Add fake entropy nRF PRNG driver

    This adds temporary entropy driver simulation for
    nRF54h20 device since final entropy source is not
    available yet.
    
    TODO: Remove this commit when proper solution will
    be available.
    
    Jira: NCSDK-25947
    
    Signed-off-by: Kamil Gawor <[email protected]>
    Signed-off-by: Robert Lubos <[email protected]>
    (cherry picked from commit c80ee99)
    KAGA164 authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    a902788 View commit details
    Browse the repository at this point in the history
  15. [nrf noup] bluetooth: conn: Allow for an extra ref in bt_conn_send_cb

    Allow for an additional buffer reference if callback is provided. This
    can be used to extend lifetime of the net buffer until the data
    transmission is confirmed by ACK of the remote.
    
    Jira: NCSDK-27422
    
    Signed-off-by: Marek Pieta <[email protected]>
    (cherry picked from commit c735ea2)
    MarekPieta authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    178b807 View commit details
    Browse the repository at this point in the history
  16. [nrf noup] bluetooth: att: Allow ATT sent callback after data TX is done

    By default, the BLE stack calls sent callback for ATT data when the data
    is passed to BLE controller for transmission. Enabling this Kconfig
    option delays calling the sent callback until data transmission is
    finished by BLE controller (the callback is delayed until receiving the
    num complete packets event).
    
    Jira: NCSDK-27422
    
    Signed-off-by: Marek Pieta <[email protected]>
    (cherry picked from commit 3611f46)
    MarekPieta authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    d74e0b5 View commit details
    Browse the repository at this point in the history
  17. [nrf noup] boards: nordic: Turn off MRAM suspend for NRF54H20 DK

    Turn off suspending MRAM for NRF54H20 DK
    This change is required so sections of code
    depending on critical timings will not have unacceptable latency.
    
    Turn on NRFS globally so turning off
    suspending MRAM for NRF54H20 DK will work.
    
    Signed-off-by: Jan Zyczkowski <[email protected]>
    (cherry picked from commit 58284ff)
    (cherry picked from commit 9b6cae8)
    (cherry picked from commit 2c2f60d)
    zycz authored and anangl committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    10c0de0 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. [nrf fromtree] cmake: update zephyr_file to use cmake_path()

    Since the introduction of zephyr_file() then the minimum required CMake
    version has become 3.20.
    Update zephyr_file() to use cmake_path insteasd of set().
    This allows us to normalize the path and thereby also remove duplicates
    in the list as paths are normalized.
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit 8b3d4c6)
    tejlmand authored and anangl committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    06cfbf0 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] sysbuild: introduce sysbuild_root for root adjustment

    Fixes: #73066
    
    Introduce sysbuild_root CMake module similar to the Zephyr root CMake
    module. The sysbuild_root CMake module works similar to existing root
    module, but with the difference that root paths are adjusted relative to
    APP_DIR which is the main image, instead of relative to sysbuild.
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit 24acc7d)
    tejlmand authored and anangl committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    100befc View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. [nrf fromlist] soc: nordic: nrf54h: poweroff: Add support for s2ram

    Add functions for local domain suspend to RAM. Add matching resume
    procedure. Add pm_s2ram function for determining source of reset.
    Add preserving NVIC and MPU state in retained RAM when CPU is powered off
    during S2RAM procedure.
    
    Upstream PR: zephyrproject-rtos/zephyr#73095
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    21acc82 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] drivers: timer: nrf_grtc: Add GRTC fix for app and rad…

    … cores
    
    Currently function `z_nrf_grtc_wakeup_prepare()` should be available
    only for the GRTC manager (`CONFIG_NRF_GRTC_START_SYSCOUNTER` is active).
    
    Upstream PR: zephyrproject-rtos/zephyr#73095
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    a12db72 View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] arch: arm: cortex_m: pm_s2ram: Minor typo fix

    Fix typo in `PM_S2RAM_CUSTOM_MARKING` description.
    
    Upstream PR: zephyrproject-rtos/zephyr#73095
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    8c408f2 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] drivers: adc: Update adc driver to support nRF54L15 de…

    …vice
    
    Expands driver to cover nRF54L15 features like AIN as GPIO configuration,
    new reference voltage, different set of supported gain options.
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    (cherry picked from commit 5f1fdc4)
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    8cc4ea9 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] drivers: adc: Update adc driver to support nRF54H20 de…

    …vice
    
    Expands driver to cover nRF54H20 features like 8bit sample width.
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    (cherry picked from commit 13196ec)
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    48eb3d2 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] dts: Update SAADC compatible and expand nRF54H20 dtsi

    Adds full description of the adc node and support for memory regions.
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    (cherry picked from commit 15fa37d)
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    110da5b View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] samples: drivers: adc: Add overlay for nRF54H20 PDK

    Adds configuration to play with nRF54H20 PDK board.
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    (cherry picked from commit 3c4ea76)
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    f64b952 View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] tests: drivers: adc: Add overlay for nRF54H20 board

    Adds configuration for making tests work.
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    (cherry picked from commit ba30517)
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    61d6b1a View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] boards: Enable adc node for nRF54H20 DK

    Enables adc node to make it usable in tests/examples.
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    (cherry picked from commit a04b2ad)
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    aa3cb9d View commit details
    Browse the repository at this point in the history
  10. [nrf fromlist] drivers: adc: saadc: Extend gains support for nRF54L15

    Add support for gains: 1/2, 1/3, 2/5, 1/4.
    
    Upstream PR: zephyrproject-rtos/zephyr#74929
    
    Signed-off-by: Karol Lasończyk <[email protected]>
    kl-cruz authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    0a61309 View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] boards: nordic: nrf54h20: Add ADC to the list of suppo…

    …rted peripherals
    
    ADC driver was aligned to nrf54h20 target.
    Enable ADC Twister tests on that platform.
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    (cherry picked from commit a3e1e39)
    nordic-segl authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    3b99ea9 View commit details
    Browse the repository at this point in the history
  12. [nrf fromtree] samples: drivers: adc: adc_dt: Add nrf54h20 to platfor…

    …m_allow
    
    Enable test execution on nrf54h20dk.
    Overlay file already exists.
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    (cherry picked from commit cc9bd6d)
    nordic-segl authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    4d4f00e View commit details
    Browse the repository at this point in the history
  13. [nrf fromtree] samples: drivers: adc: adc_sequence: Enable test execu…

    …tion on nrf54h20
    
    Add overlay file for nrf54h20 cpuapp target.
    Add nrf54h20 target to platform_allow.
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    (cherry picked from commit 48fc687)
    nordic-segl authored and anangl committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    ded7e9f View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. [nrf fromlist] bluetooth: tester: Adjust Broadcaster ext adv pars

    This change removes the BT_LE_PER_ADV_OPT_USE_TX_POWER option for
    extended advertisement in BLE Audio PTS tests.
    
    The Broadcaster setup options was hardcoded to include the
    BT_LE_PER_ADV_OPT_USE_TX_POWER option. This causes incompabilities
    for any controller not support it, and since the option is not
    required for the audio tests it should not be used here.
    
    Upstream PR: zephyrproject-rtos/zephyr#73361
    
    signed-off-by: Frode van der Meeren <[email protected]>
    Frodevan authored and anangl committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    36fbc3f View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. [nrf fromtree] Bluetooth: Controller: Add Kconfigs to enable Connecti…

    …on Subrating
    
    Add Kconfigs to enable experimental subrating HCI commands.
    
    Signed-off-by: Timothy Keys <[email protected]>
    (cherry picked from commit 570c86d)
    
    Signed-off-by: Timothy Keys <[email protected]>
    weeTike authored and anangl committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    f6325a5 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] tests: boards: nrf: qdec: add tests for qdec for nrf

    Expand testing for QDEC at nrf platforms.
    It uses general sensor API,
    however there are also nrf driver specific assumptions.
    
    Upstream PR: zephyrproject-rtos/zephyr#74677
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and anangl committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    6e6f706 View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] tests: drivers: pwm: extend test coverage

    Extend nrf pwm driver test coverage by testing invalid port number
    
    Upstream PR: zephyrproject-rtos/zephyr#75583
    
    Signed-off-by: Piotr Krzyzanowski <[email protected]>
    nordic-pikr authored and rlubos committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    d402753 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Revert "[nrf fromtree] Bluetooth: Controller: Add Kconfigs to enable …

    …Connection Subrating"
    
    This reverts commit f6325a5.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ae7e261 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] Bluetooth: host: tests: Switch to one-time adv

    This patch removes all uses of the adv auto-resume feature in the host
    bsim tests, except for the test of that feature itself, and instead
    makes all adv starts explicit.
    
    The auto-resume feature is planned for deprecation. And, explicit
    starting of adv makes what happens in the test more explicit as well.
    
    Signed-off-by: Aleksander Wasaznik <[email protected]>
    (cherry picked from commit 765b244)
    alwa-nordic authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3eaa549 View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] Bluetooth: Host: Fix not clearing IDs and keys upon bt…

    …_disable()
    
    Expectation: After calling `bt_disable()` it is possible to
    use the Bluetooth APIs as if `bt_enable()` was never called.
    
    This was not the case for `bt_id_create()`, it was not possible
    to set the default identity. This prevented an application
    developer to restart the stack as a different identity.
    
    Keys also need to be cleared to avoid the following pattern:
    1. Pair two devices
    2. Central calls `bt_disable()` and `bt_enable()`.
       The central will now generate a new identity address.
    3. Connect the two devices.
    4. Re-establish encryption. Now the central will try to use
       the previously used keys. The procedure will fail
       because the peripheral does not have any keys associated
       with the new central address.
    
    The API documentation is updated accordingly.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 3ce106c)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4289609 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] Bluetooth: Host: Fix connection establishment upon RPA…

    … timeout
    
    Before this commit, the following bugs were present:
    - When `CONFIG_BT_FILTER_ACCEPT_LIST` was set, connection establishment
      was cancelled upon RPA timeout. This required the application
      to restart the initiator every RPA timeout.
    - When `CONFIG_BT_FILTER_ACCEPT_LIST` was not set, the RPA was not updated
      while the initiator was running.
    
    This commit unifies the RPA timeout handling for both these cases.
    Upon RPA timeout the initiator is cancelled and restarted when
    the controller raises the LE Connection Complete event.
    The workqueue state is checked when restarting the initiator to prevent
    it being restarted when the timeout is hit.
    
    Corresponding test cases have been added to ensure that this
    feature works.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit ff80c0b)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    9b5cdf5 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] tests: bsim: Use the pre_init_f instead of post_init_f

    When using the post_init_f to initialize the `bst_result`,
    it is not possible to mark the test as
    passed immediately as the `bst_result` will be
    initialized after the test completes.
    
    This change should overcome this limitation.
    
    Bluetooth mesh tests are kept as is as we are not
    sure if this will change the behavior.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 1aa33fe)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    210e6fd View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] Bluetooth: Document reasons for HCI command timeouts

    When reading the error message:
    "ASSERTION_FAIL: command opcode 0x0c03 timeout with err -11" it may not be
    obvious what is wrong with their setup unless you are very familiar
    with HCI.
    
    This commit adds some more documentation to make this more obvious.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 3609d97)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c52d1a8 View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] ztest: Add macros for comparing strings

    These macros allows us to compare strings in a simpler way.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit a35d5e7)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0519762 View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] Bluetooth: Host: Add a test for connection creation ti…

    …meout
    
    It seemed like there was lacking test coverage for this
    functionality.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit b30d2d1)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6f9185d View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] Bluetooth: Host: Allow conn create timeout longer than…

    … RPA timeout
    
    zephyrproject-rtos/zephyr#72674 fixed
    a bug where this configuration did not work.
    
    Now that this configuration is tested, we should mark it
    as supported.
    
    The timeout check that was present in the code before
    was useless and was not working because the check was
    run before a default timeout of 0 was converted to a timeout.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 9cf6839)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a090dd8 View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] Bluetooth: Document that bt_disable() doesn't touch ca…

    …llbacks
    
    A naive implementation would look like
    
    ```c
    void bt_init()
    {
      bt_le_conn_cb_register();
      bt_enable();
    }
    ```
    
    When the app later adds the possibility to enable and disable
    Bluetooth, it may happen that the application developer calls
    `bt_init()` instead of `bt_enable()`. This results in invalid
    behavior. This kind of bug is currently a bit harder to debug
    as the callback register APIs do not reject registering a
    callback twice.
    
    Improving the API documentation is the first step towards making
    this a bit more user friendly.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 2712b32)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a31d85b View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] Bluetooth: Add support for Path Loss Monitoring feature

    This commit adds host support for the Path Loss Monitoring
    feature see Bluetooth Core specification, Version 5.4,
    Vol 6, Part B, Section 4.6.32.
    
    Limited logic is required, just adding a wrapper around the
    HCI command and callback for HCI event.
    
    Add new zone - BT_CONN_LE_PATH_LOSS_ZONE_UNAVAILABLE, to
    convert 0xFF path loss to a useful zone.
    
    Add new Kconfigs and functionality to the bt shell.
    
    Signed-off-by: Sean Madigan <[email protected]>
    (cherry picked from commit 0b327db)
    sean-madigan authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    eda539a View commit details
    Browse the repository at this point in the history
  12. [nrf fromtree] Bluetooth: Host: Conn callback list to use slist

    This allows us to use functionality provided by slist.
    First use case: Avoid adding an element twice.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 6e6bb26)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f52fa08 View commit details
    Browse the repository at this point in the history
  13. [nrf fromtree] Bluetooth: Host: Avoid registering callback twice

    Callbacks can only be registered once. Otherwise the slist
    will become circular.
    
    In this commit we have choosen to ignore the second registration
    call if the callback has already been registed. The alternative
    is to trigger an assertion. That doesn't work if the assertions
    are turned off.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 2ec3cd3)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d7edc33 View commit details
    Browse the repository at this point in the history
  14. [nrf fromtree] Bluetooth: Host: Rename callback_list -> conn_cbs

    This improves consistency with other callback lists like
    scan_cbs and pa_sync_cbs.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 3eb975d)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    7121d33 View commit details
    Browse the repository at this point in the history
  15. [nrf fromtree] Bluetooth: Host: Callback registering functions to ret…

    …urn status
    
    Returning a status code will allow the application developer
    to detect logic issues.
    
    We consider this as not breaking the API.
    If `-Werror -Wunused-result` is enabled, the application developer needs
    to validate the return code.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 5098bf3)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    7f325e5 View commit details
    Browse the repository at this point in the history
  16. [nrf fromtree] Bluetooth: Host: Support concurrent initiating and sca…

    …nning
    
    The HCI command LE Read Supported States command returns
    if the controller supports running the scanner and initiator
    roles in parallel.
    
    This commit utilizes this information in the host:
    - It does not prevent initiating a connection when the scanner is
      running
    - It does not prevent the host from restarting the background
      scanner when there the host wants to auto-initiate a connection.
    - It does not stop the scanner when the host wants to auto-initiate
      a connection.
    
    To support this feature, the scanner and initiator
    always have to use the same address.
    This because the HCI command LE Set Random Address
    cannot be issued after the initiator or scanner has started.
    1. When privacy is disabled, the scanner has to use its identity
       address to ensure it uses the same address as the initiator.
    2. Only one identity is supported.
    
    To simplify the implementation, it is a requirement to use
    extended advertising commands to avoid interfering with
    the random address used by the advertiser(s).
    
    Also, it is a requirement to never use time-limited scanning,
    as RPA this feature does not work when privacy is being used.
    See zephyrproject-rtos/zephyr#73634.
    
    The changes in this commit will be tested out of tree as the
    Zephyr Bluetooth Controller does not support this functionality.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 9984adf)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b7107e2 View commit details
    Browse the repository at this point in the history
  17. [nrf fromtree] checkpatch: Add exception to BRACKED_SPACE rule for ma…

    …cros
    
    When brackets are used in macros, there may sometimes be a space in
    front of them. The checkpatch script should allow this.
    The change includes the example that triggered the need for this
    change.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit f78c51d)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0910dfa View commit details
    Browse the repository at this point in the history
  18. [nrf fromtree] Bluetooth: Host: Add the API bt_hci_err_to_str()

    This API converts a HCI error code to a string.
    This can be useful if application developers want to print them
    in the applications.
    
    Later we can also use them in the host to improve debuggability.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit bfba19d)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a539dbe View commit details
    Browse the repository at this point in the history
  19. [nrf fromtree] cocinelle: Parse ztest test functions

    We want to able to use cocinelle on ztest functions as
    well when transforming APIs.
    
    Provide a simple macro so that test functions are recognized.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit fc37736)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3fdac3f View commit details
    Browse the repository at this point in the history
  20. [nrf fromtree] cocinelle: Add a sematic patch file for ztest string a…

    …ssertions
    
    ztest now provides functionality to compare strings.
    These are simpler to use than the strcmp ways.
    
    The semantic patch transforms many of the commonly used patterns.
    It does not handle variable length macros.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 470a0fc)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6ad7ed5 View commit details
    Browse the repository at this point in the history
  21. [nrf fromtree] Bluetooth: Host: Add log entry for connection creation…

    … timeout
    
    This makes it more clear what is happening when the host cancels
    connection creation where the controller raises
    the connection complete event with status set to
    "UNKNOWN CONNECTION IDENTIFIER (0x02)".
    
    This is especially useful for developers not familiar with this
    detail in the spec.
    
    See also: Core_v5.4, Vol 4, Part E, Section 7.8.13,
    LE Create Connection Cancel command.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 1b33616)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    764855d View commit details
    Browse the repository at this point in the history
  22. [nrf fromtree] Bluetooth: Host: Define bt_att_err_to_str()

    This can be useful if application developers
    want to print them in the applications.
    
    Later we can also use them in
    the host to improve debuggability.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 94d712e)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    9a82da9 View commit details
    Browse the repository at this point in the history
  23. [nrf fromtree] Bluetooth: Host: Define bt_gatt_err_to_str()

    The function reuses the ATT implementation.
    To make the function simpler to use, the function handles both positive
    and negative values.
    
    Unfortunately the APIs do not document if the API returns an
    errno val or a GATT return value.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 4e30803)
    rugeGerritsen authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c658a1d View commit details
    Browse the repository at this point in the history
  24. [nrf fromtree] bluetooth: correct bt_le_scan_param scan type

    The `type` parameter of `struct bt_le_scan_param` is documented as
    taking a `BT_LE_SCAN_TYPE_*` value, not a `BT_HCI_LE_SCAN_*` value.
    
    In practice this makes no difference as the values are defined as the
    same integer, but does result in `<zephyr/bluetooth/hci.h>` not needing
    to be included.
    
    Signed-off-by: Jordan Yates <[email protected]>
    (cherry picked from commit cf870e8)
    JordanYates authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2ed7a5f View commit details
    Browse the repository at this point in the history
  25. [nrf fromtree] Bluetooth: host: disallow scan with timeout when BT_PR…

    …IVACY=y
    
    See comment in code.
    
    Fixes #73634
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit be61ae4)
    jori-nordic authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    1c98844 View commit details
    Browse the repository at this point in the history
  26. [nrf fromtree] Bluetooth: Controller: Add Kconfigs to enable Connecti…

    …on Subrating
    
    Add Kconfigs to enable experimental subrating HCI commands.
    
    Signed-off-by: Timothy Keys <[email protected]>
    (cherry picked from commit 570c86d)
    weeTike authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    00266aa View commit details
    Browse the repository at this point in the history
  27. [nrf noup] soc: arm: nordic: Add Flash/RAM region size for nRF53/91

    fixup! [nrf noup] soc: arm: nRF91: Add SPU Flash/RAM alignment
    
    The nRF54L15 doesn't use the SPU for setting the security attributes
    for flash/RAM regions. In order to avoid having multiple Kconfigs
    with similar meaning I renamed the alignment Kconfig option to something
    more generic in order to use the same symbol for all the TrustZone enabled
    devices.
    
    Ref: NCSDK-25023
    
    Signed-off-by: Georgios Vasilakis <[email protected]>
    Vge0rge authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    fb9682f View commit details
    Browse the repository at this point in the history
  28. [nrf noup] boards: Fix MPC configuration for nRF54L15

    fixup! [nrf noup] boards: add nrf54l15/nrf54l15/cpuapp/ns as board variant
    
    The nRF54L15 is using the SAU and the MPC to configure the security
    attributes for TrustZone. The SPU is only used for the configuration
    of the peripherals. This sets the Kconfig configurations for TrustZone
    which use the correct region size(based on the MPC) for nRF54L15.
    
    Ref: NCSDK-25023
    
    Signed-off-by: Georgios Vasilakis <[email protected]>
    Vge0rge authored and rlubos committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    e16bd76 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. [nrf noup] board: nordic: thingy53: Default MCUboot to use all RAM

    squash! [nrf noup] board: nordic: thingy53: Default to update only MCUboot type
    
    Changes the thingy53 default configuration for sysbuild to enable
    using all RAM in the MCUboot image
    
    Signed-off-by: Jamie McCrae <[email protected]>
    nordicjm committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    494802d View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. [nrf noup] test-spec: fix depencies for nrf_desktop tag

    Should be executed only when bluetooth is changing.
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    2bd44c8 View commit details
    Browse the repository at this point in the history
  2. [nrf noup] test-spec: fix dep for soc/nordic

    Folder renamed at HWMv2:
    soc/arm/nordic_nrf->soc/nordic
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    8c80ab6 View commit details
    Browse the repository at this point in the history
  3. [nrf noup] test-spec: fix dep for samples/bluetooth/hci_ipc

    Renamed:
    samples/bluetooth/hci_rpc->samples/bluetooth/hci_ipc
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    cc58168 View commit details
    Browse the repository at this point in the history
  4. [nrf noup] test-spec: fix depencies for rpc tag

    Update dependent sources.
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    1f1391e View commit details
    Browse the repository at this point in the history
  5. [nrf noup] test-spec: remove gazell tag

    No longer used.
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    e619fe2 View commit details
    Browse the repository at this point in the history
  6. [nrf noup] test-spec: fix depencies for nfc tag

    Update dependent sources.
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    20ab87f View commit details
    Browse the repository at this point in the history
  7. [nrf fromlist] tests: drivers: add more test cases to the i2c_bme688 …

    …test suite
    
    Test NACK handling, bus recovery and FAST speed read.
    
    Upstream PR: zephyrproject-rtos/zephyr#74844
    
    Signed-off-by: Bartosz Miller <[email protected]>
    nordic-bami authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    855520b View commit details
    Browse the repository at this point in the history
  8. [nrf fromlist] modules: hal_nordic: nrfs: fix buffer used in nrfs send

    In function nrfs_backend_send_work tx_data buffer was
    used in function ipc_service_send instead of
    data_to_send. This is fixed and also tx_data and rx_data
    are moved to coresponding functions preventing such
    issues in future.
    
    Upstream PR: zephyrproject-rtos/zephyr#75803
    
    Signed-off-by: Lukasz Stepnicki <[email protected]>
    lstnl authored and anangl committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    6ce5c50 View commit details
    Browse the repository at this point in the history
  9. [nrf fromlist] tests: drivers: mbox: Add negative tests for MBOX driver

    Add negative test cases for the MBOX driver.
    Confirm that driver implementation is aligned with
    the MBOX API documentation available at
    https://docs.zephyrproject.org/latest/hardware/peripherals/mbox.html
    
    Enable test execution on nRF54H20 Application and PPR cores.
    
    Upstream PR: zephyrproject-rtos/zephyr#75114
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    57b2ffe View commit details
    Browse the repository at this point in the history
  10. [nrf fromlist] tests: drivers: mbox: mbox_error_cases: Enable test on…

    … nRF54l15
    
    Add overlay that enables execution of mbox_error_cases on
    nrf54l15pdk/nrf54l15/cpuapp.
    
    Upstream PR: zephyrproject-rtos/zephyr#75114
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    ee4b0a3 View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] samples: drivers: mbox: Extend mbox sample

    Print on what board/core sample is executing.
    
    Print how many bytes of data can be sent
    in the mbox message (show use of mbox_mtu_get_dt()).
    
    Print how many channels are available for incoming and/or
    outgoing messages (show use of mbox_max_channels_get_dt()).
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    (cherry picked from commit c6ef694)
    nordic-segl authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    597a7d2 View commit details
    Browse the repository at this point in the history
  12. [nrf fromtree] samples: drivers: mbox: Fix overlays for nrf54h20

    Add sample configuration 'nrf54h20_app_ppr' where:
    - cpuapp sends messages to cpuppr vevif channel 15,
    - cpuppr sends messages to cpuapp bellboard channel 18.
    
    Add sample configuration 'nrf54h20_rad_app' where:
    - cpuapp sends messages to cpurad bellboard channel 12,
    - cpurad sends messages to cpuapp bellboard channel 18.
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    (cherry picked from commit 92b0d6d)
    nordic-segl authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    147d97b View commit details
    Browse the repository at this point in the history
  13. [nrf fromlist] samples: drivers: mbox: Disable UART Flow Control on n…

    …rf54h20
    
    Nrf54h20dk has UART Flow Control enabled by default on all cores.
    It's a source of problem when mbox sample is run in Twister.
    Twister opens serial port only on host core,
    thus nobody confirms reception of logs from remote core.
    As a result, remote core stucks on printing boot banner.
    
    Twister fails sample due to the timeout while waiting for messages
    from remote to host.
    
    Disable Flow Control on remote core when mbox sample is executed
    on nrf54h20.
    
    Upstream PR: zephyrproject-rtos/zephyr#75309
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    6093f49 View commit details
    Browse the repository at this point in the history
  14. [nrf noup] test-spec: make rs and fem tags more specific

    Still trigger on all code changes but excluded non-code folders.
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    303a836 View commit details
    Browse the repository at this point in the history
  15. [nrf noup] test-spec: make find-my tag more specific

    Base on compilation dependencies.
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and rlubos committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    9772e05 View commit details
    Browse the repository at this point in the history
  16. [nrf noup] soc: nordic: nrf54l: Skip clock configuration from ns

    Do not permit configuring clocks from non-secure as NRF_OSCILLATORS is
    a not supported as a non-secure peripheral
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    SebastianBoe authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    b386341 View commit details
    Browse the repository at this point in the history
  17. [nrf noup] soc: nordic: nrf54l: Port Soc.c to be compatible with TFM

    In this patch we do several things to be able to configure power and
    clocks when NRF_OSCILLATORS and NRF_REGULATORS is secure.
    
    We port soc.c to TF-M so that the TF-M image can do the same
    configuration that would normally be done by the Zephyr image.
    
    This is done by explicitly including autoconf.h for instance.
    
    We also ifdef-out the configuration when nordicsemi_nrf54l_init is
    invoked from a non-secure image, because the peripherals are secure.
    
    Signed-off-by: Sebastian Bøe <[email protected]>
    SebastianBoe authored and nordicjm committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    c989b97 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. [nrf noup] ci: Enable action-manifest-pr

    This action will automatically manage a PR to sdk-nrf
    once a PR to sdk-zephyr is created.
    
    This includes:
     - Creating an initial PR
     - Updating and (optionally) rebase it once the PR
       to sdk-nrf is merged.
    
    The action can be disabled by adding the string
    "manifest-pr-skip" to the title or body of the PR.
    
    This will simplify cherry-picking changes from upstream
    zephyr.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    c465557 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] Bluetooth: Host: Rework enabling of scanner

    To make the scanner module more understandable and more streamlined, I
    reworked the update mechanism of the scanner. The scanner tracks now the
    parameters that were used to enable it and the reason why it is running.
    This facilitates state logic and allows other modules to "start the
    scanner", altough it is already running.
    This is mostly a refactoring and not a functional change.
    
    Added a test to verify the behavior.
    
    Upstream PR: zephyrproject-rtos/zephyr#73923
    
    Signed-off-by: Jan Müller <[email protected]>
    Tschet1 authored and nordicjm committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    daf34bb View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] ci: test_plan: fix handling of v2 boards

    Handling of board changes was broken and did not support v2 boards, fix
    this to optimize CI execution on localized changes of board files.
    
    Signed-off-by: Anas Nashif <[email protected]>
    (cherry picked from commit 94b9790)
    nashif authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0ebe45e View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] arch: kconfig: Set flash size/address to 0 by default …

    …when !XIP
    
    Many boards/SoCs in-tree do this:
        if !XIP
        config FLASH_SIZE
            default 0
        config FLASH_BASE_ADDRESS
            default 0
        endif
    
    And many other boards are missing this configuration (e.g. stm32 series).
    Making this the default helps get non-XIP just working
    
    Signed-off-by: Grant Ramsay <[email protected]>
    (cherry picked from commit c5642a7)
    gramsay0 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    71d9abc View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] ci: move github runners from macos-11 to macos-14

    Move the GitHub runners currently on macos-11 to macos-14 as the former is
    no longer supported by GitHub.
    
    Signed-off-by: Henrik Brix Andersen <[email protected]>
    (cherry picked from commit fa4537d)
    henrikbrixandersen authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    a53ce8a View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] scripts: west_commands: Fix west boards for SoC and ar…

    …ch in modules
    
    Fixes #71761
    
    The `west boards` command parses extra BOARD_ROOTs from Zephyr modules,
    so that the boards defined in those modules are automatically listed.
    
    In HWMv2, OOT boards can be described in terms of OOT SoCs, which means
    that extra SOC_ROOTs must also be provided. Otherwise, an error message
    will be displayed when attempting to list all boards. Therefore, every
    Zephyr module SOC_ROOT should be included as well.
    
    In HWMv1 (deprecated), OOT boards can be defined in terms of OOT archs,
    but module ARCH_ROOTs had never been included automatically. The fix for
    this is long overdue, but it's included for symmetry.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit 7a10c7d)
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    3f3ea87 View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] scripts: list_hardware: Find all SoCs before checking …

    …runner configs
    
    When validating the flash runner configurations in `soc.yml`, the only
    SoCs that were considered had to be defined under this structure:
    
       family:
         - series:
             - socs:
                 - name: ...
    
    However, the `family` and `series` keys are optional, so the `soc.yml`
    files can also be arranged like this:
    
       family:
         - socs:
             - name: ...
       series:
         - socs:
             - name: ...
       socs:
         - name: ...
    
    The solution is to move the validation code further down, so that it can
    reuse the SoC data that was already correctly parsed while initializing
    a `Systems` instance.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit 9b68230)
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d3de867 View commit details
    Browse the repository at this point in the history
  8. [nrf fromlist] cmake: cleanup hwm_v2.cmake module code

    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    Cleanup the Kconfig generating code in hwm_v2.cmake by moving common
    logic inside the kconfig_gen() helper function.
    
    This prepares the code for board extension feature.
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit d39cc46b56294b6eb297a67478334c23db8c8ca3)
    tejlmand authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2b981e6 View commit details
    Browse the repository at this point in the history
  9. [nrf noup] revertme: Cover up merge conflicts

    This automated patch is inserted before a cherry-pick of:
    
    ad16407 cmake: scripts: support board extension
    
    This allows the above commit to be applied cleanly, even though it
    appears to conflict with the following commit(s):
    
    ec3b301 [nrf fromlist] scripts: support soc/boards in Zephyr modules
    
    The conflicts are left to be fixed in a follow-up patch, instead of
    doing so in the cherry-pick itself.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    433e4f9 View commit details
    Browse the repository at this point in the history
  10. [nrf fromlist] cmake: scripts: support board extension

    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    Fixes: #69548
    
    Support extending an existing board with new board variants.
    
    This commit introduces the following changes to allow a board to be
    extended out-of-tree.
    
    The board yaml schema is extended to support an extend field which
    will be used to identify the board to be extended.
    
    A board 'plank' can be extended like this:
    > board:
    >   extend: plank
    >   variants:
    >     - name: ext
    >       qualifier: soc1
    
    For the rest of the build system this means that there is no longer a
    single board directory.
    The existing CMake variable BOARD_DIR is kept and reference the
    directory which defines the board.
    A new CMake variable BOARD_DIRECTORIES provides a list of all
    directories which defines board targets for the board.
    This means the directory which defines the board as well as all
    directories that extends the board.
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit ad16407aca8ccde1aaa57d4d1dcb15bb4d0bfc25)
    tejlmand authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    211b520 View commit details
    Browse the repository at this point in the history
  11. [nrf noup] revertme: Resolve merge conflicts

    This patch finalizes the 3-way merge between:
    
    ad16407 cmake: scripts: support board extension
    
    and:
    
    ec3b301 [nrf fromlist] scripts: support soc/boards in Zephyr modules
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5e49f12 View commit details
    Browse the repository at this point in the history
  12. [nrf fromlist] cmake: scripts: support SoC extension

    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    Fixes: #72374
    
    Support extending an existing SoC with new CPU clusters.
    
    This commit introduces the following changes to allow an SoC to be
    extended out-of-tree.
    
    The SoC yaml schema is extended to support an extend field which
    will be used to identify the SoC to be extended with extra CPU clusters.
    
    A SoC 'a_soc' can be extended like this:
    > socs:
    >   extend: a_soc
    >   cpuclusters:
    >     - name: extra_core
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit c602935faf814c161ea78d19e5a858f7022978c2)
    tejlmand authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    9c91f88 View commit details
    Browse the repository at this point in the history
  13. [nrf fromlist] tests: add twister tests for CMake board and SoC exten…

    …sion
    
    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    This commit adds new tests for verifying the functionality of the board
    and SoC extension feature.
    
    It does so by defining:
    - A new CPU cluster on an existing SoC
    - Two new board variants on top of an existing board
    
    The new board variants are defined on top of the existing `native_sim`
    board, so that the following native_sim board targets are available for
    the test.
    Existing board targets:
    - native_sim/native
    - native_sim/native/64
    
    Extended board targets:
    - native_sim/native/one
    - native_sim/native/64/two
    
    The new CPU cluster is defined for the existing `an521` SoC.
    Existing CPU Clusters on an521:
    - cpu0
    - cpu1
    
    New CPU Cluster:
    - cputest
    
    For SoC tests the mps2 board is used.
    This means that for testing, the following board targets using the an521
    SoC are:
    - mps2/an521/cpu0
    - mps2/an521/cpu1
    - mps2/an521/cputest
    
    Signed-off-by: Torsten Rasmussen <[email protected]>
    (cherry picked from commit 04dda379d7ea202712c68aba60b473cd4b5774ef)
    tejlmand authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5e6ca27 View commit details
    Browse the repository at this point in the history
  14. [nrf fromlist] scripts: west_commands: run: Add priority to run once …

    …config
    
    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    Adds an optional priority parameter to the flash runner run once
    configuration which allows for deciding upon which file should
    ultimately be used
    
    Signed-off-by: Jamie McCrae <[email protected]>
    (cherry picked from commit 88a4c4ecf6906c7b66e6f42402f1f3e22456ff05)
    nordicjm authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e401311 View commit details
    Browse the repository at this point in the history
  15. [nrf fromlist] scripts: list_hardware: Do not check qualifiers for ru…

    …n once config
    
    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    Removes validating the qualifiers for flash run once configuration
    as files may be present that contain information for qualifiers
    that are not present in a single repository but are spaced out in
    other repositories, or might be optional
    
    Signed-off-by: Jamie McCrae <[email protected]>
    (cherry picked from commit b72acf47e550090878fa87145c9766504c3deb13)
    nordicjm authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d2701ba View commit details
    Browse the repository at this point in the history
  16. [nrf fromlist] scripts: gen_dts_cmake: Support variable target name i…

    …n dts.cmake
    
    Upstream PR: zephyrproject-rtos/zephyr#73903
    
    Instead of hardcoding the name `devicetree_target`, we can update the
    generated `dts.cmake` to accept `DEVICETREE_TARGET` as input variable.
    This will become useful in multi-image builds, where we would like to
    process multiple devicetrees.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit cd187c719ae9162a2ab6bd6aeff511a4cc684bdc)
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d53b51e View commit details
    Browse the repository at this point in the history
  17. [nrf fromlist] sysbuild: dts: Introduce sysbuild_dt_* API

    Upstream PR: zephyrproject-rtos/zephyr#73903
    
    Add new functions to `sysbuild_extensions.cmake`, which will mirror the
    familiar dt_* API from Zephyr `extensions.cmake`. For example:
    
       dt_nodelabel(<var> NODELABEL <label>)
    
    gets the following sysbuild counterpart, with one extra argument:
    
       sysbuild_dt_nodelabel(<var> IMAGE <image> NODELABEL <label>)
    
    This API allows sysbuild to retrieve devicetree information for a given
    <image>, only after its respective `ExternalZephyrProject_Cmake()` call.
    
    This works by importing the generated `dts.cmake` files from each
    image's build directory, and creating multiple CMake targets to hold the
    generated properties - much like how the `CMakeCache.txt` and `.config`
    are also imported to be used by the related `sysbuild_get()` function.
    
    The dt_* API itself also has to be updated, in order to read properties
    from a variable `DEVICETREE_TARGET` set in the parent scope.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit 3bf9a41a20ae52adc3ccadc2ff79425160f8ad73)
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    1e0d975 View commit details
    Browse the repository at this point in the history
  18. [nrf fromlist] modules: hal_nordic: nrfx: Add nrfx_config_ext.h

    Upstream PR: zephyrproject-rtos/zephyr#74316
    
    Taking a cue from `nrfx/templates`, introduce this file so that it can
    be overridden out-of-tree to add external nRF product definitions.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit 6ee6468dc7f7a1391d1961e696bbc671ae350c2f)
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d12380d View commit details
    Browse the repository at this point in the history
  19. Revert "[nrf noup] cmake: modules: Add ZEPHYR_NRF_MODULE_DIR to snipp…

    …ets root"
    
    This reverts commit 3a41bb5.
    
    NCS snippet root should have been set in `zephyr/module.yml`.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    57300 authored and rlubos committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0439c7a View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. [nrf noup] soc: nrf54l: Add custom section for KMU

    Add a custom section in the linker which should always
    be placed in the top of RAM. This will be used by the
    KMU to push keys into it. Since when you provision a key
    into the KMU you need to set specific a memory location
    for the PUSH operation we need to keep this memory location
    static across images/dfus.
    
    This is a noup since the KMU is not supported upstream.
    
    Ref: NCSDK-25121
    
    Signed-off-by: Georgios Vasilakis <[email protected]>
    Vge0rge authored and rlubos committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    3845240 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. [nrf fromtree] drivers: mbox: add initial driver for nRF VEVIF event

    Add a mailbox driver for VEVIF events (VPR irq).
    The driver can be built in either 'rx' or 'tx' configuration.
    The VPR sends the event, so it uses the 'tx' configuration,
    while the master core uses the 'rx' configuration of the driver
    to receive the VPR events.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit bace4a1)
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    4e9f725 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] dts: nordic: nrf54l15: Add mbox VEVIF nodes

    Add a mbox VEVIF nodes to be used for communicating FLPR -> APP.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit c7b3651)
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    edf474b View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] drivers: mbox: nrf: Change VEVIFs and BELLBOARD nomenc…

    …lature
    
    Renaming 'LOCAL' to 'RX' and 'REMOTE' to 'TX'.
    This seems more descriptive and intuitive to use.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit 8091e93)
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    a050bcb View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] dts: nordic: Align boards dts to new VEVIF, BELLBOARD …

    …nomenclature
    
    After changing the VEVIF and BELLBOARD names,
    the dts for the individual boards must be aligned.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit 9473e32)
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    5c24516 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] samples: mbox: Add nRF54L15 to MBOX sample targets

    Add nRF54L15 APP and FLPR cores to ping-pong sample application.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit bd40190)
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    06cf8bd View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] samples: ipc: icmsg: Align icmsg sample for nRF54L15

    Add nRF54L15 APP and FLPR cores to icmsg sample application.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit 2cb0a07)
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    245675d View commit details
    Browse the repository at this point in the history
  7. [nrf fromlist] samples: drivers: mbox: Disable UART Flow Control on n…

    …rf54h20 and nrf54l15
    
    Nrf54h20dk and nrf54l15 have UART Flow Control enabled
    by default on all cores.
    It's a source of problem when mbox sample is run in Twister.
    Twister opens serial port only on host core,
    thus nobody confirms reception of logs from remote core.
    As a result, remote core stucks on printing boot banner.
    
    Twister fails sample due to the timeout while waiting for messages
    from remote to host.
    
    Disable Flow Control on remote core when mbox sample is executed
    on nrf54h20 or nrf54l15.
    
    Upstream PR: zephyrproject-rtos/zephyr#75309
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    611d398 View commit details
    Browse the repository at this point in the history
  8. [nrf fromlist] drivers: mbox: Fix error code in Nordic's implementation

    According to the official MBOX API documentation available at
    https://docs.zephyrproject.org/latest/hardware/peripherals/mbox.html
    mbox_sen() shall return
    -EMSGSIZE – If the supplied data size is unsupported by the driver.
    
    Fix error code returned by the mbox_send().
    
    Upstream PR: zephyrproject-rtos/zephyr#75114
    
    Signed-off-by: Sebastian Głąb <[email protected]>
    nordic-segl authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    bdab5cd View commit details
    Browse the repository at this point in the history
  9. [nrf fromlist] wifi_mgmt: Add new API to reset Wi-Fi statistics

    Upstream PR: zephyrproject-rtos/zephyr#75768
    
    Add a new offload API to reset Wi-Fi statistics from
    the Wi-Fi driver.
    
    Signed-off-by: Kapil Bhatt <[email protected]>
    kapbh authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    40ff936 View commit details
    Browse the repository at this point in the history
  10. [nrf fromlist] net: wifi: Add reset command for Wi-Fi statistics

    Upstream PR: zephyrproject-rtos/zephyr#75768
    
    Add "reset" as a subcommand of wifi statistics.
    Also add help option in statistics command.
    
    Signed-off-by: Kapil Bhatt <[email protected]>
    kapbh authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2af3400 View commit details
    Browse the repository at this point in the history
  11. [nrf fromlist] scripts: ci: test_plan: use find_modules only when com…

    …mits are provided
    
    Current implementation will not work if comits were not provided.
    ie. use case with list of changed files will fail as args.commits is None.
    
    Upstream PR: zephyrproject-rtos/zephyr#75927
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and rlubos committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    ba97e9d View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. [nrf fromlist] scripts: list_boards: Reintroduce Board.dir as @Property

    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    In the `Board` class, the `dir` member was renamed to `directories`,
    both to indicate that it is now a list (in HWMv2 with board extensions)
    and to reflect the addition of the `BOARD_DIRECTORIES` CMake variable.
    Considering that the build system also keeps the `BOARD_DIR` variable,
    and for the sake of backwards compatibility and brevity, it should be
    useful to retain `Board.dir` in Python as well, symmetrically.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit 25fd4b16e8c488792d0d8450e1b822292f94d3c3)
    57300 authored and nordicjm committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    a51f1aa View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] scripts: Undo Board.{dir -> directories[0]} renames

    Upstream PR: zephyrproject-rtos/zephyr#72857
    
    `Board.dir` can be used in place of `Board.directories[0]` for brevity.
    
    Signed-off-by: Grzegorz Swiderski <[email protected]>
    (cherry picked from commit 103f7b59548cf5d809d1f105c5c0e2e94396cdfc)
    57300 authored and nordicjm committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    af38d0b View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. [nrf noup] ci: add suit-dfu-test to test-spec

    Add triggers for SUIT DFU tests.
    
    Signed-off-by: Krzysztof Szromek <[email protected]>
    kszromek-nordic authored and nordicjm committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    037880d View commit details
    Browse the repository at this point in the history
  2. [nrf noup] drivers: flash: kconfig: nrf_rram region resolution

    adjusting region resolution to match erase-block-size
    
    Signed-off-by: Mateusz Michalek <[email protected]>
    michalek-no authored and nordicjm committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    66628ac View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. [nrf fromlist] test: drivers: pwm: add fast PWM

    Add fast PWM instance for the nRF54H20 device.
    
    Upstream PR: zephyrproject-rtos/zephyr#75047
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    b8abfdb View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] tests: kernel: timer: Fix failing tests

    This commit provides an additional threshold value for comparison when
    a custom k_busy_wait() implementation is chosen.
    
    Upstream PR: zephyrproject-rtos/zephyr#73068
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3a13f25 View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] tests: kernel: timer: Exclude nRF54H20 PPR core

    The nRF54H20 PPR target has not enough memory to run some of
    kernel/timer tests.
    
    Upstream PR: zephyrproject-rtos/zephyr#73068
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    652c155 View commit details
    Browse the repository at this point in the history
  4. [nrf fromlist] drivers: spi: nrfx_spim: Add support for device PM

    Enable the device runtime power management on the SPIM shim.
    
    Upstream PR: zephyrproject-rtos/zephyr#75715
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    fbeccb4 View commit details
    Browse the repository at this point in the history
  5. [nrf fromlist] tests: drivers: spi: nordic: add device PM runtime

    Add configuration for testing SPI with device runtime PM enabled
    for nRF platforms.
    
    Upstream PR: zephyrproject-rtos/zephyr#75715
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a19a728 View commit details
    Browse the repository at this point in the history
  6. [nrf fromlist] tests: drivers: adc_accuracy

    Add overlay and enable test for nrf52840dk.
    
    Upstream PR: zephyrproject-rtos/zephyr#76088
    
    Signed-off-by: Bartlomiej Buczek <[email protected]>
    nordic-babu authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    860f386 View commit details
    Browse the repository at this point in the history
  7. [nrf fromlist] tests: drivers: adc_accuracy

    Add overlay and enable test for nrf54h20dk.
    
    Upstream PR: zephyrproject-rtos/zephyr#76088
    
    Signed-off-by: Bartlomiej Buczek <[email protected]>
    nordic-babu authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    dfcb520 View commit details
    Browse the repository at this point in the history
  8. [nrf fromlist] tests: drivers: adc_accuracy

    Add overlay and enable test for nrf54l15pdk.
    
    Upstream PR: zephyrproject-rtos/zephyr#76088
    
    Signed-off-by: Bartlomiej Buczek <[email protected]>
    nordic-babu authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    750d7e9 View commit details
    Browse the repository at this point in the history
  9. [nrf fromlist] tests: drivers: adc_api: change second channel gain fo…

    …r nrf54.
    
    It will increase test coverage for adc driver, no test uses
    ADC_GAIN_2_3 setting yet.
    
    Upstream PR: zephyrproject-rtos/zephyr#76088
    
    Signed-off-by: Bartlomiej Buczek <[email protected]>
    nordic-babu authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    d27c6c4 View commit details
    Browse the repository at this point in the history
  10. [nrf fromlist] tests: drivers: adc: add adc_error_cases tests.

    Tests are checking error codes returned from adc_read() and adc_setup_channel() used with invalid configurations.
    
    Upstream PR: zephyrproject-rtos/zephyr#76191
    
    Signed-off-by: Bartlomiej Buczek <[email protected]>
    nordic-babu authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    bd373f1 View commit details
    Browse the repository at this point in the history
  11. [nrf fromlist] scripts: west_commands: nrfjprog: Add support for --qs…

    …piini
    
    Allow for users to provide a --qspiini parameter that is passed directly to
    the nrfjprog executable but only in the --program operation. This is
    required since e073210 enabled the
    -O/--tool-opt for all operations, but --qspiini is only allowed combined
    with --program.
    
    Upstream PR: zephyrproject-rtos/zephyr#75731
    
    Signed-off-by: Carles Cufi <[email protected]>
    carlescufi authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    585c0a6 View commit details
    Browse the repository at this point in the history
  12. [nrf fromlist] scripts: west_commands: nrfjprog: Change tool-opt help…

    … text
    
    The current option used as an example, --recover, is actually a separate
    option in the runner itself. Instead use --clockspeed as an example,
    which is applicable to all nrfjprog commands.
    
    Upstream PR: zephyrproject-rtos/zephyr#75731
    
    Signed-off-by: Carles Cufi <[email protected]>
    carlescufi authored and nordicjm committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    322426e View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. [nrf fromlist] net: openthread: Add NAT64 send and receive callbacks.

    Packets are routed between OT and Zephyr net stacks.
    For IPv4 these packets are managed by NAT64 by default.
    
    Upstream PR: zephyrproject-rtos/zephyr#75012
    
    Signed-off-by: Marcin Gasiorek <[email protected]>
    MarGasiorek authored and nordicjm committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7a8858f View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] net: openthread: Set CIDR for NAT64

    Implementation of functionality whitch configure CIDR for OT NAT64.
    
    Upstream PR: zephyrproject-rtos/zephyr#75012
    
    Signed-off-by: Marcin Gasiorek <[email protected]>
    MarGasiorek authored and nordicjm committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    86c19bd View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] net: l2: openthread: set multicast loop by default

    When multicast packet is forwarded to the OpenThread stack it has to
    have its "multicast loop" flag enabled to be processed by the stack
    itself instead of only propagating it further.
    
    Upstream PR: zephyrproject-rtos/zephyr#76086
    
    Signed-off-by: Konrad Derda <[email protected]>
    konradderda authored and nordicjm committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    f226bb8 View commit details
    Browse the repository at this point in the history
  4. [nrf fromlist] tests: drivers: nrf_grtc: Add nRF54H20 PPR target

    Add nRF54H20 cpu PPR target to GRTC tests.
    
    Upstream PR: zephyrproject-rtos/zephyr#76215
    
    Signed-off-by: Adam Kondraciuk <[email protected]>
    adamkondraciuk authored and nordicjm committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    d430bfa View commit details
    Browse the repository at this point in the history
  5. [nrf fromlist] tests: drivers: adc_accuracy: parametrize expected acc…

    …uracy
    
    On nrf boards expected accuracy from ref voltage is 64 instead of 32.
    
    Upstream PR: zephyrproject-rtos/zephyr#76088
    
    Signed-off-by: Bartlomiej Buczek <[email protected]>
    nordic-babu authored and rlubos committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c580a48 View commit details
    Browse the repository at this point in the history
  6. [nrf fromlist] net: ipv6: routing: match destination address to a giv…

    …en interface
    
    Before packet is routed there is a check verifying if the destination
    address is not the device's one. However, the check should be limited
    to the packet's original interface. Otherwise, packet cannot be routed
    if it is destined for an other interface of the device.
    
    Upstream PR: zephyrproject-rtos/zephyr#76150
    
    Signed-off-by: Konrad Derda <[email protected]>
    konradderda authored and rlubos committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    2aa5233 View commit details
    Browse the repository at this point in the history
  7. [nrf fromlist] net: ipv6: routing: do not use an original source addr…

    …ess for NS
    
    When a packet's transmission is prepared and Neighbor Solicitation is
    sent its souce address is always the same as of a packet awaiting -
    also for packets routed from an other interface.
    
    Quote from the RFC:
    If the source address of the packet prompting the solicitation is the
    same as one of the addresses assigned to the outgoing interface, that
    address SHOULD be placed in the IP Source Address of the outgoing
    solicitation.  Otherwise, any one of the addresses assigned to the
    interface should be used.
    
    This commit fixes the behavior.
    
    Upstream PR: zephyrproject-rtos/zephyr#76150
    
    Signed-off-by: Konrad Derda <[email protected]>
    konradderda authored and rlubos committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    bdb9641 View commit details
    Browse the repository at this point in the history
  8. [nrf fromlist] net: ipv6: routing: do not loop back already routed pa…

    …ckets
    
    If the packet was routed between interfaces by IPv6 module it should
    not be looped back but has to be passed to the destination interface
    instead.
    
    Upstream PR: zephyrproject-rtos/zephyr#76150
    
    Signed-off-by: Konrad Derda <[email protected]>
    konradderda authored and rlubos committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    8968b02 View commit details
    Browse the repository at this point in the history
  9. [nrf fromlist] net: ipv6: routing: move checking for an own source ad…

    …dress
    
    When IPv6 packet is received, there is a check of the packet's source
    address to verify that it is not interface's non-tentative address.
    
    This commit moves this check to the later stages of processing as
    packets that can be routed are dropped in the early stage otherwise.
    
    Upstream PR: zephyrproject-rtos/zephyr#76150
    
    Signed-off-by: Konrad Derda <[email protected]>
    konradderda authored and rlubos committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    8587f90 View commit details
    Browse the repository at this point in the history
  10. [nrf fromlist] tests: net: sockets: misc: Fix SO_BINDTODEVICE test

    The test case for SO_BINDTODEVICE socket option was flaky, the client
    socket always sent the datagram to the IP address of the second
    interface, so in theory every packet should end up on that interface.
    In practice though, due to imperfect loopback packet handling, the test
    worked as the packet ended up on the interface it was sent from.
    
    The test should send datagrams to the IP addresses of the interface 1
    and 2 alternatively. The server socket binds to ANY address, so w/o
    interface binding it should receive all datagrams, so it allows to
    verify if SO_BINDTODEVICE filtering works fine.
    
    Upstream PR: zephyrproject-rtos/zephyr#76150
    
    Signed-off-by: Robert Lubos <[email protected]>
    rlubos committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    4c996ec View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. [nrf fromtree] net: ipv6: mcast_routing: hop limit handling

    While forwarding a multicast packet decrement hop limit in a common net
    buffer. Also, packets with hop limit equal to 0 should not be forwarded.
    
    Signed-off-by: Konrad Derda <[email protected]>
    (cherry picked from commit 30c38179e8998253195de58f3b8fb394cd26b092)
    konradderda authored and nordicjm committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    2fbc694 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] net: ipv6: scope checking function fix

    Change the implementation of net_ipv6_is_addr_mcast_scope() inline
    function that let us check if a given IPv6 address has a specified
    scope. Previously, it was comparing the whole byte including flags
    of a multicast address. It meant, that while checking for a specific
    scope a one was also checking the flags. Even in Zephyr's net stack
    there are checks for a IPv6 link local scope that are failing for
    addresses that are not marked as "well known" (when least significant
    bit of the flags is set).
    
    Signed-off-by: Konrad Derda <[email protected]>
    (cherry picked from commit 6788de11878a55d3dd37a4a331a80863e34cb0d5)
    konradderda authored and nordicjm committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    85665b2 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. [nrf fromtree] arch: riscv: core: Enable RISCV IRQs for no multithrea…

    …ding
    
    Enable MSTATUS.IEN to allow RISCV interrupts for
    non-multithreaded applications.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit 502fcac)
    jaz1-nordic authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    1e7a13b View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] ipc: icmsg: Align to NO MULTITHREADING

    Adapting icmsg to work without the MULTITHREADING functionality.
    Dependencies for kernel work_queue, mutexes and other functions
    related to running multithreaded applications have been 'ifdefed'.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    
    Upstream PR: zephyrproject-rtos/zephyr#73857
    jaz1-nordic authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    b9de465 View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] samples: mbox: Align to NO MULTITHREADING

    Removed k_sleep dependencies in non-multithreaded runs.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    
    Upstream PR: zephyrproject-rtos/zephyr#73857
    jaz1-nordic authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    130840c View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] samples: ipc: icmsg: Add received bytes metric

    By adding this metric, any problem with the remote core sending messages
    is observable.
    
    Signed-off-by: Celina Sophie Kalus <[email protected]>
    (cherry picked from commit 9e0d4ef)
    celinakalus authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    5616857 View commit details
    Browse the repository at this point in the history
  5. [nrf fromlist] samples: subsys: ipc: icmsg: Align to NO MULTITHREADING

    Removed k_sleep dependencies and added 'printk' instead of LOG
    in non-multithreaded runs.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    
    Upstream PR: zephyrproject-rtos/zephyr#73857
    jaz1-nordic authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    bac6ef7 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] tests: drivers: clock_control: nrf_lf_clock_start: Fix…

    … SYNTH test
    
    Test was not covering nrf54l15 which had Synth source bitfield
    renamed. Changing the test to use Kconfig to determine if
    Synth is present.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit c026b55)
    nordic-krch authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    17f660f View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] tests: drivers: counter: nrf_rtc: fixed_top: Add nrf54…

    …h20 ppr
    
    Add overlays for PPR core on nrf54h20.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit c87ab8c)
    nordic-krch authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    70f3c15 View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] tests: drivers: counter: basic_api: Tweak test timing

    For slow processors it is possible that setting 1 ms alarm and
    then canceling it could lead to alarm expiring before it is canceled
    and that was not expected in the test. Increasing timeout to 1.5ms.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit 331442f)
    nordic-krch authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    f17033a View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] tests: drivers: counter: counter_basic_api: Add nrf54h…

    …20 ppr
    
    Add overlays for PPR core on nrf54h20.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit 4d6c059)
    nordic-krch authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    2e04dd5 View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] tests: drivers: counter: basic_api: Rework nrf54h20 cp…

    …uppr config
    
    Rework configuration so that it does not require special treatment
    in testcase.yaml.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit 407aa5c)
    nordic-krch authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    e229016 View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] tests: drivers: counter: nrf: fixed_top: Rework nrf54h…

    …20 cpuppr config
    
    Rework configuration so that it does not require special treatment
    in testcase.yaml.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit a575d9b)
    nordic-krch authored and rlubos committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    93a1b8c View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. [nrf fromtree] manifest: net: openthread: Regular openthread upmerge …

    …to `3873c6f`.
    
    Regular openthread upmerge to `3873c6fcd5a8a9dd01b71e8efe32ef5dc7923bb1`.
    
    Signed-off-by: Przemyslaw Bida <[email protected]>
    (cherry picked from commit 54d9fe3)
    canisLupus1313 authored and rlubos committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    97595a3 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] net: openthread: Add implementation of TCAT advertisem…

    …ent.
    
    Adds implementation of tcat advertisement API.
    
    Signed-off-by: Przemyslaw Bida <[email protected]>
    (cherry picked from commit 4c34e95)
    canisLupus1313 authored and rlubos committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    44b2b00 View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] net: openthread: Add new kconfig OT options.

    Adding:
    	- `OPENTHREAD_BORDER_AGENT_EPHEMERAL_KEY_ENABLE`
    	- `OPENTHREAD_CHANNEL_MANAGER_CSL`
    	- `OPENTHREAD_PLATFORM_LOG_CRASH_DUMP`
    	- `OPENTHREAD_MULTICAST_DNS`
    	- `OPENTHREAD_VERHOEFF_CHECKSUM`
    
    Signed-off-by: Przemyslaw Bida <[email protected]>
    (cherry picked from commit 7dc830e)
    canisLupus1313 authored and rlubos committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    1d32786 View commit details
    Browse the repository at this point in the history
  4. [nrf fromlist] manifest: net: openthread: Regular openthread upmerge …

    …to `e10a925`.
    
    Regular openthread upmerge to `e10a92570f94ff1e0bc5e0da9ecf0ee135d955a6`.
    
    Additionally commit aligns platform implementation with diag changes:
    openthread/openthread#10354
    
    based on:
    openthread/ot-nrf528xx#822
    
    Upstream PR: zephyrproject-rtos/zephyr#75088
    
    Signed-off-by: Maciej Baczmanski <[email protected]>
    maciejbaczmanski authored and rlubos committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    c784caa View commit details
    Browse the repository at this point in the history
  5. [nrf fromlist] samples: drivers: mbox: Allow coverage calculation

    The sample must end to dump coverage data.
    Stop receiving to prevent callback from interrupting coverage dump.
    
    Upstream PR: zephyrproject-rtos/zephyr#76415
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and nordicjm committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    5f98608 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. [nrf fromlist] modules: hal_nordic: adjust HFCLK ramp-up time.

    Changes the ramp-up time from 1000us to 550us
    on nRF54H20.
    The time must fit inside general preconditions ramp up.
    
    The hfclk time can be adjsuted this way because
    the current solution is not precise until
    the clock_control is available.
    
    Upstream PR: zephyrproject-rtos/zephyr#75320
    
    Signed-off-by: Piotr Koziar <[email protected]>
    piotrkoziar authored and rlubos committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    788e4f3 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] dts: nrf54h20: add missing global dppic and ipct configs

    Adds device tree configs for dppic and ipct connections
    between the Radio core and the Global domains.
    
    The connections are required by the radio driver.
    
    Upstream PR: zephyrproject-rtos/zephyr#74826
    
    Signed-off-by: Piotr Koziar <[email protected]>
    piotrkoziar authored and rlubos committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    c15356d View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. [nrf fromtree] net: ipv6: routing: do not add route to original iface…

    … without ND
    
    When packet is routed between interfaces new routing entry is added
    to the table. This should not be done for interfaces that do not
    support Neighbor Discovery protocol as they are not keep potential
    neighbors in the common table.
    
    Signed-off-by: Konrad Derda <[email protected]>
    (cherry picked from commit 0ac5ab4)
    konradderda authored and rlubos committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ff1c3ba View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] net: ipv6: routing: decide whether to set interface's …

    …LL address
    
    While routing between interfaces source Link-Local L2 address is set
    for a packet. However, it should not be done for some of the interfaces.
    
    This commit adds helper function to check this condition in runtime.
    
    Signed-off-by: Konrad Derda <[email protected]>
    (cherry picked from commit 4e7bf28)
    konradderda authored and rlubos committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3d8a0bd View commit details
    Browse the repository at this point in the history
  3. Revert "[nrf fromtree] dts: nordic: nrf54l15: Add mbox VEVIF nodes"

    This reverts commit edf474b.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f881c8f View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] Bluetooth: samples: hci_ipc: Fix incorrect NULL pointe…

    …r check
    
    The condition was the inverse of what it should have been, leading to an
    inevitable NULL pointer dereference later.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 641b77b)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    e451f0a View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] Bluetooth: drivers: Remove unmaintained B91 HCI driver

    The driver isn't currently buildable due to "west blobs" support never
    having been added for hal_telink. Furthermore, even if the blob
    dependency is manually made available it turns out the code has
    bitrotten to the point where it doesn't build anymore. This situation
    has continued for several years without anyone taking action, so I think
    it's safe to assume this is unmaintained and should be removed.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit f48a57b)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    27ffbb7 View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] Bluetooth: Add devicetree base binding for Bluetooth H…

    …CI drivers
    
    Add a base binding for Bluetooth HCI drivers. All HCI drivers should
    extend this binding (through an include directive) to create their own
    binding files.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 8ae074e)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    e089fbb View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] Bluetooth: include: Add initial HCI driver API definition

    Add the initial HCI driver header file and driver API definition. This
    is distinct from drivers/bluetooth/hci_driver.h in order to support
    legacy (unconverted) drivers for the time being.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 7fb39a6)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    8c6f5c4 View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] Bluetooth: host: Add support for new-style HCI drivers

    Add support for HCI drivers which use the newly defined HCI driver API.
    Since Zephyr (currently) only supports a single HCI driver instance,
    boards are expected to indicate the instance using a new devicetree
    chosen property `zephyr,bt_hci`.
    
    In order to maintain compatibility with not-yet-converted drivers the
    code has been placed behind `#if DT_HAS_CHOSEN(zephyr_bt_hci)`
    conditionals.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit dcff0be)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    639dbf3 View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] Bluetooth: drivers: Convert H4 (UART) HCI driver to ne…

    …w API
    
    Convert the H4 driver to the new HCI driver API. This includes updating
    also any boards that use the driver, i.e. adding the appropriate
    devicetree node and chosen property to them.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 3482a3b)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    c56c3fa View commit details
    Browse the repository at this point in the history
  10. Revert "[nrf noup] dts: choose a crypto accelerator for entropy"

    This reverts commit c2b79f9.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    c841b0e View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] Bluetooth: controller: Update to new HCI driver API

    Update the native controller to the new HCI driver API. The devicetree
    node is placed under existing `radio` nodes, which seemed like the most
    intuitive option.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 44e0f5f)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ffab98f View commit details
    Browse the repository at this point in the history
  12. [nrf noup] dts: choose a crypto accelerator for entropy

    This is a long-term noup patch because crypto driver support is
    NCS-only for both cryptocell and CRACEN.
    
    Set HAS_HW_NRF_CC3XX to be defined in NS build when cryptocell
    is accessed through the PSA API.
    We need to know which CC3XX features are available.
    
    Set PSA as the entropy source for 54L.
    
    PSA is the only NCS-supported interface to CRACEN.
    
    Signed-off-by: Georgios Vasilakis <[email protected]>
    Signed-off-by: Joakim Andersson <[email protected]>
    Signed-off-by: Dominik Ermel <[email protected]>
    Signed-off-by: Sebastian Bøe <[email protected]>
    Signed-off-by: Robert Lubos <[email protected]>
    Signed-off-by: Rubin Gerritsen <[email protected]>
    joerchan authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    7baaf16 View commit details
    Browse the repository at this point in the history
  13. [nrf fromtree] Bluetooth: samples: hci_uart_async: Remove bt_recv() d…

    …ependency
    
    Apps shouldn't try to call bt_recv() since that's not a public API and
    is going completely away with the new HCI driver API. Just inject the
    buffer directly into the k_fifo which we anyway have access to in this
    app.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 7a4cd81)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    1a0b5cb View commit details
    Browse the repository at this point in the history
  14. [nrf fromtree] Bluetooth: host: hci_raw: Use existing H4 defines from…

    … hci_types.h
    
    Use existing defines instead of redefining our own.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit f8befbd)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    532fe86 View commit details
    Browse the repository at this point in the history
  15. [nrf fromtree] Bluetooth: drivers: h5: Convert to new HCI driver API

    Convert the H:5 HCI driver to use the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 00d6633)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    959a3a1 View commit details
    Browse the repository at this point in the history
  16. [nrf fromtree] boards: st: steval_stwinbx1: Add BLE support for STEVA…

    …L-STWINBX1 board
    
    Provide BLE support for STEVAL-STWINBX1 board.
    
    Signed-off-by: Ali Hozhabri <[email protected]>
    (cherry picked from commit ced9fba)
    HoZHel authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6ecec85 View commit details
    Browse the repository at this point in the history
  17. [nrf fromtree] soc: rw61x: Add BLE support for rw61x

    - Add SMU regions
    - Add HCI definition
    - Add config when BT is enabled
    
    Signed-off-by: Yassine El Aissaoui <[email protected]>
    (cherry picked from commit 63791f2)
    yeaissa authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    aaa0523 View commit details
    Browse the repository at this point in the history
  18. [nrf fromtree] Bluetooth: drivers: hci: Get rid of Kconfig choice

    The drivers should be independent after the move to the new HCI driver
    API. Having them as a choice also has unexpected consequences with some
    drivers being unexpectedly enabled.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 97c3a1e)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f230cf1 View commit details
    Browse the repository at this point in the history
  19. [nrf fromtree] Bluetooth: userchan: Support TCP fragmentation of HCI …

    …packets
    
    Keep reading from the HCI socket when a packet is incomplete. The other
    end may not write entire packets, or TCP could fragment in the middle of a
    packet.
    Also fix a potential infinite loop by advancing to the next packet before
    any continue statements.
    
    Signed-off-by: Patrick Stewart <[email protected]>
    (cherry picked from commit 1868987)
    patstew authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3688d18 View commit details
    Browse the repository at this point in the history
  20. [nrf fromtree] Bluetooth: drivers: Convert userchan driver to new API

    Convert the HCI User Channel driver to use the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit bb91aa0)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3905245 View commit details
    Browse the repository at this point in the history
  21. [nrf fromtree] Bluetooth: drivers: userchan: don't fail everything if…

    … driver init fails
    
    With the new HCI driver model it's not always critical if a single
    instance fails to initialize. This is especially true for many test
    applications which provide their own HCI drivers. Instead of causing a
    complete failure, simply fail to initialize the driver instance.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 66b5386)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    dbdc755 View commit details
    Browse the repository at this point in the history
  22. [nrf fromtree] Bluetooth: tests: Convert to new HCI driver API

    Convert all Bluetooth tests that define dummy HCI driver instances to use
    the new HCI driver API. This requires both a custom DTS binding as well
    as an app-specific overlay file.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 1824dcd)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    549e219 View commit details
    Browse the repository at this point in the history
  23. [nrf fromtree] qemu: Use BT_UART instead of BT_NO_DRIVER to enable se…

    …rial port
    
    The CONFIG_BT_NO_DRIVER option will be going away. Use the
    CONFIG_BT_UART option instead (selected by UART HCI drivers) to
    determine whether to enable the qemu serial port for Bluetooth.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit c68770e)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    a7ec38f View commit details
    Browse the repository at this point in the history
  24. [nrf fromtree] Bluetooth: samples: Fix PAwR samples to match board ca…

    …pabilities
    
    These samples were enabled for an nRF board, even though there is no
    upstream support for the feature. Additionally the sample.yaml files
    were forcefully disabling any in-tree HCI drivers, making it impossible
    to use e.g. qemu with an external HCI controller. Simply remove the nRF
    board from the list, as well as the odd Kconfig HCI driver options.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit eddac27)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    fbb3a05 View commit details
    Browse the repository at this point in the history
  25. [nrf fromtree] drivers: hci: Add NXP HCI driver

    Add HCI driver generic to NXP platforms.
    Update west.yml to have ble support for rw61x
    
    Signed-off-by: Axel Le Bourhis <[email protected]>
    Signed-off-by: Yassine El Aissaoui <[email protected]>
    (cherry picked from commit ee03123)
    axelnxp authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3988850 View commit details
    Browse the repository at this point in the history
  26. [nrf fromtree] Bluetooth: Kconfig: Remove BT_NO_DRIVER

    There are no actual users in the main tree anymore, so just remove this
    option.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 589b92b)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    28726ce View commit details
    Browse the repository at this point in the history
  27. [nrf fromtree] Bluetooth: Use device tree to indicate vendor exension…

    … support
    
    Introduce a new bt-hci-vs-ext device tree boolean property to indicate
    device tree support.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit af750cd)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    010d1b7 View commit details
    Browse the repository at this point in the history
  28. [nrf fromtree] Bluetooth: drivers: Convert IPC driver to new API

    Convert the ipc.c HCI driver to the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 6e584a4)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ca3755d View commit details
    Browse the repository at this point in the history
  29. [nrf fromtree] Bluetooth: drivers: Convert psoc6_bless driver to new API

    Convert the hci_psoc6_bless.c HCI driver to the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit e763741)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    4a058fa View commit details
    Browse the repository at this point in the history
  30. [nrf fromtree] Bluetooth: drivers: Convert ESP32 HCI driver to new API

    Convert the hci_esp32.c HCI driver to the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 8953b4e)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    5a43b0e View commit details
    Browse the repository at this point in the history
  31. [nrf fromtree] drivers: bluetooth: hci: Add BlueNRG reset API to ST H…

    …CI SPI BT driver
    
    Add API to perform hardware reset optionally entering firmware updater
    mode.
    
    Remove redundant declaration for bt_spi_send_aci_config; otherwise, we will
    have compiler warning if CONFIG_BT_BLUENRG_ACI is not set.
    
    Signed-off-by: Ali Hozhabri <[email protected]>
    (cherry picked from commit 569183b)
    HoZHel authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    098ee1d View commit details
    Browse the repository at this point in the history
  32. [nrf fromtree] Bluetooth: drivers: Convert SPI drivers to use new HCI…

    … API
    
    Convert the spi.c and hci_spi_st.c drivers to use the new HCI driver API.
    Both drivers are converted in one go since one derives from the other's
    devicetree binding.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 5a09c17)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    fe93e99 View commit details
    Browse the repository at this point in the history
  33. [nrf fromtree] Bluetooth: drivers: Convert ST STM32WBA driver to new API

    Convert the hci_stm32wba.c driver to the new HCI API. Unlike in most cases,
    the devicetree node is already enabled on the SoC level (rather than board
    level). This is in order to mirror how the Kconfig option was originally
    enabled, i.e. on the SoC level.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit b7b606b)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    7108d1d View commit details
    Browse the repository at this point in the history
  34. [nrf fromtree] Bluetooth: drivers: Convert STM32 IPM driver to new API

    Convert the ipm_stm32wb.c HCI driver to the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 501e715)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    62c988c View commit details
    Browse the repository at this point in the history
  35. [nrf fromtree] Bluetooth: drivers: Convert DA1469X HCI driver to new API

    Convert the Renesas DA1469X HCI driver to the new HCI driver API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit f33aab9)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    346c39d View commit details
    Browse the repository at this point in the history
  36. [nrf fromtree] Bluetooth: Controller: Clarify that it can be overridd…

    …en out of tree
    
    Nordic devices are commonly used with the nRF Connect SDK.
    There the SoftDevice Controller is set as the default
    Bluetooth Controller. To avoid confusion when reading DTS
    and Kconfig files, clarify this by adding a note.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 768c45a)
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    24de8e1 View commit details
    Browse the repository at this point in the history
  37. [nrf fromtree] bluetooth: hci_nxp: move vendor specific setup to its …

    …dedicated place
    
    Some vendor specific setup was done inside
    the open() HCI function, those should be
    inside setup() function instead.
    
    Signed-off-by: Yassine El Aissaoui <[email protected]>
    (cherry picked from commit 5c308e0)
    yeaissa authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    1e2a4a2 View commit details
    Browse the repository at this point in the history
  38. [nrf fromtree] dts: binding: add yaml file for nxp HCI

    - used to define hci info
    
    Signed-off-by: Yassine EL -AISSAOUI <[email protected]>
    (cherry picked from commit 39e126d)
    yeaissa authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    99b9a3b View commit details
    Browse the repository at this point in the history
  39. [nrf fromtree] Bluetooth: drivers: Convert NXP HCI driver to new API

    Convert the hci_nxp.c HCI driver to use the new HCI driver API. Also move
    the driver binding under dts/bindings/bluetooth, like all other HCI driver
    bindings.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit fcddefd)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    035d459 View commit details
    Browse the repository at this point in the history
  40. [nrf fromtree] modules: Add Kconfig to Kconfig.mcux for BLE support

    Added NXP_FW_LOADER for NXP platforms.
    Added NXP_RF_IMU for NXP platforms.
    Added MONOLITHIC Flags for NXP platforms.
    
    Signed-off-by: Axel Le Bourhis <[email protected]>
    (cherry picked from commit 6ffbcd4)
    axelnxp authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    20de769 View commit details
    Browse the repository at this point in the history
  41. [nrf noup] dts: Add Bluetooth Controller to nRF54H20

    The nRF54H20 supports a Bluetooth controller.
    The HCI driver interface has changed upstream in
    zephyrproject-rtos/zephyr#72323
    so now we need to add it to device tree.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6e98fa9 View commit details
    Browse the repository at this point in the history
  42. [nrf fromtree] dts: nordic: nrf54l15: Add mbox VEVIF nodes

    Add a mbox VEVIF nodes to be used for communicating FLPR -> APP.
    
    Signed-off-by: Jakub Zymelka <[email protected]>
    (cherry picked from commit c7b3651)
    jaz1-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    d6e5642 View commit details
    Browse the repository at this point in the history
  43. [nrf fromtree] bluetooth: keys_br: Improve bt_foreach_bond

    The BR Keys cannot be scanned by function
    bt_foreach_bond.
    
    Add function bt_foreach_bond_br for br.
    
    The function bt_foreach_bond_br will be
    called by bt_foreach_bond if the BR is
    enabled.
    
    Signed-off-by: Lyle Zhu <[email protected]>
    (cherry picked from commit 2d665c1)
    lylezhu2012 authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    45139fb View commit details
    Browse the repository at this point in the history
  44. [nrf fromtree] Bluetooth: ISO: Avoid bt_iso_chan_disconnected in bt_i…

    …so_reset
    
    The bt_iso_chan_disconnected function will attempt to
    remote ISO data paths as the central.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit f5fd2cf)
    Thalley authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    14bd750 View commit details
    Browse the repository at this point in the history
  45. [nrf fromtree] Bluetooth: conn: Allocate TX context JIT

    `bt_conn_send_cb` used to allocate a TX context (K_FOREVER).
    Instead, we now put the context in the userdata of the buffer.
    
    This means that now this fn will never block and always succeed since the
    tx_queue is a FIFO (infinite size). It just puts the buf on the queue.
    
    The metadata is stored safely in there until we have acquired all the
    necessary resources to send it to the controller without failing: TX
    context and controller buffer.
    
    I.e. when `bt_conn_process_tx` is called, that's when a TX context is
    try-allocated and the contents of `buf->userdata` is moved into it.
    The buffer is now ready to be sent to the lower layer.
    
    `bt_conn_process_tx` will return -EWOULDBLOCK if it's not able to acquire a
    TX context, this PR modifies `bt_conn_prepare_events` to respond to this by
    also waiting on the TX context pool.
    
    Unfortunately, this increases the required userdata size for any buffers
    handed to `bt_conn_send_cb`. This will be fixed in a later commit.
    
    Signed-off-by: Aleksander Wasaznik <[email protected]>
    (cherry picked from commit 52dc64f)
    alwa-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3435fef View commit details
    Browse the repository at this point in the history
  46. [nrf fromtree] Bluetooth: host: Introduce "view" buffer concept

    Instead of allocating segments/fragments and copying data into them, we
    allocate segments as "views" (or slices) into the original buffer.
    
    The view also gives access to the headroom of the original buffer, allowing
    lower layers to push their headers.
    
    We choose not to allow multiple views into the same buffer as the headroom
    of a view would overlap with the data of the previous view.
    
    We mark a buffer as locked (or "in-view") by temporarily setting its
    headroom to zero. This effectively stops create_view because the requested
    headroom is not available.
    
    Each layer that does some kind of fragmentation and wants to use views for
    that needs to maintain a buffer pool (bufsize 0, count = max views) and a
    metadata array (size = max views) for the view mechanism to work.
    
    Maximum number of views: number of parallel buffers from the upper layer,
    e.g. number of L2CAP channels for L2CAP segmentation or number of ACL
    connections for HCI fragmentation.
    
    Reason for the change:
    1. prevent deadlocks or (ATT/SMP) requests timing out
    2. save time (zero-copy)
    3. save memory (gets rid of frag pools)
    
    L2CAP CoC: would either allocate from the `alloc_seg` application callback,
    or worse _steal_ from the same pool, or allocate from the global ACL pool.
    
    Conn/HCI: would either allocate from `frag_pool` or the global ACL pool.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    Co-authored-by: Aleksander Wasaznik <[email protected]>
    (cherry picked from commit 1c8cae3)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f8806d0 View commit details
    Browse the repository at this point in the history
  47. Revert "[nrf noup] bluetooth: conn: Allow for an extra ref in bt_conn…

    …_send_cb"
    
    This reverts commit 178b807.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    7b0ef8c View commit details
    Browse the repository at this point in the history
  48. [nrf fromtree] Bluetooth: host: Change TX pattern (push -> pull)

    The current TX pattern in the host is to try to push a buffer through all
    the layers up until it is ingested by the controller.
    
    Since sending can fail at any layer, we need error-handling and separate
    retry logic on pretty much all layers. That logic obscures the "happy path"
    for people trying ot understand the code.
    
    This commit inverts the control, in a way that doesn't require changing the
    host or HCI driver API (yet):
    
    Layers don't send buffers synchronously, they instead put their buffer in a
    private queue of their own and raise a TX flag on the lower layer. Think of
    it as a `READY` interrupt line that has to be serviced by the lower layer.
    
    Sending is now non-blocking, rate depends on the size of buffer pools.
    
    There is a single TX processing function. This can be thought as the
    Interrupt Service Routine that will handle the `READY` interrupt from the
    layers above.
    
    That `tx_processor()` will then attempt to allocate enough resources in
    order to send the buffer through to the controller. This allocation logic
    does not block.
    
    After acquiring all the resources, the TX processor will attempt to pull
    data from the upper layer. The upper layer has to figure out which buffer
    to pass to the controller. This is a good spot to put scheduling or QoS
    logic in the upper layer.
    
    Notes:
    
    - user-facing API for tuning QoS will be implemented in a future patch
    
    - this scheme could (and probably will) be extended to upper layers (e.g.
      ATT, L2CAP CoC segmentation).
    
    - this patch removes the `pending_no_cb()` memory optimization for
      clarity/correctness. It might get re-implemented after a stabilization
      period. Hopefully with more documentation.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    Co-authored-by: Aleksander Wasaznik <[email protected]>
    (cherry picked from commit 28535fe)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    2ba216a View commit details
    Browse the repository at this point in the history
  49. Revert "[nrf noup] bluetooth: att: Allow ATT sent callback after data…

    … TX is done"
    
    This reverts commit d74e0b5.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    8c8e26f View commit details
    Browse the repository at this point in the history
  50. [nrf fromtree] Bluetooth: L2CAP: Make bt_l2cap_send_pdu()

    This API replaces `bt_l2cap_send()` and `bt_l2cap_send_cb()`.
    
    The difference is that it takes the `struct bt_l2cap_le_chan` object
    directly instead of a connection + CID.
    
    We need the channel object in order to put the PDU on the TX queue. It
    is inefficient to do a search for every PDU when the caller knows the
    channel object's address and can just pass it down.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 38820ef)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    282ac17 View commit details
    Browse the repository at this point in the history
  51. [nrf fromtree] Bluetooth: L2CAP: remove CONFIG_BT_L2CAP_RESCHED_MS

    We don't need it thanks to the new TX architecture.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 48d1cff)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    494da02 View commit details
    Browse the repository at this point in the history
  52. [nrf fromtree] Bluetooth: host: remove TX thread

    We don't need the TX thread anymore.
    
    Generalizing the pull-based architecture (ie. `tx_processor`) to HCI
    commands makes it possible to run the whole TX path from the the system
    workqueue, or any workqueue really.
    
    There is an edge-case, where we call `bt_hci_cmd_send_sync()` from the
    syswq, stalling the system. The proposed mitigation is to attempt to drain
    the command queue from within `bt_hci_cmd_send_sync()`.
    
    My spidey sense tingles however, and it would be better to just remove the
    capability of calling this fn from the syswq. But doing this requires
    refactoring a bunch of synchronous procedures in the stack (e.g. stack
    init, connection establishment, address setting etc), dragging in more
    work. I will do it, but in a later patch.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 28be890)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    11097e3 View commit details
    Browse the repository at this point in the history
  53. [nrf fromtree] Bluetooth: L2CAP: remove seg_pool

    We can get rid of the view pool for SDU segments :)
    We have to make the code slightly more complex :'(
    
    The basic idea is always giving the original SDU buffer to `conn.c` for it
    to pull ACL fragments from.
    
    In order to do this, we need to add the PDU headers just-in-time.
    `bt_l2cap_send_pdu()` does not add them before putting the PDU on the queue
    anymore. They are added by `l2cap_data_pull()` right before the data leaves
    `l2cap.c` for `conn.c`.
    
    We also have to inform `conn.c` "out of band" of the real L2CAP PDU size so
    it doesn't fragment across segment boundaries. This oob is the new `length`
    parameter to the `.pull()` method.
    
    This is the added complexity mentioned above.
    
    Since SDU segmentation concerns only LE-L2CAP, ISO and Classic L2CAP don't
    need this extra logic.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit b6cdf10)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0b8f95d View commit details
    Browse the repository at this point in the history
  54. [nrf fromtree] Bluetooth: host: use __maybe_unused for convenience …

    …variables
    
    In order to suppress compiler warnings w/o using void/ifdef.
    
    Suggested in #72854
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 5a7ef42)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    883f978 View commit details
    Browse the repository at this point in the history
  55. [nrf fromtree] Bluetooth: host: don't pull data if no view bufs

    View buffers are now also a limited resource. Acquire them before
    attempting to pull data. `CONFIG_BT_CONN_FRAG_COUNT` should be tuned on
    a per-application basis to avoid this.
    
    A possible optimization, that was present before, is to not create a
    frag when the original buffer fits the controller's HCI size.
    
    I prefer deferring this optimization to a future patchset.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 9b3f41d)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    dc0679d View commit details
    Browse the repository at this point in the history
  56. [nrf fromtree] Bluetooth: Host: Add Per Adv Sync handle getter

    The same way as `bt_hci_get_adv_handle` and `bt_hci_get_conn_handle` add
    a function to get the handle of a periodic advertising sync.
    
    Signed-off-by: Théo Battrel <[email protected]>
    (cherry picked from commit 7c3a5d5)
    theob-pro authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    69a047f View commit details
    Browse the repository at this point in the history
  57. [nrf fromtree] Bluetooth: doc: Add missing doc in bt_gatt_attr

    Adds missing doc on public member.
    
    Signed-off-by: Knut Eldhuset <[email protected]>
    (cherry picked from commit db9308d)
    knutel-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3214c6b View commit details
    Browse the repository at this point in the history
  58. [nrf fromtree] Bluetooth: Host: Fix deprecation and versioning for HC…

    …I APIs
    
    Add versioning to the new HCI API so that it shows up officially as
    unstable, and add a reference to the new API from the old API.
    
    Signed-off-by: Johan Hedberg <[email protected]>
    (cherry picked from commit 1c53726)
    jhedberg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    64e20d2 View commit details
    Browse the repository at this point in the history
  59. [nrf fromtree] Bluetooth: iso: make TX path service all connections

    ISO connections that were in the TX queue were not getting serviced in
    time. This happens because `iso_data_pull()` returns `NULL` when that
    particular connection (`conn`) is done sending.
    
    But it doesn't trigger the TX processor again to process other channels in
    the queue. This patch fixes that by calling `bt_tx_irq_raise()`.
    
    We can't do this from `conn.c` as we don't know if the `NULL` returned is
    because the current channel is out of data or because it has data but it
    can't send it (e.g. the current buf is being "viewed" already).
    
    Fixes zephyrproject-rtos/zephyr#74321
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 8af7180)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    28d304e View commit details
    Browse the repository at this point in the history
  60. [nrf fromtree] Bluetooth: l2cap: service as much TX channels as possible

    Similar to ISO connections, ACL connections are not serviced as fast as
    possible. Change this, and try to send as much as we have resources for.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit c6345c6)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    55d27d0 View commit details
    Browse the repository at this point in the history
  61. [nrf fromtree] Bluetooth: Host: Define bt_smp_err_to_str()

    This API converts a SMP error code to a string.
    This can be useful if application developers want
    to print them in the applications.
    
    BT_SMP_ERR_SUCCESS was added for completeness.
    
    Later we can also use them in the host to improve debuggability.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit b25985a)
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    aa78a42 View commit details
    Browse the repository at this point in the history
  62. [nrf fromtree] Bluetooth: Host: Define bt_security_err_to_str()

    This can be useful if application developers
    want to print them in the applications.
    
    Later we can also use them in
    the host to improve debuggability.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 69fb606)
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    5481e42 View commit details
    Browse the repository at this point in the history
  63. [nrf fromtree] bluetooth: host: Use K_WORK replace delayable

    Use K_WORK defined. This delayed work is never used with any
    other timeout than K_NO_WAIT, so the "delayed" part of it
    is never actually needed
    
    Signed-off-by: Lingao Meng <[email protected]>
    (cherry picked from commit cfd79e8)
    LingaoM authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    296e3f8 View commit details
    Browse the repository at this point in the history
  64. [nrf fromtree] Bluetooth: Host: Enforce correct pool in `bt_hci_cmd_s…

    …end_sync`
    
    `cmd(buf)` depends on this since it uses `net_buf_id`, which would alias
    multiple pools.
    
    Signed-off-by: Aleksander Wasaznik <[email protected]>
    (cherry picked from commit a9c95c5)
    alwa-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    4d12240 View commit details
    Browse the repository at this point in the history
  65. [nrf fromtree] drivers: bluetooth: Remove unused rsp params

    The `rsp` params actually not used, so removed.
    
    Signed-off-by: Lingao Meng <[email protected]>
    (cherry picked from commit b11c43c)
    LingaoM authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    773c20d View commit details
    Browse the repository at this point in the history
  66. [nrf fromtree] samples: bluetooth: Fixes bt_hci_cmd_send_sync API u…

    …sage
    
    If func:`bt_hci_cmd_send_sync` return no-zero value, indicate
    that `cmd(buf)->status` not zero, in this condition, rsp not
    to assign anything, so remove it.
    
    Signed-off-by: Lingao Meng <[email protected]>
    (cherry picked from commit f6480db)
    LingaoM authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    abb929c View commit details
    Browse the repository at this point in the history
  67. [nrf fromtree] Bluetooth: Host: Fix HCI command timeout usage

    Fix Bluetooth initialization problem caused by PR#72090
    for at least ST boards that are using BlueNRG BLE modules.
    
    For more information, please refer to issue #74528.
    
    Signed-off-by: Ali Hozhabri <[email protected]>
    (cherry picked from commit 3b726de)
    HoZHel authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f15d6f5 View commit details
    Browse the repository at this point in the history
  68. [nrf fromtree] Bluetooth: Host: Add missing buffer length check

    Modified to check the length of the remaining data in buffer
    before processing the next report. The length check is missing
    in the cont routine.
    
    Signed-off-by: Eunkyu Lee <[email protected]>
    (cherry picked from commit e491f22)
    ekleezg authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    20b320c View commit details
    Browse the repository at this point in the history
  69. [nrf fromtree] Bluetooth: Fix CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY buil…

    …d warnings
    
    This commit fixes compilation warnings that are present when compiling
    with CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY as can be seen in this
    compiler log:
    
    """
    In file included from /zephyr-sdk-0.16.1/arm-zephyr-eabi/picolibc/
    include/string.h:215,
                     from /zephyr/subsys/bluetooth/host/smp.c:15:
    In function '__memcpy_ichk',
        inlined from 'sc_send_public_key' at /zephyr/subsys/bluetooth/host/
    smp.c:3006:2:
    /zephyr-sdk-0.16.1/arm-zephyr-eabi/picolibc/include/ssp/string.h:83:1:
    warning: argument 2 null where non-null expected [-Wnonnull]
       83 | __ssp_bos_icheck3_restrict(memcpy, void *, const void *)
          | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /zephyr-sdk-0.16.1/arm-zephyr-eabi/picolibc/include/ssp/string.h:83:1:
    note: in a call to built-in function '__builtin_memcpy'
    /zephyr/subsys/bluetooth/host/smp.c: In function 'smp_public_key':
    /zephyr/subsys/bluetooth/host/smp.c:4214:21: warning: argument 2
    null where non-null expected [-Wnonnull]
     4214 | memcmp(smp->pkey, sc_public_key, BT_PUB_KEY_COORD_LEN) == 0) {
          | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /zephyr-sdk-0.16.1/arm-zephyr-eabi/picolibc/include/string.h:62:10: note:
    in a call to function 'memcmp' declared 'nonnull'
       62 | int memcmp (const void *, const void *, size_t);
          |     ^~~~~~
    """
    
    The warning is caused by the potential use of NULL "sc_public_key"
    global pointer that is not assigned a value in "smp_init()" if
    CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY is enabled. This commit
    conditionally changes the behavior of function "smp_public_key()"
    if CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY is activated to simply return
    and not use the "sc_public_key" variable. Other functions that are not
    called anymore by "smp_public_key()" are also conditionally
    deactivated when CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY is enabled
    
    Signed-off-by: Sebastian Panceac <[email protected]>
    (cherry picked from commit 9ce338d)
    spanceac authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    5b04077 View commit details
    Browse the repository at this point in the history
  70. [nrf fromtree] bluetooth: bt_le_ext_adv_start_param is const

    `bt_le_ext_adv_start` does not modify the `param` argument, which can
    therefore be marked as `const`. This allows the struct to exist purely
    in ROM.
    
    Signed-off-by: Jordan Yates <[email protected]>
    (cherry picked from commit 40eeded)
    JordanYates authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6fca92e View commit details
    Browse the repository at this point in the history
  71. [nrf fromtree] Bluetooth: Host: Remove conn param update checks

    The rationale behind that change is that the Application can use the
    `bt_conn_le_param_update()` API to signal the controller to reschedule
    the link.
    
    Even if the new connection params are within the old ones, the
    controller would be free to choose an e.g. smaller interval. The host
    API should not prevent this usage.
    
    Fixes zephyrproject-rtos/zephyr#74292
    
    Co-authored-by: Knut Eldhuset <[email protected]>
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit ac37d64)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    47dec51 View commit details
    Browse the repository at this point in the history
  72. [nrf fromtree] Bluetooth: Host: Fix recv_enabled field for PAST

    When syncing to a PA using PAST then the sync_info.recv_enabled
    was always just set to true, regardless of what mode was set
    during the subscribe parameters.
    
    The mode(s) are now stored in an array (with the default value
    as well) so that we can retrieve that information when the PA
    has synced via PAST.
    
    It was considered to put the `mode` value into the `bt_conn`
    struct, but that would require an API change as the `bt_conn`
    parameter for the subcribe function uses `const`.
    
    This commit also modifies the guard for PAST to be the more
    correct value CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER instead
    of just CONFIG_BT_CONN.
    
    Signed-off-by: Emil Gydesen <[email protected]>
    (cherry picked from commit 711b42a)
    Thalley authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    bcb5d03 View commit details
    Browse the repository at this point in the history
  73. [nrf fromtree] Bluetooth: host: Use correct user_data size for hci_rx…

    …_pool
    
    `struct acl_data` is used even when Host flow control is not enabled.
    It is written to through the `acl(buf)` accessor in `conn.c:hci_acl()`.
    
    Hopefully no netbufs were harmed by that :/
    
    Signed-off-by: Jonathan Rico <[email protected]>
    (cherry picked from commit 792ae68)
    jori-nordic authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0896506 View commit details
    Browse the repository at this point in the history
  74. [nrf fromlist] Bluetooth: Host: Fix bt_disable() for IPC giving HCI R…

    …eset timeout
    
    Some HCI drivers issue HCI reset when disabling, like the IPC HCI
    driver. We need to keep the RX thread running to allow receiving
    the command complete.
    
    This commit postpones aborting the RX thread until this is done.
    The issue happens started occuring after commit
    d0e75ab87c4b53d66008c941c38709a2fca9dbea.
    
    Fixes #76202.
    
    Upstream PR: zephyrproject-rtos/zephyr#76203
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ff26b0a View commit details
    Browse the repository at this point in the history
  75. [nrf noup] bluetooth: att: Allow ATT sent callback after data TX is done

    By default, the BLE stack calls sent callback for ATT data when the data
    is passed to BLE controller for transmission. Enabling this Kconfig
    option delays calling the sent callback until data transmission is
    finished by BLE controller (the callback is delayed until receiving the
    num complete packets event).
    
    Jira: NCSDK-27422
    
    Signed-off-by: Marek Pieta <[email protected]>
    (cherry picked from commit d74e0b5)
    MarekPieta authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    43cced8 View commit details
    Browse the repository at this point in the history
  76. [nrf fromlist] Bluetooth: Host: Fix compiling PAwR Sync without PAST RX

    The function `bt_hci_le_past_received_v2()` is not compiled
    in for this configuration, so the reference needs to be removed.
    
    Fixes #76268.
    
    Upstream PR: zephyrproject-rtos/zephyr#76269
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    rugeGerritsen authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ee94b90 View commit details
    Browse the repository at this point in the history
  77. [nrf noup] bluetooth: conn: Allow for an extra ref in bt_l2cap_send_pdu

    Allow for an additional buffer reference if callback is provided. This
    can be used to extend lifetime of the net buffer until the data
    transmission is confirmed by ACK of the remote.
    
    Signed-off-by: Marek Pieta <[email protected]>
    MarekPieta authored and nordicjm committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    e84675a View commit details
    Browse the repository at this point in the history
  78. [nrf fromlist] testsuite: coverage: allow disabled multithreading

    k_sched* are not avaliable when there is CONFIG_MULTITHREADING=n
    
    Upstream PR: zephyrproject-rtos/zephyr#76550
    
    Signed-off-by: Piotr Kosycarz <[email protected]>
    nordic-piks authored and rlubos committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    631b9a2 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. [nrf fromtree] Bluetooth: Mark bt_<type>_err_to_str() APIs experimental

    It was pointed out in a future PR that they should have
    a corresponding experimental Kconfig entry.
    
    See PR #73795.
    
    This updates the APIs added in PR #73826 and PR #74295.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 85eadcf)
    rugeGerritsen authored and nordicjm committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    d86a806 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] Bluetooth: HCI: Expose bt_hci_adv_lookup_handle()

    When implementing vendor specific HCI APIs and events,
    we want to be able to convert between host objects,
    handles and back again.
    
    Exposing this API makes that possible.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 5b14748)
    rugeGerritsen authored and nordicjm committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    e6028fb View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] Bluetooth: HCI: Expose bt_hci_per_adv_sync_lookup_hand…

    …le()
    
    When implementing vendor specific HCI APIs and events,
    we want to be able to convert between host objects,
    handles and back again.
    
    Exposing this API makes that possible.
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit e28207d)
    rugeGerritsen authored and nordicjm committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    2071857 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] Bluetooth: HCI: Expose bt_hci_conn_lookup_handle()

    When implementing vendor specific HCI APIs and events,
    we want to be able to convert between host objects,
    handles and back again.
    
    Exposing this API makes that possible
    
    Signed-off-by: Rubin Gerritsen <[email protected]>
    (cherry picked from commit 2967bd8)
    rugeGerritsen authored and nordicjm committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    65acb95 View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] boards: nordic: nrf54h20dk: add DMA attribute to RAM21…

    … & RAM3x
    
    This attribute denotes that DMA operation
    can be performed from a given region.
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit ea361f0)
    nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    b5e2f8f View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] soc: nordic: add dmm component

    DMM stands for Device Memory Management and its role is to streamline
    the process of allocating DMA buffer in correct memory region
    and managing the data cache.
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit 37e511b)
    nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    6638fe9 View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] tests: boards: nrf: add tests for dmm component

    Added tests verify output and input buffers allocation
    using dmm component.
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit d67abdd)
    nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    73607f9 View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] soc: nordic: nrf54h: DMM shall be applied only to rad&app

    cpuppr can only use slow peripherals and uses RAM3 as RAM so
    it does not need to use DMM.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit 0825f24)
    nordic-krch authored and nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0f80a88 View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] tests: boards: nrf: dmm: Adjust test to dmm changes

    After changing dmm to not apply data cache line alignment for all
    regions test needs to be aligned.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit 7a6b355)
    nordic-krch authored and nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    07e4efb View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] soc: nordic: common: dmm: Fix memory utilization

    DMM was enforcing cache line alignment all memory regions, including
    those which were not cacheable. Fixing it by using memory attribute
    from the device tree to determine if alignment needs to be applied.
    
    Because of that memory usage was significantly increased because
    even 1 byte buffers (e.g. for uart_poll_out) was consuming 32 bytes
    (cache line size).
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    (cherry picked from commit 5f32265)
    nordic-krch authored and nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    732fc36 View commit details
    Browse the repository at this point in the history
  11. [nrf fromtree] soc: nordic: common: dmm: fix region alignment getter

    Getting the required alignment size for memory region node
    and device node needs to be handled by a separate macro.
    Otherwise alignment of single byte is reported for any region.
    Add a test that checks for this particular issue.
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    (cherry picked from commit c0d508a)
    nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    cd39ee9 View commit details
    Browse the repository at this point in the history
  12. [nrf fromlist] boards: nordic: nrf54h20dk: add miscellaneous shared m…

    …em for cpusec
    
    This is auxiliary shared memory needed for some of IPC communication.
    
    Upstream PR: zephyrproject-rtos/zephyr#74302
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    6d14832 View commit details
    Browse the repository at this point in the history
  13. [nrf fromlist] tests: drivers: spi_controller_peripheral: make cpurad…

    …_dma reg bigger
    
    This test needs more space for SPI transfer buffers.
    
    Upstream PR: zephyrproject-rtos/zephyr#74302
    
    Signed-off-by: Nikodem Kastelik <[email protected]>
    nika-nordic committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    b7c5e06 View commit details
    Browse the repository at this point in the history