Update tflite-micro to upstream main (585369ad) on the zephyr-v4.5.0
branch of the Zephyr fork, with the third party sources re-exported.
Upstream removed tensorflow/lite/kernels/internal/reference/
comparisons.cc and added the basic_classifier kernel; update the
source list to match.
This version zero-initializes the cmsis_nn_lstm_context passed to the
CMSIS-NN LSTM kernels, which CMSIS-NN v8.0.0 requires as it adds a
hidden_state pointer to that struct.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Back the WIFI_P2P_SET_DEV_NAME and WIFI_P2P_STATUS operations:
set_dev_name stores the name into wpa_s->conf->device_name and
status reads the device name, MAC address, P2P state and listen
channel back through the P2P_STATUS control command.
Add CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P_DEVICE_NAME so the name P2P
advertises at supplicant init has a real default, instead of the
empty string that otherwise results from Zephyr loading no
wpa_supplicant.conf.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Swaminathan Gurumurthy <swaminathan.gurumurthy@nordicsemi.no>
When osc32k is disabled, PLATFORM_InitOT() hangs trying to switch to it.
Define gBoardUseFro32k_d when the clk_ctrl osc32k-mode is disabled so the
framework keeps fro32k as the 32k source.
Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
(SRAMC), the external asynchronous parallel SRAM interface found on i.MX
RT118x SoCs (e.g. MIMXRT1189). At init the driver reads the async-SRAM
bus timing from devicetree, so the external SRAM becomes accessible as
a memory-mapped region. No runtime data-transfer API is implemented.
The SRAMCR0/SRAMCR1 timing registers reside in the BLK_CTRL_WAKEUPMIX
block; each populated chip-select is described as a sram child node.
Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
Enable the IEEE 802.15.4 radio on the BL70x (BL702) series: add the
ieee802154 devicetree node, compile the RF/platform shim, link the
lmac154/RF blobs, and place the timing-critical lmac154 .tcm_code in ITCM
(otherwise those input sections become orphans at an unloaded address).
Provide CONFIG_BT_HCI_DRIVER_LOG_LEVEL for 802.15.4-only builds so the
shared BLE/802.15.4 platform shim compiles without Bluetooth enabled.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Enable the IEEE 802.15.4 radio on the BL70xL (BL702L) series: add the
ieee802154 devicetree node, compile the RF/platform shim, place the
timing-critical lmac154 code in ITCM, and link the lmac154/RF blobs.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Enable the IEEE 802.15.4 radio on the BL61x (BL616) series: add the
ieee802154 devicetree node, RF/PHY init via the shared wl_api blobs, the
TCM code section, and link the lmac154 blob. The GLB reset / memcpy shims
required by the BL616 blobs live with the other HAL shims.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The NETC MDIO driver has no runtime dependency on the NETC Ethernet
driver. Requiring it prevented use cases where an external stack owns
the NETC Ethernet controller while Zephyr manages only the MDIO bus
and PHY drivers.
Drop the Ethernet driver dependency from the MDIO Kconfig. Relax the
NETC bring-up guards in board.c, soc.c, and the clock control driver to
cover MDIO_NXP_IMX_NETC as well, so the NETC clock roots and MII-mode
configuration run whenever either the Ethernet or the MDIO driver is
enabled. Extend the HAL netc component and its SoC sub-component to
build for MDIO-only configurations in the same way, by enabling
driver.netc and the SoC-specific sub-component when MDIO_NXP_IMX_NETC
is set.
Signed-off-by: Tobias Aguiar <tobias.aguiarsilvadealmeida@nxp.com>
Replace scripts/kconfig/hardened.csv with a distributed YAML database.
The CSV format could not carry any explanation for its recommendations,
had no validation (a malformed line was silently dropped), no notion of
profiles, no ownership story, and no way to extend it out of tree.
The database now lives where the code lives: the central
scripts/kconfig/hardening.yaml defines the hardening profiles (plus
rules for top-level Kconfig symbols), and per-subsystem hardening.yaml
fragments next to the relevant Kconfig files carry the rules, so each
rule is reviewed by the maintainers of the code it hardens. Every rule
has a required rationale and optional references, supports exact-value
and integer min/max recommendations (STACK_POINTER_RANDOM is now
'>=100' instead of '==100'), and belongs to a profile: 'base' (memory
protection and inherently insecure features) or 'strict' (extends base
with debug/observability feature removal). The default profile is
'strict', matching the rule set the CSV checked.
hardenconfig is restructured around a serializable HardeningReport
model so results can be consumed programmatically, and gains:
- a Rationale column in the report
- profile selection:
west build -t hardenconfig -- -DHARDENCONFIG_PROFILE=base
- HARDENCONFIG_SHOW_ALL to also list PASS/NA results
- HARDENCONFIG_STRICT to exit non-zero on failures, for CI use
- HARDENCONFIG_JSON to write machine-readable results, including which
database file each rule came from
- HARDENCONFIG_EXTRA_SOURCES to layer out-of-tree database files that
may add profiles/rules and override in-tree ones
The EXPERIMENTAL/DEPRECATED/NOT_SECURE marker symbol detection is
preserved unchanged.
Three CSV entries are intentionally not carried over because they were
redundant: BT_CONN_DISABLE_SECURITY and BT_OOB_DATA_FIXED can only be
enabled together with BT_TESTING, and TIMER_RANDOM_GENERATOR together
with TEST_RANDOM_GENERATOR, all of which the database already
recommends disabling for the same profiles.
Behavioral fix: the CSV's DEBUG_COREDUMP line used '=' instead of ','
and was silently ignored, so CONFIG_DEBUG_COREDUMP was never actually
checked; it now is.
Also add tabulate to requirements-base.txt: hardenconfig has always
imported it, but it was only pulled in via other requirements files.
Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Drive the RA Pulse Density Modulation Interface as a DMIC device through
the FSP r_pdm module, one node per PDM-IF channel. The microphone clock
divider and the sinc filter's decimation and output range are worked out
from the requested rate, and the filter coefficients are left at the
values the hardware manual gives as the registers' reset state.
The interface delivers twenty- or sixteen-bit samples in thirty-two-bit
words, so the driver sign extends and packs them into the width the
stream asked for while the interface fills the other half of its buffer.
Assisted-by: Claude:opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Link libbl602_firmware.a and libbl602_phyrf.a as shipped (no ar/objcopy
rewriting) when CONFIG_BFLB_WIFI is enabled on BL60x, with only the
linker --wrap flags for the entry points the driver overrides. Add the
bl_ops_funcs OS port (BFLB_BL602_OS_SHIM) the firmware blob uses for its
RTOS primitives, and link stubs for CONFIG_BUILD_ONLY_NO_BLOBS.
Signed-off-by: William Markezana <william.markezana@gmail.com>
The pse84 boards have a lot of quirks. Rather than
exposing them in the TF-M module itself, define a
more generalized new TF-M Kconfig
TFM_PLATFORM_HANDLES_MERGE that other
platforms may reuse and move the PSE84 custom
handling that was previously in the tf-m CMakeLists
at soc level.
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Add Wi-Fi NAN control operations for starting and stopping NAN,
setting NAN parameters, updating NAN configuration, and querying NAN
status.
Expose the operations through the Wi-Fi shell and wire them through the
hostap supplicant API used by Zephyr.
Signed-off-by: Anu Chandran Lakshmanan <anuchand@qti.qualcomm.com>
Add the OS shim and blob wiring for the BL808 on-chip BLE controller.
The shim maps the aos_* task/queue/heap primitives the controller blob
expects onto Zephyr kernel APIs; the CMake and Kconfig glue links the
controller and phyrf blobs for the BL808 series.
Signed-off-by: William Markezana <william.markezana@gmail.com>
First commit to support UHC driver for Renesas RA family
Signed-off-by: Minh Hoang <minh.hoang.wm@bp.renesas.com>
Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
The OpenThread bump added a hard requirement for
OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE when PSA crypto
is active. Previously, OPENTHREAD_PLATFORM_KEY_REF was filtered
out for RCP builds, but this now causes a build failure on
platforms using CONFIG_CRYPTO_LIB_PSA (e.g. nrf52840dk coprocessor
RCP).
Remove the !OPENTHREAD_COPROCESSOR_RCP condition so that
OPENTHREAD_PLATFORM_KEY_REF is selected unconditionally.
Signed-off-by: Xavier Razavet <xavier.razavet@nxp.com>
The OpenThread bump introduced a new otInstance* first parameter
in the platform infra_if callbacks. Update the Zephyr platform
implementations to match the new prototypes:
- otPlatInfraIfSendIcmp6Nd()
- otPlatInfraIfDiscoverNat64Prefix()
- otPlatInfraIfHasAddress()
Signed-off-by: Xavier Razavet <xavier.razavet@nxp.com>
Fix two bugs in otPlatRadioSetMacKey():
1. aKeyIdMode >> 3 was incorrect: OT core passes the enum value
(kKeyIdMode1 = 1), not the raw wire byte where KeyIdMode sits in
bits [5:3]. The shift turned 1 into 0, so keys were never
programmed into the Zephyr 802.15.4 driver for platforms with
hardware TX security offloading.
2. PSA key export was writing into the const otMacKeyMaterial union,
corrupting the mKeyRef handle (mKey and mKeyRef share a union).
Use local buffers instead to preserve the PSA references for
subsequent SW RX decryption by the OT stack.
Also enable CONFIG_OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE in the
OT shell sample, which is required when PSA crypto is active (default)
so that otPlatCryptoExportKey() can extract MAC keys for the radio
driver.
Signed-off-by: Baptiste Coffin <baptiste.coffin_1@nxp.com>
Bump OpenThread version in order to include fixes that are necessary
to allow the correction of Enhanced-ACK Link Metrics.
Signed-off-by: Xavier Razavet <xavier.razavet@nxp.com>
Add Kconfig options and build logic to support encrypting the TF-M
secure and non-secure firmware images with MCUboot (BL2).
A new TFM_MCUBOOT_ENCRYPTION option enables encrypted images, mapping
to the TF-M MCUBOOT_ENC_IMAGES option. The key-wrapping scheme
(RSA-OAEP) is selected by the TFM_MCUBOOT_ENCRYPTION_KEY_WRAP_SCHEME,
mapping to MCUBOOT_ENCRYPT_RSA. TFM_MCUBOOT_ENCRYPTION_KEY_LEN sets the
AES key length (128 or 256 bit), mapping to
MCUBOOT_ENC_KEY_LEN. TFM_MCUBOOT_ENCRYPTION_KEY_FILE names the key
file, which is used for both the secure and non-secure images.
When encryption is enabled the tfm_sign() helper gains an ENCRYPT
option that passes the encryption key and key length to the imgtool
wrapper, and encrypted variants of the signed update images
(*_signed_encrypted.bin) are generated alongside the existing signed
images. The images for the primary slot are not encrypted: BL2 decrypts
an image while moving it from the secondary to the primary slot, so an
encrypted image in the primary slot would fail validation.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
soc_crypto.c now seeds the AES countermeasures through libsxsymcrypt.a,
so add stubs for sx_cm_load_mask() and sx_channel_wait() to fix
CONFIG_BUILD_ONLY_NO_BLOBS builds on Series 3.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Define configuration symbols for enabling STM32 PSA Crypto Drivers.
CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS is experimental, it is
disabled by default.
CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS is a generic config switch
to embed or not STM32 PSA Crypto Drivers. Config switches are defined
per hardware resources in STM32 SoCs:
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_AES for STM32 AES
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_CRYP for STM32 CRYP
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_SAES for STM32 SAES
- CONFIG_USE_STM32_HAL_PSA_CRYPTO_DRIVERS_HASH for STM32 HASH
Enabling of one of those latter are conditioned to the presence
of a related enabled node in the DT and prevents the node is
integrated in the Zephyr native crypto framework.
STM32 RNG is out of scope since Zephyr integration of PSA Crypto
makes the PSA Crypto library to rely on the already existing STM32
entropy driver.
Update manifest to sync on the STM32 HAL module that provides
PSA Crypto drivers implementation for STM32 HASH and AES/CRYP/SAES
(transparent key).
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Add the missing crypto blob stubs for Series 3 implementation
of sli_crypto to enable non-blob builds, specifically for the
OpenThread Shell sample applications.
Signed-off-by: sree sreerajatha <sree.sreerajatha@silabs.com>
Select the RT266x device and driver components in the mcux-sdk-ng module
build so the SoC series pulls in its HAL sources.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
Add PSA Crypto driver for HSE devices. Use the PSA Crypto dispatch
layer from hal_silabs when the driver is enabled.
The driver is enabled by default if the `se` or `symcrypto` nodes
are enabled in devicetree.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Only take the crypto mutex once the library takes ownership
of the hardware. Previously, the mutex could be held indefinitely
if the subsequent crypto call was rejected (e.g. due to invalid
parameters) before calling into the library. By taking the mutex
in the library acquire function, it is guaranteed to be released
by the library release function.
Make the fact that yield shouldn't be used on LPWAES explicit.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Check the compatibility bitmask and reject instance selection if
the accelerator isn't compatible with the requested operation.
Since every bit represents the same instance as selected by the lock
function, an all-zero value means the selected instance isn't usable.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Only use Kconfig macros in the catalog header to avoid including
utility headers that conflict with HAL sources.
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Even when building with CONFIG_AIROC_WIFI_CUSTOM, the build system still
tries to include the default firmware, CLM, and NVRAM blobs in the libary
build step. Since all the previous generation stpes are skipped, the
variables aren't even defined and the build fails.
This issue was introduced with ee3daf89f6 (whd-expansion 1.2.1).
Fix this by defining RESOURCE_READ_FROM_C_FILE instead, which generates
forward declaration for the blobs. User code must then manually define
the appropriate symbols in a C file for the full build to succeed.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Signed-off-by: Daniele Aimo <d.aimo@arduino.cc>
Introduce ZASSERT, a self-contained assertion facility configured per
source file through a named module rather than the single global
CONFIG_ASSERT switch.
A file selects its module with ZASSERT_MODULE(); the level is resolved
from CONFIG_ASSERT_MODULE_<MODULE>_LEVEL and may be overridden per file.
Modules are defined with the Kconfig.template.assert template, which takes
module/module-str inputs following the logging template convention.
The four levels are:
- Off (compiled out)
- Terse (check only)
- On (check + location only)
- Verbose (Check, location, condition and message)
Since the level is known at compile time, disabled assertions are folded
away by the compiler, and below Verbose the optional message and its
arguments are as well.
zassert provides a set of __weak overridable hooks:
- zassert_fail() - called when an assertion fails
- zassert_vprint() - called to print the assertion failure message
- zassert_post_action() - the terminal action after an assertion failure
CONFIG_ASSERT remains the master switch. The assert Kconfig moves from
subsys/debug to lib/os/zassert, the legacy CONFIG_ASSERT_* symbols are kept
but deprecated (mapped onto the DEFAULT module), and lib/os/assert.c is
removed. The __ASSERT() family is preserved as a thin compatibility shim
over the DEFAULT module, so existing call sites keep working unchanged.
Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
Changes the display setup code to not pass NULL as a value while setting up
the rounder callback, as this might raises asserts in future LVGL versions.
Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
Update the west yaml to point to the new LVGL version.
Fix the Kconfig symbol deprecation around color formatting/depth
in all boards/shields.
Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
OPENTHREAD_CRYPTO_PSA selects OPENTHREAD_PLATFORM_KEY_REF for every
build except the RCP, see commit 479e957b79 ("kconfig: openthread:
Fix PSA Key Ref config for RCP architecture"). Since
commit 62ebe56c49 ("modules: openthread: use PSA API by default") the
RCP uses the PSA backend too. The backend only handled key references,
so the literal MAC key an RCP receives over Spinel reached
psa_cipher_encrypt() as an uninitialized key id. On radios without
hardware TX security the software AES-CCM path then left the cipher
output untouched and the frame went out with a garbage payload and
MIC, silently.
Import the literal key as a volatile PSA key owned by the AES context
when key references are disabled, and destroy it when the context is
freed. Only the AES hooks change: the RCP does not link the HMAC or
HKDF wrappers, and every other PSA build uses key references.
Assisted-by: Claude:claude-fable-5.1
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
On CYW20829/CYW89829 B0 silicon the BLE controller boot switches CLK_HF0
onto the 48 MHz BLE ECO (ALTHF) path. The btstack-integration HCI layer
already restores CLK_HF0 to the 96 MHz FLL path on CY_BT_IPC_BOOT_FULLY_UP,
but that restore is guarded by COMPONENT_CYW20829B0 / COMPONENT_CYW89829B0,
which the build never defined. As a result the Cortex-M33 SysTick keeps
running at 48 MHz while the kernel still assumes
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC (96 MHz), so every k_sleep()/timeout
takes twice as long once Bluetooth is enabled.
Add SOC_CYW20829_B0 / SOC_CYW89829_B0 helper symbols that track the
B0-silicon MPNs, and define COMPONENT_CYW20829B0 / COMPONENT_CYW89829B0 as
private compile definitions on the hal_infineon library, next to the
btstack-integration sources that consume them, instead of as global
defines. This compiles in the existing HAL restore only for the library
that needs it, and only on B0 silicon. B1 silicon is not covered because
the HAL has no corresponding restore path.
Verified on CYW920829M2EVK-02: with Bluetooth enabled, a
k_sleep(K_SECONDS(5)) loop was spaced about 10 s apart before the change
and about 5 s apart after. Confirmed COMPONENT_CYW20829B0 reaches the
btstack-integration HCI source on a B0 build and is absent on a B1 build.
Assisted-by: AI (GitHub Copilot)
Signed-off-by: Bill Waters <bill.waters@infineon.com>
Separated CONFIG_CLOCK_CONTROL_NRF=y related
code and grouped together code compatible with the
new solution.
Signed-off-by: Michal Frankiewicz <michal.frankiewicz@nordicsemi.no>
MCXL's MU uses the split-register layout (TCR/RCR/GCR/FCR/GSR), which is
what drivers/mu1 implements; drivers/mu implements the unified CR/SR
layout. CONFIG_SOC_FAMILY_MCXL already turns driver.mu1 on
unconditionally, but CONFIG_MBOX_NXP_IMX_MU fell through to the else
branch and turned driver.mu on as well.
Both components then compile: drivers/mu/fsl_mu.c fails outright on the
missing MU_CLOCKS and MU_CR_* symbols. On top of that the two components
ship a header with the same name, and drivers/mu sorts first on the
include path, so the fsl_mu.h that mbox_nxp_imx_mu.c gets is the wrong
one. frdm_mcxl255 has enabled its MU node since the board was added, so
any build with MBOX enabled has been broken.
Select driver.mu1 for MCXL so driver.mu is never turned on and
drivers/mu drops off the include path entirely.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
SDK 26.09 moves the eDMA implementation to drivers/edma_unified and turns
driver.edma4 into a deprecated alias that ships only a compatibility
header. The alias resolves to driver.edma_unified through the SDK's own
Kconfig, which a Zephyr build does not use, so nothing compiles
fsl_edma.c and every SoC with an eDMA v4 controller fails to link
dma_mcux_edma.c against the whole EDMA_* symbol set.
Select driver.edma_unified for DMA_MCUX_EDMA_V4 instead. The v2 and v3
components are unaffected: drivers/edma and drivers/dma3 still carry
their own sources.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
modules/Kconfig sources modules/lvgl/Kconfig unconditionally, so the
esp32_ppa fragment is parsed on every build, including those of a
workspace without the LVGL module. LVGL's own Kconfig, which declares
LV_USE_PPA as bool, is then never read and the symbol is left
typeless, aborting the build over a Kconfig warning.
Kconfig adjusting an optional module belongs in that module, and the
fragment also added dependencies to LV_USE_PPA, which LVGL declares
with a prompt and none. Remove it, and with it the draw unit options
in the demo board config. The accelerator driver, its binding and the
sample that drives it directly are untouched.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Update the Kconfig of LVGL and STM32 common in order to
enable the GPU2D HW whenever the NEMAGFX is necessary within
LVGL. Until now the GPU2D driver was always enabled as soon
as the gpu2d node is okay within the DT, leaving a potentially
unnecessary driver compiled in even if un-necessary.
Keep the STM32_NEOCHROM_GPU2D disabled by default even if
the node is okay within the DT and make LVGL select it whenever
LVGL is compiled with the NEMAGFX support.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Raw LV_LOG calls the log callback with LV_LOG_LEVEL_USER and no
[User] prefix. Check if the prefix is there before stripping it
Signed-off-by: André Costa <andre_miguel_costa@hotmail.com>