Commit graph zephyr/drivers
Author SHA1 Message Date
Carlo Caione
7592b10996 lorawan: native: fix DIO1 interrupt not re-enabled when sleep disabled
When CONFIG_LORA_SX126X_NATIVE_SLEEP=n, sx126x_ensure_ready() returned
immediately without re-enabling the DIO1 interrupt. On the STM32WL the
radio ISR disables itself on entry (irq_disable), so the interrupt must be
explicitly re-armed before each TX/RX operation.

This caused every send after the first to time out because the TX_DONE
interrupt was never delivered.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-03-25 07:58:52 -04:00
Mohamed Azhar
763227907b drivers: spi: microchip: Updates SPI g1 driver
Includes file for mapping DFP macros to follow a common macro
name for sercom spi g1 driver
Optimizes the driver

Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
2026-03-25 07:58:21 -04:00
Holt Sun
250d291ccb soc: nxp: kinetis: wire LMEM cache support
Wire the Kinetis LMEM-capable SoCs into the generic cache
management path by selecting the LMEM driver, enabling the
available instruction and system-bus cache capabilities, and
defaulting these parts to CACHE_MANAGEMENT with the external
cache backend.

Keep MCUX eDMA descriptors in the default SRAM placement on
SYSMPU-based Kinetis parts. Their SRAM region remains outside
the cached LMEM area, so they do not use the generic
NOCACHE_MEMORY path.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-03-25 07:57:21 -04:00
Holt Sun
8b2f55272a drivers: cache: add NXP LMEM system cache ops
Add LMEM data-cache operations to the NXP LMEM cache driver for
SoCs that expose the system-bus cache and select CONFIG_DCACHE.

Rely on SoC Kconfig capability selection instead of driver-local
unsupported stubs so instruction-only LMEM parts only build
instruction-cache support.

This keeps one driver for both instruction-only LMEM parts and
SoCs that also expose the LMEM system-bus cache.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-03-25 07:57:21 -04:00
Camille BAUD
1eb897d206 drivers: gpio: Fix and extend GPIO irqs for BL70xL
Configuration per reg was wrong, also it supports both edges.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-25 07:56:19 -04:00
Jose Morales
986fc3ad52 drivers: spi: spi-nrfx-spim: add missing init for anomaly 58 workaround
After #99399 the workaround for errata 58 in nRF52 chips is removed from
zephyr RTOS and is now part of the nrfx sdk. The initial glue code
between zephyr->nrfx 4.0.0 missed the initializatio of the errata 58
workaround. This commit adds the initialization to the glue code. Given
the errata only applies to nRF52 chips, is safe to assume there is a
single GPIOTE instance present.

Signed-off-by: Jose Morales <josfemova@gmail.com>
2026-03-25 07:56:05 -04:00
Fabian Blatz
c12245ce61 drivers: gpio: grgpio2: Initialize polmask always
Ensure the polmask variable is always initialized.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-03-25 07:55:49 -04:00
Krzysztof Chruściński
0f7c3590bd drivers: misc: nordic_vpr_launcher: Add hiberante mode support
In order to use HIBERNATE sleep mode, retention of RAM block used
for hibernating the VPR core need to be enabled. Contrary to all other
blocks, retention for this block is usually by default disabled.

Add property to vpr coprocessor node which indicates if hibernation
is going to be used. It need to be used on nRF54L to achieve low
idle current. On nRF54H20 it is not needed as DEEPSLEEP mode gives
good idle current (~5 uA).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-25 07:54:55 -04:00
Dave Joseph
d734f3b7ed clock_control: tisci: Fix argument order in tisci_cmd_clk_is_on/off
Fix swapped dev_id and clk_id arguments in the calls to
tisci_cmd_clk_is_on() and tisci_cmd_clk_is_off() within
tisci_get_status(), aligning them with the TISCI API signature.

Signed-off-by: Dave Joseph <d-joseph@ti.com>
2026-03-25 07:54:11 -04:00
Amneesh Singh
f4e25a3f50 drivers: adc: am335x_ti: fix log format specifier
Change format specifier to %zu for size_t. While at it, also change
required_size to size_t, for better compatibility. This prevents
compilation warnings.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-03-25 07:53:17 -04:00
Henrik Brix Andersen
896964688e drivers: can: sam: fix message RAM address for sama7g5
Use CAN_MCAN_DT_INST_MRAM_ADDR() for setting the Bosch M_CAN message RAM
address from DTS as this takes the message RAM offset into account.

Fixes: #105113

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-03-25 07:53:02 -04:00
Henrik Brix Andersen
d2453e139d drivers: usb: device: stm32: fix shadowed variable
Rename "_msg" variable to "msg" to avoid shadowing the "_msg" variable used
in the LOG_* macros.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-03-25 07:52:34 -04:00
Andrei Menzopol
f831a4ee7a drivers: ieee802154: mcxw: return EALREADY in start/stop functions
Start/stop functions should return -EALREADY is the setup is already set.
If start/stop functions are called multiple times they trigger an assert.

Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com>
2026-03-24 15:42:41 -05:00
Yves Wang
7d29a090be drivers: watchdog: wwdt: use clock control API for clock management
Update the MCUX WWDT driver to partially use the Zephyr clock control API
instead of direct HAL clock APIs for clock on and get rate.

Keep using HAL clock APIs for set clock divider because the set rate API
accepts clock frequency and it may cause two external calls to get WWDT
frequency.

Support multiple instances.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-24 15:38:06 -05:00
Yves Wang
afbca7aade drivers: clock_control: mcux_syscon: partial support WWDT clock control
Add clock control support for MCUX WWDT instances (wwdt0 and wwdt1)
in the MCUX SYSCON clock control driver. This enables proper clock
gating and frequency retrieval for WWDT peripherals across multiple
NXP SoC families.

The patch add support for turn on WWDT clock and get it's rate.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-24 15:38:06 -05:00
Yves Wang
8451ce6704 drivers: watchdog: imx_wdog: support multiple instances
Update the MCUX i.MX WDOG driver to support multiple device instances
instead of being hardcoded to instance 0.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-24 15:38:06 -05:00
Yves Wang
57f867c671 drivers: watchdog: wdog32: support multiple instances
Update the MCUX WDOG32 driver to support multiple device instances
instead of being hardcoded to instance 0.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-24 15:38:06 -05:00
Krystian Balicki
92514c2c18 drivers: video: add arducam camera driver
The Arducam mega is a low power, rolling shutter camera, supports
connecting one or more cameras to any microcontroller. It provides
high-quality image capture and processing capabilities, making it
highly suitable for various application fields, including machine
vision, image recognition, and robotics, among others. In current
implementation connecting multiple instances of the same camera
system is problematic.

Co-authored-by: Lee Jackson <lee.jackson@arducam.com>
Signed-off-by: Krystian Balicki <kristos_b@wp.pl>
2026-03-24 15:36:22 -05:00
Vincent Tardy
9439366997 soc: stm32: fix issue about k_work_q used by soc and flash driver
In driver file flash_stm32wba_fm.c, rename ble_ctrl_work_q
to ble_ctle_work_q and make ble_ctle_work_q non-static
in SoC code

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-03-24 10:52:29 -05:00
Guillaume Gautier
fa317fbfab drivers: watchdog: stm32: add wwdg support for stm32c5
Add WWDG support for STM32C5. Replace the IS_WWDG_COUNTER macro (that
doesn't exist in the STM32C5 LL) by the IN_RANGE macro.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 10:51:54 -05:00
Guillaume Gautier
e5cdc0030b drivers: watchdog: stm32_iwdg: add support for stm32c5
Add the *_FreezePeriph function for STM32C5. While at it, fix the driver
for C0/F0/G0/L0 by calling the *_FreezePeriph function once the DBGMCU
clock is enabled (a #endif was missing). It is done the same
way for WWDG driver.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 10:51:54 -05:00
Guillaume Gautier
b963ba69ab drivers: watchdog: stm32: remove old macros
Some macros used in the IWDG driver are no longer present in HAL2. Replace
them by doing the same operation directly.
Also make some clean up/cosmetic changes.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-24 10:51:54 -05:00
Fin Maaß
ff422cd6c8 drivers: ethernet: wifi: remove now redundant net_if_set_link_addr()
As net_if_set_link_addr() is now already done by the
overlaying net_mgmt, we no longer need to do it
in the drivers

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-24 10:49:59 -05:00
Sven Ginka
927597aa6d drivers: i2c: update sy1xx driver for improved read/write support
Refactor read and write functions to handle large transfers with chunking.
Adjust the buffer size to the default 128 bytes. Simplify start/stop
condition logic.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
2026-03-24 10:49:07 -05:00
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
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
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
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
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
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
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
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
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
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
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
Jun Lin
ebfc0cb2e6 drivers: i2c: npcx: Support I2C write operations with Re-start in between
This commit adds support for a special sequence that requires a
repeated start between two consecutive I2C write operations.
For example:
Sr-Addr+W-Data-Data-ReSr-Addr+W-Data-Data-Stop.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2026-03-24 07:06:02 -04:00
Zhaoxiang Jin
a1d27d4f7f adc: shell: migrate to SHELL_HELP macro
Migrate ADC shell command help strings to use the SHELL_HELP
macro for consistent formatting and improved maintainability.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-03-24 09:55:34 +01:00
Ole Morten Haaland
0737e587bb drivers: sensor: qdec_stm32: Set configured prescaler
If a prescaler is set in the DTS, it should be used also by the qdec
driver, as it is by the counter and the pwm drivers.

Signed-off-by: Ole Morten Haaland <omh@ixys.no>
2026-03-24 09:55:21 +01:00
Pierrick Curt
8f59a69840 drivers: adc: mcp3221: add driver support
The MCP3221 is a 1-channel 12-bit A/D converter with I2C interface.

Signed-off-by: Pierrick Curt <pierrickcurt@gmail.com>
2026-03-24 09:54:56 +01:00
Fin Maaß
8209bd1b2d drivers: clock:control: litex: remove unused function
litex_clk_calc_duty_high_time() is not used anywhere,
therefore it can be removed.
When building with
-DZEPHYR_TOOLCHAIN_VARIANT=zephyr/llvm
the compiler even complains with a warning.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-24 05:27:35 +01:00
Pieter De Gendt
a7569d90a0 drivers: rtc: counter: Optional NVMEM storage for epoch offset
Some counters continue running in low power modes (for example i.MX SNVS
LP).
Optionally store and load the epoch offset from an NVMEM cell.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-24 05:26:59 +01:00
Missael Maciel
af089536ca drivers: uart: mcux_flexcomm: Avoid reading registers when no clock
Clock attach verification added previous to read flexcomm registers.
This ensures the flexcomm has a clock attached and is ready for
transmission, avoiding the system gets stuck in an infinite loop
while reading the registers.

Signed-off-by: Missael Maciel <davidmissael.maciel@nxp.com>
2026-03-24 05:26:46 +01:00
Paolo Bazzanella
1863204eda drivers: ethernet: eth_renesas_ra: Fix for link up
In a board I am trying to bring up(RA6M3 + LAN9370),
the phy callback got executed before net_if_carrier_off(),
which meant the OS thought permanently the interface was down.
Moving the net_if_carrier_off() before the callback registration
seems to fix the issue.

Signed-off-by: Paolo Bazzanella <pbbazzanella@gmail.com>
2026-03-23 19:26:51 -05:00
Charles Dias
640dab9779 drivers: input: add Adafruit seesaw gamepad driver
Add a polled I2C input driver for the Adafruit Mini I2C Gamepad
with seesaw (product 5743, https://www.adafruit.com/product/5743).

The driver initializes the device, configures button GPIOs, polls
button and joystick state, and reports events through the input
subsystem. Interrupt (IRQ) support is not implemented.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2026-03-23 19:23:19 -05:00
Tim Pambor
1bf22717ed ethernet: dwmac: configure MAC based on PHY link state
Add support for configuring the MAC based on the PHY link state.
This allows the driver to properly set the speed and duplex
settings of the MAC when the link state changes.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-23 17:39:06 -05:00