Commit graph

136,983 commits

Author SHA1 Message Date
Hugues Fruchet
0c0bb202c7 samples: video: tcpserversink: fix missing input buffer encoder dequeue
Fix missing input buffer encoder dequeue, this was corrupting camera
device fifo because of same buffer queued into two different fifo.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
70f57d119a drivers: video: stm32_dcmipp: give back buffers at stream disable
Give back buffers at stream disable.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
cc8475dd52 drivers: video: stm32_dcmipp: set multilines to 128 to limit interrupts
Set multiline on pixel pipes to 128 lines to limit slave IP hardware
handshakes and so reduce the number of interrupts received by slave IP.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
8c8a021a5f drivers: video: stm32_venc: log interrupts
Log number of interrupts, including fuse interrupts at each
key frame and at the end of encoding.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
f396ac9efc drivers: video: stm32_venc: fix completion on interrupt
Fix wait of hardware encoding completion by using
interrupt signaling instead of polling on irq status.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
e84f195780 drivers: video: stm32_venc: fix delta frames generation
Only key frames were generated because of resync flag
always true, fix this.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Hugues Fruchet
a616f7b107 drivers: video: stm32_venc: fix release sequence
Fix missing H264 library release and total memory count reset.

Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
2026-01-23 13:52:31 +01:00
Andy Lin
d807e39a2c arch: riscv: Add the support for Zbkb ISA extension
Introduce the missing flag to compile code with Zbkb extension,
which has already been supported by the GCC 12 in current SDK.

Signed-off-by: Andy Lin <andylinpersonal@gmail.com>
2026-01-23 13:51:55 +01:00
Łukasz Kędziora
261dfbc765 drivers: spi_dw: Add clock control
This adds optional clock control support to the spi_dw driver. The
support currently assumes that the clock control binding uses clkid for
the clock cell name.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
2026-01-23 13:50:34 +01:00
Marcelo Roberto Jimenez
e73e2f148c drivers: ethernet: xmc4xxx: BUG Fix: RX code dropping packets
The ethernet DMA driver code was causing the silent dropping of packets
with length 125, 126 and 127. The root cause of the problem is that the
DMA engine performs an extra four bytes transfer corresponding to the
Receive Status Word. For those particular packet lengths, the previous
code incorrectly calculated the last fragment size.

The new code avoids that pitfall by decrementing the total frame size as
the fragments are being collected, while avoiding the creation of an
extra fragment on the extracted network packet.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 13:49:34 +01:00
Johann Fischer
506a59396f usb: device_next: fix compilation if the user disables HWINFO
Make USBD_HWINFO_DEVID_LENGTH prompt optional so that the code compiles
even if HWINFO is disabled.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-01-23 13:48:16 +01:00
Robert Lubos
ba04734220 net: sockets: tls: Optimze helper buffer for sendmsg and CID check
Both cases use a large static buffer, we can optimize here and use a
single mutex-protected buffer for both.

sendmsg() test case needed adjustments, as it was also testing a buffer
overflow scenario. This can only be properly tested however if CID
feature is disabled, as otherwise the common helper buffer size is
increased for the CID use case, preventing the overflow from taking
place.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
3cc194ee35 tests: net: sockets: tls: Add test cases for DTLS server multi-client
Add test cases verifying that DTLS server socket can handle multiple
clients.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
8afc2af3c2 net: sockets: tls: Make socket options work with multi-client server
For options that return the handshake status, make sure they work in
multi-client DTLS server case, by returning the status for the session
that completed handshake most recently. For TLS and DTLS client cases
that should make no difference, as there should only be one session per
context.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
ab07f69128 net: sockets: tls: DTLS server session timeout rework
With support for multiple client sessions for DTLS server socket, the
session timeout can no longer rely on built-in mbed TLS timing out
mechanism, as this only works for the session that is currently active.
Background sessions would never time out if the client just went silent.
Therefore, allocate a per-session timestamp, that keeps track of the
last activity on the session. Then, whenever poll() or recv() is called
loop over all sessions to identify those that timed and should be
released.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
53be38d3f0 net: sockets: tls: Implement DTLS server session matching by CID
In case a client address changes, but a session uses Connection ID
extension, the server should verify if the packet belongs to any of the
established sessions based on the CID value.

Therefore, before attempting to allocate a new session in such case,
loop over sessions and try to match the packet to one of the existing
sessions based on CID. In case of success, update the corresponding peer
address.

If no session is found based on CID, only then try to allocate a new
one.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
4197720be8 net: sockets: tls: Free DTLS server active session on errors
In case of errors on an active session (in most cases peer closing the
session), the session should be freed. Note, that as mbed TLS needs some
session context to work with, the last session on a socket is not freed,
but only reset instead.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
6f58b3f24f net: sockets: tls: DTLS server session matching on TX
For TX, the DTLS server needs to check the peer address before passing
the packet to mbed TLS. In case the peer address doesn't match the
active session, it needs to switch sessions.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
cc6248d87c net: sockets: tls: Refactor RX part for DTLS server
Refactor RX side for DTLS server to allow session switching when a
datagram from a peer that does not match current session. The server
needs to loop over established sessions, and in case no session is
found allocate a new one.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
9e544a9ec7 net: sockets: tls: Split DTLS BIO functions
Split DTLS BIO RX functions for client and server case, given the
functionality will differ heavily. DTLS server needs to peek packet
before passing it to mbed TLS to allow to switch DTLS sessions in case
peer address doesn't match.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
779bfe2e5e net: sockets: tls: Split TLS session and context initialization
It has to be possible to initialize TLS sessions separately of the TLS
socket context.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
42754f8f8d net: sockets: tls: Separate TLS session context from socket context
Separate TLS session context from the TLS socket context so that a
single DTLS server socket can support multiple client sessions.
Other socket types will only have a single session per TLS socket.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Benjamin Cabé
72a1c9e43e doc: _scripts: gen_devicetree_rest: ensure blank lines around transition
Transition markers ("----") require blank lines before and after, so
this ensures that is always the case.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-01-23 10:45:39 +01:00
Tim Lin
e13971b796 dts: ite/it8xxx2: Reduce devicetree size with omit-if-no-ref
Mark unused pinctrl and wuc nodes in it8xxx2 with /omit-if-no-ref/,
so that they are omitted from the final devicetree when not referenced.

After this change, test: "west build -p always -b it8xxx2_evb" shows a
reduction in devicetree size:

Before:
  build/zephyr/zephyr.dts 164,449 bytes
  build/zephyr/include/generated/zephyr/devicetree_generated.h
  3,125,359 bytes

After:
  build/zephyr/zephyr.dts 124,108 bytes
  build/zephyr/include/generated/zephyr/devicetree_generated.h
  1,892,313 bytes

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2026-01-23 10:45:20 +01:00
Ren Chen
f1c1ef170d dts: riscv: it51xxx: omit pinctrl and wuc nodes if not referenced
This commit prefixes pre-generated nodes with
`/omit-if-no-ref/` to keep the generated devicetree
C headers minimal.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-01-23 10:45:05 +01:00
Tomasz Moń
288802461c dts: bindings: clock: fix reference audio frequencies
Reference audio clock frequencies are supposed to be integer multiplies
of sampling frequency (44100 * 256 = 11289600, 48000 * 256 = 12288000)
and not some arbitrary numbers.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2026-01-23 10:44:43 +01:00
Maochen Wang
67ac1ddd77 manifest: hal_nxp: upgrade wifi version to r53.p2
Upgrade wifi driver version to r53.p2.
Support static ipv4 address connection for STA interface.
Improved throughput value for SDIO case.
Support event based FW dump for IW61x.
Fix several bugs.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2026-01-23 10:44:20 +01:00
Gaetan Perrot
e18e1c06c8 drivers: dai: intel: dmic: make dai_dmic_probe void
dai_dmic_probe() and dai_dmic_probe_wrapper() never reports errors
and always returns 0.
The error check at the call site is therefore dead code.

Make functions void and drop the unused error handling.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-23 10:44:10 +01:00
Ryan Wiebe
8135c56cf6 modbus: Fixed serial RX enablement for ASYNC and client mode
Modbus is failing to turn on RX when using serial ASYNC mode. This
causes modbus to never receive inbound requests, leaving it inoperable.
Additionally, modbus also enables RX when in client mode, leading to
issues when running as a client. These have been fixed by enabling rx
only when serial init is successful and modbus is in server mode during
initialisation.

Signed-off-by: Ryan Wiebe <ryan.wiebe@analog.com>
2026-01-23 10:43:59 +01:00
Peter van der Perk
b76f37c5da boards: nxp: mr_canhubk3: Increase FS26 init priority
We've to ensure nothing blocks the watchdog init on startup,
otherwise we'll get into bootloop. Hence increase the piority.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-01-23 10:43:47 +01:00
Peter van der Perk
80c2beff83 drivers: watchdog: FS26 watchdog support RTIO
Under RTIO SPI behaves differently and thus FS26 didn't work and
would reset the board. This changes to add 8-bit transfer support
and doesn't lock the irq anymore since the SPI driver got changed.
Which would yield an assertion, best it ensure feed callee priority
is high enough.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-01-23 10:43:47 +01:00
Vincent Tardy
6f350ae64d soc: st: stm32wba: adjust thread size if BT enabled
SYSTEM_WORKQUEUE_STACK_SIZE KConfig is setting to 1024 in case of
BT_TX_PROCESSOR_THREAD is enabled, else 2048.
BT_TX_PROCESSOR_STACK_SIZE KConfig is setting to 2048 in case of
BT_TX_PROCESSOR_THREAD is enabled.

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2026-01-23 10:43:19 +01:00
Albort Xue
59ffa602b4 drivers: counter: mcux_lpit: Add clock configuration and enable
Add explicit clock configuration and enable calls during driver
initialization. The driver now attempts to configure the clock
subsystem before enabling it.

Note: -ENOSYS is temporarily ignored as not all clock control
drivers currently implement the configure API. This handling
should be removed once all clock drivers support configure.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-01-23 10:43:08 +01:00
Camille BAUD
f8f94fd6cd drivers: rp2: Add support for RP2350 for vreg
Adds support for RP2350 in vreg regulator driver

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-23 10:42:35 +01:00
David Jewsbury
1cbaa5f3f5 drivers: mspi_dw: nrf_qspi_v2: Remove redundant EVDMA definitions
EVDMA register access has been cleaned up to remove redundant macros.
EVDMA_PLAIN_DATA enum has also been added of value 0x3F which previously
had been assumed to be a masking of all the other values but isn't, it's
its own distinct value. Other enums still exist for future use.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2026-01-23 10:42:15 +01:00
David Jewsbury
2043119bcc drivers: mspi_dw: nrf_qspi_v2: Add ifdef to include DMA code if enabled
DMA functions will not only be included if enabled for the nrf_qspi_v2
peripheral

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2026-01-23 10:42:15 +01:00
David Jewsbury
a2b583081a drivers: mspi_dw: fix DMA transfer size logic
Fixing of erroneous RXTRANSFERLENGTH and number of transfer frames
calculation.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2026-01-23 10:42:15 +01:00
Lyle Zhu
cc18a23ec9 bluetooth: classic: GOEP: fix L2CAP MTU calculation
Correct the minimum MTU calculation for GOEP over L2CAP to account
for the L2CAP I-frame overhead.

- Update BT_BUF_ACL_RX_SIZE default from 264 to 265 bytes for GOEP
- Update BT_GOEP_L2CAP_MTU minimum range from 259 to 265 bytes
- Add detailed comment explaining L2CAP I-frame field length (6 bytes):
  * 4 bytes for extended control field
  * 2 bytes for FCS field

The previous calculation only accounted for the L2CAP header (4 bytes)
but missed the 6-byte L2CAP I-frame overhead (extended control field
and FCS), resulting in an incorrect minimum of 264 bytes instead
of the correct 265 bytes. And it causes the minimum MTU of L2CAP
to be incorrectly set to 254. The MTU cannot meet the minimum
requirement of GOEP MOPL.

The correct calculation for GOEP over L2CAP is:
255 bytes (GOEP minimum MTU) + 4 bytes (L2CAP header) + 6 bytes
(L2CAP I-frame) = 265 bytes total.

Set the default value of CONFIG_BT_BUF_ACL_RX_SIZE to 265 if GOEP is
enabled.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2026-01-23 10:41:38 +01:00
Dat Nguyen Duy
2247f4dc7a tests: drivers: support watchdog tests for s32k5xxcvb
Enable wdt_basic_api watchdog only for cm7. For cr52,
because the SoC set the cores in Thumb mode after reset,
so a debugger is always needed to switch the core to Arm
state before loading zephyr application.

wdt_basic_reset_none test can be enabled for both.

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-23 10:41:27 +01:00
Dat Nguyen Duy
2d019f163d samples: support watchdog samples for s32k5xxvcb
Only enable watchdog sample for cm7. For cr52, because the
SoC set the cores in Thumb mode after reset, so a debugger
is always needed to switch the core to Arm state before
loading zephyr application.

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-23 10:41:27 +01:00
Ha Duong Quang
640c4d1ba3 boards: nxp: s32k5xxcvb: add support for watchdog
Add support for Watchdog (SWT)

Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
Co-authored-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-23 10:41:27 +01:00
Dat Nguyen Duy
3836420f2f dts: nxp: add watchdog devicetree nodes for s32k566
Add watchdog devicetree nodes for S32K566

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-23 10:41:27 +01:00
Kevin Chan
e7720307ef tests: drivers: sdhc: support PSE84
- add overlay files for CM55 in order to run sdhc app.

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Kevin Chan
ac0ad06f9e tests: subsys: sd: sdmmc: support PSE84
- add overlay file for CM55

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Kevin Chan
365ce11066 samples: subsys: fs: fs_sample: support PSE84
- add overlay and conf file

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Kevin Chan
2e8b47462a samples: net: wifi: shell: support PSE84
- add conf. file

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Kevin Chan
0c950801d3 drivers: sdhc: add SDHC driver for PSE84 & cy8cproto_062_4343w
- add SDHC driver code to support both SDMMC and SDIO fucntion
- add SDHC dts node and Kconfig
- add clock configuration for SDHC

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Thinh Le Cong
642127e1d7 dts: arm: renesas: add SCI SPI node for Renesas RA
Add SCI SPI nodes for Renesas RA SoCs

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-01-23 10:40:51 +01:00
Thinh Le Cong
0f80ee260d drivers: spi: Initial support for SCI SPI driver on Renesas RA
Add SCI SPI driver support on Renesas RA devices

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-01-23 10:40:51 +01:00
Dave Lacerte
64c88e9bb3 boards: arduino: portenta_h7 : Update doc about WiFi functionality
Removes a forgotten note about the WiFi feature, which is now supported.

Signed-off-by: Dave Lacerte <lacerte.dave@hydroquebec.com>
2026-01-22 14:35:11 -06:00