Commit graph

126,787 commits

Author SHA1 Message Date
Seppo Takalo
9de7d61709 modem: cmux: Implement DM and NSC responses
Implement following responses from 3GPP TS 27.010:
5.4.6.3.8 Non Supported Command Response (NSC)
5.3.3 Disconnected Mode (DM) response

Close DLC when receiving DM response.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-10-09 22:55:17 +03:00
Immo Birnbaum
f5dddbfb28 soc: xlnx: zynqmp: enable RPU MPU by default
Enable the ARM MPU by default if the current target SoC is the ZynqMP RPU.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2025-10-09 22:55:08 +03:00
Sudan Landge
0438b9f29e arch: arm: start threads on privileged stack
Use the privileged stack when starting K_USER threads in arch_new_thread().
Threads entering user mode with k_thread_user_mode_enter() keep their
existing flow. To support both cases, z_arm_userspace_enter() now takes an
internal ABI flag (sp_is_priv) indicating whether PSP already points to
the privileged stack.

Also fix calculation of the privileged stack top: use priv_stack_end
directly instead of priv_stack_start + CONFIG_PRIVILEGED_STACK_SIZE, which
failed to account for guard/FPU offsets applied to priv_stack_start.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-10-09 22:54:57 +03:00
Anas Nashif
b827253306 doc: tf-m: fix link to documentation
Fix broken link to docs of TF-M.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-09 22:54:44 +03:00
Firas Sammoura
6a62950c35 dt-bindings: riscv: Add fine-grained IO memory PMP attributes
Introduce new macros to define bitfields for RISC-V Physical Memory
Protection (PMP) attributes, specifically for specifying Read, Write,
and Execute permissions for IO memory regions in device tree bindings.

The following macros are added:
- ATTR_RISCV_TYPE_IO_R: Read access
- ATTR_RISCV_TYPE_IO_W: Write access
- ATTR_RISCV_TYPE_IO_X: Execute access

Corresponding macros for device tree usage are also added:
- DT_MEM_RISCV_TYPE_IO_R
- DT_MEM_RISCV_TYPE_IO_W
- DT_MEM_RISCV_TYPE_IO_X

These macros allow device tree source files to precisely describe the
intended access permissions for memory-mapped IO regions, enhancing
the system's memory protection configuration.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2025-10-09 22:54:34 +03:00
Camille BAUD
e97d651538 west.yml: Update hal_bouffalolab
update bflb hal to fix bl61x uart1.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-09 22:54:19 +03:00
Peter Mitsis
41db28e2d5 tracing: Remove superfluous inclusion of kernel.h
Nothing in the tracing/tracing.h header file requires the explicit
inclusion of kernel.h.

Fixes #95123

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 22:54:11 +03:00
Hubert Miś
fc05ff122c drv: ft8xx: refactor coprocessor driver
Refactor the driver of FT8xx coprocessor by moving code common to
coprocessor commands to common functions.

Signed-off-by: Hubert Miś <hubert.mis@gmail.com>
2025-10-09 22:54:01 +03:00
Christoph Jans
22471f1fe2 drivers: sensor: tdk: redefine trigger as ptr to make use of CONTAINER_OF
Allows CONTAINER_OF inside trigger handler to be used to obtain a valid
ptr to the composite struct consisting of a struct sensor_trigger trig.

Fixes zephyrproject-rtos/zephyr#97124

Signed-off-by: Christoph Jans <jans.christoph@gmail.com>
2025-10-09 22:53:51 +03:00
James Roy
d3e645e539 doc: release: Add a release entry
Add `__deprecated_version` macro to the Toolchain entry list.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-09 12:47:35 -04:00
James Roy
a855c61fcb scripts: Add __deprecated_version to the checkpatch checklist
Add macro __deprecated_version to the checklists of
`scripts/checkpatch.pl` and `scripts/tags.sh`.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-09 12:47:35 -04:00
James Roy
1f6bfffc20 toolchain: iar: Add the __deprecated_version macro
Add the `__deprecated_version` macro to print version
information when deprecation warnings are triggered.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-09 12:47:35 -04:00
James Roy
012b46b6a6 toolchain: gcc: Add the __deprecated_version macro
Add the `__deprecated_version` macro to print version
information when deprecation warnings are triggered.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-09 12:47:35 -04:00
Martin Hoff
98f8704f46 drivers: gpio: silabs: add lookup table documentation
This commit only adds documentation. It will help a user to translate
pinout from the reference manual to a device tree gpio (HP and ULP).

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:47:23 -04:00
Jeppe Odgaard
d58e6efc76 shell: mqtt: cancel disconnect work on connect event
If the disconnect work has not yet run when a connect event is received the
connect event is dropped.

Prevent this behaviour by reorganizing `network_evt_handler()`.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-10-09 12:46:33 -04:00
Martin Hoff
c2835ab6a9 drivers: adc: silabs: unify silabs adc kconfig
To reduce the number of Kconfig files and improve maintainability,
we are merging the three different Kconfig files from Silabs for ADC.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
ee760b3f9a tests: adc: add configuration and overlay for DMA support on Silabs IADC
This commit introduces a new configuration file for DMA support specific
to the Silabs IADC, along with updates to the test case YAML and device
tree overlay for the xg29_rb4412a board. The changes ensure that the ADC
driver can utilize DMA operations effectively.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
be9df47f33 drivers: adc: add DMA support for Silabs IADC
This commit introduces DMA support for the Silabs IADC driver.
A new Kconfig option is added to enable DMA support, ensuring
compatibility with the existing ADC configuration.

DMA can be used for synch/asynch operation.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
93241cc666 samples/tests: adc: silabs: add multiple device overlays.
This commit introduces/updates overlays for multiple silabs boards
for ADC samples and ADC tests.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
8df78c0a62 samples: adc_sequence: differential mode handling in ADC conversion
This commit updates the ADC sequence sample to improve handling of
differential mode readings. It modifies the conversion logic to
correctly interpret 16-bit/32-bit signed values and adjusts the
resolution accordingly. This ensures accurate millivolt conversion
for both differential and single-ended configurations.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
073745e2a2 samples: adc_sequence: add oversampling configuration option
This commit introduces a new Kconfig option for oversampling
in the ADC sequence sample. It allows to test oversampling for
IADC sequences.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
56198dd949 boards: silabs: add ADC io-channels on multiples boards
The goal to add the zephyr,user io-channels is to be able to run the
ADC samples without having an overlays for each boards.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
4d3b459d24 drivers: adc: silabs: removed the old IADC driver
iadc_gecko driver has been replaced by adc_silabs_iadc.c.
The old files and bindings are removed.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
f964ee418b dts: arm: silabs: update IADC driver binding for all series 2 board
Update compatibility from "silabs,gecko-iadc" to "silabs,iadc". It
allows to use the new driver which are more custom to series 2 boards.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
766dbf738c drivers: adc: add IADC support for silabs series 2 boards
This commit introduces a new driver for the silabs Incremental ADC (IADC).

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Martin Hoff
f954105ed0 drivers: adc: enhance millivolt conversion with 64-bit support
This commit updates the adc_raw_to_millivolts function to use 64-bit
arithmetic. It is necessary when the intermediate result is higher
than the maximum value of uint32_t. It also adds a range check to
ensure the conversion result does not exceed the limits of int32_t,
providing an assertion message for out-of-range values.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-09 12:42:56 -04:00
Make Shi
528e732aad Bluetooth: Shell: BR: Add SDP discovery support for AVRCP CT/TG
Add SDP discovery handlers for AVRCP CT/TG roles and corresponding
discovery parameters and a common result handling function.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-10-09 12:42:45 -04:00
Peter Mitsis
b6cf82768a doc: Update CPU Frequency Scaling for SMP
Update the CPU Frequency Scaling documentation to show that it
works on SMP systems.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
50f90d2b38 MAINTAINERS: Initialize entries for Performance States
Creates and initializes entries for the the new
Performance States group.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
b24fa39c70 tests: samples: Extend cpu_freq tests and samples
Extends the cpu_freq tests and samples to support both
SMP and the selection of Stub vs SoC implementations
of cpu_freq_pstate_set().

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
ec9a7f8cdd cpu_freq: Add SMP support
Extends the CPU frequency scaling to support SMP for two models.

Model 1: Each CPU/core can have its frequency scaled independently
of the others.

Model 2: All CPUs/cores use the same frequency scaling.

In both models, IPIs are sent from the timer handler to each of the
CPUs to obtain the most up-to-date CPU load information. For the
first model, each CPU sets its next P-state after determining its
load. For the second model, the next P-state is set by the last
CPU/core to determine its load and is based on the CPU/core with the
highest load.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
613653716d cpu_freq: Add new policy APIs
Adds two new CPU frequency scaling policy APIs:
  cpu_freq_policy_reset()
  cpu_freq_policy_pstate_set()

These new APIs allow the policy to better control and isolate relevant
logic from the rest of the subsystem.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
63748db7c6 cpu_freq: Add default stub for cpu_freq_pstate_set()
This allows a project to select where cpu_freq_pstate_set()
gets implemented. The system integrator may choose to use
a default stub, a version implemented by the SOC, or a custom
version implemented by the project.

The existing 'native' SoC version now has its output contain
the string "SoC" while the new stub version has the string
"Stub" in its. This allows a means to differentiate between the
two.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
69d1f28a31 dts: bindings: Add generic P-state binding
Provides a generic DTS binding for the performance state.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
87570bae3e cpu_load: Make cpu_load_get() SMP safe
Update cpu_load_get() to work with both multiple threads as
well as multiple CPUs.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
ea5240368d cpu_freq: Update cpu_freq API documentation
Adds explicit restrictions on the use of both
cpu_freq_policy_select_pstate() and cpu_freq_pstate_set()
for use with SMP systems.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Peter Mitsis
014a1e6226 doc: Standardize on P-state
Instead of having a mix of of p-state and P-state, standardize on
P-state for consistency.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-10-09 12:42:32 -04:00
Marcio Ribeiro
ac7799fe69 tests: adc: enable adc_api tests for esp32
Enables adc_api tests for these platforms:
- esp32_devkitc/esp32/procpu
- esp32c3_devkitm
- esp32c6_devkitc/esp32c6/hpcore
- esp32h2_devkitm
- esp32s2_devkitc
- esp32s3_devkitc/esp32s3/procpu

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-09 12:42:20 -04:00
Camille BAUD
4dd6976d3f tests: drivers: build_all: add st7567 mipi-dbi
Adds the test for st7567 on mipi-dbi

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-09 12:41:54 -04:00
Camille BAUD
77c078b7ee drivers: display: Update ST7567 to use MIPI-DBI
Allows ST7567 to use dbi controller

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-09 12:41:54 -04:00
Vinayak Kariappa Chettimada
9b26e967ca Bluetooth: Controller: nRF54L: Fix to improve decryption speed
Fix to improve decryption speed. Decryption starts after
payload reception, hence use fastest mode to decrypt PDUs.
nRF54Lx only supports decryption after payload reception,
this implementation was already there in the code.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-09 12:41:43 -04:00
Vinayak Kariappa Chettimada
a5e1f59686 Bluetooth: Controller: Revert relaxed radio packet assignment deadline
Reverts relaxed radio packet assignment deadline as it is
too risky and can cause invalid bits be transmitted and/or
cause MIC failures.

Reverts commit 4dbfb22a7e ("Bluetooth: Controller: Relax
radio packet pointer assignment deadline"), and
commit 230df77993 ("Bluetooth: Controller: Relax radio
packet pointer assignment deadline").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-09 12:41:43 -04:00
Vinayak Kariappa Chettimada
1fe79a65a2 Bluetooth: Controller: Use CONFIG_SOC_COMPATIBLE_NRF5340_CPUNET
Use CONFIG_SOC_COMPATIBLE_NRF5340_CPUNET for nRF53 SoC
conditional compilations.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-10-09 12:41:43 -04:00
Khanh Nguyen
233637f7fb drivers: video: shell: fix control name lookup
video_shell_get_ctrl_by_name() normalized the search string (`name`)
instead of the control's actual name (`cq->name`). This made the
comparison always succeed on the first control, causing incorrect
lookups at runtime.

Update the code to normalize `cq->name` before comparison so that
each control name is correctly checked against the search string.

Signed-off-by: Khanh Nguyen <khanh.nguyen.wz@bp.renesas.com>
2025-10-09 12:41:34 -04:00
Chris Friedt
cc32112d71 tests: arch: commoon: stack_unwind: disable fpv_baser_aemv8r
The test configuration `arch.common.stack_unwind.symtab` was failing in
weekly CI for quite a long time for the following platforms because
`CONFIG_ARCH_MMU=n` by default on those platforms, although they are
64-bit.

- fvp_baser_aemv8r/fvp_aemv8r_aarch64
- fvp_baser_aemv8r/fvp_aemv8r_aarch64/smp

The command below can be used to verify the fix.

```shell
twister -p fvp_baser_aemv8r/fvp_aemv8r_aarch64 \
  -s arch.common.stack_unwind.symtab
```

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-09 12:41:15 -04:00
Hou Zhiqiang
7d259c35ef dts: arm: imx95: fix unit address and the first reg mismatch warning
Warning:
unit address and first address in 'reg' (0x4cce0000) don't match
for /soc/netc-blk-ctrl@4cde0000/ethernet/mdio@4cb00000

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2025-10-09 12:41:01 -04:00
Tim Pambor
b8ae573a70 tests: arch: arm: fix -Wformat error
Cast _vector_start to uint32_t to match format specifier.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-09 12:40:44 -04:00
Guðni Már Gilbert
a1369d5c6a scripts: list_boards: drop HWMv1 code
Fixes #97017

Support for HWMv1 was removed in Zephyr 4.2.0

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2025-10-09 12:40:30 -04:00
Guðni Már Gilbert
ec59f15946 scripts: west_commands: don't search for HWMv1 boards
Support for HWMv1 was removed in Zephyr 4.2.0

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
2025-10-09 12:40:30 -04:00
Andrzej Puzdrowski
56843f8eb0 samples/boards/nordic: align nrf54h20dk overlay
/delete-property/ for newly added aliases which points to nodes
already removed in that overlay.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2025-10-09 12:40:16 -04:00