Commit graph

136,983 commits

Author SHA1 Message Date
Tim Pambor
22d1ea568e drivers: adc: shell: fix a dangling pointer warning
Fix a dangling pointer warning in adc_shell.c by placing the
help text in a static variable instead of returning a pointer
to a local variable.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-27 09:16:21 +01:00
Benjamin Cabé
3deeffb422 dts: bindings: input: fix typo in zephyr,input-double-tap description
drop repeated "be"

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 19:29:09 -04:00
Benjamin Cabé
c588da98e5 tests: input: add single tap timeout test for double tap detection
Implement a new test case to verify that a single tap does not trigger
a double tap event and that the event count resets after the timeout
period.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 19:29:09 -04:00
Mohamed Moawad
f4e5c9a583 tests: kernel: timer: Fix timer_behavior test for ARC boards
ARC hardware boards set CONFIG_SYS_CLOCK_TICKS_PER_SEC=100 in their
defconfig, giving a 10 ms tick period. The timer_behavior test uses a
1 ms timer period by default, which is smaller than the tick period,
so the kernel rounds up to the next tick boundary and the test fails.

Signed-off-by: Mohamed Moawad <moawad@synopsys.com>
2026-03-26 19:28:51 -04:00
Nikhil Namjoshi
4d2950a694 drivers: ksz8081: Add PHY readiness check after PHY reset
Some systems can have board layout that can cause PHY
reset to be slower. So add more checkes to make sure
PHY is completely out of reset. We basically check
1) Power down bit from BMCR register
2) Reset bit from BMCR register
3) Factory Bit in OMSO register

Tested:

Verified that on a system with slow PHY
reset, the bit verification logic helps
ensure PHY is out of reset.

If the PHY takes longer thann 0.5s, then the
PHY bit checking logic helps surface the problem.

Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
2026-03-26 19:28:25 -04:00
Jacob Wienecke
1723832511 soc: nxp: rw: fix RTC wakeup status early clear
POWER_ClearWakeupStatus for RTC was called on the PM3 exit path,
clearing the status before the application could query the wakeup source
via NXP_GET_WAKEUP_SIGNAL_STATUS().

Move the clear to the PM3 entry path, just before re-arming the wakeup
source. This matches the existing GPIO wakeup status handling which
already clears on entry.

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2026-03-26 19:27:55 -04:00
Arjun Sahajan
10a32abe88 doc: wdt: mchp_xec: Update migration guide
Update new macros usage for wdt node in migration guide

Signed-off-by: Arjun Sahajan <Arjun.Sahajan@microchip.com>
2026-03-26 19:27:05 -04:00
Arjun Sahajan
4bf0f9c890 dts: wdt: mchp_xec: Update WDT nodes with new macros
Update PCR and GIRQ properties of WDT node to use new macros

Signed-off-by: Arjun Sahajan <Arjun.Sahajan@microchip.com>
2026-03-26 19:27:05 -04:00
Arjun Sahajan
1a3d043ab3 drivers: wdt: mchp_xec: Update WDT driver with new macros
Update PCR and GIRQ properties of WDT driver to use new macros

Signed-off-by: Arjun Sahajan <Arjun.Sahajan@microchip.com>
2026-03-26 19:27:05 -04:00
Jonathan Keller
05c6f600c2 soc: infineon: pse84: initialize clock frequency in an m33/ns app
The system clock frequency was not initialized, causing the
`Cy_SysLib_Delay` family of PDL functions to delay for an incorrect amount
of time.

This was fixed for the M55 in #101015, but the fix was not applied to the
M33.

Fixes #106232.

Signed-off-by: Jonathan Keller <jonathan.keller@infineon.com>
2026-03-26 19:26:09 -04:00
Benjamin Cabé
ad1225268c doc: develop: vscode: fix "Generate Compile Commands" instructions
Add samples/blinky to west build command, otherwise following the
instructions to the letter fails due to trying to build "zephyr/"

Fixes zephyrproject-rtos/zephyr#102533

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 19:25:51 -04:00
Valerio Setti
49c3f3a636 tests: crypto: mbedtls_psa: enable Kconfigs for MLDSA-87
Just enable Kconfigs for MLDSA-87. This is not tested because it's still
an internal driver for TF-PSA-Crypto and it's not exported yet through
PSA API.
This is necessary to validate "mldsa-native" module integration in Zephyr.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-26 14:02:52 -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
Valerio Setti
47ea4e064c manifest: include fixes for mbedtls, tf-psa-crypto and mldsa-native
mbedtls: allow tf-psa-crypto's path to be provided externally.
tf-psa-crypto: allow mldsa-native's path to be provided externally.
mldsa-native: add "module.yml" to make the project a Zephyr module.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-26 14:02:52 -04:00
Valerio Setti
e55b3612d7 manifest: place Mbed TLS sub modules outside of mbedtls
Upstream Mbed TLS project places "tf-psa-crypto" submodule inside
"mbedtls" and "mldsa-native" inside "tf-psa-crypto". Unfortunately this
creates problem with "west", in particular with caching done by the CI.

Resolve this problem by checking out both "tf-psa-crypto" and
"mldsa-native" directly in "modules/crypto", so at the same level of
"mbedtls".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-26 14:02:52 -04:00
Raffael Rostagno
8047d8f408 pm: device: Suppress error message when device is busy
Power managed devices should be able to return -EBUSY at
pm_action() (driver) calls without generating error log messages.
Suppress such error messages to allow the driver to decide at
sleep time if it still is unable to suspend, without generating
log noise.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-26 14:02:36 -04:00
Cristian Bulacu
a0b46ebb28 openthread: border_router: Fix circular psa_generate_random() calls
Enable CONFIG_MBEDTLS_PSA_CRYPTO_LEGACY_RNG to avoid recursion calls to
psa_generate_random() function.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-03-26 14:02:24 -04:00
Shreyas Shankar
7a06d15ab4 tests: kernel/cache: flush dcache before re-enable in setup
Enabling D-cache in test setup without a prior flush can corrupt the
active stack when executing from cacheable memory.

Use a safe sequence (disable ->flush ->enable) for D-cache in
test setup.

Signed-off-by: Shreyas Shankar <shreyas.shankar2018@gmail.com>
2026-03-26 14:02:09 -04:00
Brett Peterson
13b22ea472 drivers: audio: fixing dma configuration in infineon dmic driver
The infineon dmic driver did not correctly track the address offset into
the current receive buffer and there were also issues with the transfer
size calculations. This change corrects these issues.

Signed-off-by: Brett Peterson <brett.peterson@infineon.com>
2026-03-26 14:01:47 -04:00
Fin Maaß
e63d60915a drivers: wifi: esp32: set band info in scaned aps
set band info in scaned aps.
As the esp32-c5 supports 5 Ghz, the info can there otherwise
be wrong.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-26 14:01:25 -04:00
Benjamin Cabé
059b297297 include: drivers: adc: add proper public docs for ADC streaming API
- API related to ADC streaming should not unnecessarily be gated behind
  a Kconfig ("declarations that are available only when the option is
  enabled should be provided unconditionally")
- Add proper Doxygen for adc_stream(), adc_data_generic_header, as well
  as the ADC_DT_STREAM_IODEV macro.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 10:47:31 -04:00
Josuah Demangeon
7f1bf6028c usb: uvc: fix incorrect frame interval decoding
UVC counts frame intervals as 100ns units, so to get a number in
nanosecond, the value from USB needs to be divided by either
(USEC_PER_SEC * 10) or (NSEC_PER_SEC / 100). A mix of the two
was used.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2026-03-26 10:47:08 -04:00
Benjamin Cabé
873dc07d04 MAINTAINERS: add kartben as Build Dashboard collaborator
Step up to help look after the Build dashboard

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 10:46:55 -04:00
Alberto Escolar Piedras
fd40413e99 manifest: Update nRF hw models to latest
Update the HW models module to:
158b9710d6e10c57b2c623f8f4178f0bbc85c23f

Including the following:
158b971 RADIO: Correct TXPOWER mapping for 54 devices

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-03-26 10:46:45 -04:00
Julien Racki
c08bf006a0 dts: arm: st: wba: redefine IRQs numbers for the WBA2x
Most of the IRQs numbers should be redefined as they
does not match the WBA5/6X series.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2026-03-26 10:46:22 -04:00
Julien Racki
32061dd012 dts: arm: st: wba: Remove timers3 from stm32wba.dtsi
Removed timers3 from stm32wba.dtsi as the WBA2x series
does not have this timer. Moved it to stm32wba52.dtsi instead.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2026-03-26 10:46:22 -04:00
Julien Racki
8499357a9f dts: arm: st: wba: Add WBA2X FLASH_LAYOUT_STM32WBA2X
Add FLASH_LAYOUT_STM32WBA2X define to select
the right area for the engineering bytes for the WBA2X series.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2026-03-26 10:46:22 -04:00
Johann Fischer
04c150e3df usb: uvc: assign the actual streaming interface number
When UVC is part of a multi-function device, baInterfaceNr(0) may point
to an incorrect interface number. Assign the actual streaming interface
number after the configuration descriptor is initialized.

This is follow-up on commit 8d7bb597fc
("usb: uvc: use uvc_device_ in API and add _enable()/_shutdown()").

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-03-26 10:45:17 -04:00
Mathieu Choplain
13c724de1e drivers: dma: stm32: enable the transfer error interrupt
The driver never enabled the transfer error interrupt. If a transfer error
occurred, the ISR would not be called which could result in a deadlock.

Make sure the transfer error interrupt is enabled.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-26 10:44:59 -04:00
Benjamin Cabé
2a6a9257e1 scripts: requirements: actions: refresh pinned versions
Run the uv command to update the pinned version in
scripts/requirements-actions.txt and doc/requirements.txt.
This picks up requests>=2.33.0, mitigating CVE-2026-25645.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 10:43:23 -04:00
Benjamin Cabé
48e6a97a00 doc: requirements: exclude incompatible coverxygen version
Coverxygen 1.8.2 has a regression impacting us. Explicitly exclude it
until a fixed version is released.
See https://github.com/psycofdj/coverxygen/issues/37.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 10:43:23 -04:00
Andrew Gillan
466c04862e lib: json: Configurable float and double precision encoding
Created Kconfig options to set the precison used for encoding
float and double values

Signed-off-by: Andrew Gillan <andrew.gillan@gmail.com>
2026-03-26 07:19:43 -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
Jamie McCrae
f8fcc85d93 west.yml: MCUboot synchronization from upstream
Update Zephyr fork of MCUboot to revision:
  2d42e8eadcdb76737f99a0e03e6c6e322f8f1639

Brings following Zephyr relevant fixes:

  - 2d42e8ea boot: zephyr: rename CONFIG_MBEDTLS_CFG_FILE
  - 86967cdc zephyr: Fix the tsa-crypto missing dependency
    twister error

Signed-off-by: Jamie McCrae <jamie.mccrae@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
Tomi Fontanilles
2bedd65447 secure_storage: do not manually specify TF-PSA-Crypto include directories
This is more prone to breaking than simply inheriting all include
directories from the tfpsacrypto library.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-26 07:19:32 -04:00
Santhosh Charles
9f9531010a boards: ti: lp_mspm0g3519: enable CAN-FD support
Enable CAN-FD peripheral on lp_mspm0g3519. Configure
canclk to use syspll as clock source and add pinctrl
for CAN TX/RX pins.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
2026-03-26 07:17:56 -04:00
Santhosh Charles
6cf7f20c25 boards: ti: lp_mspm0g3507: enable CAN-FD support
Enable CAN-FD peripheral on lp_mspm0g3507. Configure
canclk to use syspll as clock source and add pinctrl
for CAN TX/RX pins.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
2026-03-26 07:17:56 -04:00
Santhosh Charles
f7466280d0 dts: arm: ti: mspm0: g: add CAN-FD support for TI MSPM0 G-Series
Add CAN-FD devicetree nodes for MSPM0 G-Series SoCs that include
the peripheral: mspm0g310x, mspm0g350x and mspm0gx51x.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
2026-03-26 07:17:56 -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
Santhosh Charles
32cd0f81c4 dts: bindings: can: add DT bindings for TI MSPM0 G-Series MCAN module
Add devicetree bindings for the TI MSPM0 G-Series MCAN module.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
Signed-off-by: Jackson Farley <j-farley@ti.com>
2026-03-26 07:17:56 -04:00
Santhosh Charles
903f988c41 drivers: clock_control: mspm0: add CANCLK source support
Add support for the CANCLK source for MSPM0. `mspm0_canclk_cfg`
config struct is used to get rate.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
2026-03-26 07:17:56 -04:00
Santhosh Charles
c8f9367e19 dts: arm: ti: mspm0: add canclk node
Add the canclk node to the MSPM0 base dtsi to support CAN
clock configurations.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
2026-03-26 07:17:56 -04:00
Fabian Blatz
f8f6004e17 include: drivers: stepper: document stepper driver ops using Doxygen
Use doxygen driver_ops commands to properly document the required/optional
stepper driver operations.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-03-26 06:47:59 +01:00
Benjamin Cabé
7408959d09 include: drivers: wuc: document WUC driver ops using Doxygen
Use doxygen driver_ops commands to properly document the required/optional
WUC driver operations

Assisted-by: Cursor:composer-2
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 06:47:46 +01:00
Benjamin Cabé
1864d95807 include: drivers: hwspinlock: document hwspinlock driver ops using Doxygen
Use doxygen driver_ops commands to properly document the required/optional
Hardware Spinlock driver operations

Assisted-by: Cursor:composer-2
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-26 06:47:38 +01:00