Commit graph

136,983 commits

Author SHA1 Message Date
Pisit Sawangvonganan
a847abf22c drivers: fix typo in (i2s, i3c, ieee802154, input)
Utilize a code spell-checking tool to scan for and correct spelling errors
in all files within:
- `drivers/i2s`
- `drivers/i3c`
- `drivers/ieee802154`
- `drivers/input`

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-03-27 20:21:24 -04:00
Pisit Sawangvonganan
edae0e7e30 drivers: fix typo in (ethernet, flash, fpga, fuel_gauge, gpio, i2c)
Utilize a code spell-checking tool to scan for and correct spelling errors
in all files within:
- `drivers/ethernet`
- `drivers/flash`
- `drivers/fpga`
- `drivers/fuel_gauge`
- `drivers/gpio`
- `drivers/i2c`

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-03-27 20:21:24 -04:00
Pisit Sawangvonganan
531628e57a drivers: fix typo in (disk, display, dma, eeprom, entropy, espi)
Utilize a code spell-checking tool to scan for and correct spelling errors
in all files within:
- `drivers/disk`
- `drivers/display`
- `drivers/dma`
- `drivers/eeprom`
- `drivers/entropy`
- `drivers/espi`

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-03-27 20:21:24 -04:00
Pisit Sawangvonganan
d08da865be drivers: fix typo in (clock_control, counter, crypto, dai, debug)
Utilize a code spell-checking tool to scan for and correct spelling errors
in all files within:
- `drivers/clock_control`
- `drivers/counter`
- `drivers/crypto`
- `drivers/dai`
- `drivers/debug`

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-03-27 20:21:24 -04:00
Pisit Sawangvonganan
3c44bcd2a0 drivers: fix typo in (adc, audio, bluetooth, can, charger)
Utilize a code spell-checking tool to scan for and correct spelling errors
in all files within:
- `drivers/adc`
- `drivers/audio`
- `drivers/bluetooth`
- `drivers/can`
- `drivers/charger`

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-03-27 20:21:24 -04:00
Tomi Fontanilles
3e10426f2f Revert "samples: wifi: shell: Avoid circular psa_generate_random() calls"
This reverts commit 70969f88f5.

The issue is fixed with the previous commit.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2026-03-27 20:21:00 -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
Jamie McCrae
efdf9f3e38 west.yml: MCUboot synchronization from upstream
Update Zephyr fork of MCUboot to revision:
  d045415fb752049a729b61d18205eb45d7d826b5

Brings following Zephyr relevant fixes:

  - d045415f boot: zephyr: auto-enable TEST_RANDOM_GENERATOR

Signed-off-by: Jamie McCrae <jamie.mccrae@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
Fabio Baltieri
1fa3fac5c0 samples: drop apa102c_bitbang
Drop the apa102c_bitbang sample, this does not have many reason to
exists, the rtos has an LED subsystem, an spi bitbanged driver, an
APA102 driver, and the sample make use of none of those. Drop.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-27 20:20:09 -04:00
Tom Burdick
649c842740 soc: realtek: Hide SOC Kconfigs
These Kconfigs were showing up in my build for a completely different
vendor. These are meant to be hidden Kconfigs meaning they do not have
descriptor strings next to their type.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-03-27 20:20:02 -04:00
Benjamin Cabé
3df352b754 doc: releases: condense intro section
Condense intro section into 2 more concise paragraphs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 20:19:52 -04:00
Benjamin Cabé
754c0d0b0b doc: releases: condense "Major and Maintenance Releases" section
Turn 5 paragraphs into 2 that are more concise and easier to read, as
there was in the end not that many concepts to explain that it would
justify this many paragraphs and vertical real-estate.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 20:19:52 -04:00
Benjamin Cabé
b1c2f131e7 doc: releases: move supported releases to top of page
- Move the Supported Releases section to the beginning of the document as
  it contains the information relevant to most users interested in e.g.
  release notes for latest release.

- Consolidate release notes and migration guides into the Supported
  Releases table to make information about each release all in one place.

- Moved description of Release notes and Migration guides under "Release
  Lifecycle and Maintenance" section.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 20:19:52 -04:00
Scott Worley
013d39c101 tests: drivers: spi: spi_loopback: Fix build error MEC174x/5x
We fixed oversight that did not update the compatible in the
SPI loopback driver test for Microchip MEC174x/5x boards when
the SPI driver was last updated.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-03-27 20:19:43 -04:00
Benjamin Cabé
77d5cc59a3 doc: releases: introduce release notes and migration guide docs for 4.5
This introduces the release notes and migration guide for Zephyr 4.5.0
earlier so that people have a placeholder to start adding content as
they line up pull requests for the 4.5 release.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 20:19:31 -04:00
Łukasz Fundakowski
79f47b7a5f twister: write unit tests to increase code coverage
Added unit tests for `twister_main.py` module to increase code coverage.
Did minor refactoring in `twister_main.py`.
Fixed type hints and added type ignores.
Removed unused variables.

Signed-off-by: Łukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2026-03-27 20:19:21 -04:00
Fin Maaß
625a3ee2fe drivers: wifi: esp32: reset data->scan_cb on fail
reset data->scan_cb on fail, otherwise we can't
try it again, because we check it at the begining
and return when it is already set.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-27 20:19:10 -04:00
McAtee Maxwell
47f999920d boards: add i2c to kit_pse84_ai platform's supported section
- add "i2c" to the .yaml for both m33 and m55 cores' supported section
- slight order adjustment for existing "i2s"

Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
2026-03-27 20:18:55 -04:00
Hieu Vo
b0ed2b5209 crc: Add dependency for CRC_HW_HANDLER
Make CRC_HW_HANDLER depend on necessary DTS node being presented.

Signed-off-by: Hieu Vo <hieu.vo@nordicsemi.no>
2026-03-27 14:00:57 -05:00
Kyle Bonnici
d13cc59c92 dts: Remove duplicate properties in closure
This PR removes duplicate properties in the same closure. The last
instance is the one the is keept.

This PR only cleans up current instances a separate PR will be done to
update the dts-linter to enforce this in the compliance check.

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2026-03-27 13:59:59 -05:00
Andrei Menzopol
fcfa6e3393 samples: openthread: shell: mcxw update .conf files
For mcxw7x platforms SECURE_STORAGE_ITS_TRANSFORM_AEAD_KEY_PROVIDER
is set by default to AEAD_KEY_PROVIDER_DEVICE_ID_HASH however the
function used to generate the key (hwinfo_get_device_eui64)
is not implemented (returns -ENOSYS) causing various
storage errors such as:
"secure_storage: Failed to transform data from storage. (-147)",
-147 is PSA_ERROR_HARDWARE_FAILURE

Switch to using AEAD_KEY_PROVIDER_ENTRY_UID_HASH to bypass this.

Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com>
2026-03-27 13:59:36 -05:00
Andrei Menzopol
940f8da2f8 drivers: ieee802154: mcxw: Fix double free
pd_mac_sap_handler gPdDataInd_c case shouldn't free msg
as it is already freed by the rx_thread. The msg is put
in rx_msgq queue through k_msgq_put which does a shallow
copy.

Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com>
2026-03-27 13:59:36 -05:00
Pierre-Henry Moussay
325150ed06 tests: subsys: debug: coredump_threads: update tests filter
coredump_thread have a limitation and can only work if
CONFIG_MP_MAX_NUM_CPUS == 1.
This cause build issue of the test harness otherwise.

Signed-off-by: Pierre-Henry Moussay <pierre-henry.moussay@microchip.com>
2026-03-27 13:56:42 -05:00
Pierre-Henry Moussay
40a81daedd boards: microchip: pic64gx_curiosity_kit: update openocd runner args
Replace --use-elf (now deprecated) with --file-type=elf

Signed-off-by: Pierre-Henry Moussay <pierre-henry.moussay@microchip.com>
2026-03-27 13:56:42 -05:00
Benjamin Cabé
0a4886730e boards: soc: dts: Synaptics file should be in syna/ not synaptics/
SoC, DTS, and board files should live in directories named after the
vendor prefix so rename all occurrences of synaptics/ to syna/.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 13:55:37 -05:00
Tomasz Moń
df6be6479e drivers: udc_nrf: Detect isochronous DMA during SOF
nRF USBD peripheral allows only one DMA to/from isochronous endpoint in
between two SOF packets. nRF UDC driver enforces this limitation using
m_ep_ready variable that has respective endpoint bit set to 1 inside SOF
handler. While this works most of the time, there is a corner case where
the DMA can start before SOF and finish after SOF.

Prevent issuing two DMA to/from isochronous endpoint within one frame by
not setting m_ep_ready bit if isochronous endpoint DMA was active during
SOF. This avoids failed assertion for iso IN endpoint being armed and
ready at the same time.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2026-03-27 13:48:36 -05:00
Tomasz Moń
338ea9f927 drivers: udc_nrf: Dequeue endpoints in driver thread
Endpoint dequeue is inherently racing against bus transactions. It is
possible that transfer finishes right before dequeue. When this happens
it was possible for the endpoint queue to be empty during xfer finished
handling. Resolve the software thread race by performing dequeue in the
same thread that handles finished transfers.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2026-03-27 13:48:36 -05:00
Benjamin Cabé
c5dcc28413 include: drivers: sensor: add missing doxygen to sensor_attribute
Some fields were missing proper doxygen comment style.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 12:36:08 -04:00
Benjamin Cabé
c9f6082fb4 include: drivers: sensor: document sensor driver ops using Doxygen
Use doxygen driver_ops commands to properly document the required/optional
sensor driver operations

Assisted-by: Cursor:composer-2
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 12:36:08 -04:00
Anas Nashif
4809fb40a6 counter: handlers: include marshalling header
Add missing header, this prevents build issues with llvm.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-03-27 12:35:56 -04:00
Ryan McClelland
748604daec drivers: counter: fix get_pending_int return type mismatch
The counter_api_get_pending_int typedef returns uint32_t, but the
public counter_get_pending_int API, its inline implementation, and
its syscall handler all return int. Several drivers return raw hardware
register bitmasks that can have upper bits set; the implicit cast to
int would make those values appear negative, which callers could
misinterpret as error codes.

Change the public API, inline impl, and syscall handler to return
uint32_t to match the driver API typedef.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-27 12:35:39 -04:00
Jun Lai
40f01a3111 logging: mtrace: fix log overwrite issue
Add an internal cache buffer in Intel's
adsp mtrace backend to mitigate log overwrite
issue when slot window is full.

Signed-off-by: Jun Lai <jun.lai@dolby.com>
2026-03-27 12:35:27 -04:00
Benjamin Cabé
72620c957a include: drivers: clock: document clock control driver ops using Doxygen
Use doxygen driver_ops commands to properly document the required/optional
clock control driver operations

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 12:35:17 -04:00
Benjamin Cabé
657d38f537 include: drivers: clock: add doxygen for clock_control_status
Document the fields of this enum

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 12:35:17 -04:00
Fabio Baltieri
4d8eeff467 usb: device_next: cdc_acm: fix an llvm warning
Fixes an unused function warning when compiling with llvm, looks like
that does not fire with gcc for inline functions but it does for llvm,
tested with:

west build -p -b nrf52840dk/nrf52840 samples/subsys/usb/cdc_acm --
-DTOOLCHAIN_VARIANT_COMPILER=llvm -DCONFIG_UART_LINE_CTRL=n

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-27 12:35:07 -04:00
Fabio Baltieri
f08d56de23 usb: device_next: hid: fix some llvm warnings
Fixes:

zephyrproject/zephyr/subsys/usb/device_next/class/usbd_hid.c:635:19:
warning: unused function 'hid_dev_set_out_polling' [-Wunused-function]
zephyrproject/zephyr/subsys/usb/device_next/class/usbd_hid.c:665:19:
warning: unused function 'hid_dev_set_in_polling' [-Wunused-function]

When compiling with LLVM:

west build -p -b nrf52840dk/nrf52840 samples/subsys/usb/hid-keyboard --
-DTOOLCHAIN_VARIANT_COMPILER=llvm

Functions are only used when CONFIG_USBD_HID_SET_POLLING_PERIOD is
enabled, set as __maybe_unused instaed of inline.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-27 12:35:07 -04:00
Fabio Baltieri
2dec0486bf drivers: nrf: fix some llvm warnings
Fixes:

zephyr/drivers/usb/common/nrf_usbd_common/nrf_usbd_common.c:414:23:
warning: unused function 'ep_to_hal' [-Wunused-function]

zephyr/drivers/usb/common/nrf_usbd_common/nrf_usbd_common.c:816:22:
warning: unused function 'usbd_ep_iso_capacity' [-Wunused-function]

When compiling with LLVM:

west build -p -b nrf52840dk/nrf52840 samples/subsys/usb/hid-keyboard --
-DTOOLCHAIN_VARIANT_COMPILER=llvm

Drop ep_to_hal since it's static and unused, usbd_ep_iso_capacity is
used in an assert just flag it as maybe unused.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-27 12:35:07 -04:00
Erwan Gouriou
6064544998 west.yml: hal_stm32: Fix license scheme
Align module licenses on STM32Cube packages.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-03-27 12:34:32 -04:00
Johann Fischer
789f5ca318 drivers: udc_nrf: submit UDC_EVT_VBUS_READ if VBUS is still present
When the device is connected to the host, but the application shuts down
and initialize USB device again, there will be no UDC_EVT_VBUS_READ
event generated from USB VBUS regulator on nRF52840 and nRF5340
controller. We can track the state in the driver and resubmit the event
just at the beginning of the initialization. If the device gets
disconnected in between, there will be subsequent UDC_EVT_VBUS_REMOVED
event. Perhaps it could also be solved in more generic way, but other
controllers could behave differently. Also, it could be considered that
the application should track the state of the VBUS.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-03-27 12:34:23 -04:00
Aleksandr Khromykh
3638fc5732 samples: bluetooth: mesh: fix samples hardfault
Commit increases different stack sizes and
rediuces stack usage for mesh samples
to fix falling into hardfault on start.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2026-03-27 08:18:08 -04:00
Aleksandr Khromykh
6c80ebb51b bluetooth: mesh: increase settings workq stack
Commit increases mesh settings workq stack size.
Thread analyze shows 100% consumption.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2026-03-27 08:18:08 -04:00
Bartosz Miller
b91f90d4fc samples: Verify 64 bit arguments handling in STM log
Use STM logger to print 64 bit arguments rom different  cores

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2026-03-27 08:17:32 -04:00
Jiafei Pan
0e8b6a46b4 boards: frdm_imx91/imx95_evk/imx943_evk: add canbus chosen
Add canbus chosen to enable some CAN test case.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-03-27 08:17:13 -04:00
Jiafei Pan
68475b4886 dts: arm64: imx9: remove flexcan CAN FD compatible
Currently flexCAN initialization failed when CONFIG_CAN_FD_MODE=y is
enabled on imx9 serial platforms. So remove CAN FD compatible from
flexcan device node to disable CAN FD on these platform temporarily,
and will add it back when the formal fix is available.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-03-27 08:17:13 -04:00
Jiafei Pan
c95f106c46 boards: imx943_evk: remove tca9544a child compatible
In the following commit:
commit 69a8ac6 ("bindings: tca954x: drop child compatible")

compatible = "ti,tca9548a-channel" property is dropped from dts binding,
so drop it accordingly in imx943_evk board dts, otherwise it can't work.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2026-03-27 08:17:13 -04:00
Martin Hoff
22fe218f76 soc: silabs: siwx91x: fix ram retention with power management
The real RAM size from DT is correct but the power manager API expect to
receive either 192/256/320 KB value, so we need to round it up to the
next boundary to avoid powering down the top M4 SRAM bank.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2026-03-27 08:16:40 -04:00
Bartosz Miller
300508e704 samples: Fix conflicting loopback in nrfx_prs for nrf5340dk
P0.25 could not be used for SPIM SCK
this pin is connected to VDD

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2026-03-27 09:17:14 +01:00
Tomáš Juřena
e94e19b57b boards: st: nucleo_c092rc: Add stlink_gdbserver
Allows to debug the board using `west debug -r stlink_gdbserver`.

Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
2026-03-27 09:16:49 +01:00
Benjamin Cabé
c0a562ec1e include: drivers: display: document display driver ops using Doxygen
Use doxygen driver_ops commands to properly document the required/optional
display driver operations

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-27 09:16:28 +01:00