Commit graph

126,787 commits

Author SHA1 Message Date
Anas Nashif
8aeca6364e doc: use commit range as argument, not upstream/main
upstream/main depends on how you checked out the repo, it can be
anything and user might have a different remote. Use <commit range>
instead to make it more general.

Fixes zephyrproject-rtos/zephyr#96121

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-09-26 20:46:21 -04:00
TOKITA Hiroshi
c6608fcd80 drivers: virtio: Separate macros into a common header
Move macros derived from the VIRTIO specification to a shared include.
This change allows the VIRTIO standard definitions to be referenced
from outside the driver implementation.

The following definitions have also been added:

- VIRTIO_F_VERSION_1
- VIRTIO_F_ACCESS_PLATFORM
- VIRTIO_RING_F_INDIRECT_DESC
- VIRTIO_RING_F_EVENT_IDX
- VIRTQ_AVAIL_F_NO_INTERRUPT
- VIRTQ_USED_F_NO_NOTIFY

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2025-09-26 20:45:00 -04:00
Vincent Tardy
a2691c6695 boards: st: nucleo_wba65ri: enable ieee802154 node
enable ieee802154 node for nucleo_wba65ri

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2025-09-26 20:44:45 -04:00
Vincent Tardy
f530ffc033 soc: stm32: add 802.15.4 support for STM32WBA
Add 802.15.4 support in hci_if files

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2025-09-26 20:44:45 -04:00
Vincent Tardy
a5fe624f8f MAINTAINERS: Add driver ieee 802.15.4 for STM32 Wireless Platform
Add ieee802154 driver in STM32 Wireless Platform section

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2025-09-26 20:44:45 -04:00
Vincent Tardy
dc89803697 drivers: ieee802154: add support of 802.15.4 for STM32WBA
Add the driver itself and Kconfig/CMakeLists/dts/bindings related to it.
Other files and libraries needed are in ST's dedicated folder
hal_stm32 (modules/hal/stm32).

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2025-09-26 20:44:45 -04:00
Vincent Tardy
eaeb091ee8 west.yml: update hal_stm32 version
Update hal_stm32 version to latest commit:
dc7c2543a079c57a4e7dbee54ed7877880dc235b

Signed-off-by: Vincent Tardy <vincent.tardy@st.com>
2025-09-26 20:44:45 -04:00
Etienne Carriere
7aca82709c boards: st: stm32n6570_dk: clarify boot pins information
Clarify the BOOT0/BOOT1 configuration needed to program the flash
memory or to load the image straight in RAM (serial boot variant 'sb').

Explicit what the 2 USB connectors are used for in 'sb' variant
configuration.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-09-26 16:02:43 -04:00
Etienne Carriere
e0aa4eb4a2 boards: st: nucleo_n657x0_q: clarify boot pins information
Clarify the BOOT0/BOOT1 configuration needed to program the flash
memory or to load the image straight in RAM (serial boot variant 'sb').

Fix the build directive when 'sb' variant is to be used.

Explicit what the 2 USB connectors are used for in the 'sb' variant
configuration.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-09-26 16:02:43 -04:00
Pieter De Gendt
02be059a4f tests: modules: nanopb: Release decoded messages
If CONFIG_NANOPB_ENABLE_MALLOC is enabled, any successfully decoded message
should be released.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-09-26 16:02:34 -04:00
Pieter De Gendt
93da92cfcb samples: modules: nanopb: Release decoded message
If CONFIG_NANOPB_ENABLE_MALLOC is enabled, any successfully decoded message
should be released.
Update the sample, to lead by example.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-09-26 16:02:34 -04:00
Titouan Christophe
3993a739e9 drivers: i2s: ll_stm32: fix missing implementation for i2s_config_get
This fixes system crashes in `i2s_buf_write`, because this function
internally calls `i2s_config_get`, which resulted in a NULL pointer on
stm32 i2s devices.

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-09-26 16:02:02 -04:00
Benjamin Cabé
676673fec2 include: drivers: opamp: doxygen fixups
minor fixes to align docs with other drivers

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-26 16:01:54 -04:00
Chris Friedt
bc02f34f16 drivers: smbus: stm32: send block write byte count
Send "count" byte. The SMBus block write protocol requires this byte.

Use I2C_MSG_WRITE named flag instead of 0.

Signed-off-by: Andrew Lewycky <alewycky@tenstorrent.com>
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-09-26 16:01:44 -04:00
Mahesh Mahadevan
30ad0ee2a6 soc: rw612: Reinitialize the GDET sensor and Voltage rails
Before re-entering Power Mode 3, we should disable the GET
sensor and reinitialize the power rails.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-09-26 16:01:22 -04:00
Shreehari HK
aa50860712 drivers: i3c: add open-drain speed support
Add SHELL support for configuring I3C open-drain speed modes.

Implementation:
- Include open-drain timing configuration inside cmd_i3c_speed function.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2025-09-26 16:00:42 -04:00
Shreehari HK
c81b029fca drivers: i3c: configure open-drain speed
Add support for configuring I3C open-drain speed modes to handle
different timing requirements during bus initialization and operation.

Implementation:
- Fetch current controller configuration
- Invoke configure api inside bus_init to configure
  I3C open-drain high period for proper bus
  initialization and device compatibility.

The slow speed mode is essential for the first broadcast address
transmission to ensure visibility to all devices on the I3C bus,
particularly those in I2C mode that need to disable their spike
filters when switching to I3C mode. This requirement is specified
in "Table 49 I3C Basic Open Drain Timing Parameters" of the MIPI
ALLIANCE Specification for I3C Basic Version 1.2.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2025-09-26 16:00:42 -04:00
Shreehari HK
4d6673bc69 drivers: i3c: dw: enhance open-drain timing configuration
This commit improves the I3C handling of open-drain
timing configurations with the following changes:
- Add OD minimum high_ns and low_ns DT properties
- Implement dw_i3c_init_scl_timing for runtime timing updates
- Initialize scl_od_min configuration from device tree
- Maintain backward compatibility with existing configurations

Requirement (MIPI Specification for I3C Basic v1.2 (16-Dec-2024),
             Section 4.3.11.2 & Table 49):
- The MIPI I3C specification mandates different open-drain speeds during
  bus initialization as defined in
  "I3C Basic Open Drain Timing Parameters".
- The first broadcast address (7'h7E+W) must be transmitted at a slower
  open-drain speed to ensure visibility to all devices on the I3C bus,
  including legacy I2C devices. This slow speed (minimum 200ns Thigh)
  allows I2C devices to properly detect the I3C mode transition and
  disable their spike filters before switching to I3C mode. After the
  initial broadcast, normal I3C open-drain speeds can be used for
  regular operation.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2025-09-26 16:00:42 -04:00
Shreehari HK
7735be8c75 include: zephyr: drivers: i3c: add open-drain timing configuration
This commit adds the I3C handling of open-drain
timing configurations with the following changes:
- Add scl_od_min structure to i3c_config_controller for
  high/low period settings
- Define Open-drain mixed bus SCL timing constants

Requirement (MIPI Specification for I3C Basic v1.2 (16-Dec-2024),
             Section 4.3.11.2 & Table 49):
- The MIPI I3C specification mandates different open-drain speeds during
  bus initialization as defined in
  "I3C Basic Open Drain Timing Parameters".
- The first broadcast address (7'h7E+W) must be transmitted at a slower
  open-drain speed to ensure visibility to all devices on the I3C bus,
  including legacy I2C devices. This slow speed (minimum 200ns Thigh)
  allows I2C devices to properly detect the I3C mode transition and
  disable their spike filters before switching to I3C mode. After the
  initial broadcast, normal I3C open-drain speeds can be used for
  regular operation.

Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
2025-09-26 16:00:42 -04:00
Łukasz Fundakowski
f23b1f59da twister: Improve handling SystemExit exceptions
If twister exits by sys.exit function or by raising
the SystemExit exception, catch that exceptions and
return proper exit code.

Signed-off-by: Łukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2025-09-26 09:38:10 -04:00
dependabot[bot]
39a0ee117c ci: github: bump the actions-deps group with 3 updates
Bumps the actions-deps group with 3 updates: [tj-actions/changed-files](https://github.com/tj-actions/changed-files), [github/codeql-action](https://github.com/github/codeql-action) and [zephyrproject-rtos/action-zephyr-setup](https://github.com/zephyrproject-rtos/action-zephyr-setup).


Updates `tj-actions/changed-files` from 46.0.5 to 47.0.0
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](ed68ef82c0...24d32ffd49)

Updates `github/codeql-action` from 3.30.1 to 3.30.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f1f6e5f6af...192325c861)

Updates `zephyrproject-rtos/action-zephyr-setup` from 1.0.8 to 1.0.9
- [Commits](6a744370a2...c125c5ebee)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-version: 47.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions-deps
- dependency-name: github/codeql-action
  dependency-version: 3.30.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
- dependency-name: zephyrproject-rtos/action-zephyr-setup
  dependency-version: 1.0.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-26 09:35:50 -04:00
Jordan Yates
584aa3e342 testsuite: ztest: disable ZTEST_NO_YIELD for COVERAGE_DUMP
Don't enable `ZTEST_NO_YIELD` when `COVERAGE_DUMP` is enabled, since
this option spins forever at the end of `main`, while `COVERAGE_DUMP`
occurs after `main` returns into `bg_thread_main`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-26 09:35:41 -04:00
Chris Friedt
584b73a8d4 timeutil: make timespec_normalize() a regular function
Since the timespec_normalize() function is not branchless, and since it
can also generate a fair bit of code, make the function non-inline and
place it in timeutil.c instead.

This should save some code space on most systems.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-09-26 09:35:33 -04:00
Chris Friedt
d02235cad3 timeutil: timespec: mitigate warnings when -Wtype-limits is used
Previously, warnings could be promoted to errors in timeutil.h. Those
warnings were of the form below.

warning: comparison is always true due to limited range of data type
warning: comparison is always false due to limited range of data type

Specifically, in the speed-optimized version of timespec_normalize() and
in the macro SYS_TICKS_TO_NSECS().

The speed-optimized version of timespec_normalize(), which used the
__builtin_add_overflow() function, was mainly intended to be branchless.
However, many targets generate branching instructions regardless.

The speed optimized version is less valuable in that case, so remove it.

Additionally, SYS_TICKS_TO_NSECS() does not generate the above warnings
when k_ticks_to_ns_floor64() is used instead of k_ticks_to_ns_floor32(),
so use the former.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-09-26 09:35:33 -04:00
Jukka Rissanen
ed6b4a2abd net: websocket: Send CLOSE back to server when received one
When zephyr receives WS CLOSE, send it back to server and close
the TCP connection.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-09-26 09:35:24 -04:00
Jukka Rissanen
688bc4bf86 net: websocket: Fix the typo in function name
s/interal/internal/g

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-09-26 09:35:24 -04:00
Michał Stasiak
4afec7cf47 tests: ram_context_for_isr: pick IRQ number for nRF54L
Picked IRQ number available on all platforms.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-09-26 09:34:59 -04:00
Fabio Baltieri
a3bb826a20 tests: bluetooth: fix various shadowed declarations
Fix various -Werror=shadow errors.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-26 09:34:40 -04:00
Anas Nashif
83132c767f Revert "ci: set_assignee: add release team on PRs without review"
Script does not handle already assigned PRs correctly, revert until we
have a proper fix.

This reverts commit 972ebb64dc.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-09-26 08:02:38 -04:00
Fabio Baltieri
3232354456 cmake: unittest: set -Wshadow
Set -Wshadow when compiling unit tests, this way we can test macro
combinations and ensure they don't generate shadowed variables, which
would generate a warning by default in normal Zephyr builds.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-26 13:24:30 +02:00
Fabio Baltieri
0db0db836e tests: cbprintf: fix few shadowed variables
Rename few local variables that were shadowing object ones with the same
name. Allows building with -Wshadow.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-26 13:24:30 +02:00
Tomi Fontanilles
3ced42c5e5 secure_storage: remove experimental status
The subsystem has been out for a year.
It has been taken into use by various parties and has gone through
additional downstream testing.
It is considered stable and mature enough to not be experimental
anymore.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-09-26 13:24:06 +02:00
Tomi Fontanilles
fd0bf8b2f9 secure_storage: add version to psa_secure_storage Doxygen group
Align the version with the current latest published specification.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-09-26 13:24:06 +02:00
Tomi Fontanilles
98e48e8c90 secure_storage: document psa/error.h
Add Doxygen documentation to everything defined in this header file.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-09-26 13:24:06 +02:00
Tomi Fontanilles
03a349624a secure_storage: its: small language improvements to function comments
Minor tweaks for clarity.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-09-26 13:24:06 +02:00
Tomi Fontanilles
d38fb888a8 secure_storage: its: improve return codes
Instead of returning storage-related error codes, return ones which
make it clear that it's not about the storage itself.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-09-26 13:24:06 +02:00
Tomi Fontanilles
2cad6fab0b secure_storage: remove NULL pointer checks
It is the caller's responsibility to ensure pointers are valid.
Save on code size.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-09-26 13:24:06 +02:00
Anas Nashif
972ebb64dc ci: set_assignee: add release team on PRs without review
In cases where we are not able to assign a PR due to lack of matches in
the maintainer file, add the release team to the reviewers so someone
can triage it. Also add a comment to make it clear that the release team
was added for triage purposes only.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-09-26 13:23:44 +02:00
Andrzej Głąbek
804508f775 tests: mspi: flash: Add scenario for non-multithreading flash_mspi_nor
Add test scenario for the flash_mspi_nor driver used in a configuration
with disable multithreading.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-09-26 13:23:34 +02:00
Andrzej Głąbek
828bde8213 drivers: flash_mspi_nor: Add support for CONFIG_MULTITHREADING=n
Add possibility to use the driver in configurations with disabled
multithreading. It may be useful in bootloaders, for example.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-09-26 13:23:34 +02:00
Andrzej Głąbek
c8e3bfac1c drivers: mspi_dw: Add support for CONFIG_MULTITHREADING=n
Add possibility to use the driver in configurations with disabled
multithreading. It may be useful in bootloaders, for example.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-09-26 13:23:34 +02:00
Maochen Wang
d0e2bb5b93 tests: net: wifi: add the build of hostapd WPS, DPP and roaming
Add the check of roaming and hostaped based WPS and DPP case.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-09-26 13:23:20 +02:00
Maochen Wang
b7a9d88290 hostap: fix the build error of zephyr_hostapd_cli_cmd_resp
Fix the build error that missing ctrl parameter in
zephyr_hostapd_cli_cmd_resp by getting iface->ctrl_conn.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-09-26 13:23:20 +02:00
Maochen Wang
6ba447a251 hostap: fix the build error of undefined wpa_s->ctrl_conn
Fix the build error that wpa_s isn't defined in supplicant_candidate_scan
when CONFIG_WIFI_NM_WPA_SUPPLICANT_ROAMING is enabled.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-09-26 13:23:20 +02:00
Muhammed Asif
3b5d7a40fc tests: pwm: sam0: Added overlay file for pwm starting
- Added the overlay files for testing the same54_xpro boards
  for the pwm_gpio_loopback test.

Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
2025-09-26 13:23:07 +02:00
Muhammed Asif
67a25f245d drivers: pwm: sam0: Add support for tc 32 bit mode
- Added logic for updating the registers for 32 bit when
   32-bit counter size is selected.

Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
2025-09-26 13:23:07 +02:00
Muhammed Asif
b26252b120 dts: pwm: sam0: Added 32 bit support for pwm
Updated the yaml with 32 bit counter enum

Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
2025-09-26 13:23:07 +02:00
Iuliana Prodan
a795046143 ipc: move Open AMP from lib/ to subsys/ipc/
Moved the Open AMP code from lib/ to subsys/ipc/ to better
organize IPC-related components.

Updated build and config files to reflect the new location.

Adjusted path in MAINTAINERS.yml.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-09-26 13:22:55 +02:00
Robin Kastberg
d1e5c34ccc iar: toolchain: Cortex-M85 support
Add support in IAR build system for Cortex-M85.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
2025-09-26 13:22:38 +02:00
Alain Volmat
945133e66e boards: st: stm32n6570_dk: re-enable PSRAM cache access
Re-enable the cache usage for the PSRAM now that the PSRAM size
has been adjusted in order to prevent stability issues when using
it with cache enabled.

This reverts the change introduced in
commit 97608e4cc0 ("boards: stm32n6570_dk: Disable cache on PSRAM")

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-09-26 11:08:09 +02:00