Commit graph

25,525 commits

Author SHA1 Message Date
Nitin Pandey
2b8af597ce driver: wifi: siwx91x: Handle MFP configuration
- Handled MFP configuration for STA and AP modes
- Updated the MFP configuration based on security modes

Signed-off-by: Nitin Pandey <nitin.pandey@silabs.com>
2025-04-09 19:32:26 +02:00
Nitin Pandey
0259bf56c8 driver: wifi: siwx91x: Add check for SAE password
- Modified conditions in WIFI_CONNECT()
  function to reject SAE password and
  PSK based on length parameter

Signed-off-by: Nitin Pandey <nitin.pandey@silabs.com>
2025-04-09 19:32:26 +02:00
Jordan Yates
c7bc268656 sensor: current_amp: add a noise threshold
ADC output values can have noise, even if the input is 0V. Add a noise
threshold so that raw ADC readings below the threshold can be zeroed
out. By default the threshold is disabled.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-09 19:32:02 +02:00
Furkan Akkiz
65883ed513 drivers: udc: Add MAX32xxx UDC driver
Add UDC driver for MAX32xxx USB device controller.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-04-09 19:31:24 +02:00
Mathieu Choplain
fe9f0a9711 drivers: entropy: stm32: configure prescaler on STM32WB09
The STM32WB09 TRNG has a prescaler that defaults (on reset) to 256, making
the entropy generation process unbearably slow. Change the prescaler value
to 1 instead, in order to make the IP about as fast as other STM32's.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-04-09 17:32:59 +02:00
Okan Sahin
be1218081a drivers: adc: Introduce AD4130 adc driver
This commit introduces ad4130 adc driver.

Signed-off-by: Okan Sahin <Okan.Sahin@analog.com>
2025-04-09 17:32:29 +02:00
Peter van der Perk
818d9dc286 drivers: serial: uart_mcux_lpuart: RX IRQ Enable RxOverrun flag
If the RX FIFO buffer is full and there's nothing being transmitted
no LPUART interrupt will fire anymore. Thus the application will not
receive any bytes anymore. By enabling kLPUART_RxOverrunInterruptEnable
we will receive interrupts even though RX FIFO is full so we can recover
from this.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2025-04-09 15:24:11 +02:00
Tomasz Moń
33b9811536 drivers: udc_nrf: Remove doxygen comments
Update the comments to reflect refactored driver state.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
6f08055388 drivers: udc_nrf: Keep track of endpoint armed state
Arm OUT endpoints only when enqueueing first buffer. Disarm IN and OUT
endpoints on endpoint disable. Prevent ISO endpoints from being armed
twice before SOF.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
229fc1558e drivers: udc_nrf: Simplify control transfer processing
Use USB stack state instead of former HAL state to determine what to do
with control transfer buffers.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
41ebbe0033 drivers: udc_nrf: Replace driver queue with events
There is finite number of distinct events that are handled in thread
context and the order of handling is flexible. Therefore use events
instead of message queue because it is guaranteed to never get full.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
5d79ef9f8a drivers: udc_nrf: Do not notify about received OUT data
There is no need in notifying the driver that OUT data has been
received. This was only used for control transfers with OUT data stage
because dma waiting bit was not set when enqueueing buffer to receive
data stage.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
72f667b416 drivers: udc_nrf: Abort endpoints synchronously
Endpoint abort is guarded with DMA semaphore. The buffers can be freed
by the caller immediately after endpoint is aborted because the driver
won't access them anymore.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
34299f607f drivers: udc_nrf: Remove duplicate endpoint state
Use UDC endpoint state instead of the legacy hal state. Only functional
change relates to overload condition (buffer is too small to hold data
received on OUT endpoint). Previously the data would be completely
discarded and udc driver error would occur (overload event was
unhandled). Now buffer too small error is logged and as much data as
possible is copied to buffer.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
a10d00abe0 drivers: udc_nrf: Remove event handler
Post directly to driver queue because there is no longer shim
separation.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
cc1ef5584b drivers: udc_nrf: Do not use nrf usbd common
This is preparatory commit for former nrfx USBD refactor. The refactor
towards native driver will only be performed on the udc driver (old USB
stack driver will continue to use nrf usbd common until it is removed).

Code is copied from nrf_usbd_common.c with minimal changes:
  * nrf_usbd_common_irq_handler renamed to nrf_usbd_irq_handler
  * usbd_enable renamed to nrf_usbd_peripheral_enable
  * all non-static nrf_usbd_common functions have prefix changed to
    nrf_usbd_legacy and are changed to static
  * functions not used by udc nrf driver are removed
  * braces are moved inside #if to pass compliance checks

No functional changes.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
afafa149cb drivers: udc_nrf: Do not trigger iso out transfer on SOF
The transfer is queued when buffer is available. There is no point in
delaying the wait until SOF. The check is completely unnecessary.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 15:23:12 +02:00
Tomasz Moń
264e9feca0 drivers: udc_dwc2: Replace transfer events with atomics
There is no need to wait on xfer_new and xfer_finished and therefore
atomic services can be used instead of events.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 12:36:04 +02:00
Tien Nguyen
3cba2221ed drivers: gpio: Add support for RZ/G2L
Add GPIO support for RZ/G2L

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-04-09 12:35:54 +02:00
Tomasz Moń
4e99b5b1bf drivers: udc_dwc2: Mark endpoint idle on disable while hibernated
When endpoint is disabled while hibernated, the UDC endpoint state has
to be reset. Set the busy to false to keep UDC endpoint state in sync
with peripheral register state.

Fixes: 2be960ad2b ("drivers: udc_dwc2: Disable endpoint while
hibernated")

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-04-09 11:43:48 +02:00
Ryan McClelland
5eb7ae34d4 drivers: i3c: cdns: remove +1 on len for abort limit
The datasheet erroneously suggested to add a + 1 to the abort len.
This was suggested because if a controller gave a EoD, then it was
afraid that the abort would take precedence over the EoD. This was
not true. The EoD will always take precedence over a controller
abort. Remove the + 1 as this can cause issues.

For example, when talking to a part that will auto-increment a read
address, having the +1 can unknownly move this address pointer further
than anticipated.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-04-09 11:43:08 +02:00
Ryan McClelland
393da0f953 drivers: i3c: cdns: secondary controllers can do_daa
It is most certainly 'okay' for a secondary controller to do a
ENTDAA. Remove the 'block' that was preventing this.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-04-09 11:43:08 +02:00
Marco Widmer
491e297418 drivers: counter: nrfx_timer: Use shutdown task if available
Add a workaround for NRF52 anomaly 78: "High current consumption when
using timer STOP task only". Use the SHUTDOWN task instead.

For consistency, CLEAR the timer timer after STOPPING on devices that
lack the SHUTDOWN task. This also aligns the behavior with
nrfx_timer_disable().

For devices with the SHUTDOWN task, this restores the behavior previous
to e92323f.

Fixes #87224

Signed-off-by: Marco Widmer <marco.widmer@bytesatwork.ch>
2025-04-09 11:43:01 +02:00
Sreeram Tatapudi
970460e809 drivers: adc: Update configuration values for CAT1B ADC
- Update resolution and inter reference mV
	- make unused code conditional

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2025-04-09 09:03:19 +02:00
Haiyue Wang
99f4a078d2 drivers: eeprom: stm32: simplify write error handling
Remove the extra unlock and value return, just print the error code when
failed to do DATAEEPROM_Lock().

Signed-off-by: Haiyue Wang <haiyuewa@163.com>
2025-04-09 06:53:50 +02:00
Noah Olson
4925e22a67 net: nsos_sockets: Fix incorrect return return on ECONNREFUSED
`nsos_connect_blocking()` is not returning the error as expected. It is
expected to return a negative `NSI_ERRNO_MID_...` value, but it is
returning a positive errno value. `nsos_connect_blocking()` should map
the errno value to a negative `NSI_ERRNO_MID_...`, which `nsos_connect()`
maps back to a -1 return with errno=`ECONNREFUSED`.

the current sequence of events:
- `ECONNREFUSED` occurs during connection
- `nsos_connect_blocking()` returns positive `ECONNREFUSED`
- `nsos_connect()` returns positive `ECONNREFUSED`
- `zsock_connect()` returns positive `ECONNREFUSED`

the expected sequence of events:
- `ECONNREFUSED` occurs during connection
- `nsos_connect_blocking()` returns negative `NSI_ERRNO_MID_ECONNREFUSED`
- `nsos_connect()` returns -1, errno=`ECONNREFUSED`
- `zsock_connect()` returns -1, errno=`ECONNREFUSED`

Signed-off-by: Noah Olson <noah@wavelynx.com>
2025-04-08 19:27:18 +02:00
Adam Berlinger
457b6cb427 driver: dma: stm32u5 Optimize circular mode
This removes big structures allocated on stack.
It also moves linked list node to dedicated buffer.

Signed-off-by: Adam Berlinger <adam.berlinger@st.com>
2025-04-08 17:37:24 +02:00
Adam Berlinger
a4b819f953 driver: dma: stm32u5 Optimize stack consumption
Remove InitStructs of LL driver, since they take a lot of space on stack.
This can cause stack overflow in some scenarios.

Signed-off-by: Adam Berlinger <adam.berlinger@st.com>
2025-04-08 17:37:24 +02:00
Yishai Jaffe
b65f0b0fbc drivers: display: sdl: support non-vtiled mono mode
Added support for writing in non-vtiled mono mode to SDL display
emulator driver.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-04-08 17:37:14 +02:00
Maochen Wang
293f51f3b4 drivers: wifi: nxp: change the default configuration
NET_L2_ETHERNET should be enabled by default.
NXP_WIFI_SHELL should be enabled by default when SHELL is enabled.
NXP_WIFI_TX_RX_ZERO_COPY should not be enabled by default for RW612,
as it has special requirement for NET_BUF_DATA_SIZE.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-04-08 17:36:39 +02:00
Yunshao Chiang
c6fe84caf2 drivers: counter: add ite it8xxx2 timer driver
The IT8xxx2 timer driver uses timer 7 and timer 8 to implement the alarm
timer and the top timer, respectively.

Signed-off-by: Yunshao Chiang <Yunshao.Chiang@ite.com.tw>
2025-04-08 16:12:11 +02:00
Andrzej Głąbek
54d8c80ade dts: bindings: nrf-vpr: Allow specifying pins and not using launcher
Add possibility to use pinctrl to configure pins that should be assigned
to nRF VPR coprocessors and also provide a way of preventing activation
of the nordic_vpr_launcher driver for an enabled VPR so that it can be
supplied with the code to execute and launched in a custom way.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-04-08 16:11:51 +02:00
Marcio Ribeiro
de98c3ce78 drivers: bt: esp32 bt controller features supported
Adds features supported by esp32 bt controller

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-04-08 16:10:37 +02:00
Fin Maaß
86a52d9254 drivers: ethernet: litex: use tx interrupt
use tx interrupt to check, if we can send something,
instead of checking the register periodically.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-04-08 14:23:38 +02:00
Sachin D Kulkarni
b3958717f7 drivers: nrf_wifi: Move util to nrf70 shell
Move the wifi_util to the newly created nrf70 shell as a sub-shell.

Signed-off-by: Sachin D Kulkarni <Sachin.Kulkarni@nordicsemi.no>
2025-04-08 14:23:21 +02:00
Sachin D Kulkarni
ceead4eb0a drivers: nrf_wifi: Add debug shell
Add a debug shell to the driver to provide advanced debug support such
as reading/writing to RPU memory and registers etc.

Signed-off-by: Sachin D Kulkarni <Sachin.Kulkarni@nordicsemi.no>
2025-04-08 14:23:21 +02:00
Jilay Pandya
4838c0f200 drivers: stepper: introduce valid micro-step resolution check
Introduce macro to check for valid microstep resolution in stepper api
Use this macro in tmc50xx driver. Stepper api tests adjusted in order to
accomodate the not implemented stepper api functions.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-04-08 11:45:40 +02:00
Fabian Blatz
11b9eba340 drivers: display: sdl: Ensure draw is performed from init thread
Add a thread to the SDL display driver to ensure that init and renderer
calls are performed from the same thread.

Fixes #71410.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-04-08 11:45:01 +02:00
Benjamin Cabé
39a65c0be2 drivers: sensor: icp201xx: fix channel check logic
Update the channel validation logic to properly check channel against
SENSOR_CHAN_ALTITUDE.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-08 10:48:49 +02:00
Benjamin Cabé
93c52cf0b5 drivers: sensor: icp201xx: fix channel check logic
Update the channel validation logic to avoid using enum constants as
boolean values.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-08 10:48:49 +02:00
Tim Lin
a531e71376 drivers/timer: Add timer driver of it51xxx
Add timer driver for ITE it51xxx series.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
d64d87f655 drivers/serial: Add ITE UART wrapper to enable serial driver of ns16550
Add ITE UART wrapper to enable serial driver of ns16550.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
df56c85e94 drivers/clock: Add clock drivers of it51xxx
Add clock drivers for ITE it51xxx series.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
f67c2a3d33 drivers/gpio: Add GPIO driver of it51xxx
Add GPIO driver for ITE it51xxx series.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
8c2f5684bb drivers/flash: Enable flash controller for it51xxx series
Enable flash controller for ITE it51xxx series.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
f0d21fb497 drivers/pinctrl: Enable pinctrl driver for it51xxx series
Enable pinctrl driver for ITE it51xxx series.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
678adea066 drivers/interrupt: Add interrupt and wake-up control drivers of it51xxx
Add interrupt and wake-up control drivers for ITE it51xxx series.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Tim Lin
0e5218cbcc drivers: ITE: Use generic name instead of specific chip name
Use generic name for structure in driver instead of specific chip name
for better compatibility.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-08 10:48:26 +02:00
Khaoula Bidani
00cc4441aa drivers: usb: udc_stm32: Update UDC speed macros
Updated UDC speed definition macros for STM32 series
to handle different speed configurations
based on the SoC compatibility.

Added conditional checks for full-speed definitions
using DT_HAS_COMPAT_STATUS_OKAY for st_stm32_usb.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-04-08 08:58:18 +02:00
Khaoula Bidani
5f3fce67c6 drivers: usb: device_stm32: Update USB_DC speed macros
Updated USB_DC speed definition macros for STM32 series
to handle different speed configurations
based on the SoC compatibility.

Added conditional checks for full-speed definitions
using DT_HAS_COMPAT_STATUS_OKAY for st_stm32_usb.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-04-08 08:58:18 +02:00