Commit graph

136,983 commits

Author SHA1 Message Date
Tomasz Leman
c789c763dd tests: intel_adsp: smoke: register IPC handler before sending messages
When CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE is enabled, the clock
calibration test was registering the IPC message handler after sending
the first TIMESTAMP command. This caused a race condition where the
host's response would arrive during the k_msleep() before the handler
was set.

Without a registered handler, the old IPC glue layer's receive callback
sees handle_message == NULL, leaving msg_done unset. This prevents the
IPC backend from sending an acknowledgment to the host. The host then
blocks waiting for the ACK, causing subsequent TIMESTAMP requests to
time out.

Fix by moving intel_adsp_ipc_set_message_handler() call to before the
first message is sent, ensuring all incoming messages are properly
acknowledged even if the test doesn't need their data immediately.

Related to: #102103

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-01-26 10:13:17 -06:00
Tomasz Leman
a6089d88dd tests: intel_adsp: set msg_done flag in IPC receive callbacks
The smoke test IPC receive callbacks were not setting the msg_done flag
in the endpoint private data, preventing the ISR from acknowledging
received messages to the host. Without acknowledgment, the host would
not send subsequent messages, causing the tests to timeout waiting for
responses.

This patch updates both ipc_receive_cb() in hostipc.c and
clock_ipc_receive_cb() in clock.c to set priv_data->msg_done = true,
enabling immediate message acknowledgment by the ISR as documented in
the Intel ADSP host IPC backend.

Related to: #102103
Related to: #102106

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-01-26 10:13:17 -06:00
Tomasz Leman
8d072e85b1 ipc: intel_adsp: fix inverted sync wait condition
The synchronous send helper intel_adsp_ipc_send_message_sync() had
inverted logic for determining when to wait for host acknowledgment.

Before this fix, the function would:
- Return immediately (without waiting) when send succeeded (ret == 0)
- Try to wait on semaphore when send failed (ret < 0)

This is backwards. The correct behavior is to wait for the host ACK
semaphore only when the message was successfully queued for
transmission.

The inverted logic caused multiple test failures:
- HDA tests received -EBUSY on subsequent sends because tx_ack_pending
  remained true when no wait occurred
- Smoke IPC tests timed out waiting for msg_flag/done_flag because
  messages were sent without waiting for host responses
- Clock calibration tests failed because timestamp responses were never
  received

This aligns the SoC glue implementation with the test-local helper
implementations and restores the original pre-refactoring behavior.

Related to: #102103
Related to: #102106

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-01-26 10:13:17 -06:00
Gaetan Perrot
5dfb097ba4 drivers: dai: intel: ssp: make set_clock_control_ver_1 void
dai_ssp_set_clock_control_ver_1() never reports errors and always
returns 0.
The error check at the call site is therefore dead code.

Make the function void and drop the unused error handling.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-26 10:12:56 -06:00
Lyle Zhu
cfc5fe01a3 bluetooth: Classic: l2cap_br: fix pdu_len parameter type issue
Change the `pdu_len` parameter type from `uint8_t` to `uint16_t` in
function `bt_l2cap_br_pack_i_frame_header()`.

This fixes a potential overflow issue as PDU length can exceed 255
bytes, which is the maximum value that can be stored in a uint8_t.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2026-01-26 10:12:34 -06:00
Qingsong Gou
bab6ba62c8 drivers: mipi_dbi: sf32lb: fix data writing stuck
Fix data writing stuck without data len check

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-26 10:12:08 -06:00
Qingsong Gou
c2e1daf134 drivers: mipi_dbi: sf32lb: fix build warnings
remove unused varibles

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-26 10:12:08 -06:00
Qingsong Gou
348405f7bf drivers: mipi_dib: sf32lb: add command_read interface
Add command_read interface for sf32lb dbi

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-26 10:12:08 -06:00
Guðni Már Gilbert
e3575fc848 scripts: twister: fix issue with empty serial in hwmap
jsonschema is more strict when it comes to typing and only allows
strings for 'serial' in hwmap-schema.yaml.

Since 'serial' is not a required key in the schema, this commit
removes the 'serial' key from generated hardware maps when the
'serial' value is empty /unknown.

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2026-01-26 10:11:35 -06:00
Guðni Már Gilbert
e9f106dd7a twister: replace pykwalify with jsonschema
Usage of pykwalify is deprecated.

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2026-01-26 10:11:35 -06:00
Jisheng Zhang
fdca758270 sys: device_mmio: add devcie_map for !DEVICE_MMIO_IS_IN_RAM
On !MMU && !PCIE && !EXTERNAL_ADDRESS_TRANSLATION platforms, the
device_map() isn't defined, thus brings below ramconsole build error:

ram_console.c: In function 'ram_console_init':
ram_console.c:49:9: error: implicit declaration of function 'device_map'

Previously, I solved this issue in a workaround style[1] as below:

+#ifndef DEVICE_MMIO_IS_IN_RAM
+#define device_map(virt, phys, size, flags) *(virt) = (phys)
+#endif /* DEVICE_MMIO_IS_IN_RAM */

But during the PR review progress, pathcing device_mmio.h is suggested.
This patch implements that suggestion.

Link: https://github.com/zephyrproject-rtos/zephyr/pull/97894 [1]
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
2026-01-26 10:10:15 -06:00
Hubert Miś
f8edf22017 sample: drivers: led: sct2024 controller
A sample demonstrating usage of a driver for SCT2024 LED controller.
This sample enables 16 leds one by one and then disables them one
by one in an inifite loop.

Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2026-01-26 10:09:43 -06:00
Hubert Miś
0f6bcc6491 drivers: led: sct2024 controller
Initial implementation of SCT2024 LED controller driver

Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2026-01-26 10:09:43 -06:00
Valerio Setti
7d0bdc2046 manifest: openthread: bump version to get support for HKDF crypto alg
Bump OpenThread version to get support for HKDF crypto algorithm.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
535d9e5659 modules: openthread: move definition of OPENTHREAD_CRYPTO_PSA
Simply move the definition of OPENTHREAD_CRYPTO_PSA Konfig before crypto
configuration related Kconfigs.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
119ff39e8c modules: mbedtls: increase heap memory for OpenThread
Increase heap memory when OpenThread is enabled and either "commissioner"
or "joiner" roles are used.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
0f6217f4b7 modules: openthread: select PSA_WANT deps for KDF algorithms
Select proper PSA_WANT requirements in CONFIG_OPENTHREAD_CRYPTO_PSA_CONFIG
in order to enable KDF algorithms.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
76b8c8b469 modules: openthread: add HKDF support in crypto_psa
crypto_psa.c was missing an implementation for the following functions:
- otPlatCryptoHkdfInit
- otPlatCryptoHkdfExtract
- otPlatCryptoHkdfExpand
- otPlatCryptoHkdfDeinit
which provide support for HKDF using PSA Crypto API.

This commit fill this gap by copying the implementation from upstream
PR 11445.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
0fc524f377 samples: net: openthread: coap: enable NVS as Settings backend
When PSA Crypto API are used they need a PSA ITS implementation and this
is provided by Secure Storage if TF-M is not enabled in the build.
Secure Storage can use Settings as backend and Settings, on its turn, can
use several other backends to store data (ex: ZMS, NVS, etc).
Since NVS is already enabled in other OpenThread Zephyr samples, let's
enable NVS also for this sample.

While at it, also slightly re-organize "sample.yaml" to share more data
between tests and allow building and testing also on the nrf52840dk board.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
9ab7ef61a7 modules: mbedtls: allow ECJPAKE keyexchange to work through PSA API
Allow MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED to work with either legacy
crypto (i.e. MBEDTLS_ECJPAKE_C) or PSA Crypto API
(i.e. PSA_WANT_ALG_JPAKE).

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
d07102ecf9 secure_storage: add dependency for Settings backend
Secure Storage is used as PSA ITS in builds where TF-M is not enabled,
but it needs a storage backend where to physically save data.
If CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS is used then its
"depends on" guarantee that there is a partition to use as physical
storage.
If CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS is used instead
we want to ensure that CONFIG_SETTINGS_NONE doesn't gets selected which
would result in Settings not being able to store data anywhere.

This commit add a depends_on for this last case.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
62ebe56c49 modules: openthread: use PSA API by default
Make CONFIG_OPENTHREAD_CRYPTO_PSA as enabled by default in order to use
PSA Crypto API instead of legacy Mbed TLS' crypto. This is done with the
final goal to deprecate and remove usage of legacy crypto support in
the near future from Zephyr codebase.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
b9e0e724ee modules: openthread: select Secure Storage when using PSA without TF-M
OpenThread needs a PSA ITS provider when using PSA Crypto API, therefore
we enable Secure Storage in builds without TF-M.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
2751b8acdb modules: openthread: reorganize default configuration options
First separate Mbed TLS' crypto configuration from the "high level" (TLS)
part. CONFIG_OPENTHREAD_MBEDTLS_TLS_CONFIG now only takes care of this high
level part, whereas the newly added
CONFIG_OPENTHREAD_CRYPTO_LEGACY_MBEDTLS_CONFIG takes care of the legacy
crypto configuration.

CONFIG_OPENTHREAD_CRYPTO_PSA_CONFIG is added to propose a default crypto
configuration based on PSA Crypto API instead of legacy Mbed TLS.

Both CONFIG_OPENTHREAD_CRYPTO_LEGACY_MBEDTLS and
CONFIG_OPENTHREAD_CRYPTO_PSA_CONFIG are promptless and the choice between
the two is based on CONFIG_OPENTHREAD_CRYPTO_PSA.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
b152914769 modules: openthread: rename security related Kconfigs
Rename
- CUSTOM_OPENTHREAD_SECURITY as OPENTHREAD_SECURITY_CUSTOM
- OPENTHREAD_MBEDTLS_CHOICE as OPENTHREAD_SECURITY_DEFAULT_CONFIG

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
d5ab6db12c modules: openthread: minor documentation fixes
Minor fixes to some Kconfigs' prompt and help messages.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
11e16a62e2 modules: openthread: enable Mbed TLS ECP when using secp256r1 curve
Enabled CONFIG_MBEDTLS_ECP_C also when CONFIG_OPENTHREAD_SRP is enabled as
this is required by CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
c035cfe076 modules: openthread: add couple of internal helper Kconfigs
Add CONFIG_OPENTHREAD_COMMISSIONER_JOINER and
CONFIG_OPENTHREAD_SRP_CLI_SRV as internal helpers to slightly simplify
depenencies in other Kconfigs that depends on these combinations.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Valerio Setti
6245be0095 modules: openthread: move definition of OPENTHREAD_CRYPTO_PSA
Simply move the definition of OPENTHREAD_CRYPTO_PSA Kconfig closer to
the OPENTHREAD_MBEDTLS one. This will help in following commits.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-26 10:09:04 -06:00
Pieter De Gendt
4e62f0510c scripts: ci: check_compliance.py: Add DT_HAS_ to exceptions
The docs refer to an non-existing config option, add it to the checklist.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-26 08:48:15 -05:00
Pieter De Gendt
c89bf574f9 doc: build: dts-vs-kconfig: Add information about generated symbols
Devicetree bindings generate Kconfig variables, and enabled nodes
additionally generate symbols. Add a section to the docs that describes
this.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-26 08:33:41 -05:00
Johan Alfvén
ea5a882601 manifest: update hal_ethos_u revision
Point to hal_ethos_u's current HEAD

Signed-off-by: Johan Alfvén <johan.alfven@arm.com>
2026-01-26 14:17:49 +01:00
Pieter De Gendt
189c6794ce net: pkt: Add read functions for le32, be64 and le64 variants
Re-use sys_get_be/sys_get_le provided functions and add missing variants.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-26 14:17:41 +01:00
Jamie McCrae
66ee2d2304 west.yml: MCUboot synchronization from upstream
Update Zephyr fork of MCUboot to revision:
  cb6e4ceaacd4dfe1e3cdeb92c7f5680f62967837

Brings following Zephyr relevant fixes:

  - 086a6efe boot: zephyr: sysbuild: cmake: Rework sysbuild hooks
  - 313311b8 boot: bootutil: loader: Add error codes to log
    messages
  - 65d7f3d3 ext: nrf: cc310_glue: Fix include path
  - b54b3284 boot: zephyr: cmake: Fix multitude of issues
  - 9c10463c boot: zephyr: kconfig: Misc. tidy
  - 4775b1d3 boot: zephyr: kconfig: Fix options being out of menu
  - e6067906 boot: zephyr: boot_serial_extension: Remove include
  - e479b4c0 boot: zephyr: Add ECDSA support using mbedTLS
  - 10270036 samples: zephyr: Remove hello-world
  - 31fcf095 boot: zephyr: Do not select RSA key exchange in
    BOOT_SIGNATURE_TYPE_RSA

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-26 14:17:06 +01:00
Jamie McCrae
5ccfb179f0 sysbuild: Link MCUboot output with main app configuration
Links the output from the default MCUboot build with the estimated
size of the overhead with the main image. This also allowes used
to remove the linkage between them, if they so wish

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-26 14:17:06 +01:00
Sylvio Alves
a8fd101696 west.yml: espressif: remove custom watchdog calls
Espressif has custom watchdog definitions for mcuboot build, which
is currently old and not used.
Remove those as mcuboot upstream has the implementation.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-26 14:17:06 +01:00
Gillian Minnehan
edc952e641 doc: develop: manifests: external: add memfault
Add documentation to external module section for adding the
Memfault firmware SDK to a Zephyr project. Additionally, refer to the
module in OTA docs.

Signed-off-by: Gillian Minnehan <gillian.minnehan@nordicsemi.no>
2026-01-26 14:16:59 +01:00
Gaetan Perrot
4a42e92078 net: lwm2m: lwm2m_obj_swmgmt: remove redundant ret initialization
The return value variable was initialized but always overwritten
before being read.

Remove the redundant initialization to simplify the code and avoid
misleading default values.

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-26 14:16:51 +01:00
Tarang Patel
7ee4cb99b9 boards: u-blox: ubx_evkninab5: add new board
Add basic board definition of the u-blox EVK-NINA-B5 board

Signed-off-by: Tarang Patel <tarang3399.patel@gmail.com>
2026-01-26 14:16:39 +01:00
Jérôme Pouiller
cf1e343a57 modules: wiseconnect: Compile clock functions only if needed
The clock related functions are obviously only required if
silabs,siwx91x-clock is compiled.

This commit highlights some inconsistencies in clock management. They will
be addressed later.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
55f3f755f8 modules: wiseconnect: Clean up DMAs drivers integration
rsi_rom_table_si91x.c is required as soon as any driver use ROM.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
ed07a1a98b modules: wiseconnect: Use ROM based driver for qspi
Macro QSPI_ROMDRIVER_PRESENT allow to use the ROM version of rsi_qspi.c
(and save a bit of flash). This flag is used by the upstream Wiseconnect
SDK.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
5a74136cdc modules: wiseconnect: Use ROM based driver for entropy
Macro RNG_ROMDRIVER_PRESENT allow to use the ROM version of rsi_rng.c (and
save a bit of flash). This flag is used by the upstream Wiseconnect SDK.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
7c60d6eeaa modules: wiseconnect: Compile rsi_adc.c/rsi_dac.c only if needed
Files rsi_adc.c and rsi_dac.c are only required for silabs,siwx91x-adc.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
ddef853e46 modules: wiseconnect: Compile sl_si91x_calendar.c only if needed
Files sl_si91x_calendar.c is only required for silabs,siwx91x-rtc.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
0990ec9af7 modules: wiseconnect: Compile *_pwm.c only if needed
Files rsi_pwm.c and sl_si91x_pwm.c are only required for
silabs,siwx91x-pwm.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
f3cd07231a modules: wiseconnect: Compile sl_si91x_*_gpio.c.c only if needed
File sl_si91x_driver_gpio.c is only required by silabs,siwx91x-gpio.

As for sl_si91x_peripheral_gpio.c, it used by  silabs,siwx91x-gpio and
silabs,siwx91x-pinctrl.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
75aae4804d modules: wiseconnect: Compile rsi_wwdt.c only if needed
File rsi_wwdt.c is only required by silabs,siwx91x-wdt.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
1e636a5161 modules: wiseconnect: Reorder BT_SILABS_SIWX91X
We try to keep this file more or less alphabetically ordered (except big
drivers: NWP, WIFI and PM).

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00
Jérôme Pouiller
fd313748d8 modules: wiseconnect: Linker file are now orphans
Since commit 2113d56c68 ("soc: silabs: Fix SL_CODE_CLASSIFY conflict"),
there are no more text_application_ram or .cc_text sections.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-01-26 14:16:31 +01:00