Commit graph zephyr/drivers
Author SHA1 Message Date
Silesh C V
cafc09316e drivers: clock_control: alif: make m55hp_cfg optional
Make the m55hp_cfg register block optional to support single-core
Alif SoCs (such as from the Balletto family) that only have the
Cortex-M55 HE subsystem. Multi-core SoCs that have both RTSS-HE
and RTSS-HP subsystems require all 7 register blocks.

Update the binding documentation accordingly.

Signed-off-by: Silesh C V <silesh@alifsemi.com>
2026-05-06 12:02:41 +01:00
Fabio Baltieri
80a6968ada drivers: eth_nxp_imx_netc: add missing netc_eth_get_ptp_clock argument
Fix build error:

eth_nxp_imx_netc.c:304: error: too few arguments to function
'netc_eth_get_ptp_clock'

Add the missing argument tested with:

west build -p -b imx943_evk/mimx94398/m33/ddr
samples/net/ethernet/tsn-switch

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-06 12:01:12 +01:00
Tim Pambor
9a51ed649e drivers: i2c: stm32_v2: fix unused function warning
wait_bus_idle is only used if CONFIG_I2C_TARGET is set.
Guard function in ifdef block to avoid unused function
warning.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-05-06 09:57:54 +01:00
Yangbo Lu
0e8bd58ef6 drivers: ethernet: dsa_nxp_imx_netc: configure QoS to handle VLAN PCP/DE
Configured QoS for switch to handle VLAN PCP/DE.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-05-06 09:56:48 +01:00
Yangbo Lu
2bbe7e8380 drivers: ethernet: dsa_nxp_imx_netc: use ptp_clock when needs timestamping
Used ptp_clock only when NETC_PTP_TIMESTAMPING_SUPPORT is true.
This is to keep same with driver timestamping operations code in
other places, and also to keep same with dsa core driver which uses
ptp_clock when NET_L2_PTP is true.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-05-06 09:56:48 +01:00
Terry Geng
27023e0b5d drivers: sensor: hx711_spi: Fix bit sampling bug
As pointed out in #106786, when disentangling the bitstream from the chip,
for every 8 bits, instead of sampling bit 1, 3, 5, and 7, bit 0, 3, 5, and
7 are erroneously sampled. The behavior of sampling bit 0 is undefined in
the datasheet, and causes data corruption in some cases.

This fix has been tested on actual hardware and no regression is observed.

Fixes #106786

Signed-off-by: Terry Geng <terry@terriex.com>
2026-05-06 07:08:14 +02:00
Tim Pambor
edd50151b7 drivers: ethernet: dwmac: Implement zero-copy transmit
Avoid copying (cloning) the data to be transmitted and
just increase the reference count of the original buffer.
This is more efficient and reduces memory and CPU usage.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-05-06 07:07:55 +02:00
Lay Desai
24cb0d8055 drivers: gpio: pca_series: Allow disabling automatic reset
The PCA series GPIO driver was updated to allow disabling automatic
reset. This feature would enable GPIO expander ports to retain states
which could be helpful for situations where certain pins are configured
in the bootloader and their states need to be retained when switching to
application code.

Signed-off-by: Lay Desai <lay.desai@he360.com>
2026-05-06 07:06:39 +02:00
Fin Maaß
4d594e59fc drivers: ethernet: nxp: enet: move pinctrl to parent
move pinctrl to parent, for some phys it is needed,
that the pinctrl happens before their init.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-06 07:06:26 +02:00
David Jewsbury
b2d8f222fe drivers: mspi_dw: Fix SPI_CTRLR0 cmd/addr handling for DMA mode
Consolidate the SPI_CTRLR0 INST_L/ADDR_L masking with the cmd/addr
length application into a single conditional. In standard SPI mode with
DMA, the controller still needs INST_L and ADDR_L to drive the cmd/addr
phase via scatter-gather, so only mask these fields in PIO mode.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2026-05-06 07:06:15 +02:00
Christoph Busold
88278fb59f drivers: entropy + random: Add implementations for ARM64 RNG
Add new implementations for entropy driver and random subsystem
based on ARM64 RNDRRS and RNDR instructions.

Signed-off-by: Christoph Busold <cbusold@qti.qualcomm.com>
2026-05-06 07:05:12 +02:00
Christoph Busold
dad5096f85 drivers: entropy: Add support for architectural entropy drivers
Add new inline function entropy_get_default_device which returns
the "zephyr,entropy" device or the architectural entropy device,
if the former is not set, and use that in all places to query the
entropy device.

This allows using architectural drivers which do not have a DT
node.

Signed-off-by: Christoph Busold <cbusold@qti.qualcomm.com>
2026-05-06 07:05:12 +02:00
Way Young
31222decf0 drivers: usb_c: tcpc: fix PD control msg TX
Issue found in tcpci_tcpm_transmit_data():

1. Control messages (0 data objects) caused cnt=0, skipping the
   TX buffer write entirely. Fix by gating on msg->type instead.

Fixes #105736

Signed-off-by: Way Young <wayyoung@gmail.com>
2026-05-05 14:07:31 -05:00
Jamie McCrae
3b9cd7b9cb drivers: console: uart_mcumgr: Add async timeout
Adds a timeout which is non-0 for this driver, Kconfig based on
commit by Jordan Yates:
  95d8deb572

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-05-05 14:07:17 -05:00
Vincent Tardy
416b4ea4a5 drivers: ieee802154: stm32wba: error code update
update the ieee802154 driver to be compliant
with LL update integrating 802.15.4 error code
unification change

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-05-05 14:07:04 -05:00
Karthikeyan Krishnasamy
a416d1f89b drivers: dma: add ti mspm0 dma driver support
Add DMA driver support for Texas Instruments MSPM0 Family Series.

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
2026-05-05 15:59:28 +01:00
Holt Sun
0c4382ae5e drivers: timer: keep mcux_lptmr policy explicit
Selecting MCUX_LPTMR_TIMER directly from
/chosen/zephyr,system-timer broadens the default behavior for
any SoC DTSI that now sets the chosen node. KE1xF only
intends to use LPTMR under PM, while MCX-W7xx and i.MX95 M7
still require their SoC-specific selection rules.

Keep the generic Kconfig selection policy implicit and retain
the SoC-specific enablement rules in the MCX-W7xx and i.MX95
M7 defconfigs.

This keeps the chosen-based instance selection while avoiding
unintended system timer changes outside the narrow fix scope.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-05-05 15:59:14 +01:00
Harini T
fce421385b drivers: mbox: xlnx_ipi: Fix code formatting in macro section
Run clang-format to align backslash continuations and line
wrapping in device instantiation macros.

Signed-off-by: Harini T <harini.t@amd.com>
2026-05-05 15:58:50 +01:00
Harini T
148afb6e4b drivers: mbox: xlnx_ipi: Fix storage-class specifier ordering
Change 'const static' to 'static const' to follow C convention
and avoid -Wold-style-declaration warning.

Signed-off-by: Harini T <harini.t@amd.com>
2026-05-05 15:58:50 +01:00
Harini T
9ef132320a drivers: mbox: xlnx_ipi: Fix RX message buffer offset in ISR
The ISR was computing the receive buffer offset using the host's
msg_base and remote_ipi_id, which points to the outbound (TX) buffer.
Fix to use the remote's msg_base and host's ipi_id to correctly read
from the inbound (RX) buffer.

TX (send): off = parent_msg_base + (remote_id × BUF_STRIDE)
RX (recv): off = remote_msg_base + (host_id   × BUF_STRIDE)

Signed-off-by: Harini T <harini.t@amd.com>
2026-05-05 15:58:50 +01:00
Ben Levinsky
742adc00ad drivers: mbox: mbox_xlnx_ipi: Update init structures to be static
Make init structures static so that they are not exposed externally.

This also ensures the structures are stored in data section

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Signed-off-by: Harini T <harini.t@amd.com>
2026-05-05 15:58:50 +01:00
Mario Paja
89ce9e6b54 drivers: i2s: stm32 i2s add more log information
These changes add some more verbose information to
log possible errors on the driver.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2026-05-05 15:58:02 +01:00
Fin Maaß
577d144e29 drivers: virtio: select PCIE if needed
VIRTIO_PCI should select PCIE,
as it is on the pcie bus,

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-05 15:57:48 +01:00
Fin Maaß
9aaecb709c net: nsos: move NET_DEVICE_OFFLOAD_INIT to the top
By moving NET_DEVICE_OFFLOAD_INIT, we no longer need
to use the internal NET_IF_DECLARE macro.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-05 15:57:37 +01:00
Fin Maaß
254dc32eae net: nsos: remove empty enable function
the enable function is a optional function,
therefore we can remove it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-05 15:57:37 +01:00
Jacob Schloss
d3f409d888 drivers: rtc: rv3032: Restore configuration of backup reg
RV3032 PMU register should be set from DTS info, but is always being
set to 0 which prevents backup power source configuration.

Restore building PMU reg from DTS.

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
2026-05-05 09:50:44 +02:00
Kirill Shypachov
31bd0c2f4d drivers: flash: stm32_ospi: fix memory mapped mode
Set the OSPI memory mapped timeout period to avoid keeping the chip
select line asserted indefinitely after memory mapped accesses.

This is needed when OSPI1 and OSPI2 operate simultaneously with shared
IO0-IO3 and CLK lines, and both instances use memory mapped mode.

The timeout period follows the recommendation from the STM32U575xx and
STM32U585xx device errata, ES0499 section 2.6.4.

Allow dqs-port to be set to 0. The STM32 HAL uses value 0 to indicate
that the DQS port is not used.

Update the debug log printed when CONFIG_STM32_MEMMAP is not enabled,
because stm32_ospi_set_memorymap() is not called in that case.

Signed-off-by: Kirill Shypachov <kshypachov@outlook.com>
2026-05-05 09:50:22 +02:00
Patryk Koscik
783a780db6 drivers: watchdog: gecko: add Series 0 support
The EFM32HG (Series 0) WDOG has no IRQ support, no window mode
and no reset-disable bit.

Guard the logic with HAL feature macros and use `IF_ENABLED` with
`DT_INST_IRQ_HAS_IDX` for conditional IRQ setup.

Add the `wdog0` node to the EFM32HG device tree.

Signed-off-by: Patryk Koscik <pkoscik@antmicro.com>
2026-05-05 09:48:35 +02:00
Brett Peterson
b2bb1ab932 drivers: i2s: pse84 adding support for larger block sizes
Adds support to the infineon i2s driver for arbitrary memory block
sizes. The driver was previously limited to block sizes that matched the
hardware FIFOs.

Signed-off-by: Brett Peterson <brett.peterson@infineon.com>
2026-05-05 09:47:55 +02:00
Fabio Baltieri
d46a9afe3a i2c: stm32: use the generic I2C_TRANSFER_TIMEOUT_MS option
Use the generic I2C_TRANSFER_TIMEOUT_MS.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-05 09:47:27 +02:00
Fabio Baltieri
172139d31f i2c: npcx: use the generic I2C_TRANSFER_TIMEOUT_MS option
Use the generic I2C_TRANSFER_TIMEOUT_MS.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-05 09:47:27 +02:00
Fabio Baltieri
10f3251be4 i2c: nrfx: use the generic I2C_TRANSFER_TIMEOUT_MS option
Use the generic I2C_TRANSFER_TIMEOUT_MS.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-05 09:47:27 +02:00
Fabio Baltieri
37fb15e9ea i2c: add a generic I2C_TRANSFER_TIMEOUT_MS option
Add a generic I2C_TRANSFER_TIMEOUT_MS option, not tied to any specific
driver, as well as a I2C_TRANSFER_TIMEOUT helper to handle conversions
and infinite timeout and a helper for driver that only supports finite
timeouts.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-05 09:47:27 +02:00
Tanguy Raufflet
8cd2b2cd87 drivers: display: ssd1306: remove i2c_burst_write usage
As mentioned in the i2c_burst_write documentation, this API may not be
supported by all I2C devices. The recommendation from this documentation
is to use i2c_write with a buffer containing the combined address and
data.

The ssd1306 driver was working well when using I2C but not when using
I2C over I3C. In this case, the control command was sent in a separate
transaction, which the SSD1306 does not support. To fix this issue, we
should apply the recommended approach and use i2c_write instead of
i2c_burst_write. The solution implemented uses chunks to avoid stack
overflow when using large buffers (it can be up to 1 kB).

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2026-05-04 22:07:19 +02:00
Fin Maaß
38463022d1 drivers: ethernet: phy: add condition for the plca related api functions
the plca related api functions are only needed
for T1S ethernet phys, therefore hide them
behind a Kconfig, that is selected from the phy,
so we don't include these if they are not needed.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-04 22:07:16 +02:00
Liam Ogletree
dc0b5efd5b drivers: haptics: Fix CS40L5x multi_write behavior with multiple devices
This fix adds a macro for writing register updates in big endian
at compile-time to fix an issue with multi-device configurations.
Previously, the I2C write function would flip the byte order of
arrays unconditionally, which is problematic if arrays are shared
across instances of a driver. Adds a new "raw write" for I2C
transactions where the uint32_t array to write is already in BE32
format.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
e2104b761e drivers: haptics: Fix checkpatch and other warnings for CS40L5x driver
Addresses checkpatch and related warnings, including:

 - Update select files within Cirrus haptics subdirectory to not have
execute permissions.

 - Fixes identified warnings by adding `const` where appropriate.

 - Add `__maybe_unused` qualifiers where appropriate.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
0b1929a116 drivers: haptics: Split compiled source files by Kconfig
Because I2C- and SPI-related source files only need to be compiled
if corresponding Kconfig options are enabled, update CMakeLists.txt
accordingly.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
1923fb031f drivers: haptics: Add software reset functionality to CS40L5x driver
Add support for software resets in case no reset GPIO can be provided.
Add a mailbox write to prevent hibernation during bringup because
we can no longer rely on a hardware reset to make sure the device is
not hibernating.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
e1979eda95 drivers: haptics: Logging cleanup in CS40L5x driver
Remove unnecessary debug statements, change warning and error logs
to debug statements where appropriate, add return statements, and
refactor accordingly.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
3875014117 drivers: haptics: Simplify CS40L5x haptics logging function
Rather than return the current logging state on success and an
error code on failure (without real benefit), simplify the
function to return success or failure, which also simplifies
the implementation.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
71d37e0087 drivers: haptics: Add mutex locks to CS40L5x API functions
Add mutex locks and unlocks where appropriate in the CS40L5x driver.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
4cc0912b52 drivers: haptics: Update error message and handling in CS40L5x driver
This interrupt indicates that the current was limited, not that
an overcurrent condition was detected. Since it is not a fatal
error, remove the addition to error_bitmask and correct the
language.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
547a0cb0a2 drivers: haptics: Simplify CS40L5x driver trigger/event logging
The initial driver implementation used ring buffers, kept a private
variable to count "effects in flight", and register GPIO callbacks
to log playback events, but these ultimately bloat the driver and
introduce new issues where a dropped start or complete playback can
force the driver into a bad state. Additionally, the mailbox events
already provide sufficient log information if needed. As a result,
let's simplify the driver's logging mechanisms.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
a58dd72beb drivers: haptics: Add OTP ID check in CS40L5x driver
Add check for OTP ID to ensure a valid device is being used.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
ddb0b1d9df drivers: haptics: Macro cleanup in CS40L5x driver
The register and address width macros are used across files, so
remove duplicates and expose in the private header file.

Ensure macros match the datasheets where appropriate, and
organize the macros more clearly. Add unsigned specifiers for
clarity.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
f8a1ab873f drivers: haptics: Add device-specific compatibles for variants
Split the generic cirrus,cs40l5x compatible into device-specific
variants. Update the driver and Kconfig  accordingly. Update the
CRD40L50 demonstration board's compatible to cirrus,cs40l50. Move
the device ID from the data struct to the config struct. Move uses
of DT_ANY_INST_HAS_PROP_STATUS_OKAY() and similar macros from the
device driver to Kconfig to support new DT_DRV_COMPAT usage in the
driver.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
1bd8d81080 drivers: haptics: Split CS40L5x header into private and public headers
Many structures and functions in the public CS40L5x do not need to be
exposed to userspace. Split the header accordingly into private
and public headers, and remove comments accordingly.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Liam Ogletree
013af9a021 drivers: haptics: Non-behavioral, style changes to CS40L5x driver
This PR provides non-behavorial changes, including:

 - Removing unused header files.

 - Removing unnecessary (void) casts for void functions.

 - Simplifying devicetree API macros where appropriate.

 - Removing unnecessary variables from config/data structs.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-05-04 22:06:55 +02:00
Fin Maaß
0a58c2a1d6 drivers: ethernet: e1000: select PCIE
devices on the pcie bus should select PCIE,
just like SPI devices select SPI.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-05-04 21:59:21 +02:00