Commit graph zephyr/drivers
Author SHA1 Message Date
Michal Princ
e9f5d0b4a1 drivers: clock_control: enable sema420, sema423, sema424 clock control
enabled sema420, sema423, sema424 peripheral clock control through
clock_control (syscon) driver

Signed-off-by: Michal Princ <michal.princ@nxp.com>
2026-03-03 13:31:38 +01:00
Francois Ramu
ecc8af4a08 drivers: flash: stm32u3 erase with BKER reset on single bank 512K
On the stm32U3 with 512K of flash in a single bank,
reset the BKER bit of the FLASH_CR register.
See RefMan Table Flash module organization"
Note "2. When DUALBANK is set to 0 in the option bytes,
for 512-Kbyte single-bank STM32U375/385 devices,
the flash is addressed as a single bank,
and the page numbers are continuous from 0 to 127.
Set BKER = 0 to select bank 1."

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-03-03 13:30:50 +01:00
Francois Ramu
b844fb6d7f drivers: flash: stm32u3 flash erase or program on voltage scale1
On the stm32U3 series, erase/program operation requires
the voltage range is set to range 1.
This is done before loop on erase/write and the initial voltage
range is restored afterwards.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-03-03 13:30:50 +01:00
Francois Ramu
8167e1c5d9 drivers: flash: stm32u3 flash page layout
On the stm32U3, like it is on the stm32U5 series,
gives the exact nb of pages of 4KB depending on the flash size.
For the page layout, the nb of pages does not depends on the
DUALBANK option byte.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2026-03-03 13:30:50 +01:00
Magdalena Szumny
9227aa7880 net: nsos: add getpeername and getsockname
Add implementation of getpeername and getsockname to NSOS driver.

Signed-off-by: Magdalena Szumny <magdalena.szumny@assaabloy.com>
2026-03-03 13:29:14 +01:00
Nhut Nguyen
b0cfb78172 drivers: intc: Add support for Renesas RZ/G3E
Update GPIO interrupt (TINT) to support Renesas RZ/G3E

Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2026-03-03 13:28:32 +01:00
Hoang Nguyen
e42c9ac45c drivers: serial: Add support for Renesas RZ/G3E
Add serial driver support for Renesas RZ/G3E

Signed-off-by: Hoang Nguyen <hoang.nguyen.jx@bp.renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2026-03-03 13:28:32 +01:00
Y Huynh
41ab6863e0 soc: renesas: rx: Init RX clocks in soc_early_init_hook
The clock initialization for RX devices is not appropriate when it is
placed under the root clock node. Without an external fixed clock on the
board, the clock is never initialized. Therefore, the clock
setup must be handled inside soc_early_init_hook.

Signed-off-by: Y Huynh <y.huynh.xw@renesas.com>
2026-03-03 11:29:36 +01:00
Hui Bai
1ea2e5be64 drivers: wifi: nxp: Reconfigure bandcfg when disabling AP
Reconfigure the bandcfg when disabling AP so that the band
configurations are match between hostapd and wifi driver.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2026-03-03 11:28:51 +01:00
Mustafa Taher
6a4d18b036 drivers: stepper: gpio_stepper: fixing naming inconsistency
rename gpio_step_dir.c to gpio_step_dir_stepper_ctrl.c
rename h_bridge_stepper.c to h_bridge_stepper_ctrl.c
remover zephyr prefix from gpio_step_dir_stepper_ctrl.c structs
add ctrl suffix to h_bridge_stepper_ctrl.c structs and function
rename in kconfig to match
adds a prefix STEPPER_ in cmake to comply the changes in the kconfig

Signed-off-by: Mustafa Taher <mustafataherramp@gmail.com>
2026-03-03 11:28:12 +01:00
John Batch
304fdce920 drivers: gpio: Infineon: enable input+output mode and bug fixes
- Enables GPIO input+output mode to enable gpio_api_1pin test
- Retains current pin state when no output init flag specified.
- Adds pull up register validation, sets pull up register in
  both pull-up and pull-up+pull-down cases.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-03-03 11:26:53 +01:00
John Batch
ff093ee750 drivers: gpio: Infineon: refactor drive mode selection into helpers
Refactors the drive mode selection logic for input and output pins into
dedicated helper functions.

Signed-off-by: John Batch <john.batch@infineon.com>
2026-03-03 11:26:53 +01:00
Raffael Rostagno
72fb9bf4b0 drivers: systimer: xtensa: Add CCOUNT compensation
Add CCOUNT compensation for time spent in LPM mode (CPU stalled).
Add sys_clock_idle_exit() for dticks announcement when leaving LPM.
Add hooks for SoC specific implementation of LP timer timestamp call.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-03 11:17:51 +01:00
Mathieu Choplain
9ec2cd318f drivers: usb: dc: stm32: don't invoke callbacks from ISR context
Modify driver to process interrupts from upper half ISR then signal a
bottom half ISR thread which performs callback invokation. This ensures
callbacks run in thread context which is necessary for proper operation of
various classes.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-03 11:16:21 +01:00
Vincent Tardy
05f7e6ab0e drivers: bluetooth: hci: stm32wba: fix semaphore issue in send process
In the bt_hci_stm32wba_send() function, in case of the function
bt_buf_get_evt() fails, call k_sem_give() before return.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-03-03 11:15:26 +01:00
Vincent Tardy
0bc65088a3 drivers: ieee802154: Restore channel during driver start api
Restore the channel in the stm32wba_802154_start()
function because channel is reset by the link layer
when the stm32wba_802154_ral_sleep() is called
in the stm32wba_802154_stop() function.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-03-03 11:15:26 +01:00
Vincent Tardy
9b5182fea1 drivers: ieee802154: Manage continuous reception config in start/stop
Disable continuous reception when ieee802154 stop
is called.
Configure continuous reception when ieee802154 start
is called.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-03-03 11:15:26 +01:00
Vincent Tardy
dee7f1d701 drivers: flash: stm32wba: add Flash Module initialization
Add FM_Init() function call in the Flash driver initialization
to initialize the Flash Module.
This function is introduced by the STM32Cube_FW_WBA_V1.8.0
release.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-03-03 11:15:26 +01:00
Yongxu Wang
8a4046610a drivers: mcux_lptmr_timer: support tickless function
When tickless is enabled, it is necessary to ensure
that lptmr can be set for a period of time instead of generating
an interrupt at one tick.

LPTMR hardware does not synchronize writes to the
compare register (CMR)
If CMR is changed exactly when the counter increments,
the hardware may compare part of the counter against
the old CMR value and part against the new one, leading to TCF
being set incorrectly on some SoCs.

Reorder the update sequence to:
- disable the LPTMR interrupt,
- clear TCF,
- write the new CMR,
- re-enable the interrupt.

This provides a safe workaround for tickless mode case.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2026-03-03 11:08:56 +01:00
Yongxu Wang
c3ecf9b959 drivers: timer: mcux_lptmr: add prescaler bypass support
Add support for prescaler bypass configuration via devicetree
property. This aligns the timer driver with the counter driver
implementation.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2026-03-03 11:08:56 +01:00
Tim Pambor
db35a360bd drivers: mspi: stm32_xspi: fix error for valid CE polarity
Logic for error handling for CE polarity was inverted, causing
configuration to incorrectly return early without completing
the configuration when a valid CE polarity was provided.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-02 16:00:25 -08:00
Tahsin Mutlugun
b3c0247789 drivers: counter: max32: Correctly handle external clock frequency
On MAX32 SoCs, some timer instances can use an external clock input.
This commit ensures that when the external clock is selected as the
source, its frequency is read and used correctly.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2026-03-02 15:59:25 -08:00
Tahsin Mutlugun
2226976c56 drivers: counter: max32: Add pinctrl support for timer I/O signals
MAX32 timers can optionally use external input/output pins.
Enable pinctrl support in the counter driver so these pins
can be properly configured via device tree.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2026-03-02 15:59:25 -08:00
Pete Johanson
0e3fcdfeb0 drivers: ad559x: Make reset-gpios optional
Properly handle the scenario where the reset GPIO is not connected, and
simply rely on software reset during init.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-03-02 15:57:40 -08:00
Michał Stasiak
b379badf41 drivers: audio: nrfx_pdm: allow requesting ACLK clock
Now that requesting ACLK made it into PDM driver,
allow it on target with CLKSELECT as long as
clock control is enabled.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-03-02 15:55:59 -08:00
Raul Hernandez
ac8edad7d3 drivers: mbox: rpi_pico: support NS SIO base address
Refer to this comment for more information:
https://github.com/zephyrproject-rtos/zephyr/pull/92923#discussion_r2637725041

This patch enables Non-Secure mode support for the RP2350 MBOX
driver. It replaces the hardcoded SIO base address with the address
derived from the devicetree parent node. This allows the driver to
use the correct hardware alias in both Secure and Non-Secure contexts.

Signed-off-by: Raul Hernandez <raul.hernandez@spaceface.dev>
2026-03-02 15:52:52 -08:00
Lucien Zhao
a2f0191e2e drivers: gpio: mcux_rgpio: use cfg_idx instead of pin for pue_mux access
Fix incorrect array index on line 101. Should use cfg_idx (which accounts
for non-contiguous pin layouts) instead of pin when accessing pin_muxes
array elements. This prevents potential out-of-bounds access and ensures
correct pull configuration on i.MX RT118x SOCs.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-03-02 15:45:15 -08:00
Lay Desai
d7a4b690c9 drivers: hwinfo: Add mspm0 hwinfo driver to CMakeLists
The hwinfo driver for mspm0 was added to CMakeLists, so it gets
compiled in.

Signed-off-by: Lay Desai <lay.desai@he360.com>
2026-03-02 15:44:51 -08:00
Valerio Setti
7c37e95875 drivers: crypto: mbedtls_shim: remove legacy code
Remove inclusions that date back to the original addition of this driver
and that are no more required when PSA API is used.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-02 11:04:26 +01:00
Ryan McClelland
1292751fdc drivers: i3c: ccc: fix setvendor sending direct CCC without target
i3c_ccc_do_setvendor() uses I3C_CCC_VENDOR(false, id) indicating a
direct CCC, but never sets up the target payload with the target's
address. The memset zeros out targets.num_targets and targets.payloads,
so the CCC is sent with no target address.

Add a ccc_tgt_payload with the target's dynamic address and the
write data, matching how i3c_ccc_do_getvendor() is structured.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-02 11:03:57 +01:00
Ryan McClelland
2df0e8c20c drivers: i3c: ccc: fix RSTDAA direct using wrong R/W bit
i3c_ccc_do_rstdaa() sets rnw = 1 (read) for the directed RSTDAA CCC,
but per the I3C spec RSTDAA is a Direct Write CCC with zero data
bytes. This causes the wrong R/W bit to be driven on the bus header.

Change rnw to 0 to correctly indicate a write operation.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-02 11:03:57 +01:00
Ryan McClelland
9bb1b9b5db drivers: i3c: initialize desc to NULL in mem slab allocators
i3c_device_desc_alloc() and i3c_i2c_device_desc_alloc() leave the
local desc pointer uninitialized when k_mem_slab_alloc() fails. The
uninitialized garbage is returned to callers that check for NULL,
causing them to dereference a random pointer instead of handling
the allocation failure.

Initialize desc to NULL so callers correctly detect the failure.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-02 11:03:38 +01:00
Ryan McClelland
11bfbbf05b drivers: i3c: use safe list iteration when detaching devices
i3c_sec_bus_reset() iterates over the attached I3C and I2C device lists
using SYS_SLIST_FOR_EACH_CONTAINER while removing each node via
i3c_detach_i3c_device()/i3c_detach_i2c_device(). The non-safe iterator
reads the current node's next pointer to advance, but detaching
invalidates that pointer. This causes the loop to either stop early
(skipping devices) or access stale memory.

Add I3C_BUS_FOR_EACH_I3CDEV_SAFE and I3C_BUS_FOR_EACH_I2CDEV_SAFE
macros that wrap SYS_SLIST_FOR_EACH_CONTAINER_SAFE, which saves the
next pointer before executing the loop body. Use these in
i3c_sec_bus_reset() so nodes can be safely detached during iteration.

Also add the new macros to .clang-format ForEachMacros list.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-02 11:03:38 +01:00
Ryan McClelland
d31d6ed24b drivers: i3c: fix dangling stack pointer in i3c_sec_get_basic_info
i3c_sec_get_basic_info() attaches a stack-allocated temp_desc to the
persistent device linked list via i3c_attach_i3c_device(). If
i3c_ccc_do_getpid() fails or i3c_device_desc_alloc() returns NULL, the
function returns without detaching temp_desc. Once the stack frame is
reclaimed, the linked list contains a dangling pointer, corrupting
memory on any subsequent list traversal.

Add i3c_detach_i3c_device(&temp_desc) before each early return to
ensure the stack-allocated descriptor is removed from the list.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-02 11:03:38 +01:00
Ryan McClelland
13b1bd8942 drivers: i3c: set ibi_len in SETMRL CCC payload
i3c_bus_setmrl() accepts an ibi_len parameter and uses it to update the
cached descriptor value, but never sets mrl_cmd.ibi_len before sending
the SETMRL CCC on the wire. This means the IBI payload size byte sent
to the target is uninitialized stack data when BCR[2]=1.

Set mrl_cmd.ibi_len = ibi_len so the CCC payload matches the spec
(MIPI I3C v1.2 Section 5.1.9.3.15).

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-02 11:03:38 +01:00
Fabin V Martin
20630ff455 drivers: uart: microchip: sercom g1: code improvements
Some naming changes and removed redundant code.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-03-02 11:00:26 +01:00
Fabian Blatz
a983df8dbb drivers: display: Add AC057TC1 e-ink display driver
Add driver for the AC057TC1 5.7-inch 7-color electrophoretic (e-ink)
display. The driver supports MIPI DBI 4-wire SPI mode and includes:

- GPIO interrupt-driven busy signal handling with semaphore-based waiting
- Deep sleep and PM device support for power management
- 4-bit per pixel (2 pixels per byte) color format with 7 color palette

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-03-02 10:54:37 +01:00
Fabin V Martin
0e880da6a6 drivers: i2c: microchip: sercom g1: Fixed issues for i2c transfer
The issues fixed for i2c transfer using polling and interrupt
modes which was observed while testing with the pic32cm_jh_01
boards.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-03-02 10:53:58 +01:00
Leevi Xu
02b4ac1519 drivers: i2c: sbcon: fix init when pinctrl applies successfully
When pinctrl_apply_state() returns 0 (success), the previous condition
(ret != -ENOENT) caused an early return, so i2c_bitbang_init() and
i2c_bitbang_configure() were never run. Only -ENOENT (no pinctrl
entry) should be ignored; real errors should still abort init.

Fix by returning only when ret < 0 && ret != -ENOENT.

Signed-off-by: Leevi Xu <leevi.xu@evenrealities.com>
2026-03-02 10:53:23 +01:00
Ajay Neeli
f349d529b3 i2c: cdns: Add 10-bit target address support
Extend the Cadence I2C driver to support 10-bit target addressing.

Signed-off-by: Ajay Neeli <ajay.neeli@amd.com>
2026-03-02 10:52:41 +01:00
Khoa Tran
dc4e092830 drivers: serial: Initial SAU UART driver support for Renesas RA0 series
Initial SAU UART driver support for Renesas RA0 series

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2026-03-02 10:48:45 +01:00
Khoa Nguyen
dead85721b drivers: misc: Update interrupt handling for ext-int to support RA0
Update interrupt handling for renesas_ra_external_interrupt
to support RA0

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2026-03-02 10:48:45 +01:00
Khoa Nguyen
cd95e8e5a5 drivers: flash: Update interrupt number assign to support RA0
Update interrupt number assign for soc_flash_lp to support RA0

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2026-03-02 10:48:45 +01:00
Khoa Tran
ee99677faa drivers: gpio: Update Renesas RA GPIO driver to support RA0 series
- Update Renesas RA GPIO driver to support Renesas RA0 series
- Add macro to disable port external interrupt the the compatible
nodes `renesas,ra-external-interrupt` are not enabled.

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2026-03-02 10:48:45 +01:00
Khoa Tran
1c67a64bff drivers: pinctrl: Add support for Renesas RA0 SoCs
Add pinctrl driver support for Renesas RA0 SoCs

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2026-03-02 10:48:45 +01:00
Muhammed Asif
3096cae23f drivers: counter: microchip: Add support for counter using rtc
- Adds the necessary support for counter using rtc peripheral.

Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2026-03-02 10:47:37 +01:00
Hieu Nguyen
f4ce40c8b6 drivers: counter: Update driver for RZ devices
Reduce the complexity of the set-alarm and set-top functions.
Improve the error handling.
Replace IRQ macros with static inline functions to centralize GIC/NVIC
conditional handling.

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-03-02 10:46:47 +01:00
Jeppe Odgaard
ea6dfedfe4 drivers: led_strip: ws2812_i2c: add update_channels
Add support for LED strip update channels.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2026-02-28 21:13:05 +01:00
Jeppe Odgaard
8edafa9e28 drivers: led_strip: ws2812_i2c: refactor update_rgb
Move the non-RGB mapping code into an update function.
This creates simpler functions and makes implementation of LED strip API's
update_channels function simpler.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2026-02-28 21:13:05 +01:00
Arunprasath P
f7018c171d drivers: dma: microchip: g2: Introduce DMA G2 driver
Add G2 DMA driver for Microchip DMAC Peripherals.
Implement the Zephyr DMA driver APIs, including channel configuration,
start, stop, suspend, and resume operations.

Signed-off-by: Arunprasath P <arunprasath.p@microchip.com>
2026-02-28 21:12:52 +01:00