Commit graph

136,983 commits

Author SHA1 Message Date
Mathieu Choplain
0dd0a8ff91 drivers: usb: udc: stm32: implement isochronous support on ST USB IP
Implement proper support for isochronous operation when "st,stm32-usb" IP
is used. Previously, the driver did not take into account specificities of
this IP regarding isochronous endpoints resulting in invalid transfers.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-24 09:07:46 -04:00
Mathieu Choplain
58d9adb793 drivers: usb: udc: stm32: use SPDX-FileCopyrightText and add ST to list
Update the copyright notice to use SPDX-FileCopyrightText. While at it, add
STMicroelectronics to the list of copyright holders as we have made
numerous contributions to this driver recently.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-24 09:07:46 -04:00
Mathieu Choplain
f9ff1ecc0b drivers: usb: udc: stm32: reorganize Kconfig options
Move options such that all generic options go toghether, followed by
hardware-specific ones and wrap the HW-specific options in dedicated menus.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-24 09:07:46 -04:00
Guillaume Gautier
13a5e3283d boards: st: nucleo_c562re: enable vref
Enables Vref sensor for Nucleo-C5A3ZG.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
d1005a845f dts: arm: st: c5: add vref node
Add the Vref node to STM32C5 device tree.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
e6848a54ed drivers: sensor: stm32_vref: adapt st vref driver for stm32 hal2
Adapt STM32 Vref driver for STM32 HAL2.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
b119b068bd boards: st: nucleo_c5a3zg: enable die_temp
Enables die temp sensor for Nucleo-C5A3ZG.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
ebcbb3e100 dts: arm: st: c5: add die_temp node
Add the die temp node to STM32C5 device tree.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
b339af90b2 drivers: sensor: stm32_temp: adapt st temp driver for stm32 hal2
Adapt STM32 temperature driver for STM32 HAL2.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
8cba826203 tests: drivers: adc: adc_api: add nucleo_c5a3zg overlay
Add an overlay to test ADC and ADC+DMA on Nucleo-C5A3ZG.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
1a941931b2 boards: st: nucleo_c5a3zg: add adc support
Enable ADC support for Nucleo C5A3ZG.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
90c9a15dad dts: arm: st: c5: add adc support
Add ADC device tree nodes for STM32C5 series.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Guillaume Gautier
e0d3379c07 drivers: adc: stm32: add stm32c5 adc support
Update STM32 ADC driver for STM32C5 and STM32 HAL2.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:07:31 -04:00
Pisit Sawangvonganan
03603dded5 boards: fix typo
Use a code spell-checking tool to detect and fix spelling errors in
the files under `boards/xxx`.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-03-24 09:07:18 -04:00
Siratul Islam
3d6f2ca03d boards: xtensa: Rename WeAct boards for consistency
Update weact_esp32s3_b, weact_esp32c6_mini, weact_ov2640_cam_module
to have more consistent naming.

Signed-off-by: Siratul Islam <email@sirat.me>
2026-03-24 09:06:24 -04:00
Raffael Rostagno
2e97d6bb37 soc: pinctrl: esp32: Doxygen comments
Add doxygen comments to pinctrl symbols.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
5d3e5f5a9b soc: pinctrl: esp32: Clang formatting
Format updated files with clang.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
bf1e600e0c drivers: pinctrl: esp32: Add sleep hold flag
Add sleep hold flag to allow setting groups of pins to
automatically hold pad value during low power states (light/deep sleep).

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
6af0ee72b3 soc: pm: esp32: Add gpio/pinctrl hold function
Add hardware pad function, configurable in DTS, which holds the pin
state when transitioning to a low power state (light/deep sleep).
Once set in DTS, PM interface will automatically handle holding
the pin state before transitioning it into a low power state.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
d1637e3401 drivers: gpio: esp32: Low power management
Add hardware and software strategies to switch pins to low power
mode both in light and deep sleep. Add hold feature to device tree
flags to allow application to configure which pins will be
automatically held (pin state preserved) during sleep.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
90036ba970 drivers: uart: esp32: Remove sleep pinctrl init
Remove pinctrl sleep group init. Low power state for pinctrl will
be managed using harware feature.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
57725ef969 boards: esp32c5_devkitc: Remove unused label
Remove unused UART pinctrl label for sleep.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
79f728ac2f Revert "tests: uart_elementary: Fix overlays config for PM"
This reverts commit 6029af2dfce1b42e4a6d6741600dd0e28a357701.

Sleep pinctrl groups won't be used any longer for Espressif chips.
Strategy to switch pins to low power mode is enabled using hardware
feature.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Raffael Rostagno
55d92ae1b9 Revert "boards: esp32: uart: Add sleep pin states"
This reverts commit 85d3320b78fd51805146e1cf04b68011020b11f8.

Sleep pinctrl groups won't be used any longer for Espressif chips.
Strategy to switch pins to low power mode is enabled using hardware
feature.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-24 09:05:47 -04:00
Guillaume Gautier
22b086de60 drivers: adc: stm32: add an error message if calibration is missing
To prevent missing calibration when adding new series, add an error
message if no calibration is done.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:05:34 -04:00
Guillaume Gautier
1aeb56e8c0 drivers: adc: stm32: add calibration for stm32u3
Calibration for STM32U3 ADC was missing.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 09:05:34 -04:00
Dominik Ermel
f55531db59 dts: nordic: nrf54: Reduce mcuboot partition to 62k
The change allows to keep FPROTECT, that can handle max of
62k partition size, enabled out of the box.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2026-03-24 09:05:19 -04:00
Lubos Koudelka
2f18cf906b soc: arm: stm32: fix STM32WBA power build without MPU
Guard the STM32WBAX power driver `mpu_state` variable with
CONFIG_ARM_MPU.
With this change, CONFIG_PM=y and CONFIG_ARM_MPU=n now build
correctly on STM32WBA.

Signed-off-by: Lubos Koudelka <lubos.koudelka@st.com>
2026-03-24 09:05:09 -04:00
Flavio Ceolin
86a8179b46 doc: release/4.4: Add CVE under embargo
Add information about CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2026-03-24 09:04:55 -04:00
Flavio Ceolin
b412646b65 doc: security: Add CVE under embargo
Add an entry to CVE-2026-1677

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2026-03-24 09:04:55 -04:00
Mirai SHINJO
1b438ecb12 doc: releases: v4.4: note the minimum Zephyr SDK version of 1.0.0
Document and clarify that Zephyr v4.4 requires Zephyr SDK version 1.0.0.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
2026-03-24 09:04:35 -04:00
Fin Maaß
b476dec78d console: use zephyr ring buffer
use zephyr ring buffer and also read and write more
than one char at a time.
Also use events to notify new rx or tx.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-24 07:08:13 -04:00
Fin Maaß
affed57f2b console: remove selected unneded options
CONFIG_CONSOLE_GETCHAR doesn't need
`CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS`
and `CONFIG_CONSOLE_HANDLER` since a long time.
So don't select it unnessesaryly.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-24 07:08:13 -04:00
Kate Wang
b4fef8cde7 samples: display: Add support for new pixel formats
Update the display sample application to support the newly introduced
pixel formats:
- PIXEL_FORMAT_BGR_888: 24-bit BGR format with 8 bits per component
- PIXEL_FORMAT_ABGR_8888: 32-bit ABGR with alpha channel
- PIXEL_FORMAT_RGBA_8888: 32-bit RGBA with alpha channel
- PIXEL_FORMAT_BGRA_8888: 32-bit BGRA with alpha channel

Refactor the fill_buffer functions to accept the pixel format as a
parameter and dynamically construct colors based on the format's
component ordering. This ensures correct color rendering across
different pixel format layouts.

Also add default cases to switch statements for improved code
robustness and consistency.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-03-24 07:07:25 -04:00
Kate Wang
8dee089313 drivers: display: sdl: Add support for new pixel formats
Add support for additional pixel formats in the SDL display driver
to align with the newly introduced display pixel formats:
- PIXEL_FORMAT_BGR_888: 24-bit BGR format with 8 bits per component
- PIXEL_FORMAT_ABGR_8888: 32-bit ABGR with alpha channel
- PIXEL_FORMAT_RGBA_8888: 32-bit RGBA with alpha channel
- PIXEL_FORMAT_BGRA_8888: 32-bit BGRA with alpha channel

Also refactor existing conversion functions to use C99-style loop
variable declarations for consistency.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-03-24 07:07:25 -04:00
Kate Wang
f3ad1f3c6d tests: display: Add test cases for new pixel formats
Add test cases for the newly introduced pixel formats in the display
read/write test suite to ensure proper functionality:
- PIXEL_FORMAT_BGR_888: 24-bit BGR format with 8 bits per component
- PIXEL_FORMAT_ABGR_8888: 32-bit ABGR with alpha channel
- PIXEL_FORMAT_RGBA_8888: 32-bit RGBA with alpha channel
- PIXEL_FORMAT_BGRA_8888: 32-bit BGRA with alpha channel

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-03-24 07:07:25 -04:00
Kate Wang
ad8f468a86 drivers: display: Add pixel formats to align with video formats
Add support for additional pixel formats, so that the display pixel
formats are aligned with the video pixel formats:
- PIXEL_FORMAT_BGR_888: 24-bit BGR format with 8 bits per component
- PIXEL_FORMAT_ABGR_8888: 32-bit ABGR with alpha channel
- PIXEL_FORMAT_RGBA_8888: 32-bit RGBA with alpha channel
- PIXEL_FORMAT_BGRA_8888: 32-bit BGRA with alpha channel

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-03-24 07:07:25 -04:00
Pieter De Gendt
7b0e88ac61 shell: backends: telnet: Use struct net_sockaddr_storage
A struct net_sockaddr should be considered an incomplete type, replace by
using net_sockaddr_storage.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-24 07:07:17 -04:00
Emil Gydesen
d66266dfa7 Bluetooth: GATT: Fix bad error from bt_gatt_attr_read_included
If `attr` or `attr->user_data` is NULL, then the include
characteristic is invalid. However the function,
bt_gatt_attr_read_included, should not return an errno value, but
a GATT error. The reason why errno cannot be used, is that the
return value is parsed through err_to_att which would make
-EINVAL become 0x16 (depending on the libc implementation),
which is an invalid ATT error code.

This was incorrectly introduced by commit
5a8189bf2a.

Changed the return value from errno to a proper GATT/ATT error.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-03-24 07:07:06 -04:00
Guillaume Gautier
03815dc4b2 tests: drivers: spi: loopback: add overlay for nucleo_c5a3zg
Add an overlay to test SPI on Nucleo-C5A3ZG, and add the board to the list
of test cases.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Guillaume Gautier
d0337ef23a boards: st: nucleo_c5a3zg: enable spi1
Enable SPI1 node for Nucleo-C5A3ZG.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Guillaume Gautier
3576d43689 boards: st: nucleo_c562re: enable spi1
Enable SPI1 node for Nucleo-C562RE.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Guillaume Gautier
c0b6567bb3 boards: st: nucleo_c542rc: enable spi1
Enable SPI1 node for Nucleo-C542RC.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Guillaume Gautier
984f44b1bf dts: arm: st: c5: add spi nodes for stm32c5
Add spi1, 2 and 3 for the STM32C5 series.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Fabrice DJIATSA
4d14961fdd drivers: spi: stm32: update driver for stm32 hal2
There are different naming conventions between
the two HAL, so we make conditional compilation
through intermediate symbols.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-03-24 07:06:55 -04:00
Guillaume Gautier
2ed93b23d3 drivers: spi: stm32: select gpio if using a gpio cs
Select the GPIO driver in the Kconfig if at least one active SPI instance
is using a GPIO Chip Select.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Guillaume Gautier
c2d711f605 soc: st: stm32: common: add const on read bitops operations
Read bitops operations now take const arguments.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 07:06:55 -04:00
Robert Lubos
e0437fa7c1 drivers: net: ppp: Fix asynchronous transfer buffer overwrite
In case PPP driver is configured in asynchronous UART mode, any send
attempts should wait for the previous transfer to complete, otherwise
modifying TX buffer would disrupt the ongoing transfer.

So far the driver waited for previous transfer to complete only before
scheduling the next one, but instead it should wait before it even
starts to modify the buffer.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-03-24 07:06:43 -04:00
Fabin V Martin
c32d062d03 boards: microchip: pic32cz_ca80_cult: update board with uart nodes
Add uart support for pic32cz_ca80_cult.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-03-24 07:06:16 -04:00
Fabin V Martin
e7e3032e61 drivers: uart: microchip: sercom g1: changes for pic32cz_ca80
Updated the interrupt handler to connect all interrupt lines added
in the corresponding sercom uart node.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-03-24 07:06:16 -04:00