Commit graph

136,983 commits

Author SHA1 Message Date
James Torres
d30d7c29f3 drivers: watchdog: stm32 wwdg: remove floats to reduce footprint
On STM boards without an FPU (like nucleo_f091rc) the WWDG driver
requires 4K more of flash than the IWDG due to the use of floating
point math. Fixed it by refactoring to use integer math.
Reduced sample build ROM size from 24848 B to 21620 B on
nucleo_f091rc.

Signed-off-by: James Torres <jamesktorres2022@gmail.com>
2025-11-28 17:24:26 +00:00
Vinayak Kariappa Chettimada
6692264d22 Bluetooth: Controller: In-system profiling and CPU overhead assertions
Updated in-system profiling for CPU usage with on target
measurements and added assertion checks.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-11-28 17:24:09 +00:00
Vinayak Kariappa Chettimada
d82c1dcaec Bluetooth: Controller: In-system ticker_start and ticker_stop tests
Add in-system ticker_start and ticker_stop tests.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-11-28 17:24:09 +00:00
Aaron Ye
1a49b418f5 samples: Bluetooth: peripheral_past: fix the uninitialized parameter
The past_param.options is uninitialized and causes
bt_le_per_adv_sync_transfer_subscribe() returning error.

Signed-off-by: Aaron Ye <aye@ambiq.com>
2025-11-28 10:12:07 +00:00
Thomas Decker
2fbefdbc53 soc: st: stm32: h7rsxx: Fix MPU region for read-only id flash region
Set correct MPU memory type and size for the uniqe device id, package code
and ADC VREF/TS calibration read-only flash region.

REGION_IO_ATTR configures the MPU region to device-memory with RW access,
which is also used for the PERIPH region. To avoid complicating things
unnecessarily, we use this type instead of defining a new device-RO.

The size is reduced to 512 bytes, because RM0477 table 28 and chapter
5.3.12 state that this read-only flash area has a size of 512 bytes.

Signed-off-by: Thomas Decker <decker@jb-lighting.de>
2025-11-28 10:11:57 +00:00
Kyle Bonnici
787bc17711 devicetree: format after rebase
Applying dts-linter results files after rebase

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Kyle Bonnici
589be43e2e devicetree: remaining files
Applying dts-linter results for remaining format files

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Kyle Bonnici
a510704ed2 devicetree: format files in tests
Applying dts-linter results for files in

tests

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Kyle Bonnici
70806c585f devicetree: format files in samples
Applying dts-linter results for format files in

samples

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Kyle Bonnici
b3f756e800 devicetree: format files in dts
Applying dts-linter results for files in

dts

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Kyle Bonnici
f06b35e698 devicetree: format files in boards
Applying dts-linter results for format files in

boards

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Pieter De Gendt
b72da97eec doc: services: nvmem: Mention flash configuration
Add an entry to the configuration section for flash related Kconfig
symbols.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-28 09:50:47 +00:00
Xianglong Zhang
ad641f8ebb boards: shields: m5stack_cardputer: Correct the display parameter
Refer to the M5Stack official code, it need to correct
the value of x-offset of st7789v display driver from 53 to 52,
or the leftmost column of the LCD shows an anomaly.

Signed-off-by: Xianglong Zhang <zhangxianglong@cvte.com>
2025-11-28 09:50:38 +00:00
Benjamin Cabé
4ff7102ed9 doc: services: serialization: add cbor doc page
Add a doc page for CBOR as part of Serialization services

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-28 09:50:28 +00:00
Benjamin Cabé
9fa197cf2e samples: doc: add "json" as relevant_api to a few samples
This ensure people browsing the JSON doc page will see a few more
options in terms of code samples exercising JSON API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-28 09:50:28 +00:00
Benjamin Cabé
fe2357072e doc: services: serialization: add json doc page
Move the mostly empty doc section from misc to serialization.
Also add basic code snippets.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-28 09:50:28 +00:00
Carles Cufi
84a85ed9d8 tests: Add LTO tests variants with LTO_SINGLE_THREADED
Add variants of existing tests to cover this new Kconfig option.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-11-28 09:50:04 +00:00
Carles Cufi
d0547b67cd toolchain: gcc: Add a new LTO_SINGLE_THREADED option for LTO
As described in this issue:
https://github.com/zephyrproject-rtos/sdk-ng/issues/1038
`-flto=auto` fails on some (slower) Windows machines due to an issue with
the Zephyr SDK's GCC toolchain for Windows.
In order to allow users to work around this issue, introduce a new
CONFIG_LTO_SINGLE_THREADED option that switches to `-flto=1`, which
enforces a single thread when processing LTO.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-11-28 09:50:04 +00:00
Kate Wang
027d77168b drivers: mipi_dbi: Fix typo in NXP DCnano driver
Fix typo in NXP DCnano driver

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-11-28 09:49:59 +00:00
Kate Wang
1e86329fe9 drivers: display: display_rm67162: Check reset pin configuration return
Check the return value of reset pin gpio configuration operation.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-11-28 09:49:59 +00:00
Firas Sammoura
f7e2b8daf7 tests: riscv Add tests for unlocked PMP entries
Adds four new test cases to validate the PMP stack guard protection when
`CONFIG_PMP_NO_LOCK_GLOBAL` is enabled (i.e., when PMP entries are not
globally locked).

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2025-11-28 09:49:50 +00:00
Firas Sammoura
e0f2b4e354 riscv: pmp: Add support for unlocked global PMP entries
Adds the Kconfig option PMP_NO_LOCK_GLOBAL to remove the PMP Lock bit
usage. The global entry is an internal detail of the driver
implementation and should not be reflected in the user interface. This
allows the application to dynamically reconfigure the PMP entries
without requiring hard reset. This is essential for firmware that
performs an RO-to-RW jump. By keeping these system entries unlocked,
higher-privileged M-mode code can dynamically reconfigure memory
permissions during the secure handover process, which is not possible if
the entries are permanently locked during early boot.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2025-11-28 09:49:50 +00:00
Robert Lubos
f908d0b5f2 net: shell: Verify array index during dynamic iface completion
Verify that the interface index, converted to array index,
 does not exceed the preallocated string array for dynamic index
completion.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-27 21:56:37 +01:00
Robert Lubos
852a1e8104 net: sockets: getnameinfo: Cast to sockaddr_in6 instead of sockaddr_in
As explained in the comment in the code, both structs have the same
offsets for it's fields, but sockaddr_in is smaller, hence it can
confuse static analyzer, giving warnings about potential out-of-bound
access. Therefore, cast to sockaddr_in6 instead to avoid the warning.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-27 21:55:12 +01:00
Felipe Neves
487386e9df boards: witte: linum: fix CAN controller settings.
To match the fixed RCC/Clock settings.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
2025-11-27 21:54:51 +01:00
Felipe Neves
cc64b17b5e boards: witte: linum: fix clock settings.
to make the ethernet, USB and FDCAN usable.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
2025-11-27 21:54:51 +01:00
Mario Paja
88f50fabcb drivers: audio: wm8904: fix sample rate
This change aligns sample rates to the datasheet and removes
non existing values for 11.025kHz, 22.05kHz, & 44.1kHz

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-11-27 21:54:39 +01:00
Guillaume Gautier
7d63600c3c dts: arm: st: f7: fix indentation for ci compliance check
Fix indentation for CI compliance check.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Guillaume Gautier
3c27e6f1ec tests: drivers: counter: basic_api: complete stm32 board overlays
Completes the STM32 overlays:
- Adds missing timers
- Adds copyright notice
- Adds okay to timer instances so that shared interrupts can be enabled
  if needed
- Adds an overlay for STM32H7R/S
- Removes the conf file for N6 that is useless now that userspace works.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Guillaume Gautier
85e6b867fe dts: arm: st: l1: add missing timers and fix timers5
Adds timers 6 and 7 that were missing to L1 series.
Fixes timer 5 interrupt line.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Guillaume Gautier
4f278aa9c0 dts: arm: st: h7rs: add missing timers 12/13/14
Timers 12, 13 and 14 were missing in the STM32H7R/S device tree.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Guillaume Gautier
3f5aa82f3e dts: arm: st: add counter support for all stm32 timers
For all existing STM32 timer nodes, add the counter node if it was missing.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Guillaume Gautier
3206d73994 soc: st: stm32: add timer shared interrupts
For some STM32 series, some interrupts are shared between different timer
instances. Use the SHARED_INTERRUPTS for these series so that all timers
can be used at the same time.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Guillaume Gautier
2fb9eb0fee drivers: counter: stm32: timer: fix counter for stm32 advanced timers
Counter driver was not functional with STM32 advanced timers (like
TIMER1/8) due to them having more than one interrupt line.
This commit defines the proper interrupts for the advanced timers so that
they can be used as counters.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-11-27 21:54:24 +01:00
Benjamin Cabé
c962977da8 boards: arm: fix full_name for fvp_baser_aemv8r
Ensure the board's full name shows up correctly in the docs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-27 21:54:13 +01:00
Benjamin Cabé
8e687fc0dd ci: Switch to CI image v0.28.7
This commit updates the CI workflows to use the CI image v0.28.7, which
updates versions of the following components:
- Doxygen 1.15.0.
- Renode 1.16.0.
- BSIM 3.0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-27 11:25:47 -05:00
Benjamin Cabé
89292a29b9 doc: update references to RFCs using :rfc: role across multiple files
Sphinx has a built-in `:rfc:` role for referencing RFC documents.
This commit updates documentation pages referencing RFCs to use this role.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-27 16:05:19 +01:00
Mathieu Choplain
7defeda8bd soc: st: stm32: wkup_pins: break after configuring I/O retention on pin
After we found the target GPIO port and configured I/O retention on target
wake-up pin, break from the search loop.

Applies only to STM32WBA series.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-27 16:02:47 +01:00
Aksel Skauge Mellbye
2602b707b1 boards: silabs: xg24_dk2601b: Enable commander runner
Enable the use of Simplicity Commander as a runner on the
xg24_dk2601b dev kit.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-11-27 16:02:41 +01:00
Fabian Blatz
0f07faa14b drivers: input: gt911: Add touchscreen common config
Adds the touchscreen common config to the gt911 controller.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-11-27 16:02:13 +01:00
Emil Gydesen
4bd0c33cdd Bluetooth: CSIP: Only allow rank changes with set size changes
The rank cannot be notified and the function allowed for
just updated to the rank. The CSIS spec does not mention
the usecase, nor support, for changing the rank of a device.
The spec only seems to allow for dynamic changes to the set
size (and only during that can the rank be set).

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-11-27 16:01:36 +01:00
Sudan Landge
3c66b7e205 tests: fix ci for fvp_baser_aemv8r
Disable cache modeling in FVP and skip a few tests that have not been
working for a while to unblock the running ci on this board.
The tests will be tracked by an issue and fixed later.

Related issue #97602

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-11-27 16:01:27 +01:00
Sudan Landge
04fb068463 sample: net: fix the board config and overlay name
Rename the board config to fix ci issue while running samples for
fvp_baser_aemv8r:
```
INFO    - 1) sample.net.zperf.async_tx.stm32 on
fvp_baser_aemv8r/fvp_aemv8r_aarch32 error (CMake build failure - CMake
Error at cmake/modules/extensions.cmake:2905 (message):   Board
fvp_baser_aemv8r defines multiple SoCs.)
```

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-11-27 16:01:27 +01:00
Sudan Landge
1f030c303a boards: fvp_aemv8r_aarch32: fix sample.bindesc
Make sure bindesc are placed right after the vector table and fix ci
failure with sample.bindesc for fvp_baser_aemv8r/fvp_aemv8r_aarch32.
Without this change the bindesc are placed at a location that is not
mapped leading to a data abort while running the sample.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-11-27 16:01:27 +01:00
Sudan Landge
c1ded6b9b6 arch: arm64: fix definition of ARCH_HAS_STACKWALK
Move ARCH_HAS_STACKWALK under CPU_CORTEX_A section since only Cortex-A
implements arch_stack_walk(), while Cortex-R does not.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-11-27 16:01:27 +01:00
Sudan Landge
c8688926c0 tests: MPS2: skip running wdt_basic_api on fvp for an385
Skip running the test scenario `drivers.watchdog` on Arm FVP for the
board `mps2/an385`.

Since the test runs by default on qemu, this issue was missed earlier
when the test was excluded for the other MPS2 variants that use FVP.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-11-27 16:01:27 +01:00
Arunmani Alagarsamy
1814b902a9 soc: silabs: siwg917: Add configurable boot features via DTS and Kconfig
Add support for configuring hardware-specific boot feature bitmaps
through Devicetree and software-specific boot configurations through
Kconfig options.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-11-27 14:48:35 +01:00
Arunmani Alagarsamy
e21df1fab1 dts: silabs: Add NWP boot configuration properties
Add new Devicetree properties under the SiWx91x NWP node to describe
hardware-specific boot configuration options.

The properties are documented in the SiWx91x NWP YAML binding.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-11-27 14:48:35 +01:00
Tomasz Moń
6f0a40090f drivers: udc_dwc2: Avoid endpoint disable timeouts on bus reset
DWC2 core automatically clears USBActEP (for all endpoints other than
endpoint 0) on bus reset. While core is deactivating the endpoint, it
does not disarm it.

On bus reset USB stack first calls ep_disable API and then ep_dequeue.
This was leading to endpoint is not active warning followed by endpoint
disable timeout. Disable timeout was effectively caused by waiting for
EPDisbld interrupt on endpoint with disabled interrupts.

Solve the issue by unconditionally disarming endpoint in ep_disable API
handler. Remove the false warning because USBActEP cannot really be used
for sanity checking as it is not only the driver that clears it.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-11-27 13:48:18 +00:00
Thorsten Klein
69536a6811 scripts: zephyr_module: ignore empty paths in extra modules env variables
Ignore empty paths in environment variables ZEPHYR_EXTRA_MODULES or
EXTRA_ZEPHYR_MODULES.

Signed-off-by: Thorsten Klein <thorsten.klein@bshg.com>
2025-11-27 14:48:13 +01:00