Commit graph zephyr/drivers
Author SHA1 Message Date
Sylvio Alves
d8dc6841d1 drivers: wifi: esp32: fix WPA3-SAE security type handling
Fix WPA3-SAE authentication handling for both STA and SoftAP
modes to properly use the PSA crypto backend.

STA mode: handle WIFI_SECURITY_TYPE_SAE, SAE_H2E and SAE_AUTO
security types with proper PMF configuration and SAE password
element derivation method selection (hunt-and-peck,
hash-to-element, or both). Also handle PSK_SHA256 as a
WPA2-PSK variant.

SoftAP mode: add WPA3-SAE authentication with the same PWE
method selection, guarded by ESP32_WIFI_SOFTAP_SAE_SUPPORT.

New Kconfig entries:
- ESP32_WIFI_ENABLE_SAE_H2E: hash-to-element derivation
- ESP32_WIFI_SOFTAP_SAE_SUPPORT: WPA3-SAE for AP mode
- ESP32_WIFI_WPA3_COMPATIBLE: WPA2/WPA3 transition mode

Update west.yml hal_espressif revision to include the
corresponding PSA crypto migration changes.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-23 17:38:18 -05:00
Sylvio Alves
e250cdbe0d drivers: wifi: esp32: fix PSA crypto selects
Fix PSA crypto algorithm and key type selects required by the
wpa_supplicant's mbedTLS crypto backend. These are needed for
AES cipher operations, ECDH/ECDSA, SHA-1/SHA-256, HMAC and CMAC
used during WPA key derivation and handshake.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-23 17:38:18 -05:00
Raffael Rostagno
37aef33e64 pm: drivers: pwm_ledc: esp32: Add device PM
Add code for device PM to the driver.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-23 17:37:48 -05:00
Fin Maaß
062facbab2 net: dsa: remove NET_DSA_DEPRECATED
remove the deprecated NET_DSA_DEPRECATED.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-23 15:01:57 -05:00
Fin Maaß
e02f974244 drivers: ethernet: native_tap: remove wrong vlan_setup
this is a leftover from when the vlan ifaces were not
virtual ifaces. With this currently in we would deactive lldp
on the main iface everytime a vlan is deactivated.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-23 15:00:38 -05:00
Daniel DeGrasse
a9d3c17052 drivers: i3c: i3c_cdns: cast num_xfer to uint32_t pointer
On 64 bit systems, the num_xfer field in the CCC payload is
a 64 bit value (size_t). Cast it to a uint32_t pointer
to silence warnings when building the driver.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2026-03-23 14:59:19 -05:00
Daniel DeGrasse
0d822e1793 drivers: i3c: i3c_cdns set manual command start after enabling interrupts
Don't start command queue until interrupts have been enabled.
otherwise for some very fast controllers, the queue could drain
before the interrupt is enabled.

This issue has been observed using functional simulations of
the CDNS I3C IP, but could logically also occur in hardware.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2026-03-23 14:59:19 -05:00
Francois Ramu
93f702a4b4 drivers: flash: stm32 xspi driver with HPDMA transfer
Enables the HPDMA on stm32 xspi flash transfer on the stm32H7rs series

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-03-23 14:57:56 -05:00
Francois Ramu
ab88831734 drivers: dma: stm32u5 dma driver use macro to retrieve the channel
Use the STM32_DMA_GET_CHANNEL macro for compatibility with
Stm32Cube HAL V2 model

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-03-23 14:57:56 -05:00
Francois Ramu
f9aa853411 drivers: dma: stm32 dma driver for stm32U5 compatible with HPDMA
The dma driver for stm32U5 compatible can support HPDMA instance
on the stm32h7rs series

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-03-23 14:57:56 -05:00
Francis Roi Manabat
407e36f696 drivers: sensor: add ADXL355 3-Axis MEMS Accelerometers Support
This patch adds a new driver for the ADXL355 three-axis digital
accelerometer, implementing configuration, sampling,
and full-scale range controls according to the
ADXL355 datasheet (Analog Devices).

Features:
- I2C and SPI register access
- Sampling frequency (ODR) configuration
- Full-scale range selection (±2g/±4g/±8g)
- Standby/measure power modes
- Optional FIFO streaming support via RTIO
- Basic trigger and interrupt handling

Power management is supported via PM_DEVICE callbacks
to place the sensor in standby mode when suspended
and resume continuous measurement on resume.

References:
- ADXL354/ADXL355 Datasheet (Analog Devices)
  https://www.analog.com/media/en/technical-documentation/data-sheets/adxl354_adxl355.pdf

Signed-off-by: Francis Roi Manabat <francisroi.manabat@analog.com>
2026-03-23 14:00:03 -04:00
Andre Viegas
c6fa8294dd drivers: sensor: tsl2540: fix double byte-swap
The lower ALS interrupt threshold (SENSOR_ATTR_LOWER_THRESH) was being
converted twice with sys_cpu_to_le16(), effectively canceling the
conversion on big-endian systems. The upper threshold
(SENSOR_ATTR_UPPER_THRESH) correctly uses a single conversion.

This causes the lower threshold register to be written in incorrect
byte order on big-endian architectures.

Signed-off-by: Andre Viegas <andreviegas@piscodeluz.org>
Assisted-by: Claude:claude-opus-4.6 forgeql
2026-03-23 12:40:10 -05:00
Albort Xue
3f24fb1adc drivers: wuc: change LLWU driver init priority
Update DEVICE_DT_INST_DEFINE to use PRE_KERNEL_1 for llwu driver.
System timer(normal set as PRE_KERNEL_2) may depend of llwu driver.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-03-23 12:36:44 -05:00
Camille BAUD
41ed93e765 drivers: hwinfo: Fix BFLB MAC handling for BL70x/L, Add parity check
BL70x/L stores MAC differently. Also add parity check of the retrieved MAC.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-23 12:35:23 -05:00
Tim Pambor
59ca2288d5 flash: spi_nand: support bad block management
Add support for bad block management in SPI NAND flash devices.
This includes functions to check if a block is bad and to mark
a block as bad. The bad block marker is stored in the OOB area of
the first page of each block.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-23 12:31:30 -05:00
Tomasz Leman
9940e1fa26 drivers: debug: Update log_output_process() calls for core_id parameter
Update all log_output_process() function calls in the nRF ETR debug
driver to include the new core_id parameter that was added to support
the CONFIG_LOG_CORE_ID_PREFIX feature.

The core_id parameter is set to 0 for all call sites in this driver
since core ID information is not available from the trace/log packets
being processed. This maintains backward compatibility while adapting to
the updated log_output_process() function signature.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-03-23 12:31:00 -05:00
Sudarshan Jagannathan
f4cad414ce drivers: flash: stm32: style guidelines compliance changes
Applying clang-format to changed files to ensure compliance
with Zephyr coding style guidelines.

Signed-off-by: Sudarshan Jagannathan <sudarshan.jagannathan@st.com>
2026-03-23 12:29:40 -05:00
Sudarshan Jagannathan
367a4b4619 drivers: flash: stm32: Add Kconfig to allow unaligned flash_write ops
Add Kconfig option to accept unaligned addresses and/or lengths for
flash_write for stm32 devices. Use with caution after understanding
target platform flash implementation details. Op may fault if used
without forethought

Signed-off-by: Sudarshan Jagannathan <sudarshan.jagannathan@st.com>
2026-03-23 12:29:40 -05:00
Ibrahim Abdalkader
637d51f2e8 drivers: wifi: esp_hosted: Add support for the latest firmware.
Add support for esp-hosted v1.0.0.0.0 firmware.

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2026-03-23 12:28:29 -05:00
Ibrahim Abdalkader
0d4b8b081a drivers: wifi: esp_hosted: Add the latest protocol.
Rename legacy esp-hosted protobuf protocol file, and add the
latest protocol.

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2026-03-23 12:28:29 -05:00
Tony Han
bc3586a8c2 drivers: serial: mchp: add minimal drivers for G1 DBGU (Debug Unit)
Add uart driver with minimal features for DBGU for sam9x7 SOCs.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-03-23 12:27:55 -05:00
Tony Han
ac8a144019 drivers: interrupt-controller: mchp: add drivers for G1 AIC
Add drivers for Advanced Interrupt Controller (AIC).
Update Kconfig.mchp and CMakeList.txt accordingly.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-03-23 12:27:55 -05:00
Andreas Weissel
8c917f2931 drivers: reset: Add Synaptics SR100 reset driver
This adds the reset driver for Synaptics SR100-series SoCs.

Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
2026-03-23 10:40:33 -04:00
Łukasz Kędziora
eaa564115e drivers: pinctrl: Add Synaptics pinctrl driver
This adds the pinctrl driver for Synaptics SR100-series SoCs.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
2026-03-23 10:40:33 -04:00
Łukasz Kędziora
66241660de drivers: clock_control: Add Synaptics clock control driver
This adds the clock control driver for Synaptics SR100-series SoCs.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
2026-03-23 10:40:33 -04:00
Krzysztof Chruściński
4445ed64f4 drivers: mbox: nrf_vevif_event_rx: Fix handling of Errata 16
Handling of Errata 16 was failing if VPR triggered event when interrupt
on the application core are disabled. In that case an event is lost and
IPC communication fails. Improved workaround by enabling interrupts
during the initialization and store the information if interrupt got
triggered while event is disabled. Pending event is triggered after
enabling the event.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-23 10:39:49 -04:00
Raffael Rostagno
4011077e72 drivers: dma: esp32: PM support
Add Power Management support for GDMA driver.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-23 10:39:40 -04:00
Guillaume Gautier
eadb255c75 drivers: adc: use the new injected support property in the driver
Use the new has-injected-support property in the Kconfig instead of
filtering on series directly, and use it also in the driver to return an
error if a specific instance doesn't support injected (this is the case
for STM32U5 where ADC1 and 2 support injected, but not ADC4).

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Guillaume Gautier
af227cc6ed drivers: sensor: stm32_vref: add injected mode support
Add injected mode support for STM32 Vref sensor.
When in injected mode, this configures the sensor channel and sensor enable
bit at start to prevent any conflict later: some registers can't be written
while a conversion is on-going.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Guillaume Gautier
8c63f42d14 drivers: sensor: stm32_vbat: add injected mode support
Add injected mode support for STM32 Vbat sensor.
When in injected mode, this configures the sensor channel and sensor enable
bit at start to prevent any conflict later: some registers can't be written
while a conversion is on-going.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Guillaume Gautier
edecb7a735 drivers: sensor: stm32_temp: add injected mode support
Add injected mode support for STM32 temperature sensor.
When in injected mode, this configures the sensor channel and sensor enable
bit at start to prevent any conflict later: some registers can't be written
while a conversion is on-going.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Guillaume Gautier
6d664ea6bf drivers: adc: stm32: do not stop conversion unconditionally
In order to write into some ADC registers, it is necessary to have no
on-going conversions (either regular, injected, or both). Until now, each
time such a write was needed, the ADC was disabled unconditionally,
stopping any potential on-going conversion.

With the introduction of the injected mode, this could lead to problems
if for example an injected is configured differently than a running
regular one. In that case it would stop the regular conversion. If the
application is waiting the result before starting another one, it will be
stuck waiting forever.

To avoid cases like this, return an error rather than stopping conversion
and disabling the ADC. This reworks many functions to return an error in
case it was not possible to safely disable the ADC.

It stays possible to force an ADC disable even though a conversion is
running, this is useful at init where we don't want this to fail.

This also creates a dedicated function for the preselection register to
avoid duplication.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Guillaume Gautier
a9f59076e0 drivers: adc: stm32: add injected mode support
Add injected mode support for STM32 ADC driver. To avoid potential
conflicts when configuring the ADC registers, some settings (like presel)
are moved into the channel_setup function when injected is enabled.

Also configures an ISR when DMA and injected mode are enabled. The reason
is that DMA is not available for injected sequence, so an ISR is still
necessary in this case.

Factorizes the "start_read_xxx" functions to avoid needless duplication
between sync/async and regular/injected mode.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
Guillaume Gautier
d739f1c8c4 include: zephyr: drivers: adc: add sequence priority
Add sequence priority support in the ADC API.
The priority assigned to a sequence reflects how time-sensitive it is
compared to other sequences. The number of priority levels supported
and the exact behavior obtained by assigning a specific priority to a
sequence are hardware-specific.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-23 10:37:18 -04:00
TOKITA Hiroshi
9835d4b727 drivers: audio: Add Awinic AW88298 digital amplifier
Add a driver for supporting Awinic AW88298.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2026-03-23 08:57:03 -04:00
Daniel Leung
c32c608615 console: add driver for consoleio in Whisper simulator
This adds a very simple output only console driver for
the consoleio provided by Whisper ISS for simulating
SweRV SoCs.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-03-23 08:56:34 -04:00
Daniel Leung
2cc49a0685 intc: swerv: use sys_read32/write32 instead of...
...relying on direct pointer access. This avoids compiler
complain about casting to pointer from integer of
different size.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-03-23 08:56:34 -04:00
Daniel Leung
e229e9edf9 intc: swerv: make RISCV_MAX_GENERIC_IRQ into kconfig
There is a macro RISCV_MAX_GENERIC_IRQ in the code which is not
defined anywhere. The assumption is that this would come from
the SoC configuration. However, since we have been moving away
from including soc.h in drivers, instead we introduce another
kconfig CONFIG_SWERV_PIC_MAX_GENERIC_IRQ for this.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-03-23 08:56:34 -04:00
Daniel Leung
1a39517ba2 dts: rename swerv,pic.yaml to cdns,swerv-pic.yaml
The SweRV naming is under Cadence now so rename to have
a proper vendor prefix, and removes the EH1 naming as
this can be used for multiple family of SoCs.

The old compatible "swerv,pic" can still be used but
cannot be used together with "cdns,swerv-pic".

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-03-23 08:56:34 -04:00
Daniel Leung
009262bdbf intc: move SweRV kconfig into its own file
Move the SweRV interrupt controller kconfig into its own file.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-03-23 08:56:34 -04:00
Yuzhuo Liu
f2714833d6 drivers: input: add Realtek Bee series driver
Add keyscan driver support for Realtek Bee series SoCs,
including RTL87x2G and RTL8752H.

This driver supports:
- Maximum 12 * 20 matrix keyboard scanning
- Ghost key detecting
- Manual/Auto scanning mode configuration

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
2026-03-23 08:53:45 -04:00
Yuzhuo Liu
63bcab38f1 drivers: input: expose common functions to drivers
Make input_kbd_matrix_ghosting() and input_kbd_matrix_update_state()
non-static so that keyboard matrix drivers could reuse the common
ghost-key detection and per-key debouncing logic.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
2026-03-23 08:53:45 -04:00
Etienne Carriere
347c87463d drivers: clock_control: stm32: clarify inline comment on STM32_HSE_CSS
Clarify inline comment describing HSE CSS (Clock Security System)
enabling during clocks initialization.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-03-23 08:48:55 -04:00
Etienne Carriere
72119c74a0 drivers: clock_control: stm32: fix STM32_HSE_CSS macro use
Change macro STM32_HSE_CSS to be defined (to 1) only when HSE clock
security system is enabled, as stated by the HSE DT node css-enabled
property. Consequently only use #ifdef STM32_HSE_CSS (or #if defined())
and IS_ENABLED(STM32_HSE_CSS) to test whether or not it's enabled.

No functional change but may prevent build warnings since prior
this change was STM32_HSE_CSS value tested while the macro may
not be defined.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-03-23 08:48:55 -04:00
Fabrice DJIATSA
782c47f6bb drivers: adc: stm32: Remove call to LL_ADC_REG_SetContinuousMode
It is unnecessary since it is never set to continuous (and single is the
default value), and causes issues on STM32F1 by starting conversions out
of turn (setting ADON bit while it is already set, without changing
any other bit in the register start a conversion).

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-03-23 08:48:46 -04:00
Fabio Baltieri
60721101fc drivers: flash: stm32: fix llvm warning
Fixes:

zephyrproject/zephyr/drivers/flash/flash_stm32_ex_op.c:348:3: warning:
label followed by a declaration is a C23 extension [-Wc23-extensions]
  348 |                 int rv2;
      |                 ^

when compiling with llvm.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-23 08:48:22 -04:00
Khoa Nguyen
b75084e339 drivers: flash: Update Renesas RA MRAM to support mapped-partition
Previously, nv-flash nodes were used as the flash controller and
contained APIs. But currently, to support mapped-partitions
and allow MCUboot to run on RA8x2 devices, this MRAM driver need
to correct the node that used for flash controller.

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2026-03-23 10:19:12 +01:00
Mohit Talwar
c7616308e6 drivers: flash: nrf_rram: add alignment validation for write and erase
The nrf_rram_write() and nrf_rram_erase() functions were missing
input validation for address and length alignment.

nrf_rram_write() did not verify that addr and len are multiples of
WRITE_LINE_SIZE (16 bytes), allowing unaligned writes to succeed
when they should return -EINVAL.

nrf_rram_erase() did not verify that addr and len are multiples of
PAGE_SIZE (4096 bytes), allowing unaligned erases to succeed when
they should return -EINVAL.

Add alignment checks to both functions to correctly reject invalid
operations as required by the flash API contract.

Assisted-by: Claude:claude-sonnet-4-6

Fixes #102511

Signed-off-by: Mohit Talwar <talwarmohit2005@gmail.com>
2026-03-23 10:19:02 +01:00
Quy Tran
8627cf99f9 drivers: i2c: Update i2c driver of RX to support RX26T MCU
RX26T uses group interrupt, update the i2c source to add support
for that MCU

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2026-03-23 10:18:52 +01:00
John Batch
c3f8820e95 drivers: pwm: infineon: Adding support for PWM events
Adds implementation of the PWM_EVENT api options.  The Infineon TCPWM
Module supports the PWM_EVENT_TYPE_COMPARE_CAPTURE and
PWM_EVENT_TYPE_PERIOD events.

Assisted-by: GitHub Copilot:claude-opus-4.6
Signed-off-by: John Batch <john.batch@infineon.com>
2026-03-23 10:18:00 +01:00