Commit graph zephyr/drivers
Author SHA1 Message Date
Dag Erik Gjørvad
d8a3bf49be drivers: flash: nrf, nrf_rram: Route reads via the TZ-secure predicate
Replace the direct memcpy() in flash_nrf_read() and nrf_rram_read()
with an inline check against soc_secure_flash_range_is_secure().
Reads that overlap a "nordic,tz-secure" partition go through
soc_secure_mem_read(); all others stay a plain memcpy() /
nrf_nvmc_buffer_read().

For secure builds and for NS builds without a tz-secure DT node the
predicate folds to a constant false and the secure branch is dropped
by the optimiser, so this is a no-op for any layout that does not
opt in.

Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
2026-06-02 13:29:37 +02:00
Laura Carlesso
4b38154187 soc: infineon: pse84: Add conditional SMIF HW init for PSE84 boards
Add support for full SMIF hardware initialization for the serial
memory flash driver when booting from internal RRAM.
On PSE84, the ROM extended boot only configures the SMIF subsystem
when the device boots from external flash. When the first application
(MCUboot or CM33 secure) runs from RRAM, the SMIF pins, clocks,
peripheral groups, and peripheral itself are left uninitialized.

Introduce CONFIG_FLASH_INFINEON_SMIF_HW_INIT to conditionally
perform these steps before mtb_serial_memory_setup() is called.

Extract the info as much as possible from DT. Some are still hardcoded
in the driver and will require additional polishing in a follow-up PR.

Assisted-by: Claude:claude-opus-4.7

Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
2026-06-02 13:29:20 +02:00
Laura Carlesso
e1ee2970b7 dt-bindings: pinctrl: Add pin control binding to Infineon flash controller
The qspi flash controller uses the Serial Memory Interface (SMIF) to
interact with an external memory. This is done through dedicated
data pins which reside in the SMIF HW block. These were not exposed
up until now in the Infineon devices because the extended boot takes
care of initializing the pins properly when booting from external flash.
However this might not always be the case so expose the pin info and
configuration. Additionally, correct the flash controller address to
match the SMIF CORE base address corresponding to the SMIF instance
in use.

Assisted-by: Claude:claude-opus-4.7
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
2026-06-02 13:29:20 +02:00
Paulo Santos
647b16e13e drivers: modem: cellular: add pause/resume shell
Add `cellular pause <device>` / `cellular resume <device>` shell
commands wrapping the new periodic-script pause/resume API. Gated by
CONFIG_MODEM_CELLULAR_SHELL.

Signed-off-by: Paulo Santos <paulo.santos-ext@hexagon.com>
2026-06-02 13:29:09 +02:00
Paulo Santos
953ebf03b4 drivers: modem: cellular: add periodic-script pause/resume API
Add cellular_modem_pause_periodic_script() /
cellular_modem_resume_periodic_script() so a consumer can suppress
the periodic AT poll while holding the command channel for a
long-running operation (firmware update, eSIM, factory test). The
gate is at the timer-fire site, so an in-flight script is not
interrupted. Resume fires the script immediately if at least one
scheduled run was skipped while paused; otherwise it restarts the
periodic timer.

Pause and resume are single-owner: pausing while already paused and
resuming while not paused both return -EINVAL so misuse surfaces at
the call site instead of being swallowed.

Signed-off-by: Paulo Santos <paulo.santos-ext@hexagon.com>
2026-06-02 13:29:09 +02:00
Haoran Jiang
223ee226ba drivers: pinctrl: sf32lb52x: support slew-rate
Encode the SF32LB52x slew-rate pinctrl property into HPSYS_PINMUX.
The devicetree value 0 selects slow slew rate and 1 selects fast
slew rate, while the hardware bit uses 1 for slow and 0 for fast.

PA39-PA42 reuse the same bit as MODE instead of SR. Mask SR out for
those pads and drive MODE separately from the selected pinctrl
function, setting it only for I2C routing and clearing it otherwise.

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2026-06-02 13:27:59 +02:00
Haoran Jiang
c31178a967 drivers: gpio: sf32lb: fix PA39-PA42 mode handling
PA39-PA42 reuse bit 8 as MODE instead of slew rate. The GPIO
driver always set bit 8, which forced those pads into I2C mode
whenever they were configured as GPIOs.

Configure GPIO pads with read-modify-write, clear MODE on PA39-PA42
to select GPIO mode, and stop modifying bit 8 on other pads. Slew
rate is now left to pinctrl or hardware defaults instead of the GPIO
configuration path.

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2026-06-02 13:27:59 +02:00
Chun-Chieh Li
0ab53e172f drivers: usb: udc: numaker: make vbus detect configurable
Nuvoton USBD/HSUSBD peripherals support VBUS detect functionality, but
some PCB designs may choose to use mutually exclusive USB-C peripheral
for VBUS detection. In this case, the USB controller backed VBUS detect
functionality won't work and needs to be disabled.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-06-02 13:27:46 +02:00
Ruijia Wang
6ef377f634 drivers: flash: xspi: add write RAM buffer for XIP and alignment
- Read write_block_size from devicetree (default 4 in binding) to
  allow board-level override for finer write granularity.
- Add CONFIG_FLASH_MCUX_XSPI_WRITE_BUFFER (default n) to copy
  write data to a RAM buffer before transfer, preventing faults
  when source data resides in flash and padding transfer size to
  4-byte boundary for the XSPI IP Tx limitation.
- When write buffer is disabled, reject non-4-byte-aligned offset
  or length with -EINVAL.

Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
2026-06-02 11:49:12 +02:00
Ruijia Wang
ed39d026aa drivers: flash: xspi: fix write across page boundary and alignment
- Clamp write_size to remaining bytes in the current 256-byte page
  to prevent page program address wrap, consistent with the FlexSPI
  NOR drivers.
- Set write_block_size to 2 because OPI DTR mode requires all writes
  to be 2-byte aligned and multiples of 2 bytes.

Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
2026-06-02 11:49:12 +02:00
Sylvio Alves
8c143d85f3 drivers: regulator: espressif: power up LDOs at probe
Honor regulator-init-microvolt and the boot-on / always-on
properties at init so on-chip LDOs come up before the kernel
runs.

Switch the binding from the custom espressif,ldo-channel
property to a standard reg + unit-address layout, and read the
channel via DT_REG_ADDR().

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-06-02 11:45:16 +02:00
Hui Bai
b03a3e250d driver: wifi: nxp: Unblock low power when WLAN is disabled
Allow low power mode if WLAN is disabled

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2026-06-02 11:44:56 +02:00
Ruoshan Shi
4612efcb6e drivers: clock_control: clock update for LPIT instances on iMX93 Mcore
Support lpit clock for imx93 m33 core

Signed-off-by: Ruoshan Shi <ruoshan.shi@nxp.com>
2026-06-02 11:44:27 +02:00
Ryan McClelland
f436e38bb2 drivers: i3c: use i3c_config_get_target
use i3c_config_get_target over i3c_config_get

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-06-02 11:40:25 +02:00
Ryan McClelland
2f9694023a drivers: i3c: shell: use i3c_configure_controller
use i3c_configure_controller rather than i3c_configure, same for
config_get

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-06-02 11:40:25 +02:00
Ryan McClelland
4cc51f83b4 drivers: i3c: shell: extract print_i3c_device_info() helper
The same 16-field shell_print format string was duplicated verbatim in
the single-target and all-devices branches of cmd_i3c_info. Extract it
into a shared static helper to eliminate the duplication.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-06-02 11:40:25 +02:00
Ryan McClelland
6d4e4412fb drivers: i3c: shell: use i3c_parse_args() in getvendor/setvendor
Both CCC vendor commands open-coded the three-step dev+tdev+desc lookup
that i3c_parse_args() already provides. Switch to the helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-06-02 11:40:25 +02:00
Ryan McClelland
a0eac9f783 drivers: i3c: shell: remove unused i3c_driver_data variables
Seven CCC command handlers declared and assigned a local `data` pointer
but never read it. Drop the dead declarations and assignments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-06-02 11:40:25 +02:00
Ryan McClelland
130a2c1515 drivers: i3c: shell: add I3C_FOREACH_STATUS_OKAY macro
Replace two identical 9-entry DT_FOREACH_STATUS_OKAY blocks with a single
I3C_FOREACH_STATUS_OKAY(fn) wrapper macro so adding a new controller
compatible requires only one edit.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 11:40:25 +02:00
Mario Paja
3702f336c8 drivers: i2s: stm32 sai add configuration guards
These changes add RX/TX direction guards for write, read and
configuration.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2026-06-02 11:38:48 +02:00
Mario Paja
20084a257a drivers: i2s: stm32: init sai clk only once per block
These changes split the init process of the sai block from
init process of sai sub-blocks.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2026-06-02 11:38:48 +02:00
Richard Mc Sweeney
c1119376f1 drivers: correct pse84 autanalog dac index
Corrected PSE84 autanalog DAC index calculation. The DAC index is
contiguous and starts from dac0 instance. The previous implementation
was depending on the DT_NODE_CHILD_IDX, which returns the position
among all autanalog siblings (CTB, PTC, DAC, SAR, PRB). Therefore
it was returning an incorrect DAC index.

Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-06-01 18:08:27 -05:00
JuHyun Kim
d910a649ae drivers: sensor: icm45686: Change default interrupt drive
Fixed default interrupt drive from Open Drain to Push pull.
Fixes #108987

Signed-off-by: JuHyun Kim <jh.kim@tdk.com>
2026-06-01 18:05:01 -05:00
Alberto Escolar Piedras
ae58840f96 bbram: mcp7940c: emulator: Fix off by 1 stack overflow bug
Fix an out of bounds array read, which causes the test to read
beyond the stack and fail (probably at random).
The issue can be pinpointed building with ASAN.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-06-01 18:02:25 -05:00
minyuan xue
39725a6068 drivers: sdhc: add ameba sdhc driver
Add realtek ameba sdhc driver.

Signed-off-by: minyuan xue <minyuan_xue@realsil.com.cn>
2026-06-01 18:00:55 -05:00
Manimaran A
376ad75d16 drivers: bbram: microchip: mec: common bbram driver
Updated bbram compatible in mec5 dtsi
Added macro required to port the bbram driver for MEC174x/5x.

Signed-off-by: Manimaran A <manimaran.a@microchip.com>
2026-06-01 17:59:17 -05:00
Benjamin Cabé
bef55f207d drivers: sensor: tmp108: move alert masks to driver header
TMP108/AS6212 status alert bit masks are driver-internal. Move them from
the public header into tmp108.h.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-06-01 12:42:21 -04:00
Benjamin Cabé
8b89c95ee3 drivers: sensor: ti_hdc302x: move status register macros to driver
Status register bit macros are driver-internal and only used in
ti_hdc302x.c. Remove them from the public header.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-06-01 12:42:21 -04:00
Raffael Rostagno
b147f5e76c drivers: gpio: esp32: Update PM compile guards
Wake-up feature should be available even if user selects only
POWEROFF function. PM and PM_DEVICE are related to IDLE and
also possibly with calling PM_STATE_SOFT_OFF, so it is kept
as check/guard for the wake-up function as well.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-06-01 12:41:59 -04:00
Fin Maaß
542338a82a drivers: i2c: don't check num_msgs again
We already check num_msgs in i2c_transfer, we
don:t need to check it in the i2c drivers again.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-01 12:41:32 -04:00
Oliver Schmidhauser
ffbc63efcb drivers: i2c: stm32: fix issue with shared interrupts
The I2C driver clears the TC and TCR interrupt flags not in the ISR, but
in thread context later on. If there is an interrupt on another I2C
peripheral (but sharing the same interrupt vector) after the first I2C
peripheral processed a TC or TCR interrupt, but before it cleared the
corresponding status flag in thread context, this interrupt will be
processed twice, leading to corrupted transfers.

Added a check to only process the TC and TCR interrupts if they are
enabled for the corresponding peripheral (indicated by the TCIE bit in
the CR1 register).

Fixes zephyrproject-rtos/zephyr#109993

Signed-off-by: Oliver Schmidhauser <oliver.schmidhauser@leica-geosystems.com>
2026-06-01 12:40:48 -04:00
Sergei Ovchinnikov
0dadb2b228 Revert "drivers: regulator: npm13xx: add check for nPM1300 PMIC revision"
LDO soft start fix will not be available in the next revision of the device
but is instead pushed to a later one. The check is invalid, therefore needs
to be reverted.

This reverts commit da56fe6ee0.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2026-06-01 12:40:38 -04:00
Dharun krithik k
f27102d5e9 drivers: bluetooth: h5: Use net_buf_take() to transfer rx_buf
Replace manual pointer transfer with net_buf_take() for better
readability and atomic operation.

Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
2026-06-01 12:40:25 -04:00
Fin Maaß
ca9315931b ethernet: adin2111: reduce global includes
reduce global includes for the adin2111 ethernet driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-01 12:40:13 -04:00
Fin Maaß
da4de65e7c ethernet: intel: remove global include
remove global include for the intel ethernet driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-01 12:40:13 -04:00
Fin Maaß
4b7123923e ethernet: lan865x: remove global include
remove global include for the lan865x.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-01 12:40:13 -04:00
Guilherme Costa
88e82f4ac2 serial: uart_mcux_lpuart: Handle zero timeout
When enabling RX with a timeout of 0 in the mcux lpuart driver, the
driver silently skipped starting the async work timer, making partial
DMA transmissions fail. This commit handles the scenario by
immediatelly flushing the RX data, if any.

Make it so the async timer for TX is skipped if timeout is 0, disabling
TX timeout.

Signed-off-by: Guilherme Costa <guilhermecosta@stratioautomotive.com>
2026-06-01 12:39:48 -04:00
Guilherme Costa
e3278fc1eb drivers: serial: uart: Cast log parameter to void *
Compiling the mcux lpuart driver with format string validation led to a
runtime warning about pointer types. This commit fixes the issue by
casting the offending parameter to void * as recommended.

Signed-off-by: Guilherme Costa <guilhermecosta@stratioautomotive.com>
2026-06-01 12:39:48 -04:00
Amneesh Singh
9969745801 drivers: update interrupt handling to use "flags" instead of "sense"
Update all drivers to use "flags" instead of "sense" when accessing
interrupt properties from device tree. This aligns with the updated
interrupt controller bindings that now consistently use "flags" as
the cell name for the IRQ type field.

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2026-06-01 12:38:26 -04:00
Muhammad Waleed Badar
c0e74f0c14 drivers: i2c: add support for bcm2711 i2c controller
Add support for the bcm2711 i2c controller found on
Raspberry Pi SBC platforms.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-06-01 12:37:46 -04:00
Steven Chang
09f163b29c drivers: uart: kb106x: TX empty IRQ triggering
- Manually trigger TX IRQ when the buffer is empty to work around the
  hardware limitation where the IRQ is not automatically generated.

Signed-off-by: Steven Chang <steven@ene.com.tw>
2026-06-01 12:37:35 -04:00
Kate Wang
0ae9ecde51 drivers: clock_control: mcux_syscon: Add SLCD clock support
Add clock control support for the NXP MCUX Segment LCD (SLCD)
peripheral in the SYSCON clock driver.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-06-01 12:37:23 -04:00
Kate Wang
c75550fa7e drivers: auxdisplay: Add NXP MCUX segmented LCD driver
Add driver for NXP MCUX Segment LCD (SLCD) controller to support
segment-style auxiliary displays.

The driver provides a unified implementation that handles both
the SLCD controller (nxp,slcd) and a generic SLCD panel.
It supports the generic SLCD panel with common header and binding
which includes the following panel features:
- Segment types(7, 14, 16 segments)
- Configurable front plane pins and back plane COMs
- pin/COM for each segment
- Optional pin/COM for each indicator
- Optional colon/dot indicators

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-06-01 12:37:23 -04:00
Kate Wang
3923875a32 drivers: auxdisplay: Add custom indicator API
Add new API to the auxiliary display subsystem to support display
custom indicator management, for segmet LCD panels

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-06-01 12:37:23 -04:00
Robert Hancock
e8b2a9b0ed drivers: spi: Added ZynqMP Generic Quad SPI driver
Add a driver for the Generic Quad SPI hardware that is part of the
Xilinx MPSoC. This is mostly commonly used with QSPI flash devices which
are also used for initial image loading, but can also be used with other
SPI devices.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
2026-06-01 12:37:10 -04:00
Surya Prakash T
587300e99a drivers: video: sw_generator: fix format specifiers for frame size
Fix a format string build error on platforms where uint32_t types
do not match standard unsigned format specifiers.

Fix this by using the PRIu32 format macro for both frame_size and
vbuf->size, ensuring type safety across all target architectures.

Signed-off-by: Surya Prakash T <suryat@aerlync.com>
2026-06-01 12:06:58 +02:00
Deepika R
3c181cd88d drivers: flash: fix hard fault for MX25U6432F
- Add JEDEC case for Macronix MX25U6432F to skip SFDP auto-parsing.
- Forces 24-bit addressing to prevent breaking active XIP loops.

Signed-off-by: Deepika R <deepika@aerlync.com>
2026-06-01 12:04:41 +02:00
Ching Ping Sun
7c67ad1466 eth_dm9051: enable multicast with RCR.ALL instead of MAR hash bits
Use RCR.ALL to enable reception of all multicast frames. MAR[7] is set

to 0x80 for broadcast only. This follows Zephyr driver convention

where a simple multicast-enable flag is preferred.

Signed-off-by: Ching Ping Sun <tom_sun@davicom.com.tw>
2026-06-01 12:04:15 +02:00
Siva Subramanian Ravi Saravanan
45bdb70e1c dma: amd: add TDM DMA driver for AMD ACP 7.0
Add TDM DMA driver for AMD Audio Co-Processor 7.0. This includes:

- DMA driver (dma_acp_tdm.c) with support for memory-to-device and
  device-to-memory transfers using ACP DMA engine
- Device tree bindings and node for ACP TDM DMA controller
- Kconfig and CMake build integration

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
Co-authored-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
2026-06-01 12:01:26 +02:00
Siva Subramanian Ravi Saravanan
a8fde10b0e dai: amd: add TDM DAI driver and register definitions for ACP 7.0
Add TDM DAI driver and ACP 7.0 register
definitions for AMD Audio Co-Processor. This includes:

- TDM DAI driver (tdm_dai.c) with support for I2S format
- ACP 7.0 chip register definitions and offset mappings
- Device tree bindings and nodes for TDM DAI instances
- Kconfig and CMake build integration

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
Co-authored-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
2026-06-01 12:01:26 +02:00