Commit graph zephyr/modules
Author SHA1 Message Date
Kapil Bhatt
525c9a8eeb net: wifi: Fix P2P connect command from shell
The P2P connect command was failing because
keypad method does not require method string.
The PIN is directly provided as argument.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-04-17 16:42:16 +01:00
Richard Mc Sweeney
9e8b3cf7ea drivers: Refactor pse84 autanalog-adc to use MFD
- Added autanalog MFD support in PSE84 DTS files
- Refactored autanalog ADC in PSE84 to use a common
MFD for handling the global AC configuration
- Constructed AC to use phandle in the overlay
for a better the user experience.
- Added support for a basic and advanced mode
with custom AC

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-04-17 10:36:07 +02:00
Michael Hopfengaertner
a3243a9230 modules: openthread: Fix uninitialized radio mac keys
This patches uninitialized prev and next mac key ids.
Previously `prev_key_id` and `next_key_id` were declared within
an if-block, but a reference to them was used outside of the block.
This is a lifetime violation and leads to undefined behavior.
It is particularly critical when the uninitialized `prev_key_id`
has (by coincidence) the same value as `cur_key_id`. In this case,
the mac key associated with `prev_key_id` is used which leads to
rx security errors on parent and child not being attached.

Signed-off-by: Michael Hopfengaertner <michael.hopfengaertner@tado.com>
2026-04-16 10:25:45 +02:00
Hao Luo
ae3fef6d27 drivers: i2c: add i2c target support for ambiq soc
Adds bingding for ambiq ios which can used as spi device
or i2c target, and creates ios i2c driver.

Signed-off-by: Hao Luo <hluo@ambiq.com>
2026-04-16 10:19:51 +02:00
Mateusz Michalek
fbdfd9673b modules: hal_nordic: nrfx: TAMPC CMake
adds CONFIG_SOC_NRF54LX_SKIP_TAMPC_SETUP
compile time binding

Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
2026-04-16 10:13:12 +02:00
Marcio Ribeiro
19f4a75362 modules: opentread: platform: inclusion of assert.h header to udp.c
This commit add assert.h header file to avoid compilation warning due to
imnplicit declaration of function assert and respective linking related
error: undefined reference to 'assert'

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2026-04-15 05:52:01 -04:00
Jérôme Pouiller
d8b4039ea2 modules: mbedtls: add CHACHA20-POLY1305 ciphersuites
ChaCha20-Poly1305 is the preferred cipher on platforms lacking hardware
AES acceleration, which is common on embedded targets. Adding this
ciphersuite allows Zephyr devices to negotiate it when connecting to
servers that support it (e.g. nginx, OpenSSL), avoiding a fallback to
AES-based suites.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-04-15 05:39:21 -04:00
Jean-Yves Salaun
c7c8ff3cfe modules: openthread: Add API to access Radio Spinel instance
Add platformGetRadioSpinel() function to allow external modules
to access the Radio Spinel instance for vendor-specific commands.

This enables vendor extensions to send custom Spinel properties
without modifying the core OpenThread platform code.

Signed-off-by: Jean-Yves Salaun <jean-yves.salaun@nxp.com>
2026-04-15 05:38:59 -04:00
Kapil Bhatt
df9a974782 modules: hostap: Display WEP Open/Shared in status
Instead of WEP show WEP-OPEN and WEP-SHARED in status.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-04-14 22:37:55 -04:00
Johan Hedberg
47890dd0e8 modules: openthread: Remove unused string conversions
These string buffers and conversions were never used for anything.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2026-04-14 22:24:10 -04:00
Chaitanya Tata
e7bd45b1e3 modules: hostap: Add support for external WPA3-SAE implementation
This is needed for any downstream vendors to replace wpa_supplicant
internal implementation with their own module (e.g., WPA3-PSA for
Nordic).

And the common symbol helps us maitain any implementations easily.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-04-14 22:20:27 -04:00
Davide Di Lello
d67fcbab8b drivers: comparator: Infineon LPCOMP Driver
Adds LPCOMP driver files to support LPCOMP
for the PSOC C3 family of MCUs.

Signed-off-by: Davide Di Lello <Davide.Dilello@Infineon.com>
2026-04-14 22:08:41 -04:00
Marcio Ribeiro
c4a53181ba modules: openthread: add external memory support for heap and message pool
Add Kconfig options to allocate OpenThread dynamic memory and message
pool buffer from external memory on ESP platforms:
- OPENTHREAD_EXTERNAL_HEAP_SHARED_MULTI_HEAPOPENTHREAD_HEAP_EXTERNAL:
  routes otPlatCAlloc/otPlatFree through shared multi-heap to allocate
  from external memory.
- OPENTHREAD_MESSAGE_POOL_CUSTOM_SECTION: places the message pool
  buffer in a custom .ot_msg_pool linker section.
- Add .ot_msg_pool section to external RAM in the linker
  script for  ESP32, ESP32-C5, ESP32-S3, ESP32-S3

This allows offloading large OpenThread buffers to PSRAM, freeing
internal SRAM for other uses.

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2026-04-14 22:06:48 -04:00
Santhosh Charles
3315866bc1 drivers: dac: add driver support for TI MSPM0 G-Series DAC module
Add support for the DAC module on TI’s MSPM0 G-Series MCUs. The DAC
supports 8-bit and 12-bit resolution.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
2026-04-14 22:04:55 -04:00
Anas Nashif
b474cfc2b6 posix: move posix to subsys/portability
Posix is not a library per the definition of libraries in Zephyr. It
always has been a portability layer and shall reside with other
portability layers under subsys/portability.

Addresses #99250

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-04-14 22:03:46 -04:00
Valerio Setti
26d4afe225 modules: mbedtls: add some other legacy include file for MCUboot
MCUboot requires access to:
- "mbedtls/aes.h"
- "rsa_alt_helpers.h"

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-04-14 13:36:18 -05:00
Krzysztof Chruściński
4efacbe1a1 modules: hal_nordic: nrfs: Fix init priority
In 7579ccc68e (modules: hal_nordic: nrfs: Fix initialization priority)
used wrong priority as it assumed that NRFS is using IPC service init
priority. Priorities are fixed now and static assert is added to ensure
that NRFS init priority is higher than IPC service.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-04-11 10:21:32 -04:00
Anas Nashif
c1f2a9b6b0 modules: hal_rpi_pico: do not build with --specs=nosys.specs
With new SDK 1.0, --specs=nosys.specs is not needed for minimal libc.
Fixes many build issues with new SDK when building for minimal libc.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-04-07 15:40:11 -04:00
Benjamin Cabé
66a7e24ee6 hostap: fix typo in Kconfig symbol
Supplicant is spelled with two p's :)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-04-07 15:35:15 -04:00
Robert Lubos
1b43e4f62c modules: openthread: Enable NIST optimisations if ECC is used
W/o MBEDTLS_ECP_NIST_OPTIM enabled DTLS handshakes are considerably
slower, making core Thread functionalities like commissioner/joiner
defunct on slower platforms. Therefore, enable the optimizations if
ECC cryptography is in use.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-04-07 08:42:33 -05:00
Laura Carlesso
8da4601754 modules: hal_infineon: Specify exact regions for code relocations
Rathenr that use the general RAM region for relocating
code use the dedicated memory region for each individual
core/partition.

Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
2026-04-03 14:48:04 -05:00
Kapil Bhatt
41a85d9a8f modules: hostap: Adjust memories for p2p and enterprise
When Enterprise and P2P both enabled it takes P2P size.
But for Enterprise it requires more.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-04-02 13:11:50 -05:00
Krzysztof Chruściński
7579ccc68e modules: hal_nordic: nrfs: Fix initialization priority
NRFS initialization must happen after the IPC service. Setting
the same priority may lead to locking if NRFS initialization
happens before the IPC.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-04-02 08:49:17 -05:00
Maochen Wang
07a01f8990 hostap: add mbedTLS and PSA dependencies for enterprise and DPP
Add missing mbedTLS and PSA configuration dependencies required by
wpa_supplicant enterprise, DPP and TLS 1.3 support.
This ensures that the enabled crypto features select the necessary
mbedTLS legacy and PSA components, such as CTR_DRBG, ECDHE-ECDSA,
extended master secret, RSA-PSS certificate verification, and required
ECC optimizations.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2026-04-01 15:13:24 -05:00
Maochen Wang
8682c126bd mbedtls: add Kconfig option for RSA-PSS X.509 signature verification
Add a new Kconfig option, MBEDTLS_X509_RSASSA_PSS_SUPPORT, to explicitly
enable verification of X.509 certificates signed using the RSASSA-PSS
(RSA-PSS) signature algorithm.
This allows Zephyr to support modern TLS 1.2 and TLS 1.3 deployments
that rely on RSA-PSS signed certificate chains, while keeping the
feature configurable through Kconfig instead of hard-coding it in
mbedTLS configuration headers.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2026-04-01 15:13:24 -05:00
Laura Carlesso
5b4c3e01ce modules: hal_infineon: mtb-templates: Use correct startup files
Now that cm33/ns support has been introduced, we have
to properly use the secure or non secure start up code from
the mtb-templates files for cm33.

Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
2026-04-01 11:54:51 -05:00
Bill Waters
3519c4ade0 modules: hal_infineon: CMakeLists.txt duplicates
In a few CMakeLists.txt files there were duplicate
zephyr_library_sources entries - one conditional
and one unconditional.  The unconditional entry
was removed in each case.  A couple of device-
family conditionals needed to be added after this
update.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2026-03-31 13:59:19 -05:00
Valerio Setti
2752c8c97f modules: mbedtls: improve entropy gathering
Do not depend on "sys_csrand_get()" as this can create runtime deadloops
when CONFIG_PSA_CSPRNG_GENERATOR is also enabled. Instead poll directly
the entropy device if available.

Kconfig-wise enable MBEDTLS_PSA_CRYPTO_LEGACY_RNG also when
ENTROPY_NEEDS_PRNG. This helps when there are entropy drivers (therefore
CONFIG_CSPRNG_ENABLED is set) which can provide only limited amount of
data.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-31 13:50:34 -05:00
Sylvio Alves
a3c6d7a3d4 modules: mbedtls: add missing zephyr_generated_headers dependency
Mbed TLS libraries are external CMake targets created via
add_library()/add_subdirectory(), not zephyr_library(). They
link against zephyr_interface for include paths but miss the
automatic add_dependencies on zephyr_generated_headers that
zephyr_library() targets receive.

This causes a build race condition where generated headers
like heap_constants.h may not exist when Mbed TLS sources
compile, resulting in a fatal error when x509_crt.c includes
zephyr/kernel.h through the POSIX sys/socket.h shim.

Add an explicit dependency on zephyr_generated_headers for
all Mbed TLS library targets.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-31 10:35:40 -05:00
Tomi Fontanilles
f0641bfbf5 modules: mbedtls: introduce CONFIG_TF_PSA_CRYPTO_USER_CONFIG_FILE
Equivalent of CONFIG_MBEDTLS_USER_CONFIG_FILE for TF-PSA-Crypto.
See the previous commit for an explanation on the implementation.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-30 15:08:07 -05:00
Tomi Fontanilles
e14946ec90 modules: mbedtls: rework CONFIG_MBEDTLS_USER_CONFIG_FILE
Move it to the top of the Kconfig/header files as it belongs together
with CONFIG_MBEDTLS_CONFIG_FILE.

Do not include it directly in config-mbedtls.h, just define
MBEDTLS_USER_CONFIG_FILE. Mbed TLS's build_info.h takes care of actually
including it.

Make it so that there is no need to enable a boolean Kconfig option
to define CONFIG_MBEDTLS_USER_CONFIG_FILE.
As a result of that, CONFIG_MBEDTLS_USER_CONFIG_ENABLE is deprecated.

To achieve that, the promptless CONFIG_MBEDTLS_USER_CONFIG Kconfig
option is introduced to allow to automatically figure out whether
CONFIG_MBEDTLS_USER_CONFIG_FILE is defined.
This is done to work around the following limitations:
- Kconfig does not allow string Kconfig options to not be defined
(they always default to "").
- The C preprocessor does not allow checking string macros (to check
whether the Kconfig option is an empty string).

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-30 15:08:07 -05:00
Tomi Fontanilles
58d5fad69d modules: mbedtls: bring back and deprecate CONFIG_MBEDTLS_CFG_FILE
c6e6f3e638 removed it without warning,
but it should first be deprecated.

Make it so that it still works for users defining it.
A helper Kconfig option is introduce to `select DEPRECATED` because
selecting Kconfig options from string ones is not allowed.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-30 15:08:07 -05:00
Maochen Wang
02432242f7 hostap: disable TLS 1.3 for SuiteB‑192 with P‑384 client cert
WPA3 test case 19.5.2 (ECC P384 client certificate) requires the STA to
offer only TLS_ECDHE_ECDSA_AES_256_GCM_SHA384, which exists only in
TLS 1.2. In mbedtls 4.x, this SuiteB cipher is not available in TLS 1.3,
causing the ClientHello to miss the required cipher.
Disable TLS 1.3 when using SuiteB‑192 with P‑384 so that TLS 1.2 is
used and the correct cipher suite is advertised.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2026-03-30 10:01:57 -05:00
Valerio Setti
c3946618c6 modules: mbedtls: enable legacy symbols when building HostAP with TF-M
In PSA client mode (e.g. TF-M NS builds) MBEDTLS_PSA_CRYPTO_C is not
set, so crypto_adjust_config_enable_builtins.h is skipped in the config
processing chain (build_info.h guards it with MBEDTLS_PSA_CRYPTO_C).
Without it MBEDTLS_ECP_C, MBEDTLS_BIGNUM_C and the curve macros are
never derived from PSA_WANT_*.  The builtin source files (ecp.c,
bignum.c, ecp_curves.c) are always GLOBbed into the builtin target
but compile to empty without these symbols.  Manually define what
enable_builtins.h would have set so the implementations are compiled
(PRIVATE on builtin) and the declarations are visible to consumers
(INTERFACE on mbedTLS).

These symbols are flagged as removed by the tf-psa-crypto config
validation in tf_psa_crypto_config.c.  The builtin target already
has TF_PSA_CRYPTO_CONFIG_CHECK_BYPASS; extend the bypass to the
tfpsacrypto core target so the INTERFACE definitions do not trip
the check there either.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Co-authored-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-03-28 15:03:48 -05:00
Valerio Setti
6238f5e56a modules: tf-m: remove unnecessary include paths for tfm_api
Remove a couple of include paths which are no more necessary for "tfm_api"
library build.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-28 15:03:48 -05:00
Valerio Setti
06dd00c340 modules: tf-m: build tfm_api lib only when !CONFIG_TFM_USE_NS_APP
When CONFIG_TFM_USE_NS_APP is set TF-M will build its own NS application
which requires Mbed TLS include files to be installed in the interface
directory. This conflicts with "tfm_api". However this library is not
required in this case because TF-M builds another NS interface library
so we can simply exclude "tfm_api" from the build.

Since "tfm_api" is the reason for which CONFIG_MBEDTLS is implied in
CONFIG_BUILD_WITH_TFM, we gate this condition with !CONFIG_TFM_USE_NS_APP
as well.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-28 15:03:48 -05:00
Valerio Setti
cc61a91b19 modules: tf-m: remove tfm_api compile options
We modified TF-M CMake scripts so that legacy Mbed TLS 3.6.5 header files
are no more installed in TFM_INTERFACE_INCLUDE_DIR. This resolves all
the conflicts we had before and that we need to fix with extra compile
options.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-28 15:03:48 -05:00
Jianxiong Gu
fc4a381bd2 soc: wch: unify SOC series naming for CH32V00X
Replace SOC_SERIES_CH32V00X with SOC_SERIES_QINGKE_V2C to maintain
consistent naming across SOC series.

Signed-off-by: Jianxiong Gu <jianxiong.gu@outlook.com>
2026-03-28 08:04:33 -04:00
Anas Nashif
61c42025fc Revert "modules: mbedtls: avoid infinite psa_generate_random() recursion"
This reverts commit 918c5b98f4.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-03-28 08:03:34 -04:00
Tomi Fontanilles
918c5b98f4 modules: mbedtls: avoid infinite psa_generate_random() recursion
By making `MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG` depend on that neither
`CTR_DRBG_CSPRNG_GENERATOR` nor `PSA_CSPRNG_GENERATOR` is enabled so if
they are we automatically fall back to `MBEDTLS_PSA_CRYPTO_LEGACY_RNG`.

This combination is problematic because we get in a scenario where
`psa_generate_random()` => `get_random_data()` => `sys_csrand_get()` =>
`psa_generate_random()`.

Resolves #105626.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-27 20:21:00 -04:00
Bas van Loon
83597841ff modules: openthread: Remove deprecated callbacks.
Fixes build when OPENTHREAD_CONFIG_DIAG_ENABLE is enabled due to
removed callbacks.

Signed-off-by: Bas van Loon <bas@arch-embedded.com>
2026-03-27 20:20:18 -04:00
Valerio Setti
d9c8a49f37 modules: mbedtls: add Kconfig for MLDSA
Add TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED and
TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED Kconfigs to allow using MLDSA-87 in
Zephyr.
This commit also extends "config-tf-psa-crypto.h" as necesary.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-26 14:02:52 -04:00
Valerio Setti
c3725ac578 modules: mbedtls: specify TF-PSA-Crypto and mldsa-native modules path
Specify the location of tf-psa-crypto and mldsa-native modules when
invoking Mbed TLS' CMake file.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-26 14:02:52 -04:00
Tomi Fontanilles
a1e87aeac6 modules: mbedtls: stop including config-mbedtls.h in TF-PSA-Crypto config
There should not be any TF-PSA-Crypto configuration done in
config-mbedtls.h anymore, so there is no reason to keep including this
file anymore.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-26 07:19:32 -04:00
Tomi Fontanilles
61efa9acc2 modules: mbedtls: remove #define MBEDTLS_PSA_CRYPTO_CONFIG
It has been removed starting with Mbed TLS 4.0.

This removal allows to improve how the TF-M NS interface is configured.
With this change, MBEDTLS_PSA_CRYPTO_CONFIG is not defined anymore so
we don't need to pass MBEDTLS_PSA_CRYPTO_CONFIG_FILE to prevent the
default configuration file from being included.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-26 07:19:32 -04:00
Tomi Fontanilles
7109043090 modules: mbedtls: stop including Mbed TLS configuration header file
Standard Mbed TLS header files already take care of doing it properly.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-26 07:19:32 -04:00
Tomi Fontanilles
13df0ca0bd modules: mbedtls: deprecate CONFIG_MBEDTLS_LIBRARY
It is not tested/maintained.
Introduce a new option to replace it: CONFIG_MBEDTLS_CUSTOM

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-26 07:19:32 -04:00
Tomi Fontanilles
c6e6f3e638 modules: mbedtls: rename CONFIG_(MBEDTLS|TF_PSA_CRYPTO)_CFG_FILE
To align with Mbed TLS by replacing CFG with CONFIG.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-26 07:19:32 -04:00
Santhosh Charles
1ed50bfa78 drivers: can: add driver support for TI MSPM0 G-Series MCAN module
Add driver support for MCAN module on TI's MSPM0 G-Series MCUs.
The MCAN module supports both classic CAN and CAN FD protocols.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
Signed-off-by: Jackson Farley <j-farley@ti.com>
Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
2026-03-26 07:17:56 -04:00
Holt Sun
94722df194 modules: hal_nxp: select LMEM cache component
Enable the MCUX LMEM cache component when a SoC selects
HAS_MCUX_LMEM_CACHE.

This keeps LMEM header and source selection inside the HAL
component layer instead of requiring Zephyr-local include
path workarounds in the cache driver build.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-03-25 07:57:21 -04:00