Commit graph zephyr/drivers
Author SHA1 Message Date
Fin Maaß
c9835defa4 drivers: ethernet: dwmac: put in its own dir
put the dwmac driver into a separate dir.

Signed-off-by: Fin Maaß <info@finmaass.de>
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-16 10:28:11 +02:00
Fin Maaß
8f9cd431af drivers: ethernet: dwmac: select CACHE_MANAGEMENT
If we have a Dcache select CACHE_MANAGEMENT

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-16 10:28:11 +02:00
Vincent Tardy
7401a1259a bluetooth: stm32wbax: add BT_STM32WBA_BASIC_PLUS_LIB KConfig
Add new KConfig BT_STM32WBA_BASIC_PLUS_LIB specifying the
configuration of the stm32wba ble library for bluetooth
basic plus features.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-06-16 10:27:55 +02:00
Sylvio Alves
de5f5a9fd0 drivers: ieee802154: esp32: handle rx queue-full case
Replace a leftover placeholder in the rx queue-full branch with an
error log.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-06-16 10:27:27 +02:00
Zayne Stites
96270c6d7d drivers: pinctrl: Add cfgout3 to infineon driver
Add CY_GPIO_DM_CFGOUT3_STRONG_PULLUP_HIGHZ support to pinctrl
driver for Infineon

Assisted-by: Claude:claude-opus-4.7

Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
2026-06-16 08:37:05 +02:00
Felix Wang
6f99e307f1 drivers: counter: mcux_lptmr: make re-arm check and stop atomic
The alarm ISR read data->alarm_active under the spinlock into a local
"rearmed" snapshot, released the lock, and only then acted on it by
stopping and reprogramming the LPTMR. That split the check from the
action: on SMP (or a nested context) a concurrent
counter_set_channel_alarm() could re-arm the alarm in the window
between the unlock and LPTMR_StopTimer(), and its freshly programmed
period/run state would be clobbered by the restore here.

Hold the lock across both the re-arm check and the stop/restore so the
decision and the HW action are atomic with respect to other lock
holders. Whichever context sets alarm_active under the lock owns the
timer configuration; the ISR only stops/restores when it observes
alarm_active == false while holding the lock, so it can no longer
overwrite a concurrent re-arm.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-06-16 08:36:18 +02:00
Felix Wang
2f091737dd drivers: counter: mcux_lptmr: defer alarm stop until after callback
The alarm ISR was stopping and reprogramming the LPTMR before
invoking the user callback. Because LPTMR_StopTimer() resets the
counter back to zero, counter_get_value() called from inside the
callback observed 0 while the ticks argument still reflected the
pre-stop count. The single_shot_alarm scenarios in
tests/drivers/counter/counter_basic_api caught this as a large
diff between reported alarm and observed counter on
frdm_imxrt1186/mimxrt1186/cm7.

Move LPTMR_StopTimer() and LPTMR_SetTimerPeriod() to run after the
callback, skip them when the callback re-armed a new alarm via
counter_set_channel_alarm(): the counter API documents that the
channel becomes available inside the expiration handler and that
re-arming is allowed there.

Verified by building tests/drivers/counter/counter_basic_api for
frdm_imxrt1186/mimxrt1186/cm7 with armgcc.

Fixes #110250

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-06-16 08:36:18 +02:00
Henrik Brix Andersen
d393623364 drivers: can: bosch: m_can: switch to macro for declaring data struct
Switch to using a macro for declaring the Bosch M_CAN driver data struct
and have the macro statically initialize the k_mutex structures at build
time.

The "lock" mutex can be used by the vendor-specific driver front-ends
before the can_mcan_init() function is called (e.g. for configuring the
Message RAM), which will result in attempts to lock an unitialized k_mutex.

Fixes: #111031

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-06-15 18:37:04 -04:00
Marek Matej
8aaabb2a94 drivers: ieee802154: ESP32 buffered receiver path and HW caps
Add frame buffering before delivering packets to speed up HAL frame
release.
Update IEEE802154 hw capabilities.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2026-06-15 18:35:57 -04:00
Daniele Aimo
dd74e09411 drivers: audio: dmic_stm32_dfsdm: added DMA support to the driver
- DMA presence is detected from the definition in the device tree
and properties are added in the filter configuration structure
- DMA buffer is internally allocated depending on a configuration parameter
runtime checks are performed to ensure that kslab user allocation is not
too large respect to the internal buffer
- in the configure function the DMA is now configured
- start and stop functions are changed to support DMA if defined
in device tree

Signed-off-by: Daniele Aimo <d.aimo@arduino.cc>
2026-06-15 18:35:39 -04:00
Jérôme Pouiller
f9d47a775f drivers: watchdog: siwx91x: Fix typo
Obviously, siwx91x_WDT_INIT() should be spelled SIWX91X_WDT_INIT()

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-06-15 12:15:58 -04:00
Thomas Lang
2198bd83c8 drivers: ethernet: lan865x allow internal reset pullup
Fixes bug when using an internal pull up resistor on the reset pin

Signed-off-by: Thomas Lang <thomaslang2003@me.com>
2026-06-15 12:14:04 -04:00
Etienne Carriere
0dbc1ecf25 drivers: clock_control: stm32: H7/H7RS PLL1 DIVP can be 1 or even
Add a build assertion to ensure PLL1 DIVP division factor is not
an odd value different from 1 since not allowed as per SoCs reference
manuals.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:13:26 -04:00
Julien Panis
25874ade6f drivers: gpio_rcar: Make driver usable with Gen5
For Gen5 SoCs:
- Register offsets are different.
- The direction (either input or output) must be selected.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
2026-06-15 12:13:17 -04:00
Adrien Ricciardi
7d59a66eb3 drivers: gpio: Add pinctrl support to the R-Car GPIO driver
This is required on modern Zephyr to configure appropriately the pins
for GPIO operations.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
2026-06-15 12:13:17 -04:00
Adrien Ricciardi
31b577827f drivers: gpio: Add generic clock support to the R-Car GPIO driver
Convert the driver clock accesses to use the new generic API, so the
driver can be used on R-Car boards generations 3, 4 and 5 without changes.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
2026-06-15 12:13:17 -04:00
Etienne Carriere
b157387039 drivers: i2c: stm32: Add PM in RTIO drivers controller mode
Add PM support support to STM32 I2C RTIO drivers in controller mode.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
46cc518300 drivers: i2c: stm32: Ensure RTIO sequence is processed in sync operation
Synchronous RTIO I2C operations (RTIO_OP_I2C_CONFIGURE) and unsupported
or invalid RTIO I2C operations do call i2c_rtio_complete() but do not
trigger next message processing. Fix that ensuring synchronous operations
are each related to an RTIO completion notification.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
f1b81c8629 drivers: i2c: stm32: Unused i2c_stm32_start() return code in RTIO drivers
Cleanup i2c_stm32_start() and i2c_stm32_msg_start() regarding their
return values. The return value of the former was not handled and
the later always succeeds.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
b7855d806e drivers: i2c: stm32: Factorize RTIO sequence completion
Factorize STM32 I2C RTIO sequence completion instructions into a
common i2c_stm32_rtio_complete() helper function that applies to both
I2C STM32 v1 and v2 driver flavors.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
63d739b4e5 drivers: i2c: stm32: Test successful PM runtime get
Report error returned by pm_device_runtime_get() in STM32 I2C drivers.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
b2d02fa29e drivers: i2c: stm32: Add PM runtime management in target modes
Add PM runtime support to I2C STM32 v1 driver in target mode in both
RTIO and non-RTIO drivers.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
0e5013ab9b drivers: i2c: stm32: Fix unbalanced PM runtime state in driver v2
Correct unbalanced PM runtime device state in STM32 I2C v2 RTIO
and non-RTIO drivers in target client registering/unregistering.

In the target register sequence, put device runtime PM resources upon
on failure to register.

In the target un-registering sequence, put device runtime PM resources
when there remain a target as when 2 targets are registered, each has
get the device runtime PM resources, hence related reference counter
was incremented twice.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
4835256a55 drivers: i2c: stm32: Don't set target config upon failure
Correct target registering sequence to not store target config upon
registration failure in I2C STM32 v2 drivers as suggested by Copilot [1].

Link: https://github.com/zephyrproject-rtos/zephyr/pull/110623#discussion_r3362750896 [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Etienne Carriere
1832ea0b75 drivers: i2c: stm32: don't leave I2C enable on config failure
Filter out unsupported 10 bit address modes in STM32 I2C v1
driver in target mode before bus is enabled, preventing to leave
it enabled upon such configuration failure.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 12:12:48 -04:00
Krzysztof Chruściński
92b25f7ea4 drivers: serial: nrfx_uarte: Fix instance initialization priority
If UARTE instance is using GPPI during the initialization and GPPI is
using Ironside then that instance need to be initialized once Ironside
and GPPI is initialized. Delay initialization to POST_KERNEL and
derive init priority from Ironside call init priority (+2 as +1 is
used by GPPI).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-06-15 12:10:58 -04:00
Fin Maaß
8d201ae75a drivers: ethernet: remove logs for link up and down
Inside the work that is scheduled by net_eth_carrier_on
and net_eth_carrier_off there is already a log message,
when the carrier changes, we don't need to log the same
info in the ethernet drivers.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-15 10:32:01 +01:00
Carlo Caione
eb092b0f40 drivers: input: add virtio input device driver
Add a driver for VIRTIO input devices. Events are forwarded to the input
subsystem as-is since the event codes match the Linux ones. ABS_X/ABS_Y
values can optionally be scaled to the resolution of a referenced display.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-06-15 10:24:27 +02:00
Holt Sun
40d4cc9180 drivers: counter: add MCUX wake timer driver
Add a counter driver for the MCUX wake timer. The hardware is a
one-shot down-counter with one load/count register, so the driver
uses the register either for periodic top handling or for relative
single-shot alarms.

Absolute alarms are reported as unsupported because programming an
alarm reloads the hardware counter and changes the value space that
an absolute target would be measured against. Clear stale pending IRQ
state around start, stop, cancel, and alarm setup.

Built and ran tests/drivers/counter/counter_basic_api on frdm_mcxa153
with CONFIG_COUNTER_MCUX_WAKE_TIMER_ALARM=y.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-06-15 10:22:32 +02:00
Etienne Carriere
d00eaa7013 dts: bindings: clock: min/max PLL multiplier for STM32Fx series
Set min/max properties for PLL/PLLI2S/PLLSAI multiplier and consider
F401xx and F2xx specific min value at build time in driver implementation.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 10:21:44 +02:00
Etienne Carriere
082b3d29a3 dts: bindings: clock: min/max PLL* mult/div for STM32L4/L5 series
Set min/max properties for PLL/PLLSAI1/PLLSA2 multiplier, input divisor
and PLL/PLLSAI1/PLLSAI2 P divisor on STM32L4/L5 and consider L4 non-L4+
specific ranges at build time in driver implementation.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-06-15 10:21:44 +02:00
Fin Maaß
848db64e8c disk: nvme: enable by default and select PCIE
enable the nvme disk by default, if enabled in the
devicetree, also select all PCIE dependencies.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-06-14 15:33:23 +02:00
Shahin Haque
2788ff0ff7 drivers: led: lp50xx: add pm action for on/off
add functionality to turn off/on led driver lp50xx

Signed-off-by: Shahin Haque <ShahinHaque97@outlook.com>
2026-06-14 15:32:40 +02:00
Fabian Blatz
b54e0ba58f drivers: ethernet: Add missing iface arg Cyclone V Ethernet
Adds the missing network interface arg for stop/start functions.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-06-13 08:35:00 +02:00
Albert Jakieła
2c497f5705 sensor: pac194x: add support for individual channel fetch
Previously, the `pac194x_sample_fetch` function would always read data
from all enabled physical channels over the I2C bus, regardless of which
specific sensor channel was actually requested by the caller. This commit
updates the fetch routine to respect the requested channel.

Signed-off-by: Albert Jakieła <jakiela@google.com>
2026-06-13 08:34:26 +02:00
Albert Jakieła
fa95c398aa sensor: pac194x: Add microchip,refresh-mode property
Add microchip,refresh-mode property to Mictochip PAC194X/195X.
This property allows configuring the sensor's refresh behavior
directly from the devicetree.

Signed-off-by: Albert Jakieła <jakiela@google.com>
2026-06-13 08:34:26 +02:00
minyuan xue
68a13c997f drivers: watchdog: add Realtek Ameba series support
Add Realtek Ameba watchdog driver.

Signed-off-by: minyuan xue <minyuan_xue@realsil.com.cn>
2026-06-13 08:33:54 +02:00
Kai Vehmanen
b8252b99ca drivers: dai: intel: ssp: fill fields directly in get_properties_copy
Move the main property logic to dai_ssp_get_properties_copy() and reuse
it for dai_ssp_get_properties(). This allows to avoid the extra memcpy for
dai_ssp_get_properties_copy().

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-06-12 21:45:47 +02:00
Kai Vehmanen
f2b3b927c7 drivers: dai: intel: ssp: make get_properties safe for concurrency
The current dai_ssp_get_properties() implementation requires additional
layer of locking on user side as the properties object is modified in
the function, but the data is not same for TX and RX directions. If the
DAI is used concurrently for TX and RX, this can lead to a race with
invalid data returned.

Fix the issue and align the ssp driver to other DAI drivers by
separating TX and RX state, and only modifying object for one
direction at a time.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-06-12 21:45:47 +02:00
Richard Mc Sweeney
71b3e03a1c drivers: add FIFO support to pse84 sar
Added FIFO support for PSE84 autanalog SAR. The FIFO is 512 elements
deep. It can be subdivided into x8 64 elements to support 8 independent
streams of ADC data.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-06-12 21:44:21 +02:00
Richard Mc Sweeney
10f7dd7fb1 drivers: add FIR for pse84 autanalog sar
Added support for FIR filters in the PSE84 autanalog SAR ADC. There
are two filters, each supporting up to 64 taps. The output can
optionally be fed into the SAR FIFOs.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Richard Mc Sweeney <Richard.McSweeney@infineon.com>
2026-06-12 21:44:21 +02:00
Mariusz Kryński
47827195c9 drivers: flash: stm32u5/stm32l5 option bytes
expose option bytes reading / writing via flash_ex_op interface
flash_stm32_option_bytes_write fails if flash is not unlocked

Signed-off-by: Mariusz Kryński <mrk@sed.pl>
2026-06-12 21:42:40 +02:00
Kai Vehmanen
8e33acdc81 drivers: dai: intel: alh: fill fields directly in get_properties_copy
Move the main property logic to dai_alh_get_properties_copy() and reuse
it for dai_alh_get_properties(). This allows to avoid the extra memcpy for
dai_alh_get_properties_copy().

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-06-12 15:47:57 +02:00
Kai Vehmanen
98b42eb83e drivers: dai: intel: alh: make get_properties safe for concurrency
The current dai_alh_get_properties() implementation requires additional
layer of locking on user side as the properties object is modified in
the function, but the data is not same for TX and RX directions. If the
DAI is used concurrently for TX and RX, this can lead to a race with
invalid data returned.

Fix the issue and align the alh driver to other DAI drivers by
separating TX and RX state, and only modifying object for one
direction at a time.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-06-12 15:47:57 +02:00
Kai Vehmanen
b470bfce68 drivers: dai: intel: alh: sanity check stream_id in get_properties
dai_alh_get_properties() used the caller-provided stream_id without
any validation. The value is used to index the fixed-size
alh_handshake_map[] array and to compute the FIFO register offset, so
an out-of-range stream_id results in an out-of-bounds read and a bogus
FIFO address.

Reject negative and too-large stream_id values up front and return
NULL. dai_alh_get_properties_copy() already maps a NULL result to
-ENOENT, so the error is propagated cleanly to the caller.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2026-06-12 15:47:57 +02:00
Andrej Butok
00ac22822a drivers: crc: nxp_lpc: advertise CRC-16/ITU-T capability
- Selects CRC_DRIVER_HAS_CRC16_ITU_T for the NXP LPC CRC driver.
- The NXP LPC CRC peripheral is able to compute CRC-16/ITU-T
  (polynomial 0x1021, init 0x0000, noreflection, no XOR-out).
- Tested by private code (Zephyr does not test it).

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2026-06-12 15:32:51 +02:00
Brian Cain
419ec6f09a drivers: counter: fix spinlock leak in counter_renesas_ra_agt
In counter_renesas_ra_agt_cancel_alarm(), the early return when
agtcmai_irq is BSP_IRQ_DISABLED skipped the spinlock release at
the out: label. Convert to goto out pattern to match the style of
the rest of the function. Also fix the out: label to return ret
rather than 0, so FSP errors are correctly propagated.

Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
2026-06-12 15:31:06 +02:00
Qiankun Li
79d1997d86 drivers: wifi: nxp: add Kconfig for SLIM feature
Add NXP_WIFI_SLIM and NXP_WIFI_SLIM_DISABLE_DEBUG Kconfig options
for resource-constrained platforms.

NXP_WIFI_SLIM disables some advanced Wi-Fi features by default.
NXP_WIFI_SLIM_DISABLE_DEBUG disables Wi-Fi error and warning logs.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2026-06-12 15:30:56 +02:00
Benedek Kupper
816ad26d89 drivers: udc_nrf: use out_ack cap to simplify ctrl status out management
The out_ack capability is meant for the exact silicon design that
the nRF chip family uses. By setting it to the correct value, a lot of
workaround code can be cleaned up.

Signed-off-by: Benedek Kupper <kupper.benedek@gmail.com>
2026-06-12 15:30:46 +02:00
Qingling Wu
ed5ceddb97 drivers: wifi: nxp: remove unused NXP Wi-Fi configs
Remove obsolete Kconfig options that are no longer referenced
in the codebase:
- NXP_WIFI_CAPA: uAP Wi-Fi Capability
- NXP_WIFI_EU_VALIDATION: EU Validation Support

Signed-off-by: Qingling Wu <qingling.wu@nxp.com>
2026-06-12 10:07:18 +02:00