Commit graph

126,787 commits

Author SHA1 Message Date
Jordan Yates
b4025e89e2 tests: net: conn_mgr_nsos: test idle timeout
Test the behaviour of the idle timeout on native sockets. Only tests
a subset of the "active" paths to not require any external services.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
7521782ce6 net: nsos_sockets: conn_mgr_connectivity usage calls
Add interface usage notifications to the native socket offload code
paths.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
e655c0ed1a net: ip: conn_mgr_connectivity usage calls
Add interface usage notifications to the `NET_NATIVE` code paths.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
b92a43d7c0 net: conn_mgr_connectivity: idle timeouts
Implement idle timeouts, primarily in the common connectivity library,
with individual interfaces notifying the library when the interface has
been used.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
3a107e583c tests: net: conn_mgr_conn: test idle timeout param
Add tests for the idle timeout parameter.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
e3a7bb30bd net: conn_mgr_connectivity: idle timeout parameter
Add an interface idle timeout parameter to the connectivity
binding structure. This will be used to track idle timeouts for
interfaces.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
65b616f6d8 net: conn_mgr: connectivity: replace !binding
Replace all `!binding` checks with `binding == NULL` for MISRA
compliance.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Jordan Yates
cfe0a68743 net: net_if: add NET_IF_DECLARE
Add a helper macro to declare a network interface, enabling the use of
`NET_IF_GET` in the driver before the call to `NET_DEVICE_OFFLOAD_INIT`
or `NET_DEVICE_INIT`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-15 15:39:25 +03:00
Fabian Otto
8d097554dd logging: backend: add KConfig option for SWO sync packets
Add KConfig LOG_BACKEND_SWO_SYNC_PACKET to allow disabling SWO
synchronization packets. Useful if the SWO is used as a UART replacement
to avoid that the sync packets show up as special characters in a terminal
application.

Signed-off-by: Fabian Otto <fabian.otto@rohde-schwarz.com>
2025-10-15 15:39:01 +03:00
Sergei Ovchinnikov
3ae0d39de7 drivers: sensor: npm13xx_charger: improve sample fetching
Change the npm13xx_charger fetch function to first trigger a sample
and then block until the result is available.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2025-10-15 15:38:48 +03:00
Etienne Carriere
376d9cb3b7 samples: boards: st: power_mgmt: wkup_pins: add WBA65 boards
Add WBA65RI Nucleo board to ST wkup_pins board sample.
By the way, sort the board names in sample.yaml.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
182a97e5ae boards: st: nucleo_wba65ri: Add 'ns' variant for TF-M support
Add variant 'ns' to nucleo_wba65ri board to embed TF-M in the SoC
secure world.

The flash layout is synced with the layout defined in Zephyr TF-M
integration of platform STM32WBA65I.

- samples/tfm_integration/psa_crypto
- samples/tfm_integration/psa_protected_storage
- samples/tfm_integration/tfm_ipc
- samples/tfm_integration/tfm_regression_test
- samples/tfm_integration/tfm_secure_partition
- tests/subsys/secure_storage/psa/crypto
- tests/subsys/secure_storage/psa/its
  (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y
  and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256)

Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) is
not yet merged but is in under review [1].

Link: https://github.com/ARM-software/psa-arch-tests/pull/406 [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
acc7266b74 boards: st: nucleo_wba65ri: add low power numbers in board doc
Add missing low power consumption numbers in nucleo_wba65ri board
documentation. These numbers are dumped from the SoC datashhet.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
56452c8620 boards: st: nucleo_wba65ri: fix special characters in board doc
Replace (R) and (TM) special charaters with |reg| and |trade|
aliases in nucleo_wba65ri board documentation file. By the way
also fix some characters case, add info and move Cortex-M description
in the overview section to prevent information duplication.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
9fbcddfa3b boards: st: nucleo_wba65ri: rename documentation file
Rename nucleo_wba65ri board documentation file for consistency
within Zephyr file tree.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
39ec5c254d boards: st: stm32wba65i_dk1: Add 'ns' variant for TF-M support
Add variant ns to stm32wba65i_dk1 board to embed TF-M in the SoC
secure world. The flash layout is synced with the layout defined
in Zephyr TF-M integration of platform STM32WBA65I.

Successfully tested against a few samples and test samples:
- samples/tfm_integration/psa_crypto
- samples/tfm_integration/psa_protected_storage
- samples/tfm_integration/tfm_ipc
- samples/tfm_integration/tfm_regression_test
- samples/tfm_integration/tfm_secure_partition
- tests/subsys/secure_storage/psa/crypto
- tests/subsys/secure_storage/psa/its
  (with CONFIG_TFM_ITS_MAX_ASSET_SIZE_OVERRIDE=y
  and CONFIG_TFM_ITS_MAX_ASSET_SIZE=256)

Support for PSA Arch Tests (samples/tfm_integration/tfm_psa_test) is
not yet merged but is in under review [1].

Link: https://github.com/ARM-software/psa-arch-tests/pull/406 [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
f85932ab33 soc: st: stm32wba: TF-M does not support BL2 for WBA65x
Enable TFM_BL2_NOT_SUPPORTED configuration for STM32WBA65x SoC since
TF-M does not implement the BL2 boot stage for this SoC series.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
f4b9e5f68e modules: trusted-firmware-m: Add STM32_FLASH_LAYOUT_BEGIN_OFFSET
Add TF-M directive STM32_FLASH_LAYOUT_BEGIN_OFFSET needed to specify
the gap needed by external boot stage resources at flash beginning.
The offset tells STM32 TF-M firmware the base offset in the flash
where the several TF-M and non-secure image areas shall be located.

The CMake directive was introduced mainline TF-M commit [1] and merged
in Zephyr TF-M repository [2].

Link: fc035b874e [1]
Link: 954dc80541 [2]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
0218849c48 modules: trusted-firmware-m: Declare stm32wba65i support
Declare stm32wba65i-dk1 and nucleo_wba65ri boards support in TF-M.
Both comply with TF-M integration of platform stm/stm32wba65i-dk.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Etienne Carriere
1dd6c2bb66 boards: st: Add stm32wba65i-dk1
Add stm32wba65i-dk1 board support with UART console, LEDs, joystick keys
using ADC channel 6.

Board YAML file does not list 'supported' tags since the board is
very similar to nucleo_wba65ri for which supported features are already
covered.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-15 15:38:33 +03:00
Graham Roff
d5f8b8d03d size_report: Add a report showing total memory use.
The current size_report generates "ram" and "rom" reports, but not one
showing the total of all run-time memory used (the "ram" report does not
include memory required to load the code for non-XIP boards).
Summing the existing reports does not work as it double-counts
statically initialized data.
The new "all" report shows the correct accounting of all run-time memory
used.
To support this functionality the "targets" argument has been extended
to allow multiple arguments, for example to generate all three reports:
$ size_report -k ... -z ... --output=. ram rom all

In the JSON output, the location ("ram" or "rom") is included in the
"loc" property for each symbol.

Signed-off-by: Graham Roff <grahamr@qti.qualcomm.com>
2025-10-15 15:38:22 +03:00
Zhaoxiang Jin
757ffe5d22 dts: arm: nxp: correct mcxn23x/x4x edma properties
1. MCXN23x edma1 has 8 channels, not 16.
2. MCXN23x edma0 and edma1 have 94 requests, not 120.
3. MCXNx4x edma0 and edma1 have 117 requests, not 120.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-15 15:38:12 +03:00
Chris Friedt
c617ede1bd libc: minimal: sys/types.h: move mem_word_t to string.c
The `sys/types.h` header is part of POSIX, which is optional in Zephyr and
is mostly unimplemented by Zephyr's minimal C library.

Additionally, the only reason `sys/types.h` is included in `string.c` (in
the minimal libc) is because of the non-standard `mem_word_t` type.

`mem_word_t` is not used anywhere else in-tree or in modules hosted by the
Zephyr project. It is only used in `string.c` in the minimal c library.

It's definitely not specified here
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
and so does not really belong in `sys/types.h`.

Move `mem_word_t` into the minimal libc's `string.c`. If needed, it can be
removed at a later date and switched for `uintptr_t`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 15:38:03 +03:00
Siratul Islam
aebd75dc21 boards: arm: add support for WeAct STM32WB55 Core Board
Add initial support for the WeAct Studio STM32WB55 Core Board based on the
STM32WB55CGU6 dual-core MCU (Cortex-M4 + Cortex-M0+).

The board configuration supports:
 - 64 MHz system clock from 32 MHz HSE crystal
 - Console over USART1 (PA9/PA10)
 - Default LED on PB2
 - DFU and STM32CubeProgrammer flashing
 - External SWD debugging

Bluetooth functionality requires flashing a compatible STM32WB HCI Layer
wireless coprocessor binary before use. The extended HCI binary
(stm32wb5x_BLE_HCILayer_extended_fw.bin) has been verified.

Tested with:
 - samples/basic/blinky
 - samples/hello_world
 - samples/bluetooth/peripheral
 - samples/bluetooth/beacon

Signed-off-by: Siratul Islam <sirat4757@gmail.com>
2025-10-15 15:37:51 +03:00
Andrzej Głąbek
c3469a6764 drivers: flash_mspi_nor: Take into account MSPI controller packet limit
Use information provided in the dts node for the MSPI controller
regarding maximum amount of data that can be transferred in one
packet and split the requested transfers if necessary.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-10-15 15:37:40 +03:00
Andrzej Głąbek
b42a33d49f dts: bindings: mspi-controller: Add "packet-data-limit" property
Add a property with which MSPI controllers can indicate their limits
on the maximum amount of data they can transfer in one packet.
Use the property for the SSI controller, for which the clock stretching
feature requires the use of the NDF field of the CTRLR1 register, which
is 16-bit wide, hence the data length limit is 64 kB.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-10-15 15:37:40 +03:00
Emil Gydesen
0ebe84cc5a Bluetooth: Host: bt_iso_reset before bt_conn_cleanup_all
Move the call to bt_iso_reset to before bt_conn_cleanup_all.
The reason for this is that bt_conn_cleanup_all will disconnect
all the ACL connections, which will put the CIS in a disconnecting
state, without finalizing them.
This means that if we get a num_completed_packet event between
the call to bt_conn_cleanup_all and before the BT_HCI_OP_RESET
request has been completed, we will trigger an assert in the
hci_num_completed_packets function as the CIS still exists,
but where we would already have cleaned up the pending TX
without telling the controller.

Moving the call to bt_iso_reset means that the CIS will have
been fully terminated at this point, which will prevent
the assert from happening. Since CIS depends on ACLs, this
is also the logical order for resetting them.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-10-15 15:37:21 +03:00
Zhaoxiang Jin
ce9481d3bb tests: adc: fix adc test run failure on NXP platforms
Commit: bf12516cb4
added several features to the NXP MCUX ADC16 driver, such as:
support for selecting the reference voltage between ADC_REF_EXTERNAL0
and ADC_REF_VDD_1. However, many NXP platforms with ADC16 previously
specified ADC_REF_INTERNAL as the reference voltage in the DT. This
caused these platforms to fail in ADC tests/examples.

This commit updates the reference voltage configuration for these
platforms to ADC_REF_EXTERNAL0. This update is backward compatible.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-15 15:37:06 +03:00
Jamie McCrae
1c756cbef5 mgmt: mcumgr: transport: udp: Increase default stack size to 1KiB
Fixes an issue in a board using ethernet that faults with the
default 512 byte size by doubling the default to 1KiB. The actual
size of the thread depends upon the device and application
configuration so needs to be fine tined for each application
anyhow

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-15 15:36:53 +03:00
Kevin Gillespie
01ccfb4404 drivers: serial: uart_max32: add power management support.
Add power management support to UART driver.

Signed-off-by: Kevin Gillespie <Kevin.Gillespie@analog.com>
2025-10-15 15:36:42 +03:00
Alberto Escolar Piedras
4ef316c72d manifest: Update nRF hw models to latest
Update the HW models module to:
26ed181181eed53e400db8f63fa83c566a05d971

Including the following:
26ed181 54L CLOCK: Fix: Handle clock being stopped before it is fully
	started
b643b28 54L CLOCK: Account for relationship between PLLs and XO

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-10-15 15:36:31 +03:00
Piotr Kosycarz
55207aa8cd tests: drivers: watchdog: remove ovarlays for nrf L15 and LM20 flpr
WDT at L15 and LM20 for FLPR core is not enabled.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-10-15 15:36:15 +03:00
Piotr Kosycarz
21076a7426 samples: drivers: watchdog: remove ovarlays for nrf L15 and LM20 flpr
WDT at L15 and LM20 for FLPR core is not enabled.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-10-15 15:36:15 +03:00
Michael Zimmermann
f2bed4d6af net: mqtt_sn: Add support for publishing with QOS=-1
This doesn't try to optimize memory usage for QOS=-1 publications, because
it's easier to use existing structs and allocators instead of adding new
ones with less fields.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-15 15:35:58 +03:00
Michael Zimmermann
be0adf76b5 net: mqtt_sn: add support for short topics
The publish and subscribe APIs allocate topics implicitly, but don't
support allocating predefined or short topics. Additionally, we don't want
to force using short topics in case the passed topic is 2 bytes long, in
case the user doesn't want that (e.g. because the server doesn't support
it).

So instead, we add a new API which works similar to
mqtt_sn_predefine_topic, which allows allocating a short topic before using
any of these APIs.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-15 15:35:58 +03:00
Michael Zimmermann
e82b8cb150 net: mqtt_sn: never clear predefined and short topics
- These are independent from connections since they are always valid.
- Implicitly created topics(e.g. from publish or subscribe) can't be
  deleted either, so that doesn't make things worse compared to those.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-15 15:35:58 +03:00
Hake Huang
6e2e76ca39 boards: lpcxpresso55s69: support jlink when CONFIG_SECOND_CORE_MCUX
when config CONFIG_SECOND_CORE_MCUX we can use cpu0 to flash all
test for mbox cases.

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-10-15 15:35:48 +03:00
Chris Friedt
dd09402803 modules: simplelink: remove unneeded REQUIRES_FULL_LIBC
I guess a very long time ago, before `stdint.h` was included in the
minimal libc, the SimpleLink module required a full C library.

It's definitely there now, so remove the stale comment and drop the
unnecessary `select REQUIRES_FULL_LIBC`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 15:35:39 +03:00
Chris Friedt
4b29d6d424 modules: simplelink: select necessary POSIX kconfig dependencies
Select the `POSIX_SYSTEM_INTERFACES` and `POSIX_SEMAPHORES` options for
the SimpleLink Host WiFi driver to fix a build issue in CI.

Update the stale comment to be more accurate of each required POSIX
Kconfig option.

https://github.com/zephyrproject-rtos/zephyr/actions/runs/18523743005/\
job/52789581990

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 15:35:39 +03:00
Chris Friedt
aaf391405c posix: options: add keep-sorted-start and -stop
Add zephyr-keep-sorted-start and zephyr-keep-sorted-stop
comments.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 12:08:00 +03:00
Chris Friedt
8a48177130 posix: profiles: make POSIX_AEP_CHOICE_ZEPHYR the default
Default POSIX_AEP_CHOICE to POSIX_AEP_CHOICE_ZEPHYR

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 12:08:00 +03:00
Chris Friedt
27bc1fed47 posix: profiles: add custom Zephyr POSIX subprofile
Add a custom Zephyr POSIX subprofile specifically for enabling the
default features that Zephyr requires as per the coding guidelines.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 12:08:00 +03:00
Chris Friedt
c64974cc75 posix: c_lib_ext: apply clang-format to getopt sources
The getopt sources were not formatted according to our codying style
conventions, so apply formatting rules as a separate commit.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 12:08:00 +03:00
Chris Friedt
12fd61d6c7 posix: separate option groups into c library ext and system interfaces
Separate the POSIX implementation into two categories:

- Extensions to ISO C
- System Interfaces

The first category include standalone functions that generally do not
require OS support or depend on any other features within the POSIX
specification. The Option Groups that comprise this category include

- POSIX_C_LIB_EXT: e.g. strnlen(), fnmatch()
- POSIX_C_LANG_SUPPORT_R: e.g. gmtime_r(), strtok_r()

The second category includes the majority of other POSIX Option Groups
that do require OS support. The latter group may also be categorized
generally as being NATIVE_LIBC_INCOMPATIBLE, although that might
eventually become more granular.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 12:08:00 +03:00
Chris Friedt
ed0ae68f77 eventfd: bring config to top-level of posix dir, since it is not posix
The eventfd configuration does not need to be so deeply nested within
POSIX since it does not depend on POSIX completely.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-15 12:08:00 +03:00
Quy Tran
7e1fc96a7a samples: boards: renesas: Add LVD sample for Renesas
Add a simple sample using Comparator API to monitor the
voltage on Renesas boards

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-15 12:07:46 +03:00
Quy Tran
ef5b94b975 dts: renesas: rx: Add dts property nodes for LVD support
Add DTS node for LVD support on RX130

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-15 12:07:46 +03:00
Quy Tran
8d98b4acbd drivers: comparator: Add comparator driver support for RX
Add comparator support for Renesas RX with LVD

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-15 12:07:46 +03:00
Quy Tran
7e83409368 manifest: hal: renesas: Update commit ID for Renesas HAL
Update the latest commit ID for HAL Renesas

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-15 12:07:46 +03:00
Mark Wang
b3d56349a1 bluetooth: shell: a2dp: use static for functions
add static for functions and variables.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
(cherry picked from commit 1282bf7b8d814ef7a217c6f0c424aa4b2f34d363)
2025-10-15 12:06:56 +03:00