Commit graph zephyr/drivers
Author SHA1 Message Date
Maureen Helm
7f777c04e5 drivers: usb: common: stm32: enable ULPI PHY driver for F2/F4 series
The ULPI PHY interface driver (phy_ulpi_itf.c) was only being compiled
for STM32F7X and STM32H7X series, causing build failures on other series
that use external ULPI PHYs, such as STM32F4X boards with ULPI PHYs.

Add missing F2/F4 series to the build condition alongside the existing
F7/H7 series checks. This ensures the ULPI interface driver is compiled
for any F2/F4/F7/H7 board that has a ULPI PHY node in its devicetree.

An alternative approach removing the series checks entirely and just
checking CONFIG_DT_HAS_USB_ULPI_PHY_ENABLED was considered, however
there was a concern that the ULPI interface may have different clock
control bits on other series.

This fixes build failures like "undefined reference to
__device_dts_ord_XXX__stm32_phy" when building for STM32F4 boards with
external ULPI PHYs (e.g., adi_sdp_k1). The build failures were
introduced in commit 8b8321d184.

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2026-04-22 19:20:01 +02:00
Luca Impagliazzo
d8e78f2deb modem_cellular: Add support for Telit LE910C1TX LTE modem
Add support for the Telit LE910C1TX LTE modem, starting from similar
to ME910G1 and ME310G1 modems.

Signed-off-by: Luca Impagliazzo <Luca.Impagliazzo@telit.com>
2026-04-22 19:19:32 +02:00
Guillaume Gautier
0d55eba1b1 drivers: adc: stm32: fix channel 0 setting on stm32h5
On STM32H5, the bit 0 of the Option register of ADC1 controls the channel 0
switch control. It has to be set if either ADC1 or ADC2 wants to use this
channel. Until now, it was enabled only if ADC1 requested channel 0. This
commit fixes this by setting the option bit if channel 0 is used, with no
consideration of the ADC instance.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-04-22 17:14:38 +02:00
Jakub Zymelka
c95d86d6bc drivers: sensor: seeed: grove: Fix SAADC pin configuration
SAADC pin configuration need to be fixed after changes in NRFX driver

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2026-04-22 17:14:29 +02:00
Mori Fumita
677f13262b drivers: wifi: nxp: Make DHCP server optional for SoftAP
In 'drivers/wifi/nxp/Kconfig.nxp', 'NXP_WIFI_SOFTAP_SUPPORT'
currently uses 'select NET_DHCPV4_SERVER', but this can be restrictive.

This tightly couples L2 behavior (AP) and L3 (IP).
It shouldn't matter which node acts as the DHCP server once those
nodes are linked at L2. This commit introduces a new Kconfig option
to make the DHCP server optional.

Signed-off-by: Mori Fumita <mfumita@electromag.com.au>
2026-04-22 17:14:18 +02:00
Krzysztof Chruściński
3f76f6059d drivers: debug: coresight_nrf: Fix setting Trace ID
Mask STM_STMTCSR_TRACEID_Msk is already bit shifted so Kconfig value
should first be shifted and then masked. The way it was done previously
resulted in TraceID being cleared.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-04-22 08:10:43 -05:00
Johann Fischer
37010a39dc drivers: regulator: disable Nordic USB VBUS regulator interrupts
Explicitly disable VBUSDETECTED and VBUSREMOVED regulator interrupts.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-04-22 08:10:20 -05:00
Radu Alexe
f5dcdc7677 drivers: ieee802154: mcxw: set RX state in accordance with rx_on_idle
setting RX state in accordance with rx_on_when_idle

Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2026-04-22 08:09:55 -05:00
Yassine El Aissaoui
b904976464 drivers: hci: nxp: Add dynamic TX power configuration support
Adding support for MCXW2X and MCXW7X SoCs

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2026-04-22 08:08:53 -05:00
Fin Maaß
cd62463267 drivers: ethernet: litex: add support for lldp and promisc
add support for lldp and promiscous mode for the
LiteX LiteEth driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-22 08:07:51 -05:00
Girinandha Manivelpandiyan
0b7b81345c drivers: regulator: mspm0: Add supoort for TI MSPM0 VREF module
TI MSPM0 VREF module is used by analog peripherals for reference voltage
Add support for TI MSPM0 VREF module.

Signed-off-by: Girinandha Manivelpandiyan <girinandha@linumiz.com>
2026-04-22 08:07:20 -05:00
Alberto Escolar Piedras
2f3474c9cb Revert "modules/hal_st: Align to stmemsc HAL i/f v2.13.1"
This reverts commit 1643904ac4.

This change introduced a regression: A build warning when building
with clang, which is visible in the clang workflow in main
causing it to fail. The issue is in the HAL itself and the fix
is not evident.

Let's revert this commit until the issue is fixed in the HAL.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-04-22 08:06:34 -05:00
Szymon Antkowiak
7b54696ef8 drivers: sensor: bmi270: align initialization with spec
Soft reset is largely equivalent to power cycle. Add dummy read of chip ID
after soft reset in BMI270 initialization function. Dummy read is
performed via bus initialization.

Signed-off-by: Szymon Antkowiak <szymon.antkowiak@nordicsemi.no>
2026-04-22 12:54:53 +02:00
Muhammad Waleed Badar
ff5fec7364 drivers: gpio: dw: add port_get_direction API support
Add support for retrieving GPIO pin direction
when GPIO_GET_DIRECTION kconfig is enabled.

Signed-off-by: Muhammad Waleed Badar <muhammadx.waleedbadar@altera.com>
2026-04-22 12:54:22 +02:00
Muhammad Waleed Badar
23abcfe5c9 drivers: gpio: dw: add reset controller support
Add support for toggling a reset line during GPIO
initialization when a reset controller is available
in the device tree.

Signed-off-by: Muhammad Waleed Badar <muhammadx.waleedbadar@altera.com>
2026-04-22 12:54:22 +02:00
Muhammad Waleed Badar
790b6242fc drivers: gpio: dw: use MMIO macros to access hw registers
Replace direct register access using raw base addresses with
MMIO accessors to align with Zephyr DEVICE_MMIO API.

Use mem_addr_t for the base address and ensures compatibility with
architectures.

Signed-off-by: Muhammad Waleed Badar <muhammadx.waleedbadar@altera.com>
2026-04-22 12:54:22 +02:00
Abderrahmane JARMOUNI
594463a304 dt-bindings: display: st7789v: use pixel-format property
'sitronix,st7789v' panel controller driver is using ST7789V_PIXEL_FORMAT
Kconfig option to set pixel format, which is ignored in the device
initialization which instead uses DT colmod property to set the pixel
format.

Remove the Kconfig option and colmod DT property, and instead use the
standard pixel-format DT property to set the colmod register.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2026-04-22 12:53:24 +02:00
Tejus Subramanya
5021f01fb4 drivers: wifi: siwx91x: always enable instant BG scan for connected scan
The NWP does not deliver advanced (background) scan results to the host
when instant BG scan is disabled, so Zephyr never gets SCAN_RESULT /
SCAN_DONE for that path.
- Hardcode enable_instant_scan to 1 in advanced_scan_config with a
  short comment explaining the NWP requirement.

Signed-off-by: Tejus Subramanya <ters@silabs.com>
2026-04-22 12:52:45 +02:00
Ruijia Wang
cc60f4fcf4 drivers: flash: add NXP FlexSPI NAND driver with ONFI probe
Add a SPI-NAND flash driver for NXP FlexSPI controller. The driver
probes device geometry (page size, OOB size, pages per block, total
capacity) from the ONFI parameter page at runtime and supports read,
write, and block erase operations. Bad-block detection and marking
are exposed through the flash_ex_op interface, including the
FLASH_EX_OP_IS_BAD_BLOCK and FLASH_EX_OP_MARK_BAD_BLOCK operations.

Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
2026-04-22 12:52:05 +02:00
Ruijia Wang
2971661db1 drivers: memc: flexspi: add apply_pinctrl and update_lut APIs
Add memc_flexspi_apply_pinctrl() for configuring additional FlexSPI
port pins when init is skipped due to XIP, and memc_flexspi_update_lut()
for runtime LUT updates using a stack buffer to avoid XIP pointer
rejection.

Guard all irq_lock() calls with CONFIG_FLASH_MCUX_FLEXSPI_XIP so
non-XIP systems do not incur unnecessary interrupt latency.

Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
2026-04-22 12:52:05 +02:00
Qiang Zhang
4bb97ebe90 drivers: dma: add NXP GDMA driver
Add driver support for NXP GDMA (General DMA) controller.

Adds GDMA peripheral reset initialization in the NXP RW SoC
initialization code.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2026-04-22 12:50:50 +02:00
Mario Paja
db13c4f3cb drivers: ethernet: lan865x enable vlan
These changes enable vlan support on LAN865x T1S MAC-PHY

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2026-04-22 10:08:16 +02:00
Rick Tsao
f36a432ac1 drivers: gpio: atcgpio100: add pull-up/pull-down support
Add support for internal pull-up and pull-down configuration.

Signed-off-by: Rick Tsao <rick592@andestech.com>
2026-04-22 10:07:50 +02:00
John Batch
2a3783442b drivers: adc: infineon: fix HPPASS SAR channel lookup for hex addresses
Correct the IFX_HPPASS_SAR_CH_EXISTS macro to correctly match devicetree
nodes using a hex address.

Assisted-by: Github Copilot:claude-opus-4.6
Signed-off-by: John Batch <john.batch@infineon.com>
2026-04-21 18:42:05 -04:00
Pete Johanson
c8601b95dd drivers: spi: Avoid missing interrupts on MAX32
Move to the new MXC_SPI_GetAndClearFlags API to avoid a race condition
where flags not handled in the ISR would be cleared and missed as a result.
This fix removes the need for the previous partial workaround that simply
masked the issue in most scenario.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-04-21 18:40:35 -04:00
Pete Johanson
513adafb72 drivers: spi: Fix sending of dummy bytes for non-DMA scenarios
When DMA is enabled, but there are no DMA channels assigned to the SPI
peripheral, properly fall back to setting up the dummy bytes for SPI RTIO
operations.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-04-21 18:40:35 -04:00
Martin Koloska
01921899a6 drivers: wifi: esp32: explicit wifi status codes
Instead of generic success/error status use the appropriate wifi
manangement status codes that can be used to overwrite the status.

Signed-off-by: Martin Koloska <martin.koloska@bytesatwork.ch>
2026-04-21 18:40:24 -04:00
Armando Visconti
43af622bc5 drivers/sensor: lsm6dsvxxx: fix conditional compilation
Add CONFIG_LSM6DSVXXX_ENABLE_TEMP directive in few places where it was
missing.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-04-21 18:39:46 -04:00
Armando Visconti
4cc4f244ec drivers/sensor: lsm6dsvxxx: change data_out for single axis
When a request is performed on a single accelerometer axis
(e.g. SENSOR_CHAN_ACCEL_X) the driver must return a single
scalar q31 data.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-04-21 18:39:46 -04:00
Armando Visconti
44b7a95c19 drivers/sensor: lsm6dsvxxx: increase cqe/sqe queue size
In a IMU there might be multiple concurrent asynchronous requests
active at the same time. Increase the size of the RTIO queues.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-04-21 18:39:46 -04:00
Santhosh Charles
7e95d5f5d2 drivers: spi: add driver support for TI MSPM0 SPI module
Add support for the SPI module on TI’s MSPM0 MCUs.
The driver supports master mode transfers with configurable
frame size (4–16 bits), clock polarity/phase, bit order.

Signed-off-by: Santhosh Charles <santhosh@linumiz.com>
Signed-off-by: Jackson Farley <j-farley@ti.com>
Co-authored-by: Hans Binderup <habi@bang-olufsen.dk>
2026-04-21 18:39:03 -04:00
William Markezana
3afca7eb53 drivers: bluetooth: hci: unify Bouffalo Lab HCI driver
Merge the separate BL70X and BL70XL HCI drivers (hci_bflb_bl70x.c,
hci_bflb_bl70xl.c) into a single hci_bflb.c. Both SoCs share the
same on-chip HCI interface; platform differences (controller API
names, includes, RF calibration) are resolved via macros in a
single #if/#elif block at the top of the file.

Add BL70XL Kconfig (silicon revision, BLE variant selection) and
update depends lines to use the unified DT_HAS_BFLB_BT_HCI_ENABLED
combined with the SoC series.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-04-21 17:46:30 +01:00
Fin Maaß
fad67c8364 drivers: ethernet: litex: move net_eth_mac_load into iface init
move net_eth_mac_load into iface init, that way we don't
need to save the mac address in the data struct.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-21 17:46:18 +01:00
Nancy Sangani
827c2323f8 drivers: sensor: stmemsc: add gyro ODR-triggered mode support
Expose mode 3 (ODR-triggered) in gyro_set_mode and gyro_get_mode for
lsm6dsv320x, lsm6dsv80x, and ism6hg256x so gyro mode matches accel mode
as required by datasheet section 6.1.5.

Fixes #106389

Signed-off-by: Nancy Sangani <9d.24.nancy.sangani@gmail.com>
2026-04-21 17:46:12 +01:00
Thomas Decker
da790844b0 drivers: bbram: stm32: Add support for h7rsx
Add disabling of write protection also on read access to bbram for h7rsx
controllers.

On this controller family, reading the backup register will return 0 when
write protection is enabled.

Signed-off-by: Thomas Decker <decker@jb-lighting.de>
2026-04-21 17:45:55 +01:00
Johan Hedberg
a27994d90a drivers: bluetooth: ipm_stm32wb: Take advantage of bt_addr_le_copy_addr()
Take advantatage of the new helper to avoid manually creating a
bt_addr_le_t.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2026-04-21 17:45:36 +01:00
Mario Paja
dab07ba429 drivers: ethernet: lan9250 add vlan support
These changes enable VLAN support on LAN9250

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2026-04-21 17:45:13 +01:00
Lyle Zhu
695d41c991 bluetooth: hci: NXP: Fix firmware upload issues
Fix two issues in the NXP HCI firmware upload code:

1. In fw_upload_wait_length(), the length complement was incorrectly
   read from the same buffer offset as the length field. It should be
   read from offset 2 to properly validate the length field.

2. In fw_upload_write_hdr_and_payload(), replace the call to
   fw_upload_send_ack() with a direct call to fw_upload_write_data()
   to send the V1_REQUEST_ACK. This ensures the ACK is sent using the
   correct write function.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2026-04-21 17:45:05 +01:00
Lluis Miquel Martinez Campos
0febdeb4b7 drivers: i2c: nrfx_twi: disable and restore state for bus recovery
A similar fix was implemented for TWIM driver at 9974bb043f.

The bus recovery code at nrfx driver reconfigures SCL/SDA pins (namelly
sets pull-up resistors) so we need to restore the configuration to the
specified state of pinctrl after the recovery operation.

Signed-off-by: Lluis Miquel Martinez Campos <lluiscampos@proton.me>
2026-04-21 17:44:40 +01:00
Aleksander Strzebonski
f72c0cd1ee drivers: regulator: nrf_vregusb: fix USB not working after warm reboot
After sys_reboot or debugger reset on nRF54LM20, USB controller fails to
initialize because the VREGUSB peripheral retains state across warm
resets. Two issues are addressed:

1. Stale VBUS_DETECTED/VBUS_REMOVED events from the previous boot
   remain set in the event registers. When interrupts are enabled
   without clearing them first, the ISR fires immediately with
   potentially wrong event type (VBUS_REMOVED can overwrite
   VBUS_DETECTED in the handler).

2. When USB cable stays connected across a reboot, no new
   VBUS_DETECTED edge occurs because the peripheral was never
   stopped. The regulator callback never fires, so the wrapper
   never posts NRF_USBHS_PHY_READY, and usbhs_enable_core()
   blocks indefinitely or times out.

Fix by clearing stale events before enabling interrupts, and by
reading the undocumented STATUS register (base + 0x400, bit 2) after
TASK_START to detect VBUS-already-present and synthesize the
REGULATOR_VOLTAGE_DETECTED callback. This matches the approach used
in the original inline vendor quirks added in commit 66b938f93a
("drivers: udc_dwc2: Add nRF54LM20A vendor quirks")
before the refactoring to a separate regulator driver.

Signed-off-by: Aleksander Strzebonski <aleksander.strzebonski@nordicsemi.no>
2026-04-21 17:44:03 +01:00
Fin Maaß
4ea5a11c63 pcie: move pcie ecam controller to controllers
move pcie ecam controller to controllers.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-21 17:43:51 +01:00
Fin Maaß
3b8d015b88 pcie: add missing copyright and license infos
add missing copyright and license infos.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-21 17:43:51 +01:00
Kate Wang
d67ec272cc drivers: display: mcux_dcnano_lcdif: Add support for more pixel formats
Add support for new pixel formats recently added in the driver header.
These formats are supported by the lcdif controller on mimxrt700_evk:
- PIXEL_FORMAT_RGB_888: 24-bit RGB format with 8 bits per component
- PIXEL_FORMAT_BGR_888: 24-bit BGR format with 8 bits per component
- PIXEL_FORMAT_ABGR_8888: 32-bit ABGR with alpha channel
- PIXEL_FORMAT_RGBA_8888: 32-bit RGBA with alpha channel
- PIXEL_FORMAT_BGRA_8888: 32-bit BGRA with alpha channel

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-04-21 10:24:41 +01:00
Kate Wang
4626c0eb2a drivers: display: co5300: Fix framebuffer address alignment handling
Improve the coordinate and address alignment logic in the CO5300
display driver. The driver now properly aligns the framebuffer
address according to the addr_align property from device tree,
in addition to ensuring coordinates are even values.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-04-21 10:24:00 +01:00
Guillaume Gautier
cc7e56edf7 drivers: entropy: stm32: adapt driver to stm32 hal2
The __HAL_RCC_PKA_IS_CLK_ENABLED macro doesn't exist in HAL2. Replace it
with LL calls that exist in both versions.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-04-21 10:23:12 +01:00
Fabin V Martin
5251d2bc00 drivers: uart: microchip: sercom g1: changes for pic32cmjh
Updated async mode to read the first byte manually and the
remaining bytes using dma as buffer overflow was happening
for rx enable with 1 byte.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-04-21 10:20:06 +01:00
Guillaume Gautier
9035791e29 drivers: clock: stm32c5: add dummy define in case HSE is not enabled
Adds a dummy define to prevent compilation issue when HSE is not enabled,
and STM32_HSE_FREQ is set to 0.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-04-21 10:18:34 +01:00
Guillaume Gautier
f09d68463b drivers: otp: stm32: disable instruction cache also for stm32c5
To access the OTP area on STM32C5, the instruction cache needs to be
disabled to prevent a bus fault.
Do it for the OTP driver, as well as the temperature and Vref sensor.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-04-21 10:17:47 +01:00
McAtee Maxwell
1b6ed64695 drivers: rtc: add rtc driver support for the infineon edge family
- Add #define of BREG for infineon edge soc family
- Add #include <stdlib.h> to support "abs" call for edge family soc
- Above #include is not required in the rtc driver for psc3m5 support

Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
2026-04-21 10:15:37 +01:00
Armando Visconti
1643904ac4 modules/hal_st: Align to stmemsc HAL i/f v2.13.1
Align all sensor drivers that are using stmemsc (STdC) HAL i/f
to new APIs of stmemsc v2.13.1

Requires https://github.com/zephyrproject-rtos/hal_st/pull/33

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-04-20 17:51:38 -05:00