Commit graph

136,983 commits

Author SHA1 Message Date
Sylvio Alves
741411cf1c tests: drivers: uart: fix uart_elementary for esp32c5
Add missing SoC overlay with UART1 loopback pin
configuration and add esp32c5_devkitc to the
platform_allow list.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
(cherry picked from commit 401b45abee)
2026-04-27 20:18:24 -05:00
Johann Fischer
4b08b2ae66 usb: device_next: allow cdc_acm_poll_in() to receive
Allow cdc_acm_poll_in() to receive when CDC ACM function gets enabled,
but only when the IRQ API is not already used.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
(cherry picked from commit 8d2cc34ecf)
2026-04-27 20:17:28 -05:00
Radu Alexe
287fc173e8 drivers: ieee802154: mcxw: set RX state in accordance with rx_on_idle
setting RX state in accordance with rx_on_when_idle

Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
(cherry picked from commit f5dcdc7677)
2026-04-24 10:21:42 -05:00
Pete Johanson
acdcb7c849 drivers: spi: Avoid missing interrupts on MAX32
Move to the new MXC_SPI_GetAndClearFlags API to avoid a race condition
where flags not handled in the ISR would be cleared and missed as a result.
This fix removes the need for the previous partial workaround that simply
masked the issue in most scenario.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
(cherry picked from commit c8601b95dd)
2026-04-24 10:21:12 -05:00
Pete Johanson
8cd664e63d drivers: spi: Fix sending of dummy bytes for non-DMA scenarios
When DMA is enabled, but there are no DMA channels assigned to the SPI
peripheral, properly fall back to setting up the dummy bytes for SPI RTIO
operations.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
(cherry picked from commit 513adafb72)
2026-04-24 10:21:12 -05:00
Pete Johanson
6fd4f6a1a9 manifest: bump hal_adi revision
Pull in hal_adi updates needed for MAX32 SPI driver race condition fix.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
(cherry picked from commit 3f06a320e7)
2026-04-24 10:21:12 -05:00
Armando Visconti
919ef0841a drivers/sensor: lsm6dsvxxx: fix conditional compilation
Add CONFIG_LSM6DSVXXX_ENABLE_TEMP directive in few places where it was
missing.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 43af622bc5)
2026-04-24 10:20:42 -05:00
Armando Visconti
5eb4f80790 drivers/sensor: lsm6dsvxxx: change data_out for single axis
When a request is performed on a single accelerometer axis
(e.g. SENSOR_CHAN_ACCEL_X) the driver must return a single
scalar q31 data.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 4cc4f244ec)
2026-04-24 10:20:42 -05:00
Armando Visconti
73497e7196 sensors: change doc for sensor_three_axis_data
The sensor_three_axis_data structure is not used for single
axis data. So reflect this in the doxygen documentation.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 8e1ebc35f9)
2026-04-24 10:20:42 -05:00
Armando Visconti
5bb729cd91 drivers/sensor: lsm6dsvxxx: increase cqe/sqe queue size
In a IMU there might be multiple concurrent asynchronous requests
active at the same time. Increase the size of the RTIO queues.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 44b7a95c19)
2026-04-24 10:20:42 -05:00
John Batch
40fff8ea05 samples: drivers: adc_dt: fixing buffer initialization bug
Fixes a bug introduced in commit
17bc03c31c in which drivers using 16-bit
buffers never initialize the upper 16-bits of the 32-bit variable.
Solution is to zero the buffer before use.

Signed-off-by: John Batch <john.batch@infineon.com>
(cherry picked from commit 3015f65409)
2026-04-24 10:20:12 -05:00
Pete Johanson
ec13cb0a62 cmake: Handle multiple shield when running menuconfig, etc targets
Don't use COMMAND_EXPAND_LISTS for the targets added for menuconfig,
guiconfig, etc. so the list of shields is properly quoted when including
multiples with a semicolon separator.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
(cherry picked from commit ca53d65386)
2026-04-24 10:19:45 -05:00
Andreas Schweigstill
1d6e00fd28 adi_tmc: Corrected calls of read_actual_position()
Replaced them with tmc50xx_read_actual_position() resp.
tmc51xx_read_actual_position().

Signed-off-by: Andreas Schweigstill <andreas@schweigstill.de>
(cherry picked from commit 324338ad39)
2026-04-24 10:19:17 -05:00
Tim Pambor
a3714bcc82 ethernet: dwmac: fix multicast reception
By default the DWMAC ethernet controller is configured
to drop all multicast packets. Currently, HW filtering is
not supported, so we need to configure the controller to
pass all multicast packets.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
(cherry picked from commit 0fe8f5541c)
2026-04-22 10:36:13 -05:00
Rex Chen
2f220ede58 drivers: wifi: nxp: Fix CSI data overflow issue
Set the CSI data length accordfing to chips PHY usage in wifi driver
internal to fix the issue.

Signed-off-by: Rex Chen <rex.chen_1@nxp.com>
(cherry picked from commit dc91be72e7)
2026-04-22 10:35:13 -05:00
Appana Durga Kedareswara rao
b79d731f2b arch: arm64: coredump: add FP and SP registers for correct GDB backtraces
The ARM64 coredump arch block did not include FP (x29) and SP,
making GDB unable to unwind the stack. The GDB stub also
misinterpreted SPSR as SP (tu[20] mapped to SP_EL0), producing
corrupted stack pointer values and broken backtraces.
Bump the arch block version to v2 (24 registers, 192 bytes)
adding FP and SP after the existing 22 registers. Update the
GDB stub to auto-detect v1 vs v2 blocks by payload size and
correctly map SPSR (skip), ELR (PC), FP (x29), and SP.

When CONFIG_ARM64_SAFE_EXCEPTION_STACK is enabled and the
exception originated from EL0, use the saved esf->sp (original
sp_el0 stored by the exception entry code) instead of computing
it from the ESF address, since the exception handler may be
running on a separate safe stack.

Fixes #99054

Signed-off-by: Anirudha Sarangi <anirudha.sarangi@amd.com>
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
(cherry picked from commit 355cb6c663)
2026-04-22 10:33:41 -05:00
Tomi Fontanilles
036ce3bfae secure_storage: its_transform: aead: enable PSA_CRYPTO
This implementation relies on PSA Crypto. Make sure it's enabled.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
(cherry picked from commit 6b1d0f010b)
2026-04-22 10:32:14 -05:00
Ofir Shemesh
168295f5a1 net: tcp: fix use-after-free in net_tcp_foreach()
net_tcp_foreach() drops tcp_lock before the callback and re-acquires
it afterwards. A concurrent tcp_conn_release() can free the next
node cached by SYS_SLIST_FOR_EACH_CONTAINER_SAFE during this window,
causing the iterator to follow a dangling pointer on the next
iteration.

Move context teardown in tcp_conn_release() inside the tcp_lock
critical section and keep tcp_lock held across the callback in
net_tcp_foreach(). No current callback acquires tcp_lock.

Signed-off-by: Ofir Shemesh <ofirshemesh777@gmail.com>
(cherry picked from commit cd85e0e890)
2026-04-22 10:31:13 -05:00
Jacob Schloss
b4c86826ca net: l2: ethernet: Restore pointer cast in net_eth_get_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 493508086a)
2026-04-22 10:30:17 -05:00
Armando Visconti
a9fbfa909c drivers: sensor: shell: fix cmd_sensor_attr_get_handler()
Some of the sensore channels (e.g. SENSOR_CHAN_GRAVITY_VECTOR and/or
SENSOR_CHAN_GBIAS_XYZ) are returning three axis values. The current
code was passing a single value and was actually crashing.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 5c85ba6)
2026-04-22 08:53:40 -05:00
Armando Visconti
850869760d drivers: sensor: shell: fix sensor_attribute_name array
Add SENSOR_ATTR_CHIP_ID entry (last one) in sensor_attribute_name
declaration/initialization. This is fixing a sensor_shell crash.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit c5e1f4f)
2026-04-22 08:53:40 -05:00
Armando Visconti
c703dd2b7a drivers/sensor: lsm6dsvxxx: fix interrupt lost
If gpio level gets immediately at high level after sensor is started,
then call interrupt stream handler in order to avoid losing it. As a
side effect no data would be ever read.

Co-authored-by:Brenden Adamczak <cerebralasylum1@gmail.com>
Signed-off-by: Brenden Adamczak <cerebralasylum1@gmail.com>
Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 018a044e71)
2026-04-22 08:53:03 -05:00
Armando Visconti
b20edda149 drivers/sensor: lsm6dsvxxx: fix bad odr restore
When setting SFLP game gbias the accel/gyro data rate must be temporarily
changed and then restored back to original values. But in the process the
saved rates got mistakenly corrupted.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
(cherry picked from commit 8712e72d6a)
2026-04-22 08:52:32 -05:00
Jamie McCrae
0c95fa8275 mgmt: mcumgr: grp: fs_mgmt: Fix not checking if write completed
Fixes an issue whereby a write might have partially been successful
but failed due to insufficient space in the storage device by
re-attempting the write again with the offset, and if it still
fails, return an error

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit f99dbd622e)
2026-04-22 08:52:04 -05:00
Mohamed Azhar
a45568f76f drivers: spi: microchip: bugfixes in SPI g1 driver
Fixed CTRLA register write bugs in spi g1 driver
Updated the transfer function for handling dma mode

Fixes #106580

Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
(cherry picked from commit 294da648ff)
2026-04-22 08:51:40 -05:00
Martin Stumpf
6c7fd089f4 settings: runtime: fix nullpointer dereference in settings_runtime_set
When `h_set` is unset in the handler (which is allowed according to the
docs), then this function causes a nullpointer dereference because
it has no check for this.

This change applies the behavior of `settings_runtime_get` to
`settings_runtime_set` to catch this case as expected.

Signed-off-by: Martin Stumpf <finomnis@gmail.com>
(cherry picked from commit 10989f9702)
2026-04-22 08:51:13 -05:00
Pete Johanson
00cd5017bb boards: common: Properly set the selected adapter serial
For MAX32 boards using OpenOCD, properly respect the passed --serial runner
parameter.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
(cherry picked from commit fb0f849ab4)
2026-04-22 08:50:39 -05:00
Maureen Helm
684c9e8f32 release: Zephyr 4.4.0 v4.4.0
Set version to v4.4.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-14 14:45:49 -05:00
Maureen Helm
c4a8fc21ef doc: releases: Remove 4.2 from the list of supported releases
4.2 has reached EOL.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-14 14:45:49 -05:00
Maureen Helm
09f43af95d doc: releases: Add 4.4 to the list of supported releases
Adds 4.4 to the list of supported releases and updates references to the
next planned release as 4.5. The EOL date is set to one year after
release.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-14 14:45:49 -05:00
Maureen Helm
66d163da2f doc: release: Finalize 4.4 release notes and migration guide
Removes working draft status from the 4.4 release notes and migration
guide.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-14 14:45:49 -05: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
Valerio Setti
d0dd88c330 manifest: mcuboot: include fixes for encrypted images and legacy RSA fields
- Do not access "ver" field in the RSA context structure because this has
  been removed from TF-PSA-Crypto.
- Add PSA_WANT for AES and CTR in order to support encrypted images.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-04-14 13:36:18 -05:00
Anas Nashif
0d92a3ddf3 MAINTAINERS: merge Release and Release Notes areas
Merge release and release notes areas into one and have all release
releated files be maintained by the acting release managers.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-04-14 13:19:09 -05:00
Sylvio Alves
711e3bebf0 drivers: i2c: esp32: enable i2c controller clock on init
Call i2c_hal_init() during driver init and after the clock
off/on cycle in i2c_hw_fsm_reset(). On SoCs where the
controller clock gate defaults to off, the peripheral would
not respond until explicitly enabled, matching the behavior
of ESP-IDF's i2c_hal_init().

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-04-14 13:08:51 -05:00
Benjamin Cabé
2ee0b2b3c0 doc: releases: improve FTL release highlight bullet point
Use tone consistent with other bullet points and link to the driver's
binding so that readers have a clear starting point to learn more.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-04-14 10:39:14 -05:00
Nicolas Pitre
0af51ca254 doc: releases: release-notes-4.4: add heap hardening and constants library
Add release note entries for:
- Tiered heap hardening (also mention in release highlights)
- zephyr_constants_library() CMake function

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Co-authored-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-04-14 10:39:14 -05:00
Ravi Dondaputi
e215a14a9c snippets: wifi-credentials: Fix the heading
Add `s` that was inadvertantly missed out. Creates unnecessary
confusion.

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/106506

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-04-14 10:38:40 -05:00
Junfeng Li
ef14f1ad37 doc: vscode: fix broken sample path
Fix broken sample path: samples/blinky => samples/basic/blinky

Signed-off-by: Junfeng Li <junfengli@meta.com>
2026-04-14 10:38:05 -05:00
Benjamin Cabé
c868f1197b arch: drop Synopsis / Designware from ARC's full name
Drop Synopsis / Designware from ARC's full name and just go with "ARC"
which should be obvious enough of a name when listed alongside other
processor architectures.ull name for

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-04-14 10:37:34 -05:00
Maureen Helm
f51546195b doc: releases: Clean up 4.4 migration guide
Minor formatting and editorial cleanup.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-14 10:36:48 -05:00
Maureen Helm
f26393b435 doc: releases: Clean up 4.4 release notes
Moves release notes documenting the removal of some Xtensa architecture
Kconfigs and some Bluetooth controller Kconfigs into the "Removed APIs
and options" section.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-14 10:36:48 -05:00
Martí Bolívar
0d55eab2fb doc: releases: DT release notes for v4.4
Add release notes and fix the capitalization while we are here.

Signed-off-by: Martí Bolívar <marti.bolivar@oss.qualcomm.com>
2026-04-13 15:08:10 -05:00
Fabio Baltieri
92b52845d3 docs: migration: add a note about cmake deps to zephyr_generated_headers
Add a note about the new dependency of kernel.h to generated headers.
This has been a major source of breakages for us downstream, it'll
likely be useful to other users too.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-04-13 15:07:45 -05:00
Rodrigo Peixoto
433529fc34 doc: releases: Add zbus v4.4.0 release notes
Add zbus async listeners, improve multi-domain proxy agent notes, and add
new API entries to the v4.4.0 release notes.

Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
2026-04-13 15:07:12 -05:00
Anas Nashif
07fa9eabfe kernel: fix name of scheduler/wait queue: Dumb -> Simple
Rename leftover in kernel headers: Dumb -> Simple.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-04-13 11:09:25 -05:00
Peter Mitsis
3ccb3724be kernel: Convert remnant "dumb" -> "simple"
Found a couple other cases of "dumb" lists being referenced in
the kernel. Converted these to "simple".

Also tweaked some information related to thread priority queues.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2026-04-13 11:09:12 -05:00
Benjamin Cabé
ac64436ff8 testsuite: ztest: benchmark: document CSV output column names
Expand the ZTEST_BENCHMARK_OUTPUT_CSV Kconfig help text to describe the
two CSV row formats (sampled and timed) so that users don't have to
reverse engineer them by looking at the code.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-04-13 11:07:02 -05:00
Abderrahmane JARMOUNI
1f1992d09a doc: releases: migration-guide-4.4: rework display section
Rework Display section in v4.4.0 release migration guide

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2026-04-13 11:06:20 -05:00
Abderrahmane JARMOUNI
ee1b10bdaf doc: releases: release-notes-4.4: add display elements
Complete Display section in v4.4.0 release notes.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2026-04-13 11:05:22 -05:00