Commit graph

136,983 commits

Author SHA1 Message Date
Jerzy Kasenberg
31c05b13e7 test: scheduling: Disable works for Smartbond
Smartbond device schedules periodic calibrations work
and delayed work for xtal32 settle.
Those works can disrupt strict timing that test checks.

This change disables calibration for RCX and RC32K.
Xtal32k settle work is schedule late as not to be
executed during tests.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg.xr@bp.renesas.com>
2025-11-19 15:55:40 -05:00
Jerzy Kasenberg
7979dd77e9 drivers: clock_control: smartbond: Move calibration to DT
Calibration interval was specified in Kconfig now
configuration is moved to device tree.
This allows to have different values for RCX and RC32K.

While calibration is vital for correct system timing, it
periodically schedules work that measures frequency of RCX or
RC32K.

Now it's also possible to set calibration interval to 0
to prevent calibration entirely. This may be useful for
scheduling tests that are sensitive to number of active
threads.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg.xr@bp.renesas.com>
2025-11-19 15:55:40 -05:00
Carles Cufi
b2d65fbc46 soc: nxp: imxrt: Select missing ATOMIC_OPERATIONS_*
Follow-up to
689ba58b10.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-11-19 15:54:32 -05:00
Alexander Svensen
78729f4ff0 bluetooth: audio: scan_delegator: Fix validation
- Fixes bug where bis_sync_requests were wrongfully validated.
  - Two BISes across subgroups should not have the same bits set
- Remove use of internal->bis_syncs before it's updated in mod_src.

Signed-off-by: Alexander Svensen <alexander.svensen@nordicsemi.no>
2025-11-19 15:54:23 -05:00
Benjamin Cabé
d78a9baff9 samples: net: ocpp: add websocket path configuration option
Make the websocket path configurable since having it hardcoded in the
sample is not practical.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-19 15:54:11 -05:00
Carles Cufi
cdeddeaecc tests: mspi: flash: Use platform_allow for the no-multithreading test
Since many boards enable features that require multithreading (e.g. USB)
that conflict directly with the `CONFIG_MULTITHREADING=n` required for
the test variant, and the filter:
filter: dt_alias_exists("mspi0") and CONFIG_FLASH_MSPI_NOR
does not work since that requires Devicetree and Kconfig building
successfully, which is not the case here (Kconfig fails since
dependencies are not met).

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-11-19 15:54:02 -05:00
Mathieu Choplain
ee71b30106 drivers: usb: udc: stm32: inline priv_pcd_prepare
`priv_pcd_prepare` now only consumes per-instance information or constants.
Instead of calling it indirectly through a function pointer, it could be
called directly, but since it is very shorted and used from only one place,
inline it instead.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-19 15:53:55 -05:00
Mathieu Choplain
70efb293ce drivers: usb: udc: stm32: move base address to instance configuration
Instead of consuming the DT property directly, save the USB controller base
address in the instance configuration block and retrieve it at runtime.
This makes the driver more instance-aware.

While at it, cleanup `priv_pcd_prepare` to always consume the property
(through the instance configuration) instead of sometimes using the base
address from CMSIS.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-19 15:53:55 -05:00
Mathieu Choplain
ea07796a2d drivers: usb: udc: stm32: move IRQn to instance configuration
Move the controller's IRQn from instance data to instance configuration,
and update all consumers accordingly. One instance which used the global
UDC_STM32_IRQ is also updated to consume the per-instance field instead.

While at it, add missing comments for certain fields of the configuration.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-19 15:53:55 -05:00
Tom Burdick
0c50b929bb doc: Sensor Read and Decode no longer Experimental
The docs signaled to readers that Read and Decode was an experimental API
while Kconfig did not. These are no longer experimental APIs. We have a
solid number of implementations in the tree now showing these APIs in
use in the real world. They are still however stabilizing!

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-11-19 15:53:44 -05:00
Luca Burelli
93f65752d0 MAINTAINERS: add new Arduino Platforms collaborators
Add Ibrahim Abdelkader and Mattia Pennasilico as collaborators for the
Arduino boards area, as they have long experience on our boards and
will provide insightful reviews.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-11-19 15:53:37 -05:00
Alberto Escolar Piedras
72090b73ef lib/utils/getopt: Fix trivial issues detected by SonarCloud
Fix uncontroversional issues detected by SonarCloud, whose fixes are
trivial, and improve code readability.

This commit fixes multiple sonar cloud detected issues like:
"Give names to the parameters of this function prototype."
"Declare the variable "i"/"j" inside the loop"
"Remove this empty statement"

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-19 15:53:28 -05:00
Alberto Escolar Piedras
9fee526365 net: Fix EVENTFD kconfig selection
Since 820cd34dbb these net components
use ZVFS_EVENTFD directly instead of thru EVENTFD.
So, let's select ZVFS_EVENTFD directly instead of indirectly
thru EVENTFD.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-19 15:53:19 -05:00
Anas Nashif
a43e2a76a1 MAINTAINER: add mipi_dbi.h header to related area
Add header to corrosponding area.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-19 15:52:53 -05:00
Anas Nashif
4758cfadf5 tests: twister blackbox: filter module installation
Do not install modules we do not need for testing to save space.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-19 09:18:56 -05:00
Anas Nashif
75f69425dd ci: tags: add posix headers to posix group in tags
When posix headers change, make sure we verify the posix portability
layer.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-19 09:18:36 -05:00
Kai Vehmanen
3f6ef5043c soc: intel_adsp: ace30: allow userspace to execute cold functions
Add access to functions in cold section for XTENSA_MMU_MAP_SHARED
(used for user-space threads). This allows to call functions marked
with "__cold" from user threads.

Suggested-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2025-11-19 15:17:04 +01:00
Timothy Keys
6bfa6fa9a8 bluetooth: host: shell: Add SCI shell commands
This adds support for Shorter Connection Interval commands in the bt
shell.

Signed-off-by: Timothy Keys <timothy.keys@nordicsemi.no>
2025-11-19 09:15:18 -05:00
Timothy Keys
c14dcaf199 bluetooth: host: Change uses of interval to interval_us
Since Shorter Connection Intervals changes the unit that connection
intervals can be represented in. It is necessary to change how
they are stored and represented.

This commit deprecates interval in favour of interval_us.

Remove use of interval in internal bt_conn struct since it is no longer
needed.

Signed-off-by: Timothy Keys <timothy.keys@nordicsemi.no>
2025-11-19 09:15:18 -05:00
Timothy Keys
e2cd247ec4 bluetooth: host: Add Shorter Connection Intervals support
This commit adds support for the Shorter Connection Intervals feature to
the Bluetooth host.

Signed-off-by: Timothy Keys <timothy.keys@nordicsemi.no>
2025-11-19 09:15:18 -05:00
Lukas Gehreke
36beeec662 drivers: modem: sim7080: Added gnss bug description to doxygen.
Some modem revisions can hang up on gnss functionality. Added
a warning and a workaround to doxygen documentation.

Signed-off-by: Lukas Gehreke <lk.gehreke@gmail.com>
2025-11-19 09:15:02 -05:00
Jamie McCrae
881584112f west.yml: MCUboot synchronization from upstream
Update Zephyr fork of MCUboot to revision:
  f3cc9476e233364031e9ab842290392f260fba82

Brings following Zephyr relevant fixes:

  - f3cc9476 updates for 2.3.0-rc1 release
  - 496f74f3 zephyr: Fix BOOT_DOWNGRADE_PREVENTION_CHOICE symbol
  - 6ab9afc6 boot_serial: Use boot_state_init where intent to
    initialize
  - e6fefac2 bootutil: Temporarly drop mem cleanup from
    boot_state_clear
  - 457be0cf bootutil: Fix some debug log format specifiers
  - f9ad3ee2 bootutil: Add API to lock HW counter
  - 6e602004 boot: bootutil: bootutil_area: Add debug for adjusted
    offset
  - 9d334f9b boot: bootutil: bootutil_area: Fix swap using offset
    min scramble
  - 76036133 boot: zephyr: Remove enable from beginning of prompts
  - d14ba22d bootutil: Fix encryption context de initialization in
    boot_state_clear
  - d8c4cc69 bootutil: Remove NULL state logic from boot_state_clear
  - 8ff6b678 bootutil: Use boot_state_init instead of
    boot_state_clear
  - dd4b01f4 boot_serial: Initialize state with boot_state_init
  - a312656b bootutil: Add boot_loader_state_init
  - e9255183 bootutil: Allow using psa_key_id_t in AES crypto
    context
  - 3af40a31 boot: zephyr: sysflash: Increase number of supported
    images
  - c27bb0f4 boot_serial: Use struct enc_data in
    decrypt_region_inplace
  - 0287fd4d boot_serial: Fix double boot_loader_state init
  - f846e9e9 boot: zephyr: Allow disabling default multiple RAM
    region file
  - 0ccce2f7 bootutil: In boot_swap_image add return check from
    boot_read_enc_key
  - 32b3c18b bootutil: Refactor boot_read_enc_key

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-19 09:14:32 -05:00
David Leach
d588d45d90 maintainers: Add Holt-Sun to NXP Platform Drivers collaborators
Add Holt-Sun to the NXP drivers area.

Signed-off-by: David Leach <david.leach@nxp.com>
2025-11-19 09:14:23 -05:00
Chun-Chieh Li
7f6fc2ee4b drivers: can: support nuvoton m333x series
Add support for Nuvoton's M3331 series SoC

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2025-11-19 09:14:13 -05:00
Martin Hoff
94ed533c31 soc: silabs: siwg917: add dependency when PM device is enabled
This patch fixes a compilation error when CONFIG_PM_DEVICE is enabled
without CONFIG_PM_DEVICE_RUNTIME and CONFIG_POWER_DOMAIN.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-11-19 09:13:57 -05:00
Cristian Bulacu
34d215d5a9 openthread: platform: Update code to use socket services config
Updated platform code to make use of number of socket services defined
in Kconfig. In this way, hardcoded values are avoided.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-11-19 09:13:49 -05:00
Cristian Bulacu
ac89a2a771 openthread: Kconfig: Add config for number of socket services
This commit adds support to define number of platform socket services
using Kconfig.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-11-19 09:13:49 -05:00
Guillaume Gautier
7e3aa9bf8d boards: st: stm32u5g9j_dk: adjust adc prescaler
Set ADC prescaler to 2 instead of 1 for the STM32U5G9J-DK board.
A prescaler of 1 results in incorrect measurements while 2 returns the
expected values.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-19 09:13:39 -05:00
Zhaoxiang Jin
5a1032df59 boards nxp/frdm_mcxn236: remove unused GPIO5 configuration
The GPIO5 has no sofware configurable clock gate in the MCXN236.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-19 09:13:31 -05:00
Ruben Völl
d21f6b5ecd include: adc: add adc_read_async_dt()
Add `adc_read_async_dt()`, based on `adc_read_async()` and
`adc_read_dt()`, as static inline function.

Signed-off-by: Ruben Völl <ruben.voell@sevenlab.de>
2025-11-19 06:55:24 -05:00
Tomasz Leman
18b34bb3d2 drivers: power_domain: intel_adsp: Refactor power management initialization
This patch refactors the power management initialization for the Intel
ADSP power domain driver to align with the recommended practices
outlined in the documentation. The changes include:

1. Replacing the manual power management initialization sequence
   (`pm_device_init_suspended` + `pm_device_runtime_enable`) with a call
   to `pm_device_driver_init` in the `pd_intel_adsp_init` function.
2. Adding the `zephyr,pm-device-runtime-auto` property to the power
   domain nodes in the device tree files for ACE15, ACE20, ACE30, and
   ACE40.

These changes ensure that the power domain driver is initialized with
the appropriate power management state and that runtime power management
is automatically enabled based on the device tree configuration. The
functionality of the power management state remains unchanged, ensuring
consistent behavior.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2025-11-19 06:55:12 -05:00
Jiafei Pan
b69a050d82 boards: frdm_imx91: add ENET ethernet port support
Add ENET ethernet port support on FRDM_IMX91 board.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-11-19 06:54:54 -05:00
Jiafei Pan
ac1bd04c3a dts: arm64: mimx9131: add enet device nodes
Add ENET device nodes support for i.MX 9131.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-11-19 06:54:54 -05:00
Jiafei Pan
6c27ec126b drivers: clock_control_mcux_ccm_rev2: add imx91 enet support
Add ENET clock support for i.MX91.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-11-19 06:54:54 -05:00
Jamie McCrae
63883760fb tests: mgmt: mcumgr: Add os mgmt mpstat test
Adds a test to check that the memory pool statistics command works

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2025-11-19 06:54:40 -05:00
Jamie McCrae
d9c2bdf51a mgmt: mcumgr: grp: os_mgmt: Add memory pool statistics command support
Adds support for the memory pool statistics (mpstat) command, which
will list details on various memory heaps on the device

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2025-11-19 06:54:40 -05:00
Jamie McCrae
2f42addef7 mgmt: mcumgr: grp: img_mgmt: Use common reset function
Replaces the img_mgmt specific function with the common SMP
function for resetting the zcbor buffer and allowing a new response
to be sent

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2025-11-19 06:54:40 -05:00
Jamie McCrae
89b01d5c93 mgmt: mcumgr: transport: Add zcbor buffer reset function
Adds a common zcbor reset buffer function, this allows for the
buffer to be reset after data has been added already to add a
different response, e.g. an error response

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2025-11-19 06:54:40 -05:00
Felix Wang
16214ace79 dts: arm: nxp: Add lpit configuration in dts
The LPIT is missing in nxp_mcxe24x_common.dtsi,
this patch add lpit 0 address, registers, interrupts
and channel setting.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-11-19 06:53:31 -05:00
Felix Wang
5311349f63 boards: nxp: frdm_mcxe247: Enable lpit
Enable lpit0 clock according to dts setting.

Enable lpit0 and its four channels.

Verified pass with counter_basic_api test.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-11-19 06:53:31 -05:00
Felix Wang
c826167f5b drivers: counter: support multiple interrupts for LPIT
For devices like MCXE247, the LPIT instance hase multiple
interrupts, however the current  driver code just support
one interrupt. This patch has improved the code for this
requirement.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-11-19 06:53:31 -05:00
Andrzej Głąbek
68fab5fd2c drivers: flash: nrf_qspi_nor: Fix compilation with QER set to NONE
This is a follow-up to commit d1abe40fb0.

Function `qspi_wait_while_writing()` (and also `qspi_rdsr()` that is
called by it) is now always required for `qspi_erase()`, so it can no
longer be under `#if !IS_EQUAL(INST_0_QER, JESD216_DW15_QER_VAL_NONE)`.

Also definition of `dev_config` in `configure_chip()` needs to be moved,
as for QER set to NONE, it is not used and causes a compilation warning.

Add a test case that will ensure the driver can be built successfully
with `quad-enable-requirements = "NONE"`.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-11-19 06:53:20 -05:00
Elmo Lan
95aa209226 driver: gpio: Add sleep delay in gpio isr
When EC wakes by GPIO, it may fall back to SUSPEND_TO_IDLE
before the host or peripherals have a chance to take further action.

Add a lightweight delay-sleep mechanism to keep system awake
for as short period after a GPIO wake event.

Signed-off-by: Elmo Lan <elmo_lan@realtek.com>
2025-11-19 06:52:59 -05:00
Pavel Vasilyev
116d4ddb89 tests: bluetooth: qualification: Remove data signing related ICS
This commit removes data signing related ICS.

Removed ICS:
- SM 6/1: Signing Algorithm Generation
- SM 6/2: Signing Algorithm Resolving
- GATT 3/13: Signed Write Without Response
- GATT 9/10: Signed Write Command
- GATT 7/3: LE Security mode 2
- GAP 25/2: LE Security mode 2
- GAP 35/2: LE Security mode 2
- GAP 25/5: Connection data signing procedure
- GAP 35/5: Connection data signing procedure
- GAP 25/6: Authenticate signed data procedure
- GAP 35/6: Authenticate signed data procedure
- GAP 27b/8: Connection Signature Resolving Key (CSRK)
- GAP 37b/8: Connection Signature Resolving Key (CSRK)

The following tests are not supported any longer:
- GAP/SEC/CSIGN/BI-01-C
- GAP/SEC/CSIGN/BI-02-C
- GAP/SEC/CSIGN/BI-03-C
- GAP/SEC/CSIGN/BI-04-C
- GAP/SEC/CSIGN/BV-01-C
- GAP/SEC/CSIGN/BV-02-C
- GATT/CL/GAW/BV-02-C
- SM/CEN/SIGN/BV-01-C

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-11-19 06:52:38 -05:00
Pavel Vasilyev
66679c1886 tests: bluetooth: init: Remove duplicate prj_<x>.conf files
Remove duplicated prj.conf file.

prj_6, prj_7, prj_14 are identicall. Since prj_6.conf is unchanged,
keeping it.

prj_8, prj_9, prj_15 are identicall. Since prj_15.conf is
unchanged, keeping it.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-11-19 06:52:38 -05:00
Pavel Vasilyev
b7b35b89ed bluetooth: host: Deprecate CONFIG_BT_SIGNING
This commit deprecates:
- the `CONFIG_BT_SIGNING` Kconfig option
- `BT_GATT_CHRC_AUTH` property

IOW, this commit deprecates the LE Security mode 2 support.

Explanation:

Erratum ES-26047 introduced in Bluetooth Core Specification v6.2
requires SingCounter to be persistently stored to prevent replay
attacks.

Currently, the Host doesn't store SignCounter, therefore the device is
vulnerable to replay attacks after reboot.

Additionally, the current implementation doesn't assume that SignCounter
of a received message can be incremented by more than one and thus may
not validate correct message.

The Bluetooth Security and Privacy Best Practices Guide recommends to
not using Data signing and recommends to use LE Security mode 1 levels
2, 3 or 4 instead.

The Signed Write Without Response sub-procedure, which is the only user
of Data signing, is optional (see Vol 3, Part G, Table 4.1).

See also ES-18901.

The aforementioned reasons make no sense to keep this feature.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-11-19 06:52:38 -05:00
Adam Kondraciuk
127ba8d494 samples: boards: nrf: system_off: Add sample with system clock disabled
Extend the system off samples by adding an option to disable
the system clock. When the system clock is disabled additional
power savings can be observed.
After using the `sys_clock_disable()` function, the GRTC is
turned off making system time-related features unavailable.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-11-19 06:52:24 -05:00
Adam Kondraciuk
dfff593b77 drivers: timer: nrf_grtc_timer: Add system_clock_disable implementation
Add implementation of `sys_clock_disable` function for GRTC timer.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-11-19 06:52:24 -05:00
Pieter De Gendt
bb19a9bdb7 drivers: flash: shell: Use timing functions for speed tests
Use the timing functions to increase the accuracy of the flash speed
measurements.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-19 06:52:08 -05:00
Qingsong Gou
339cd882f7 drivers: clock_control: sf32lb: fix clock selection error
Fix clock selection error

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2025-11-19 06:51:54 -05:00