Commit graph

126,787 commits

Author SHA1 Message Date
Sylvio Alves
afdfe74de6 drivers: udc_dwc2: add Espressif pre-enable and shutdown hooks
Ensure the USB clock is enabled before initializing the
controller by invoking the pre_enable hook. This avoids
initialization failures when the HAL has not yet configured
the clock.

Adds shutdown hook to allow interrupt and clock deinit.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-10-22 15:59:59 +03:00
Bartlomiej Buczek
7d68c8032e boards: nordic: nrf54h20: Add adc to supported features
Enable twister tests execution on nrf54h20dk/nrf54h20/cpuppr target.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-10-22 15:59:49 +03:00
Quang Le
d92a870a10 samples: drivers: spi: Add support for RZT2M
Enable SPI driver sample for RZT2M

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 15:59:39 +03:00
Quang Le
d247b4b72d tests: drivers: spi: Add support for RZN2L, T2M
Enable SPI driver tests for RZN2L, T2M

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 15:59:39 +03:00
Quang Le
fcea8d3205 boards: renesas: Add SPI support for RZN2L, T2M
Add SPI support for board RZ/N2L-RSK, RZ/T2M-RSK

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 15:59:39 +03:00
Quang Le
39a7b92038 dts: renesas: Add SPI support for RZN2L, T2M
Add SPI nodes to Renesas RZN2L, T2M devicetree

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 15:59:39 +03:00
Quang Le
d5f143b406 drivers: spi: Initial support for RZN2L, T2M
Add SPI driver support for Renesas RZN2L, T2M

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-22 15:59:39 +03:00
Mathieu Choplain
e056cceae0 boards: st: nucleo_wba65ri: add support for USB
Configure and enable the USB controller on Nucleo-WBA65RI.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-22 15:59:27 +03:00
Mathieu Choplain
f95b84b501 drivers: usb: udc: stm32: add support for USB on STM32WBA6x
Add support for USB on STM32WBA6x series, along with a tiny rework of how
the st,stm32u5-otghs-phy is handled to make the code more generic by
actually consuming DT information.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-22 15:59:27 +03:00
Mathieu Choplain
8221d078d7 dts: arm: st: wba: add USB to STM32WBA6x DTSI
Add missing nodes for USB feature to STM32WBA6x DTSI.

(Note: only WBA65 DTSI exists today, but USB is available in other SoCs of
the series - this should be reworked later)

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-22 15:59:27 +03:00
Mathieu Choplain
541f7f7ff2 include: bindings: stm32wba: add OTGHS mux selector
Add missing OTGHS_SEL macro to STM32WBA clock header. This macro applies
only to certain SoCs of STM32WBA6x series.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-22 15:59:27 +03:00
Quy Tran
a570b0564f drivers: serial: Support PM device for serial driver
Support PM for serial driver of Renesas RX

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-22 15:59:01 +03:00
Phi Tran
3bc9d9b6c6 soc: renesas: rx: initial support pm for RX130
Add initial support power management for Renesas RX130

Signed-off-by: Phi Tran <phi.tran.jg@bp.renesas.com>
2025-10-22 15:59:01 +03:00
Quy Tran
6680cff956 manifest: hal_renesas: Update revision for hal_renesas
Update revision for hal_renesas for lpc support

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-22 15:59:01 +03:00
Valerio Setti
e2c054be2c doc: migration-guide: add note for crypto updates in McuMGR
Add note for the removal of Mbed TLS' legacy crypto support in favor of
PSA API.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-22 15:58:51 +03:00
Valerio Setti
bed1cd1ea9 tests: subsys: mgmt: mcumgr: remove selection of Mbed TLS in tests
MCUMGR_GRP_FS_HASH_SHA256 now already selects Mbed TLS and its PSA Crypto
support if TF-M is not enabled in the build, so there is no need to do
that in test configuration files.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-22 15:58:51 +03:00
Valerio Setti
f779adf8e0 mgmt: mcumgr: remove usage of legacy Mbed TLS crypto for hash
The long-term goal of Zephyr is to rely exclusively on PSA Crypto API for
crypto support. At the same time Mbed TLS is going to remove legacy crypto
support starting from the next relase (v4.0).

Therefore this commit removes usage of legacy Mbed TLS crypto in favor
of PSA Crypto API. Mbed TLS will still be used in case of a build where
TF-M is not enabled.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-22 15:58:51 +03:00
Etienne Carriere
b6b75d9901 doc: migration guide: OpenOCD deprecation of ST-Link HLA interface
A recent change in OpenOCD deprecates ST-Link HLA interface requiring
changes in some board OpenOCD configuration files in the Zephyr tree.
Since this deprecation, in order to support old and recent OpenOCD
tool we needed to change of debug driver interface for these boards,
potentially causing trouble to user to have a recent OpenOCD and
an old ST-Link adapter firmware. Therefore add an entry in the migration
guide to give some hints on the potential issue and how to address
it.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-22 15:58:41 +03:00
Etienne Carriere
073fd96832 boards: st: address recent OpenOCD deprecation of HLA interface
This change aims to address a compatibility issue with recent OpenOCD
pre-release and what is planned in OpenOCD v1.0.0 planned end of 2025.
OpenOCD commit 34ec5536c0ba ("stlink: deprecate HLA support") [1] was
merged in December 2024 after release tag 0.12.0 and before coming
release v1.0.0. It deprecates the legacy HLA driver interface (also
called transport) in favor to the generic DAP interface that is
supported by ST-Link firmware v2.1 (that is version v2j24) and later.

Since the referred commit, OpenOCD config script must source a new
config file (interface/stlink-hla.cfg) in order to select hla_swd
transport. This change breaks many ST-Link based OpenOCD config files
of Zephyr. Alternatively, already existing interface/stlink-dap.cfg
can be used together with dapdirect_swd interface to use direct DAP
interface.

To overcome the issue and support older and newer OpenOCD releases,
this change uses OpenOCD native board config script files when
available or if none, we select the dapdirect_swd transport ID that
is supported since a long time and still maintained thank to
OpenOCD native interface/stlink-dap.cfg config script file.

One may potentially face connection issues if using both a recent
OpenOCD tool and an ST-Link adapter that embeds a old ST-Link
firmware v1.x. This ST-Link firmware only supports HLA interface.
It is not shipped by ST in ST-Link adapter since 2015. This situation
however may happen with old STM32 L0/L1/L4/F4 Nucleo/Discovery
boards or with old ST-Link adapter devices. ST-Link firmware v1.0 do not
support DAP direct SWD interface. In such a case, either upgrade the
ST-Link firmware (see STM32CubeProgrammer guide), or revert the change
made here to explicitly use hla_swd transport based on stlink-hla.cfg.
Alternatively, use an older OpenOCD release which may not be desired.

Link: https://sourceforge.net/p/openocd/code/ci/34ec5536c0ba3315bc5a841244bbf70141ccfbb4/ [1]

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-22 15:58:41 +03:00
Greter Raffael
a6eaa54f64 sys: util_macro: Support macros as arguments
Adjusted GET_ARG_N and GET_ARGS_LESS_N to use UTIL_CAT instead of simple
concatenation. This allows to use a macro as the argument N instead of
only numbers.

Adjusted the unit tests to showcase this.

Signed-off-by: Greter Raffael <rgreter@baumer.com>
2025-10-22 15:58:10 +03:00
Jamie McCrae
7ab42e51f0 dts: arm: nordic: nrf5340: Add missing ranges property for QSPI
This was missing the XIP region

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-22 15:57:44 +03:00
Jamie McCrae
4edc35772b dts: vendor: nordic: nrf54lm20a: Fix invalid reg for USB
Fixes an invalid reg value which duplicated the parents range
property

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-22 15:57:34 +03:00
Sudan Landge
a55053b216 tests: fix arch.arm.user.stack test failure
Fixes #97473 by:
- Marking the test as passed if the hardware executes user threads for a
  while without triggering a stack corruption, instead of waiting
    indefinitely.
- Adding a timeout to ensure the test exists gracefully if the issue is
  not reproduced.

Also fixes a stack corruption issue on QEMU targets, caused by
insufficient stack size and revealed by the timer change.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-10-22 15:57:24 +03:00
Jordan Yates
95a3110624 tests: drivers: gnss: gnss_emul: test driver
Test the behaviour of the emulated GNSS driver.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 15:57:08 +03:00
Jordan Yates
70b0e17d60 gnss: gnss_emul: decouple realtime and gnss time
Allow the emulator to be set to an arbitrary UTC time, instead of being
locked to reporting the current system uptime as UTC.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 15:57:08 +03:00
Jordan Yates
7c3beaf6e4 gnss: gnss_emul: allow direct config queries
Provide an escape hatch from the GNSS API requirement that a device
be active to run the configuration `get` functions. This is useful in
the context of an emulator device to query how other software modules
have configured the GNSS.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 15:57:08 +03:00
Jordan Yates
802f4a3fbf gnss: gnss_emul: halt callbacks when not ACTIVE
Ensure that callbacks do not continue to fire after `ACTION_SUSPEND`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 15:57:08 +03:00
Jordan Yates
9bc84b9359 gnss: gnss_emul: init with pm_device_driver_init
Remove the custom initialisation logic that attempts to duplicate
`pm_device_driver_init`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 15:57:08 +03:00
Jordan Yates
711c8ce9e1 gnss: gnss_emul: manual data update mode
Add an option for the GNSS fix state reported by the emulated GNSS modem
to be manually configured by test code, instead of being hardcoded to
always achieve a fix of hardcoded parameters after 5 seconds.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-22 15:57:08 +03:00
Stoyan Bogdanov
f3f332c40e MAINTAINERS: Add cc23xx and collaborator for TI SimpleLink Platforms
- Add cc23xx SoCs to files in TI SimpleLink
- Add bogdanovs as colaborator for TI SimpleLink

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
2025-10-22 15:56:57 +03:00
Artur Dobrynin
6f29b25ed4 tests: bsim: bluetooth: host: robust subscription proc
GATT subscription in conn_stress test was failing and stalling the test
due to lack of TX buffers. Retry mechanism added as a workaround.

Removing this workaround would make the test fail due to deadlocks,
and require allocating more buffers with CONFIG_BT_L2CAP_TX_BUF_COUNT
set to 10 as a workaround.

Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
2025-10-22 15:56:46 +03:00
Artur Dobrynin
bb7463fbdd tests: bsim: bluetooth: host: enable conn_stress
Adding some minor modifications in order to be able to run
host conn_stress test on CI.

Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
2025-10-22 15:56:46 +03:00
Ricardo Cañuelo Navarro
f18e0ff280 boards: seeed: xiao_nrf54l15: fix led0 polarity
led0 in this board is active low according to the schematic.
Tested on a XIAO-nRF54L15 and a XIAO-nRF54L15 sense.

Signed-off-by: Ricardo Cañuelo Navarro <rcn@igalia.com>
2025-10-22 15:56:15 +03:00
Alberto Escolar Piedras
dd06e7ec72 drivers timer nrf_rtc: Fix dependency
8498c39e13 seems to have introduce
an incorrect dependency which prevents the RTC timer from
been built if any of the RTC's are enabled.
It should only depend on the rtc1.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-10-22 15:56:04 +03:00
Diego Herranz
1d5c148045 soc: nxp: imx: imx7d: soc.c: enable uart1/3/4/5/7 if used in DT
Only uart2 and uart6 were considered before, so if any other uart
was used, it wouldn't work and even worse, it would crash when
trying to access it because the RDC wasn't configured.

Signed-off-by: Diego Herranz <diegoherranz@diegoherranz.com>
2025-10-22 15:55:53 +03:00
Alain Volmat
df6857bbe1 video: stm32: enable STM32 VENC / JPEG build_all tests
Allow building the STM32 VENC and STM32 JPEG HW codec as part
of the build_all tests.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-22 15:55:42 +03:00
Alain Volmat
e33595e4f5 dts: bindings: video: stm32: add title entry on stm32 video bindings
Add missing title entry in stm32 video device bindings.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-22 15:55:42 +03:00
Cristian Bulacu
b08a034628 modules: openthread: platform: Enable mDNS auto enable functionality
As per OpenThread API documentation, it is recommended for a Border Router
to use this functionality

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-22 15:55:32 +03:00
Pieter De Gendt
5709b55875 scripts: west_commands: Convert sysbuild argument to BooleanOptionalAction
Instead of using a mutually exclusive group for sysbuild/no-sysbuild
argparse arguments, use the argparse.BooleanOptionalAction to allow passing
multiple arguments, where the last one is applied.

This is consistent with for example gcc compiler flags.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-10-22 15:55:21 +03:00
Alexander Svensen
4896194be8 tests: bluetooth: Recycle ext_adv_sets when stopping adv
- We want to reuse ext_advs when first stopped and restarted
- This ensures SID is the same
- Fixes CAP/CL/ADV/BV-03-C

Signed-off-by: Alexander Svensen <alexander.svensen@nordicsemi.no>
2025-10-22 15:55:10 +03:00
Sebastian Bøe
8e59980f01 scripts: ci: check_compliance: Add missing gen_uicr UNDEF's
Add missing gen_uicr UNDEF's.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-10-22 15:54:59 +03:00
Johan Hedberg
0fd8af97fb Bluetooth: Host: Make use of common array helper macros
There's a bunch of convenience macros in sys/util.h that are intended to
help out with translating array indices and determining if an element is
part of an array or not. Use those instead of custom code.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-10-22 15:54:48 +03:00
Fin Maaß
45fc6fedf3 riscv: remove unneeded select ATOMIC_OPERATIONS_BUILTIN
When RISCV_ISA_EXT_A is enabled,
ATOMIC_OPERATIONS_BUILTIN automaticly enabled,
we don't need to do it at the soc level again.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-10-22 15:54:37 +03:00
Fabio Baltieri
b0b5c083fb input: use single evaluation clamp
Use single evaluation clamp for few input drivers. No reason not to,
make some sense for the input_kbd_matrix call since one of the arguments
is a function.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-10-22 15:54:25 +03:00
Benjamin Cabé
2f91d64997 drivers: sensor: pni: rm3100: drop unused inline function
settings_changed() is not used, causing warnings when building with
clang. Drop it

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-22 15:54:12 +03:00
Benjamin Cabé
8e7599af34 drivers: sensor: adxl345: fix uninitialized variable warning
Fix -Wsometimes-uninitialized warning by initializing data_opt directly
from fifo_wmark_cfg->opt. At this point in the code flow, fifo_wmark_cfg
is guaranteed to be non-NULL because we can only reach this code after
fifo_full_irq is true, which requires fifo_wmark_cfg to be non-NULL.

Added an assertion to document this invariant.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-22 15:54:12 +03:00
Bill Waters
f39f9bd38f soc: infineon: cat1b: psc3: noinit linker update
This device needs a custom noinit.ld file to account
for how ROM uses RAM during boot.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-10-22 09:08:58 +02:00
Stephan Linz
7cd1fbd73f boards: nxp: frdm_mcxn947: add mikrobus labels
Added mikrobus_i2c, mikrobus_spi and mikrobus_header node labels
to FRDM-MCXN947 device tree board definition, allowing compatible
shield boards to be used. Also add new FlexComm SPI pinmux for the
LPSPI6 on LPFLEXCOMM6 and enable required GPIO3 and GPIO5.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2025-10-22 09:08:26 +02:00
Stephan Linz
d66a3d6ded boards: nxp: frdm_mcxn947: add arduino labels
Added arduino_serial, arduino_i2c, arduino_spi and arduino_header
node labels to FRDM-MCXN947 device tree board definition, allowing
compatible shield boards to be used. Also extend the board YAML file
with related support tags arduino_gpio, arduino_i2c, arduino_serial
and arduino_spi.

Signed-off-by: Stephan Linz <linz@li-pro.net>
2025-10-22 09:08:26 +02:00
Maochen Wang
e9cdd6869d hostap: fix cmd error for wifi reg_domain
When CONFIG_WIFI_NM_HOSTAPD_AP is enabled, input 'wifi reg_domain', there
is error log shows 'zephyr_get_hapd_handle_by_ifname: Unable to get hapd
hanl, Interface ml not found'. The reason is the parameter dev of
hostapd_ap_reg_domain is from STA not SAP interface. Getting the correct
SAP dev can fix this issue.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-10-22 09:04:44 +02:00