Skip to content

nrf: wifi: add support for external wifi patch#1

Open
Adam-Maciuga wants to merge 3286 commits into
mainfrom
wifi_patch
Open

nrf: wifi: add support for external wifi patch#1
Adam-Maciuga wants to merge 3286 commits into
mainfrom
wifi_patch

Conversation

@Adam-Maciuga
Copy link
Copy Markdown
Owner

Added necessary files for west flash to be able to see external flash

anangl and others added 30 commits April 29, 2026 14:00
This reverts commit 8320568.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
…UBoot"

This reverts commit 683b8fe.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 6b3aadd.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 4cd49f9.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
…ching"

This reverts commit 270cc3f.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 17a2a8c.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
…PARTITION_MANAGER"

This reverts commit e48546d.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit daf9a6a.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit c14cef2.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 413fef8.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
…NO=n"

This reverts commit 56c7896.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
… config"

This reverts commit 8c39a5f.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
…age config"

This reverts commit ffc0901.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 4d3a054.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 97649f1.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 82142db.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit bac94d5.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 433fa6a.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit c660bc0.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This reverts commit 960f89b.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
…ules"

This reverts commit 30e423a.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit sets `ZEPHYR_<MODULE_NAME>_KCONFIG` variable for each
Kconfig file discovered in `nrf/modules/<module>/Kconfig`.

This is not meant as a permanent solution; we should do more careful
consideration on the optimal approach forward that will allow
compliance_check.py to be used downstream with custom
module_ext_roots, and at the same time keep current flexibility for
module glue code handling intact.

Adds a static path for the NRF Kconfig variable in the check
compliance script, this is a temporary workaround due to supporting
an external root for NCS that should be reworked to use package
helper in future

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
(cherry picked from commit 30e423a)
Add scripts/quarantine.yaml file, which will be used in CI.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit 960f89b)
This file is used for NCS-specific testing configuration based on
modifications to files in this repository.

Signed-off-by: Alperen Sener <alperen.sener@nordicsemi.no>
Signed-off-by: Elisabeth Solheim Klakken <elisabeth.solheim@nordicsemi.no>
Signed-off-by: Mariusz Poslinski <mariusz.poslinski@nordicsemi.no>
Signed-off-by: Markus Swarowsky <markus.swarowskyl@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Signed-off-by: Sebastian Wezel <sebastian.wezel@nordicsemi.no>
Signed-off-by: Tomasz Tyzenhauz <tomasz.tyzenhauz@nordicsemi.no>
Signed-off-by: Fredrik Ås <fredrik.aas@nordicsemi.no>
Signed-off-by: Michał Szablowski <michal.szablowski@nordicsemi.no>
Signed-off-by: Tony Le <tony.le@nordicsemi.no>
Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
Signed-off-by: Dawid Przybylo <dawid.przybylo@nordicsemi.no>
Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
Signed-off-by: Jørgen Kvalvaag <jorgen.kvalvaag@nordicsemi.no>
Signed-off-by: Magne Værnes <magne.varnes@nordicsemi.no>
Signed-off-by: Lang Xie <Lang.Xie@nordicsemi.no>
Signed-off-by: Alexander Svensen <alexander.svensen@nordicsemi.no>
Signed-off-by: Jan Gałda <jan.galda@nordicsemi.no>
Signed-off-by: Vladislav Litvinov <vladislav.litvinov@nordicsemi.no>
Signed-off-by: Guojun Wang <guojun.wang@nordicsemi.no>
Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
Signed-off-by: Thomas Stilwell <Thomas.Stilwell@nordicsemi.no>
Signed-off-by: Krzysztof Szromek <krzysztof.szromek@nordicsemi.no>
Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
Signed-off-by: Eduardo Montoya <eduardo.montoya@nordicsemi.no>
Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
(cherry picked from commit c660bc0)
Kconfig search is handled in a separate docset in NCS, so remove the
page. This is a long-term noup patch.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
(cherry picked from commit 433fa6a)
-This allows configurations enabled by PSA_WANTS_ALG_XXXX to be
 used to control which TF-M module is enabled
-If the TF-M image doesn't support e.g. the MAC APIs, then the
 MAC interface is not enabled

Note: This functionality requires that nrf_security is enabled

ref: NCSDK-11689

Make TF-M crypto module depend on PSA_WANT_GENERATE_RANDOM, same
as all other crypto modules, which have PSA_HAS to group all PSA
features that require the module.
This makes TF-M by default exclude the RNG module when not needed.

Signed-off-by: Frank Audun Kvamtrø <frank.kvamtro@nordicsemi.no>
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
(cherry picked from commit bac94d5)
We moved the header files in sdk-mbedtls from the library
folder to the include/library folder. This was done to avoid
issues when building MbedTLS with the nrf_security module
and the Oberon PSA core. The Oberon PSA core provides a subset
of these header files and since they are included with quotes
we cannot have them in the same directory.
This change make the needed adaptions in CMake for the
applications that don't use nrf_security.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
(cherry picked from commit 82142db)
The commits adds support for generating flash disks from Partition
Manager defined partitions.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
(cherry picked from commit 97649f1)
The commit adds bootutil hook, for nrf5340, to allow it
handling the non-accessible image-1/primary slot.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit 4d3a054)
tomi-font and others added 29 commits April 29, 2026 14:04
…TION

Upstream PR #: 106660

To have a way to tell whether PS rollback protection is enabled and
also possibly to turn it off.

The Kconfig option is put in a new Kconfig file dedicated to the
Protected Storage, just as we have for the Crypto modules.

`if BUILD_WITH_TFM` is moved to the main Kconfig file so that we don't
have it in every subfile.

`Kconfig.tfm.crypto_modules` is renamed to `Kconfig.tfm.crypto` for
consistency with the partition name.

A CMake macro is introduced to more easily pass boolean Kconfig options
to TF-M and is applied to relevant places.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
…ression tests

Upstream PR #: 106660

"tfm_regression_test" sample used TF-M default testing method where an
external OS (named RTX) is used to run non-secure regression tests. In
this scenario Zephyr OS is completely ignored.

This commit replaces RTX with Zephyr's app as container of the NS code.
This pattern reflects what usually happens in Zephyr when a NS application
is built.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
… by default

Upstream PR #: 106660

- Move selection of the isolation level to individual test cases.
- Slightly reshape tests naming in "testcase.yaml".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Upstream PR #: 106660

remove unnecessary Kconfigs from the configuration file

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
…to TF-M build

Upstream PR #: 106660

In order to properly build non-regression tests for the TF-M secure side
we need to pass 2 additional parameters:
- tf-m-tests build folder
- secure test configuration file

Previously these values were added from
'samples/tfm_integration/tfm_regression_tests' sample.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Upstream PR #: 106660

These were only used in 'samples/tfm_integration/tfm_regression_test' and
when that application is built they are both assumed to be enabled, so
it's not really meaningful to have these Kconfigs.

Extra parameters that need to be passed to the TF-M's CMake build are now
added from
'samples/tfm_integration/tfm_regression_test/CMakeLists.txt'.

In this way regression testing is self contained in that folder and it
doesn't pollute the main TF-M build.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Upstream PR #: 106660

Set stack size to 2048 bytes in order to allow all the tests to complete
successfully on real hardware.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
…tion

Upstream PR #: 106660

This really is a test, so move it appropriately.
The README file is deleted as there is no need for extra (outdated)
documentation.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
…interrupts

Explicitly disable VBUSDETECTED and VBUSREMOVED regulator interrupts.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
(cherry picked from commit 37010a3)
… is used

Without this we can have scenarios where PSA Crypto headers are not
found under certain configurations.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
(cherry picked from commit e02ccae)
…_hw_config

Removing the pointer cast on dev->api breaks building C++ files that
include ethernet.h

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
(cherry picked from commit 4935080)
…sed RNG

Test is using random API from interrupt context and some entropy
drivers don't support it. It's a test so pseudo-rng is ok.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
(cherry picked from commit 12bffe6)
…_TFM_USE_NS_APP"

This reverts commit 06dd00c.

This change is still causing undefined refernece to
tfm_platform_gpio_pin_mcu_select from soc/nordic/common/soc_secure.c
for the 5340.
It's too central a place that cannot be disabled with a Kconfig option.

Revert this commit until we update to Mbed TLS 4.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
Upstream PR #: 108017

Add a help text to their Kconfig options to warn about that.

In addition, make CONFIG_PSA_WANT_ALG_MD5 select NOT_SECURE but not
CONFIG_PSA_WANT_ALG_SHA_1 because for instance HMAC-SHA1 is still
considered secure, which means SHA-1 usage might not necessarily
be insecure.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
The hfxo and lfxo clocks are used by both cpuapp and cpunet cores,
but the hfxo and lfxo nodes are only present in devicetree for the
cpuapp core. This prevents the cpunet build from knowing if there
is an hfxo and/or lfxo present. Therefore add the lfxo and hfxo
clocks to nrf5340_cpunet.dtsi

All boards in tree have both the hfxo and lfxo present. The only
information that needs to be made available to cpunet is the hfxo's
presence and startup time, and lfxo's presence.

Upstream PR #: 105558

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
Signed-off-by: Ivan Iushkov <ivan.iushkov@nordicsemi.no>
Add defines for UUIDs used by the HID SCI
(Shorter Connection Intervals) feature.

Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
(cherry picked from commit 76862fa)
Add nrf54lm20b target to the platform_allow list.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 68ad2ab)
…0b device

Add overlay required to run the nrf_sys_event sample
on nrf54lm20b device.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 933e84f)
…ed TLS 4"

This reverts commit 9ee6019.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
Temporarily bring back the CMake logic that compiled Mbed TLS 3.6
before we actually update to Mbed TLS 4 in NCS.

This is a revert of 393350f
and subsequent changes affecting the Mbed TLS integration.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
All handshakes within the test suite are PSK-based, therefore it's only
needed to enable MBEDTLS_CIPHERSUITE_TLS_PSK_WITH_AES_256_CBC_SHA384,
MBEDTLS_CIPHERSUITE_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 is not needed
or used in tests so it only increases the overall image size.

For the few tests verifying the certificate validation, it's enough to
enable X509 certificate parsing and a few dependencies.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit 9f299be)
Specify what cipher suite to use for TLS/DTLS at runtime for consistent
results. Otherwise, in case additional mbed TLS features are enabled
(for instance with TFM enabled), different cipher suite may be chosen
for TLS/DTLS by mbed TLS, affecting the tests outcome.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit 9a2b669)
…PSA_CRYPTO_C

This is actually a fromtree of upstream PR # 108256
(commit 21e55f2)
but the cherry-pick conflicts too badly.

This will be reverted and cherry-picked properly from upstream in the
Mbed TLS update PR.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
The standard way to enable PSA Crypto is to enable CONFIG_PSA_CRYPTO
and not CONFIG_MBEDTLS_PSA_CRYPTO_C directly.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>

Upstream PR #: 108469
It should not depend on CONFIG_MBEDTLS nor CONFIG_MBEDTLS_PSA_CRYPTO_C
as a PSA Crypto provider other than Mbed TLS may be enabled.
In fact, it doesn't even need to depend on CONFIG_PSA_CRYPTO
because CONFIG_PSA_WANT_ALG_SHA_1 is already guarded behind
CONFIG_PSA_CRYPTO_CLIENT.

At the same time, replace all the `depends on UUID` by a single if
which is the standard way to do. Also turn CONFIG_UUID into a menuconfig
instead of creating a menu manually.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>

Upstream PR #: 108469
…ILTIN

Otherwise the CMake library may not exist and the linker command would
wrongfully get populated with `-lmbedTLS`.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>

Upstream PR #: 108469
…frame size

nRF54x devices supports 4-9 bit frame size. Extend UART driver to
support data sizes supported by the Zephyr UART API (5-9 bits).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
(cherry picked from commit 67f1cee)
New nrfx 4.3.0 contains MDK 8.75.3.

Upstream PR #: 108683

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
Added necessary files for west flash to be able to see external flash

Signed-off-by: Adam Maciuga <adam.maciuga@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.