Commit graph zephyr/drivers
Author SHA1 Message Date
Jukka Rissanen
6fd0d6bcac drivers: net: Increase loopback interface MTU to 1500
No need to have such a low MTU 576 bytes as it prevents sending
larger packets for loopback interface. If one have low MTU setting
and one tries to send for example larger UDP packets, then one
can get this rather confusing error message

Available payload buffer (548) is not enough for requested DGRAM (1197)

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2026-02-10 22:20:48 +01:00
Pieter De Gendt
9d36f4b2ab drivers: counter: Put counter driver API into iterable section
Use DEVICE_API macro to put the API into the correct iterable section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:20:25 +01:00
Pieter De Gendt
d1b570533b drivers: display: Put display drivers into iterable sections
Use the DEVICE_API macro to put the diplay driver APIs into the correct
iterable sections.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:20:12 +01:00
Pieter De Gendt
9351b76a6e drivers: reset: Put reset driver APIs into iterable section
Use the DEVICE_API to put the reset driver APIs into the correct linker
section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:19:58 +01:00
Pieter De Gendt
fa719f5aa7 drivers: adc: infineon_autanlog_sar: Put API into iterable section
Use the DEVICE_API wrapper to put the driver API into the correct linker
section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:19:45 +01:00
Pieter De Gendt
f71da28f90 drivers: crypto: Put device API into iterable section
Update some crypto drivers to use the DEVICE_API macro.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:19:30 +01:00
Henrik Brix Andersen
f04bdd23d6 drivers: can: nxp: lpc_mcan: reformat source code file
Reformat the NXP LPC family MCAN driver source code file using
clang-format.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Henrik Brix Andersen
75c39d7265 drivers: can: rename the NXP LPC family MCAN driver
Rename the NXP LPC family MCAN driver to not use "MCUX" in its name as this
is not a shim driver based on the MCUXpresso HAL.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Henrik Brix Andersen
53f54b813c drivers: clock control: nxp: fix copy-paste error in comments
Fix copy-paste errors in a closing #endif comments.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Johannes Schuler
ec94191d70 drivers: flash: stm32u5/stm32l5 rdp
Implement readout protection for the STM32U5 / STM32L5 series.
Move the stm32u5 / stm32l5 flash register manipulation in
flash_stm32_option_bytes_write() to be called by the
flash_stm32_set_rdp_level().

Signed-off-by: Johannes Schuler <jschuler@testo.de>
2026-02-10 22:18:43 +01:00
Firas Sammoura
3bab28349f drivers: flash: npcx: add qspi_npcx_fiu_mutex_is_locked function
Add a helper function to check the lock status of the QSPI-FIU
bus controller mutex. This is useful for debug assertions and
verifying exclusive access in high-level drivers.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2026-02-10 13:30:14 -06:00
Benjamin Cabé
460dbb8354 drivers: i2s: drop master/slave usage where possible
For drivers that were making mentions to master/slave terminology in
their comments or code without no reason to do so (i.e. no API in their
HAL is using such terminology), the terminology was dropped and replaced
with controller/peripheral terminology.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-10 13:24:18 -06:00
Benjamin Cabé
60ca5367a7 drivers: i2s: update macro names to match latest I2S specification
I2S bus specification 3.0 [1] updated terms "Master" and "Slave" to
"Controller" and "Target". This rename macros using these terms and
deprecates old names.

[1] https://www.nxp.com/docs/en/user-manual/UM11732.pdf

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-10 13:24:18 -06:00
Benjamin Cabé
0a70f063f2 bbram: shell: adopt SHELL_HELP
Have bbram shell commands use the new SHELL_HELP macro
Also fix the syntax for "read" command as it wasn't
correctly indicating that count cannot be specified
without address.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-10 13:23:32 -06:00
Mathieu Choplain
cdd4892756 drivers: watchdog: align drivers to (HAS_)WDT_DISABLE_AT_BOOT semantics
There are many drivers which control a disabled-by-default watchdog timer
but take the liberty of selecting HAS_WDT_DISABLE_AT_BOOT and interpreting
WDT_DISABLE_AT_BOOT=n as "enable the timer", which does not correspond to
the semantics of this option.

Update all such drivers to no longer select HAS_WDT_DISABLE_AT_BOOT and
ignore the WDT_DISABLE_AT_BOOT option.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-10 15:41:46 +00:00
Mathieu Choplain
61d0117615 drivers: watchdog: document semantics of WDT_DISABLE_AT_BOOT
WDT_DISABLE_AT_BOOT should only be used to forcefully disable watchdog
timers that are enabled by default after system reset. Update the Kconfig
help text of WDT_DISABLE_AT_BOOT and its dependency HAS_WDT_DISABLE_AT_BOOT
to make this clear.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-10 15:41:46 +00:00
Allen Zhang
a4c333a865 boards: frdm_mcxw70: add frdm_mcxw70 board
enable board support for frdm_mcxw70

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2026-02-10 15:41:24 +00:00
Etienne Carriere
90915fc715 drivers: flash: stm32_*spi: remove ARG_UNUSED() where useless
Remove ARG_UNUSED() where not needed in STM32 QSPI/XSPI drivers.

No functional changes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-02-10 15:11:28 +01:00
Etienne Carriere
7c90d75a73 drivers: flash: stm32_*spi: duplicated IOMEM registers base address
IOMEM interface base address is stored in both device configuration
and device data structures. Remove the occurence in the config data
that is used only for trace messages.

No functional changes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-02-10 15:11:28 +01:00
Seppo Takalo
50a15a6a88 drivers: modem: cellular: Stop re-dial retry loops
Use same retry counter for APN script as the dial-script uses.

When dial-script fails, shut down the modem. Don't restart from
beginning.
When might still have CMUX connected, so jumping to IDLE->RESUME
leaves the CMUX connected, while the state machine expect otherwise.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-10 13:01:29 +01:00
Mathieu Choplain
281b9fa260 drivers: usb: udc: stm32: enable SOF support
For some reason, the driver was not requesting the HAL to enable SOF even
if the feature was enabled at UDC stack level.

Fix by requesting HAL to enable SOF based on stack configuration.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-10 10:52:24 +01:00
Stephan Linz
796482737f drivers: wifi: infineon: airoc: avoid unhandled values in switch statement
When build:

  west build -p -b rpi_pico2/rp2350a/m33/w zephyr/samples/net/wifi/shell

Warnings occur (leading to errors in Twister runs):

  .../drivers/wifi/infineon/airoc_wifi.c:749:9: warning: enumeration value
      '__WIFI_FREQ_BANDWIDTH_AFTER_LAST' not handled in switch [-Wswitch]
  .../drivers/wifi/infineon/airoc_wifi.c:749:9: warning: enumeration value
      'WIFI_FREQ_BANDWIDTH_UNKNOWN' not handled in switch [-Wswitch]
    749 |         switch (params->bandwidth) {
        |         ^~~~~~

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-02-10 10:52:12 +01:00
Gaetan Perrot
ce47cbeaa4 drivers: i2s: i2s_ambiq: remove dead error check in init
Remove a useless return value check in i2s_ambiq_init().

The variable 'ret' was initialized to zero and checked before being
assigned, making the condition always false.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 08:24:07 +01:00
Gaetan Perrot
a6fd608050 drivers: mbox: ti_secproxy: add missing SPDX license identifier
Add the SPDX-License-Identifier tag to the file header to properly
declare the Apache-2.0 license, in line with Zephyr licensing
requirements.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 08:23:05 +01:00
Gaetan Perrot
94830a2827 drivers: mbox: ti_secproxy: drop redundant NULL check on dev pointer
The mailbox send callback is always invoked with a valid device
pointer.

Remove the redundant NULL check.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 08:23:05 +01:00
Fin Maaß
517bffdb84 adc: ads1x1x: remove DT_HAS_TI_ADS1119_ENABLED
the ads1119 has its own driver connected to CONFIG_ADC_ADS1119,
so remove it from CONFIG_ADC_ADS1X1X. Also the driver under
CONFIG_ADC_ADS1X1X doesn't support it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-09 16:13:53 -06:00
Sergei Ovchinnikov
cb5a44458a drivers: regulator: npm13xx: add LDO soft start support
Starting from revision 1.1 nPM1304 has support for soft start on the LDSW
regulators configured in the LDO mode. This requires special handling and
is done automatically for applicable device versions.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2026-02-09 16:12:33 -06:00
Chaitanya Tata
7f6d361473 nrf_wifi: Remove nRF71 support
The driver and module now supports nRF70 only, nRF71 support will be
added in the future using a new driver.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-09 11:59:17 -06:00
Mathieu Choplain
3754b8fe46 drivers: usb: udc: stm32: dequeue OUT packets before submission
The udc_submit_ep_event() does not document this requirement, but the
`net_buf` provided to it must have been removed from the driver's
internal queue before submission. This wasn't noticed because the list
node member of `net_buf` was untouched, but is now causing list corruption
due to 5137439a47 when multiple packets are
enqueued.

Fix by always dequeuing buffers before submitting them to the UDC stack.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-09 11:58:31 -06:00
Krzysztof Chruściński
44bbc13394 drivers: serial: nrfx_uarte: Handle unexpected RXTO events
In some cases UARTE peripheral is generating RXTO events together with
ENDRX events. Those events are unexpected and should not be handled.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-02-09 15:59:02 +01:00
Krzysztof Chruściński
13e4b7a3ff Revert "drivers: serial: nrfx_uarte: Workaround for spurious RXTO during restart"
This reverts commit c58ae7467b.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-02-09 15:59:02 +01:00
Fabian Blatz
cbc1c58e28 drivers: timer: stm32wb0: Prevent building for WB06/07 if PM enabled
Prevents building the driver entirely if the PM symbol is selected instead
of erroring out via a compiler pragma.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-02-09 15:56:28 +01:00
Gaetan Perrot
a43978d22b drivers: i2c: ll_stm32_v2_rtio: Refactor target config matching logic
Rewrites the logic used to select the matching target config during address
match events.

Handles 7-bit and 10-bit modes more clearly, adds fallback to slave2_cfg
if slave_cfg is NULL, and reduces nesting.

Fixes a case where the primary target (slave_cfg) could be unregistered
before an address match interrupt fires, which could lead to a null
pointer dereference.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-09 15:41:34 +01:00
Gaetan Perrot
086671be27 drivers: i2c: ll_stm32_v2: Refactor target config matching logic
Rewrites the logic used to select the matching target config during address
match events.

Handles 7-bit and 10-bit modes more clearly, adds fallback to slave2_cfg
if slave_cfg is NULL, and reduces nesting.

Fixes a case where the primary target (slave_cfg) could be unregistered
before an address match interrupt fires, which could lead to a null
pointer dereference.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-09 15:41:34 +01:00
Aksel Skauge Mellbye
bf4591b4bc drivers: gpio: silabs: Set port_pin_mask from Devicetree
Set `port_pin_mask` in the GPIO driver for Silicon Labs Series 2
based on Devicetree `ngpios` and `gpio-reserved-ranges`. This
mask is used to validate that the pin numbers passed to the GPIO
API are valid on a given device.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2026-02-09 13:32:07 +01:00
Thomas Decker
7d0764387b drivers: clk: stm32_ll_h7: Add stm32_clock_control_get_status function
Add stm32_clock_control_get_status() function needed by flash_stm32_xspi
driver for handling XiP.

Signed-off-by: Thomas Decker <decker@jb-lighting.de>
2026-02-09 13:31:19 +01:00
Thomas Decker
a88a01c901 drivers: flash: stm32_xspi: Remove hard-coded XSPI2 dependency
Check the used XSPIx peripheral before calling the corresponding function
instead of hard-coded calling the LL_PWR_EnableXSPIM2() and
LL_SBS_EnableXSPI2SpeedOptim() during flash_stm32_xspi_init(...).

Signed-off-by: Thomas Decker <decker@jb-lighting.de>
2026-02-09 13:30:52 +01:00
Carlo Caione
c575e648e9 drivers: lora: add native SX126x driver
Add a native Zephyr driver for Semtech SX1261/SX1262 LoRa transceivers that
does not depend on external modules (loramac-node or lora-basics-modem).

The driver is experimental and must be explicitly enabled by selecting
CONFIG_LORA_MODULE_BACKEND_NONE.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-02-09 13:29:42 +01:00
The Nguyen
4f55402630 drivers: udc: renesas: support DCP auto status mode
Add DCP auto status support and update the control stage update
sequence to adapt with hardware auto response mode

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-02-09 13:28:02 +01:00
Pavel Kohout
d7bf4ec707 drivers: ethernet: e1000: fix TX and RX buffer sizing
The e1000 Ethernet driver TX staging buffer is sized to NET_ETH_MTU
(1500 bytes), but the Ethernet L2 layer prepends headers (14 bytes
standard, 18 bytes with VLAN) before calling the driver's send function.
When transmitting MTU-sized packets, net_pkt_get_len() returns the full
L2 frame size (up to 1514+ bytes), causing a 14-18 byte out-of-bounds
write into adjacent RX buffers. This is remotely triggerable by inducing
large TX responses such as ICMP echo replies.

The RX staging buffer has the same issue - it is sized to NET_ETH_MTU
but receives complete L2 frames from the network which include headers.

Fix by sizing both TX and RX buffers to NET_ETH_MAX_FRAME_SIZE and
adding a defensive bounds check to the TX path.

Signed-off-by: Pavel Kohout <pavel.kohout@aisle.com>
2026-02-09 11:17:37 +01:00
Shreya Kulkarni
3b98cce4f2 drivers: crypto: ataes132a: fix multiple Coverity defects
Addressed stability and security issues identified by Coverity in
the ATaes132a crypto driver:

- CID 434625: Added range validation for 'count' to prevent tainted
  scalar usage and buffer underflow in response processing.
- CID 487700 & 487763: Implemented overflow guards for 'buf_len' to
  prevent integer overflow and type truncation when calling
  ataes132a_send_command.
- CID 487746: Applied explicit type casting to CRC calculations to
  satisfy static analysis regarding integer promotion.

Signed-off-by: Shreya Kulkarni <kulkarnishreya2421@gmail.com>
2026-02-09 11:17:12 +01:00
Haoran Jiang
bc8ed8f83f drivers: otp: add SiFli SF32LB eFuse driver
Add OTP driver for the SiFli SF32LB series eFuse controller.
This driver provides read-only access to the eFuse OTP memory
with the following features:

- Cache mechanism: all eFuse content is loaded into RAM during
  initialization for improved read performance
- Support for 4 banks x 32 bytes = 128 bytes total OTP storage
- LDO voltage adjustment before reading as required by hardware

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2026-02-09 11:13:50 +01:00
Tim Lin
bc20c41dfa drivers/i2c: it8xxx2: Fix incorrect target address register
The base address was written to an incorrect register, which caused
incorrect data to be read from the I2C target. This has been fixed by
writing to the correct register.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2026-02-09 09:38:44 +01:00
Holt Sun
578f9fd972 drivers: pinctrl: mci_io_mux: correct CTIMER macro name
Fix inconsistent macro name from IOMUX_GET_SCTIMER_IN_CLR_ENABLE
to IOMUX_GET_CTIMER_CLR_ENABLE to align with the actual CTimer
functionality and related macro naming convention.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-02-09 09:37:39 +01:00
Gaetan Perrot
d24450bd09 drivers: stepper: adi_tmc: tmc50xx: Remove redundant pointer check
The actual_velocity pointer is dereferenced unconditionally before
the NULL check, making the conditional LOG_DBG() guard ineffective.

Since actual_velocity must be valid to reach this point, the
conditional check is redundant and misleading.

Remove it and log the value unconditionally to reflect the actual
control flow.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-06 22:24:22 +01:00
Gaetan Perrot
c0e8822a94 drivers: sdhc: renesas_ra: remove dead error check
Remove a dead error check which check ret but ret wasn't even
assigned before the test.

Remove the useless condition to make the intent explicit and clean
up the code.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-06 22:19:52 +01:00
Tom Burdick
cb901b90bf soc: infineon: psoc4100tp: Setup IMO for 48MHz
Correct a clock initialization ordering issue where IMO, an internal
high speed oscillator, was being setup before ILO. This does not match
the MTB initialization order and would cause the part to fault.

Sets up the default clock configuration on the part to be 48MHz. Adjusts
the default WCO (low speed external crystal source) to be 32768 as the
eval board has this crystal on it. Enables common clock elements
(hf_clk, clock_pump) as needed in the part dts rather than the board.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-02-06 13:48:55 -06:00
Seppo Takalo
6d95ac2a52 drivers: modem: cellular: Fix BG95/BG96 shutdown script
According to the manual, device should wait:
  AT+QPOWD=1
  OK
  POWERED DOWN
before shutting down. This should take about 300 ms.

Correct the timing to match BG96 manual, where power_key pulse
is 500ms (on a shut down, it say 650ms).

The start-up time of UART is described as >=4900ms so start_ms
is now set to 5s. It does not require 10s.

We require more than 100ms to reset from CMUX to AT mode UART,
500ms seems to be enough. Manual does not describe this delay.

Shutdown time is described as 2s, but we don't typically use that
as the shutdown script receives the POWERED DOWN message and is now
faster.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-06 13:48:14 -06:00
Seppo Takalo
11ef296070 drivers: modem: cellular: Don't redial when net_if_down()
When net_if_down() is called, the PPP_DEAD event is handled
in state machine before the modem_ppp_ppp_api_stop()
requests the driver to suspend.

Prevent non-wanted re-dial script by checking the admin
state (UP/DOWN) of the PPP interface, before dealing with
lost connection.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-06 13:47:27 -06:00
Scott Worley
448dda458b drivers: spi: microchip: mec: Common QMSPI-LDMA driver
We converted the QMSPI-LDMA driver to linux style with a local
register header in the driver folder. This is part of the long
term plan to remove the MEC5 HAL and have common drivers for
as many SoC's as possible. QMSPI register definitions are in
the SoC layer to be shared with other drivers (MSPI). The driver
was also updated based on changes in the SPI config structure.
The lastest SPI config structure changes force hardware controlled
chip selects and GPIO controlled chip selects to be mutually exclusive.
NOTE: driver works with the flash driver sample
and passes the common flash driver test.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-02-06 13:46:14 -06:00