Commit graph zephyr/drivers
Author SHA1 Message Date
Måns Ansgariusson
0339c3a79f drivers: i2s: sam_ssc: use sys/ringq.h instead of ring_buffer
The SSC I2S driver was using a custom ring buffer implementation for
buffering audio data. This commit replaces the custom ring_buffer
implementation with the sys_ringq implementation to improve
maintainability and code reuse.

Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
2026-04-29 16:28:23 -04:00
Måns Ansgariusson
c2bc4b4864 drivers: i2s: litex: ring_buffer => ringq
Replacing the i2s_litex ring_buffer implementation with the
sys_ringq implementation to improve maintainability and code reuse.

Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
2026-04-29 16:28:23 -04:00
Måns Ansgariusson
bde9f88ad1 drivers: console: switch from ring_buf_item to ring_buf
This commit updates the ipm_console_receiver driver to use the standard
ring_buf API instead of ring_buf_item*.

Since the ipm_console driver operates at the byte level, there is no need
to use the item-level API. This makes way for the removal of ring_buf_item
api in the future.

Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
2026-04-29 16:28:23 -04:00
Måns Ansgariusson
f62dce2d0b drivers: input: tsc_keys: Use fifo abstraction for input events
Replace the ring buffer–based event queue with the new sys_ringq API to
simplify input event handling. The sys_ringq abstraction removes the need
for manual item size management and improves readability by removing logic
regarding item boundries.

Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
2026-04-29 16:28:23 -04:00
Fin Maaß
15e565514f drivers: ethernet: wifi: remove redundant net_if_carrier_on()
For ethernet and wifi drivers the carrier
is on by default, no need to set it up in the
iface init again.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-29 11:55:10 -05:00
Zayne Stites
059fca326c drivers: usb: udc: Add Infineon vendor quirks
Add Infineon vendor quirks to the UDC DW2 implementation.  This
ties to the infineon,usbhs binding.

Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
2026-04-29 11:53:30 -05:00
Girinandha Manivelpandiyan
394a227232 drivers: crypto: mspm0: Add support for TI MSPM0 AES module
add driver support for TI MSPM0 AES module

Introduced a hardware accelerated AES driver for the TI MSPM0
enable support for encryption and decryption using ECB and CBC mode
of operation.

Signed-off-by: Girinandha Manivelpandiyan <girinandha@linumiz.com>
2026-04-29 06:37:12 -05:00
Martin Hoff
4503dab4a5 drivers: gpio: siwx91x: enable uulp gpio wakeup interrupt feature
This patch handles UULP GPIO configuration when the GPIO_INT_WAKEUP
flag is set. It allows the interrupt to wake the device from deep sleep.
The code has been tested by configuring UULP GPIO 2 (button_0) as a
wakeup interrupt on the siwx91x_rb4338a board.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2026-04-29 06:25:46 -05:00
Chun-Chieh Li
164ad704ba drivers: usb: udc: numaker: support m335x usbd
Add support for Nuvoton NuMaker SoC series M3351 USBD

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-04-29 10:00:37 +02:00
Albort Xue
b64b88c434 drivers: flash: mcux_flexspi: Add support for ISSI IS25LP/WP256
Add JEDEC IDs 0x19609D (IS25LP256) and 0x19709D (IS25WP256) to the
IS25 family switch. Like other IS25 variants, dummy cycles are reset
before SFDP probe, which handles the full LUT configuration.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-04-29 10:00:20 +02:00
Sylvio Alves
e7c1ab8965 drivers: mbox: esp32: replace cross-core atomic with busy flag
The atomic_cas/atomic_set lock in shared LP RAM does not work
once RISC-V hardware atomics are used: lr.w/sc.w reservation
sets are not honored across the HP and LP harts.

Replace it with a per-direction volatile busy flag and a memory
fence. Sender claims the slot under irq_lock and returns -EBUSY
if the receiver has not consumed the previous message; receiver
clears the flag after the callback runs. Each transition has a
single writer, so no atomic is needed.

Returning -EBUSY matches the pattern used by other Zephyr mbox
drivers (ti_secproxy, renesas_ra_ipc, rpi_pico, xlnx_ipi_mailbox,
ti_omap, mhuv3, renesas_rz_mhu) and lets the caller decide the
retry policy.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-04-29 09:59:37 +02:00
Daniel Baluta
e1cae133a1 drivers: sdma: Fix SDMA compilation error
There is a typo in the DT_INST_IRQ_ macro. SDMA was used
until now only with HIFI4 DSP (xtensa) and for this arch
priority parameter is ignored.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2026-04-29 09:56:47 +02:00
Jordan Yates
ec6ac10de2 audio: dmic_nrfx_pdm: support gain configuration
Apply the requested stream gain to the two audio channels.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-04-29 09:56:14 +02:00
Julien Racki
79ce80e73c drivers: ethernet: stm32: Remove the list of enabled variants
Remove the list of supported boards from the ETH_STM32_HAL
menuconfig description.

Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2026-04-28 22:08:10 +02:00
Chris Ruehl
82b898ced7 auxdisplay: tm1637: Support up to 6 digit displays
The TM1637 support up to 6 digits, or just a single one.
Therefore, update the driver and read the column count from
the device tree to set the numbers of digits in use.

Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
2026-04-28 22:07:14 +02:00
Nikita Schewtschuk
be050ec889 drivers: modem: modem_cellular: populate IMSI and ICCID for nRF9160 SLM
The nRF9160 SLM init script does not query IMSI or ICCID. These fields
require SIM access, which is only available after the modem enters
airplane mode (AT+CFUN=4).

Add AT+CIMI (IMSI) and AT%XICCID (ICCID) to the dial script after
AT+CFUN=4, where the SIM is initialised and accessible. AT%XICCID is a
Nordic-proprietary command whose response carries a %XICCID: prefix,
distinct from the +ICCID: prefix used by other modems. Add a dedicated
xiccid_match for this response format alongside the existing iccid_match
and qccid_match definitions.

Signed-off-by: Nikita Schewtschuk <nik@schew.dev>
2026-04-28 17:53:45 +02:00
Ren Chen
124062c965 drivers: timer: it51xxx: add kconfig to select count-up in combination mode
For next-generation it51xxx series, external timers switch
from count-up to count-down when combination mode is enabled.

This change introduces Kconfig option to allow selecting
count-up mode according to hardware design.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-04-28 15:22:59 +02:00
Siva Subramanian Ravi Saravanan
921b4a38c7 drivers: dai: add AMD ACP SoundWire DAI
Add SoundWire Digital Audio Interface (DAI) driver for AMD
ACP 7.0 audio DSP. This enables audio streaming configuration
for SoundWire-connected audio peripherals and codecs.

Also adds DAI_AMD_SDW type to the DAI subsystem enum.

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
2026-04-28 15:22:12 +02:00
Siva Subramanian Ravi Saravanan
56cec1b755 drivers: dma: add AMD ACP host and SoundWire DMA
Add DMA drivers for AMD ACP 7.0 audio DSP:
- Host DMA driver for memory transfers between system memory
  and ACP audio processing units
- SoundWire DMA driver for audio streaming over SoundWire bus

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
2026-04-28 15:22:12 +02:00
Siva Subramanian Ravi Saravanan
9a9e102661 drivers: intc: add AMD ACP interrupt controller
Add interrupt controller driver for AMD ACP 7.0 audio DSP.
Supports up to 9 interrupt sources including DMA and SoundWire
peripheral interrupts via a second-level dispatch mechanism.

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
2026-04-28 15:22:12 +02:00
Albort Xue
8e51e2eb10 driver: timer: mcux_lptmr: add wakeup source support
Add support for configuring the LPTMR as a wakeup source by integrating
with the WUC (Wakeup Controller) subsystem.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-04-28 15:21:15 +02:00
Alberto Escolar Piedras
4ab570427c sensor: pac194x: Fix multiple build warnings with clang
Fix multiple minor issues which trigger build warnings with clang,
including:
* label followed by a declaration is a C23 extension
* duplicate 'const' declaration specifier (DEVICE_API already has const)

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-04-28 11:18:04 +02:00
Carlo Caione
7d5a4dcb1a drivers: lora: pass modem config as const pointer
The configuration passed to lora_config() is not supposed to be modified by
the driver. Make it const to save on RAM.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-04-28 00:27:18 +01:00
Stefan Gloor
ece9ac4213 drivers: pwm: add generic gpio bitbang pwm
Add a generic software PWM driver as a fallback
when no dedicated hardware PWM pins are available.
This implementation leverages a single hardware
timer interrupt as a time base to derive an
arbitrary number of software-controlled PWM channels.
The period is the same for all channels.

This enables use of LED brightness and blink APIs.
Tested on Nucleo H563ZI with this overlay:

/ {
    status_leds: status_leds {
        compatible = "pwm-leds";

        status_led_1: status_led_1 {
            pwms = <&soft_pwm 0 PWM_MSEC(10) PWM_POLARITY_NORMAL>;
            label = "1";
        };
    };

    soft_pwm: soft_pwm {
        compatible = "zephyr,pwm-bitbang";
        #pwm-cells = <3>;
        timer = <&tim6_counter>;
        pwm-gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
    };
};

&timers6 {
    status = "okay";
    st,prescaler = <24999>;
    tim6_counter: counter {
        status = "okay";
    };
};

Assisted-by: GitHub Copilot:claude-opus-4.6
Signed-off-by: Stefan Gloor <stefan.gloor@siemens.com>
2026-04-28 00:26:06 +01:00
Wojciech Macek
2613230e73 sensor: pac194x: add driver for Microchip PAC194x power monitors
Add a comprehensive driver for the Microchip PAC194x/195x family of
multi-channel power monitors. This driver supports VBUS, VSENSE,
and power accumulation measurements.

Key features and implementation details:
- Support for PAC1941/42/43/44 (9V FSR) and PAC1951/52/53/54 (32V FSR).
- Efficient I2C handling: uses per-channel burst reads to optimize
  bus bandwidth based on enabled channels.
- Flexible Refresh Modes: introduced SENSOR_ATTR_REFRESH_MODE to
  allow users to choose between AUTO_WAIT (synchronous),
  AUTO_NOWAIT (asynchronous/latched), and MANUAL modes.
- Broadcast Support: added a force refresh command using I2C
  General Call (0x00) to synchronize snapshots across multiple
  sensors (up to 16 instances) simultaneously.
- Configurable range: support for Unipolar, Bipolar, and Bipolar
  Half FSR modes via Devicetree.

Tested on RISC-V (ESP32-C3) with 16 PAC1944 instances.

Signed-off-by: Wojciech Macek <wmacek@google.com>
2026-04-28 00:25:55 +01:00
William Markezana
ae15ea1438 drivers: flash: i2c: add BL808 compatibility
Extend flash and I2C drivers to support BL808 register base addresses
and SoC-specific configuration guards.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-04-28 00:25:43 +01:00
William Markezana
2b7f32de58 drivers: share BL61x drivers with BL808
Rename BL61x GPIO and pinctrl drivers to bl61x_808 variants since
BL808 shares identical register layouts. Update compatible strings,
Kconfig, CMakeLists, and BL61x device tree accordingly. Extend the
DMA and IR receiver drivers' BL61x guards to also cover BL808.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-04-28 00:25:43 +01:00
William Markezana
402d9ee859 drivers: clock: add BL808 clock control driver
Add clock control driver for BL808 WiFi PLL initialization, root clock
switching, and peripheral clock gating. Handles flash clock
configuration and mtimer divider adjustment for PLL-derived FCLK.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-04-28 00:25:43 +01:00
minyuan xue
7636617170 drivers: rtc: add ameba rtc driver support.
Add realtek ameba rtc driver.

Signed-off-by: minyuan xue <minyuan_xue@realsil.com.cn>
2026-04-27 19:05:18 +01:00
Chaitanya Tata
080b4f48fb drivers: nrf_wifi: Fix double counting for raw TX
Raw TX data path already handle proper counting of errors in TX, do not
double count.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-04-27 19:04:28 +01:00
Hake Huang
a4cd6a3ba4 drivers: ethernet: harden DTCM DMA handling on Cortex-M7
Combine the Cortex-M7 ENET workaround updates into one commit.

- clear CACHE_ENET on i.MX RT11xx Cortex-M7 for ERR050396
- disable ETH_NXP_ENET_USE_DTCM_FOR_DMA_BUFFER by default on Cortex-M7
- keep the final Kconfig condition independent of
  DT_HAS_NXP_ENET1G_ENABLED

This avoids touching the same Kconfig and SoC files in follow-up
commits while preserving the intended behavior for PR #106679.

Validation:
- branch history squashed so workaround files are updated once
  in the series

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2026-04-27 19:03:54 +01:00
Hake Huang
99bb98e561 drivers: ethernet: handle ENET RX buffer interrupts
Handle both RX frame and RX buffer interrupts in the NXP ENET driver.
This matches the MCUX HAL interrupt handling and avoids leaving RX work
queued behind an unhandled RX buffer interrupt source.

Validation:
- built samples/net/dhcpv4_client for mimxrt1170_evk@B/mimxrt1176/cm7
  with boards/nxp/mimxrt1170_evk/dts/nxp,enet1g.overlay
- verified MCUX HAL uses RX frame and RX buffer interrupts together

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2026-04-27 19:03:54 +01:00
Yves Wang
ae0dbc71a2 drivers: rtc: add NXP RTC analog driver
Add driver for the NXP RTC analog module found on MCX L series
SoCs. This RTC supports BCD time/date mode with hundredths-of-second
resolution and 3 independent alarms.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-04-27 19:03:43 +01:00
Fabio Baltieri
dbcba4794a sensors: ite_vcmp: fix build error
Fix build error:

error: '((const struct vcmp_it8xxx2_config *)config)->adc' is a pointer

Tested with: west build -p -b it8xxx2_evb samples/sensor/sensor_shell
-DCONFIG_ADC=y -DCONFIG_COMPARATOR=y -DCONFIG_LOG=y

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-04-27 19:02:37 +01:00
Alexpandi Muniyandi
a19c1a3670 drivers: i2c: set xferPending for write-read transfer
Set tx_config.xferPending when a read follows the write so the PDL
holds the bus and generates a repeated START instead of STOP.

Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
2026-04-27 17:27:06 +02:00
Alexpandi Muniyandi
dc9d991606 drivers: i2c: fix double semaphore give on NAK
The PDL bundles completion (RD_CMPLT/WR_CMPLT) and ERR events into
a single cbEvents() call. The handler gave transfer_sem twice, leaking
count to the next transfer on i2c_scan.

Make the error and completion paths mutually exclusive with else-if
so exactly one k_sem_give() occurs per callback.

Signed-off-by: Alexpandi Muniyandi <alexpandi@linumiz.com>
2026-04-27 17:27:06 +02:00
Ashirwad Paswan
0e3ccfe455 serial: stm32: toggle UE when re-enabling RX DMA to handle U5/H5 errata
On STM32H5 / STM32U5 with GPDMA the USART can stop generating DMA RX
requests after uart_rx_disable() clears DMAR and DMAR is later re-enabled.
Toggling the USART enable (UE) before re-asserting DMAR resets the USART
internal state machine and allows RX DMA requests to resume.

Fixes: #101345

signed-off-by: Ashirwad Paswan <ashi06712@gmail.com>
2026-04-27 17:23:26 +02:00
Andreas Weissel
e682185600 drivers: usb: dwc2: Add support for Synaptics SR100 SoCs
Add USB device driver support for Synaptics SR100 devices.

Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
2026-04-27 17:22:54 +02:00
Sara Touqan
0432793250 drivers: mspi: stm32: refactor xspi/ospi drivers
This commit edits mspi_stm32_xspi and
mspi_stm32_ospi drivers to include S_D_D
data rate support and refactor some blocks.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Sarah Younis <zephyr@exalt.ps>
2026-04-27 14:24:44 +02:00
Sarah Younis
45f26da9c8 drivers: mspi: stm32: add xspi/ospi timing support
This commit extends mspi_stm32_xspi and
mspi_stm32_ospi drivers to add timing support
required for external PSRAM devices.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Sarah Younis <zephyr@exalt.ps>
2026-04-27 14:24:44 +02:00
Sarah Younis
44d34aaade drivers: memc: mspi_aps_z8: Add APS256/APS6408L RLC/WLC mapping
This commit adds support for APS256 and APS6408L in RLC/WLC
configuration. This includes a dedicated mapping for these
variants.
also this commit updates:
   - Read/write length handling for APS256/APS6408L
   - Vendor ID read sequence to support APS256/APS6408L
     register behavior

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Sarah Younis <zephyr@exalt.ps>
2026-04-27 14:24:44 +02:00
Sara Touqan
83eb8da4ae drivers: memc: mspi_aps_z8: add STM32 timing support
This commit introduces the stm32 timing configuration

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
Signed-off-by: Sarah Younis <zephyr@exalt.ps>
2026-04-27 14:24:44 +02:00
Mathieu Choplain
f4612856e3 drivers: pinctrl: stm32: rework format of pinctrl_soc_pin_t type
The `pinctrl_soc_pin_t` format occupied two uint32_t even though all info
it stores can be compressed in 32 bits only, and also didn't map very well
to the hardware (especially on STM32F1). Due to defects, the format was
also NOT what the `stm32_gpioport_configure_pin()` function consumed to
actually configure a GPIO port, requiring additional decoding/manipulation
logic.

Introduce a vastly reworked format which only requires 32-bit per pinctrl
entry and maps nicely to hardware and becomes the new format consumed by
stm32_gpioport_configure_pin(). This heavily simplifies the pinctrl driver
since it no longer needs to examine the actual values (except to determine
the target GPIO port and pin - this is done on purpose!). The GPIO driver
converts Zephyr flags to this new format too.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-04-27 14:24:18 +02:00
Mathieu Choplain
998c600dc5 drivers: gpio: stm32: handle GP OUT with PU/PD more cleanly on STM32F1
Instead of silently ignoring the flags, warn the user when an illegal
GPIO configuration is provided on STM32F1. To avoid breaking backwards
compatibility and tests, the old behavior is however retained.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-04-27 14:24:18 +02:00
Mathieu Choplain
af45174c96 drivers: gpio: stm32: simplify flag translation logic
Simplify the logic translating Zephyr GPIO flags into STM32-specific flags:
- flatten if chain for output type determination
- change how input modes are handled
    - introduce new INPUT_FLOAT/INPUT_PUPD pincfg values which are used for
      input mode depending on whether or not user requests pull-up/down
    - these values can have the PULL_UP / PULL_DOWN OR'ed into them
- share PU/PD decoding between INPUT and OUTPUT mode

While at it, also return -ENOTSUP to caller if attempting to set a pull-up
or pull-down on a disabled pin instead of silently discarding the request.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-04-27 14:24:18 +02:00
Mathieu Choplain
50aae9065d drivers: pinctrl: stm32: apply GP output level from common code
Move the logic which sets the output level based on configuration to the
common `stm32_gpioport_configure_pin()` function to reduce duplication.
To support the GPIO use case where a pin's configuration is changed without
modifying its output state, a new parameter is introduced which specifies
whether or not the output level should be modified.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-04-27 14:24:18 +02:00
Mathieu Choplain
8e311dd5e0 drivers: pinctrl: stm32: use CMSIS-like defines for bit definitions
Use `_Pos`/`_Msk` suffixed defines for pinctrl format bits definitions and
declare `_Msk` already shifted. This is aligned with the CMSIS definitions
format which shorter, easier to understand and enables use of
macros _FLD2VAL/_VAL2FLD.

Update all code using these defines accordingly.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-04-27 14:24:18 +02:00
Marcin Niestroj
5cd44dbaaa net: nsos: fix F_SETFL flags conversion
Flags were already converted to 'ret', but this value was not used in the
nsos_adapt_fcntl_setfl() invocation. Introduce 'mid_flags' to make it more
readable and pass that value to nsos_adapt_fcntl_setfl() for proper flags
conversion.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2026-04-27 14:20:51 +02:00
Marcin Niestroj
a401605ad7 net: nsos: fix nsos_adapt_dup() error conversion
Return that "mid" namespaced error directly and do not try to convert it
again.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2026-04-27 14:20:51 +02:00
Marcin Niestroj
942b60b3e9 net: nsos: fix nsos_adapt_getsockopt() error handling
This function already returns errors in "mid" namespace, so return
NSOS_MID_SO_ERROR in "mid" namespace, so propagate that value directly.
This error is converted to Zephyr error namespace in nsos_connect().

While at it, add a comment related to the 'ret' variable.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2026-04-27 14:20:51 +02:00