Commit graph

126,787 commits

Author SHA1 Message Date
Benjamin Cabé
7150693b9d doc: _extensions: kconfig: implement basic scoring of search results
This implements a few improvements to make Kconfig search results more
relevant:

- A match in a symbol's name is given more weight than a match in its
  prompt.
- Field-length normalization is applied so that the shorter the field,
  the higher its relevance (e.g. searching for "sensor" will basically
  yield CONFIG_SENSOR as the top result as the query basically matches
  100% of the symbol's name.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-23 16:00:32 -04:00
Keith Short
028cf7f3d9 twister: fix environment:os tag
Set the environment:os tag to the return value of platform.system(),
which is more useful than os.name() which always returns "posix".

Signed-off-by: Keith Short <keithshort@google.com>
2025-10-23 15:59:41 -04:00
Flavio Ceolin
755deaa669 doc: vuln: Add CVE under embargo
Add an entry to CVE-2025-12035

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-23 15:59:30 -04:00
Flavio Ceolin
b2f42f17ac doc: release/4.3: Add CVE under embargo
Add information about CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-23 15:59:30 -04:00
Nicolas Pitre
16905f5475 riscv: pmp: move the null pointer trap first
Let's move the null pointer trap first so to give set_pmp_entry() the
opportunity to use a single-slot TOR entry.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-10-23 15:59:19 -04:00
Dawid Niedzwiecki
283365a496 drivers: flash: andes_xip: update include
Include a new andes_csr.h file instead of soc_v5.h.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2025-10-23 15:59:11 -04:00
Henrik Brix Andersen
9f425d915c tests: drivers: can: shell: remove Kconfig based can_recover() skip
Remove false Z_TEST_SKIP_IFNDEF(CONFIG_CAN_MANUAL_RECOVERY_MODE) from the
CAN shell test suite.

The cmd_can_recover() shell function must always be tested and
CONFIG_CAN_MANUAL_RECOVERY_MODE is enabled in the test suite
prj.conf.

The test suite already relies on the capabilities of the CAN controller
driver for determining how to validate the API contract.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-10-23 15:57:23 -04:00
Henrik Brix Andersen
139acd3e78 tests: drivers: can: api: classic: remove Kconfig based can_recover() skip
Remove false Z_TEST_SKIP_IFNDEF(CONFIG_CAN_MANUAL_RECOVERY_MODE) from the
CAN classic test suite.

The can_recover() API function must always be tested and
CONFIG_CAN_MANUAL_RECOVERY_MODE is enabled in the test suite prj.conf.

The test suite already relies on the capabilities of the CAN controller
driver for determining how to validate the API contract.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-10-23 15:57:23 -04:00
Szymon Janc
b79ef27f14 tests: Bluetooth: Tester: Fix accessing out of scope variables in VCP
Input and output descriptors are writable storage for VCP parameters
and shall be valid for use duration. This fix usage of variables being
used outside of their declaration scope.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-10-23 15:55:31 -04:00
Benjamin Cabé
c57c00939e boards: microchip: fix webp image for pic32cm_jh01_cpro
This image was an avif file with a webp extension, which can cause
warnings when building docs.
Replace with webp version, with transparent background as a bonus.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-23 15:53:20 -04:00
Patryk Duda
a1a91262c4 testsuite: Do not specify dump method if hardware coverage is not set
After #94079, CONFIG_COVERAGE_DUMP is enabled even if CONFIG_COVERAGE is
not set. As a result CONFIG_ZTEST_NO_YIELD is disabled which has some
implications on other tests.

Coverage dump method is necessary only if coverage is collected on
hardware, which is enabled by CONFIG_COVERAGE_GCOV. Let's specify
default dump method, only if CONFIG_COVERAGE_GCOV is set.

Fixes: #94079
Signed-off-by: Patryk Duda <patrykd@google.com>
2025-10-23 15:53:10 -04:00
Declan Snyder
302e4d25eb tests: flash_interface_test: Only test if flash has driver
Add filter to check if there is actually a flash driver enabled. If not,
we can't run this test.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-23 15:53:00 -04:00
Andreas Kurz
0b5b6b827e native_simulator: Get latest from upstream
Align with native_simulator's upstream main
95f560a2140aacb03a74b8c933f3b27a59c56d50

Which includes:
95f560a: nct: fix possible redefinition of GNU_SOURCE

Signed-off-by: Andreas Kurz <info@akurz.net>
2025-10-23 18:08:14 +02:00
Guillaume Gautier
72cef9b458 tests: drivers: spi: loopback: boards: adjust scaling for stm32 boards
Adjust transfer duration scaling config for STM32 boards

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-23 18:07:18 +02:00
Guillaume Gautier
a80b420dda tests: drivers: spi: loopback: add stm32 spi rtio test case
Add a test case for STM32 SPI RTIO.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-10-23 18:07:18 +02:00
Guillaume Gautier
8f06e7616f drivers: spi: stm32: add rtio support
Add SPI RTIO support for STM32. SPI RTIO required interrupts.
DMA is not supported yet.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
3b856ccb11 drivers: spi: stm32: replace an #if with an if() in transceive()
Replace a #ifndef directive with a if(!IS_ENABLED()) instrcution
in transceive() function. This change makes later integration of RTIO
support in this function smoother, polluting a bit less this function
with #if based directives.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
21827ce8e3 drivers: spi: stm32: remove useless inline keywords
Remove useless inline keywords in STM32 SPI driver.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
2c62291d22 drivers: spi: stm32: fix missing braces in conditioned instruction
Fix a missing braces pair around a conditioned instruction in
STM32 SPI driver. Fix that by aggregating the 2 if() instructions
into a single ANDed one.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
21dd1db3dd drivers: spi: stm32: correct indentation
Correct some indentation issues, a few useless line escapes,
double space characters or parentheses pair in STM32 SPI driver.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
c0fdf66991 drivers: spi: stm32: explicit boolean test
Use explicit boolean tests in STM32 SPI driver.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
24530175c0 drivers: spi stm32: remove bits2byte()
Remove bits2byte() helper function than was not always used. Replace it
with a division by BITS_PER_BYTE that is explicit enough.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
5ad47994da drivers: spi: stm32: remove useless LOG_LEVEL
Remove useless LOG_LEVEL in STM32 SPI RTIO driver.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
87e752495b drivers: spi: stm32: reorder header inclusion
Reorder inclusions of header files to clarify and simplify later changes.
By the way, remove #ifdef CONFIG_SPI_STM32_DMA condition to include
DMA header files as its not required.

Keep zephyr/log.h with use of LOG_MODULE_REGISTER() first since included
local spi_context.h depends on log resources to be defined.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Etienne Carriere
88db1357b6 drivers: spi: stm32: don't include zephyr/arch/cache.h
Remove inclusion of zephyr_arch/cache.h header file from STM32 SPI
driver. This header file is included by zephyr/cache.h if applicable
(e.g. CONFIG_ARCH_CACHE is enabled) and should not be used when
CONFIG_EXTERNAL_CACHE is enabled.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Guillaume Gautier
720ee56137 drivers: spi: stm32: prepare for rtio integration
Move some code into a new function to prepare for RTIO integration.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-23 18:07:18 +02:00
Bjarki Arge Andreasen
d7a7cca3b7 tests: drivers: spi_loopback: increase latency limit for nrf54h
The nrf54h20 needs a slightly increased latency limit as the latency
is around 650us at 8MHz, which is right above the current limit of
648us (CONFIG_SPI_IDEAL_TRANSFER_DURATION_SCALING=12).

Increase CONFIG_SPI_IDEAL_TRANSFER_DURATION_SCALING to 15 to match
cpuppr_xip and match the observed latency.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
e9b7925992 tests: arch: arm: irq_vector_table: disable POWER_DOMAIN for nRF54H20
The nRF54H20s power domains use NRFS, which uses the irq vectors used
for this test suite. Disable power domains to not conflict with the
test suite.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
beacd7c181 dts: drivers: nordic: nrf54h: Don't manage clocks from drivers
Clocks are requested automatically by hardware on the nRF54H.

Remove additional handling from device drivers, and disable
the now unmanaged clocks in the devicetree.

Updates:
  - can_nrf
  - counter_nrfx_timer
  - uart_nrfx_uarte
  - spi_nrfx_spim
  - spi_nrfx_spis

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
bbad3d9717 drivers: nordic: support pin retention for AIN
Devices which use AIN (COMP, LPCOMP, SAADC) don't use pinctrl to
configure their pins, thus pinctrl can't manage pin retention like
is done for other devices. Thus for now, add manually disabling
pin retention to the drivers.

In the future, we should probably use pinctrl for these inputs
as well, at which point this commit can be reverted.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
e092eae90a drivers: gpio: remove pad group integration
Replace the pad group integration with directly setting/clearing
pin retention for output pins if required, since the pad group
integration is redundant if the quirky cross domain feature is
managed by the application.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
0a8888d000 drivers: pinctrl: nrf: simplify pin retention
GPIO pad power domain management is not neccesary if the quirky
cross domain feature is handled at the application level. Replace it
with directly setting/clearing pin retention, as hardware will force
power domains on automatically.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
3a74ed7013 dts: vendor: nordic: nrf54h: remove gpio-pad-groups
The gpio pad groups are redundant if pin retention is handled per
pin, and the quirky cross domain feature is managed by the
application. Remove it entirely.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Bjarki Arge Andreasen
191c9e47fd dts: vendor: nordic: nrf54h: remove power-domains from devices
All devices used in their "normal"/intended configuration do not
require management of the power domains, as the hardware itself will
request them automatically. Thus by default, don't specify the
power domains to avoid redundant resume/suspend cycles, which are
slow and require threading (IPC) making devices not isr ok.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-10-23 18:06:30 +02:00
Torsten Rasmussen
bbfcaa2e1b tests: remove misuse of snippets
Tests cases which needs to apply a single overlay file for testing
should not use snippets.

Cleanup the test case by reordering the snippet to be SoC specific and
adjust overlay selection using FILE_SUFFIX.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-10-23 18:04:54 +02:00
Tahsin Mutlugun
4b1f9bab42 boards: adi: Correct flash node assignment for MAX32655 boards
Fixes a regression introduced in commit ef6aad9ca6 where the flash
node was incorrectly set to code_partition, causing FLASH_BASE_ADDRESS
to default to 0x0 and making the device unprogrammable.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-10-23 18:04:45 +02:00
Jordan Yates
0d86ebb83b llext: load: memcpy section header
When loading from `.elf` files, it is not guaranteed that section
headers are word aligned with the `.elf` file. Attempting to perform
a direct assignment results in the compiler assuming the input pointer
is aligned, resulting in usage faults if the assumption is broken.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-23 18:04:34 +02:00
Ricardo Cañuelo Navarro
61e177f521 Bluetooth: Host: remove unnecessary assignment in bt_conn_unref()
This local pointer assignment does nothing and readers may get a wrong
interpretation of the intention of the function.

Signed-off-by: Ricardo Cañuelo Navarro <rcn@igalia.com>
2025-10-23 18:04:18 +02:00
Yurii Lozynskyi
dc842e1673 boards: infineon: fixed documentation for kit_pse84_eval board
Fixed documentation for the PSOC Edge E84 Evaluation Kit

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-10-23 18:04:06 +02:00
Kamil Krzyżanowski
0a047679fe drivers: serial: stm32: don't allow async TX on a suspended UART
Return an error if trying to send data using a suspended UART,
instead of blocking, possibly forever, for a transmission that will never
succeed.

Signed-off-by: Kamil Krzyżanowski <kamnxt@kamnxt.com>
2025-10-23 18:03:49 +02:00
Fabrice DJIATSA
9defa3cd65 samples: net: zperf: update async_tx scenario configuration
Add console harness and a dedicated regex word for test validation

on STM32 platforms compatible with HAL_API_V2.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-10-23 18:03:27 +02:00
Alvis Sun
acc8fdfd4f drivers: i3c: npcx: add device only when IBI enable succeeds
Ensure the device is added to the list only if the ENEC I3C
transaction succeeds.
Adding the device before enabling IBI may cause IBI retry failures
due to the device already being present in the list.

Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
2025-10-23 18:03:15 +02:00
Valerio Setti
9c13bfd5d7 net: ip: ipv6: replace legacy crypto with PSA API
Zephyr's long term goal for crypto support is to use only PSA API. This
commit replaces usages of MD with proper PSA API for HMAC.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-23 18:02:56 +02:00
Valerio Setti
d33c4ef96f tests: net: iface: increase main stack size in net.iface.iid.stable
Moving from legacy Mbed TLS crypto to PSA API would cause mps2/an385
platform to fail due to stack overflow. This commit increases
the stack size to solve this problem.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-23 18:02:56 +02:00
Valerio Setti
6115d590ca west: mbedtls: include a fix for static key slot key material buffer size
Include a fix for the allocated buffers in case of static key slots.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-23 18:02:56 +02:00
Valerio Setti
00eee1ad78 jwt: deprecate CONFIG_JWT_SIGN_RSA_LEGACY
With the long term goal to transition all crypto support toward PSA API,
this commit deprecates CONFIG_JWT_SIGN_RSA_LEGACY.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-23 18:02:37 +02:00
David Jewsbury
d9677bbd7b drivers: mspi: mspi_dw: Add DMA support
Initial DMA support. DMA supports implementation of SSI IP but using vendor
specific DMA in the wrapper. The setup of the DMA is done in
mspi_dw_vendor_specific.h.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2025-10-23 18:00:13 +02:00
David Jewsbury
a18fd95004 drivers: mspi_dw: Add support for slave mode
MSPI slave mode is selected through devicetree using the
op-mode property. Mode selected by SSIISMST bit in the
CTRLR0 register. EXMIF can only be Master (controller).

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2025-10-23 18:00:13 +02:00
David Jewsbury
2f1ee737b3 drivers: mspi_dw: Add support for asynchronous transfers
Handling of asynchronous transfers uses the system workqueue,
hence they are not available when multithreading is disabled.

Also add missing dependency on multithreading in the
MSPI_DW_HANDLE_FIFOS_IN_SYSTEM_WORKQUEUE Kconfig option.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-10-23 18:00:13 +02:00
David Jewsbury
032ca4c894 dts: mspi: Align op-mode binding with mspi.h enum
enum mspi_op_mode in mspi.h has different syntax to this binding.
Aligning these will allow for cleaner code in the implmented drivers.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2025-10-23 18:00:13 +02:00