Commit graph

126,787 commits

Author SHA1 Message Date
Mathieu Choplain
9a6dab736c dts: arm: st: stm32f7: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Mathieu Choplain
1649104779 dts: arm: st: stm32f4: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Mathieu Choplain
5d8931e9e0 dts: arm: st: stm32f3: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Mathieu Choplain
094c2258b8 dts: arm: st: stm32f2: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Mathieu Choplain
7851b5804e dts: arm: st: stm32f1: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Mathieu Choplain
17f479db4e dts: arm: st: stm32f0: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Mathieu Choplain
bc541f293a dts: arm: st: stm32c0: remove U suffix from "clocks" in DTSI
PR 79683 added unnecessary U suffix to constants in DTSI.
This bloats the files for no reason and is starting to spread as people
use the DTSI for reference in other places, and so copy this bad pattern.

Remove the useless U suffixes in DTSI files for this series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-09-09 17:28:56 +02:00
Erwan Gouriou
d12aa5bf61 drivers: interrupt_controller: stm32: Fix range handling
When iterating over range, we were going one index too far.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-09-09 17:28:48 +02:00
Aksel Skauge Mellbye
317c16f3b7 boards: silabs: Add expansion header nexus node
Add gpio-nexus binding and dts nodes for the expansion header on
Series 2 boards.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-09-09 17:28:17 +02:00
Kristoffer Skøien
2faf1aa86d tracing: Added board qualifier to SEGGER SystemView
Added CONFIG_BOARD_QUALIFIERS as target core to SEGGER SystemView config

Signed-off-by: Kristoffer Skøien <kristoffer.skoien@nordicsemi.no>
2025-09-09 17:28:10 +02:00
Emil Gydesen
9f5c4790d9 Bluetooth: CSIP: Fix restore of CSIS on unregister
The bt_csip_set_member_unregister function unregisters
a CSIS instance and restores the attributes to the original
state (the attributes may change during registration).

The previously solution had some issues with a check when
using picolib (‘__ssp_bos_check3’ undeclared), and this
fixes that by using a proper variable for the memcpy.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 17:27:52 +02:00
Benjamin Cabé
4da532c38f boards: doc: arm: fvp_baser_aemv8r: documentation cleanup
Consolidate board documentation into a single page to avoid duplication
and, more importantly, ensure the board documentation is properly
displayed in the documentation website.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-09 17:27:38 +02:00
Benjamin Cabé
58cd441ac4 boards: doc: arm: mps2: fix documentation structure
Prevent board docs to be mounted twice in the doc hierarchy ;
also leverage zephyr:board-supported-hw:: to provide a short overview
of the features supported by each board variant.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-09 17:27:38 +02:00
Chris Friedt
86eca47529 posix: system_database_r: remove invalid compilation filters
pwd.c and grp.c both had incorrect preprocessor guards around the stubs
that they were implementing. Functions were surrounded by

```cpp
ifdef CONFIG_POSIX_THREAD_SAFE_FUNCTIONS
..
endif /* CONFIG_POSIX_THREAD_SAFE_FUNCTIONS */
```

Which is not at all accurate, since that subprofiling option group is
`(CONFIG_)POSIX_SYSTEM_DATABASE_R` (which is a PR that is in-draft).

Remove the guards, since they are invalid anyway, and at most an
application will link properly. We don't really need the guards anyway,
since conditional compilation will be used to link the files into the
build.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-09-09 17:27:28 +02:00
Benjamin Cabé
fcf13b59e3 tests: kernel: adopt new sys_count_bits util function
Adopt new sys_count_bits helper from util.h and avoid
having conflicting definition

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 17:27:15 +02:00
Benjamin Cabé
1ee48cf421 drivers: adc: adopt new sys_count_bits util function
Adopt new sys_count_bits helper from util.h and avoid
having conflicting definition

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 17:27:15 +02:00
Emil Gydesen
5734d7e5cd Bluetooth: Audio: Use generic sys_count_bits to count bits
Instead of re-implementing or assuming that POPCOUNT is available
we now use the generic function from Zephyr.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 17:27:15 +02:00
Emil Gydesen
b201cb737e include: util: Add generic function to count bits set in a value
Adds a generic function that will count the number of bits set in
a value.

It uses POPCOUNT (e.g. __builtin_popcount for GCC) if available,
or else it will use Brian Kernighan’s Algorithm to count bits.

POPCOUNT will likely always support unsigned ints, but the function
was implemented to use it with uint8_t for the sake of simplicity
and compatibility with Brian Kernighan’s Algorithm.

A generic solution was chosen rather than a macro/function per
type (e.g. uint8_t, uint16_t, etc.) as that is easier to maintain
and also supports array types (e.g. counting the number of bits
in 128 or 256 octet arrays).

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 17:27:15 +02:00
Benjamin Cabé
6de7702910 boards: doc: native_sim: adopt zephyr-board directive
Update documentation of native_sim to leverage zephyr-board Shinx magic,
in particular the ability to generate the table of supported HW
features.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-09 10:12:00 -04:00
Stephanos Ioannidis
3c1f7f1c71 scripts: requirements-action: Require PyGithub >= 2.7.0
PyGithub >= 2.7.0 is required for the
`Repository.get_collaborator_role_name` function used by the maintainer
check script.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2025-09-09 10:00:29 -04:00
Stephanos Ioannidis
5a4b0ac4d7 scripts: check_maintainer_changes: Fix GitHub user access check
The PyGithub `Repository.get_collaborator_permission` function invokes the
GitHub REST API `/repos/{owner}/{repo}/collaborators/{username}/permission`
and returns the value of the `permission` attribute in the response.

As per the GitHub documentation [1], the `permission` attribute "provides
the legacy base roles of admin, write, read and none, where the maintain
role is mapped to write and the triage role is mapped to read", and this
caused the users with `triage` permission level (i.e. the users in the
`contributors` team) to be incorrectly flagged by the script.

This commit updates the script to use the `get_collaborator_role_name`
function, which correctly returns the up-to-date user permission/role name,
including `maintain` and `triage`.

Note that the `get_collaborator_role_name` function is only available in
PyGithub>=2.7.0.

[1] https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#get-repository-permissions-for-a-user

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2025-09-09 10:00:29 -04:00
Stephanos Ioannidis
f20aa23aa3 ci: maintainer_check: Check out PR MAINTAINERS file
The commit 31ef45e2f1 converted the
maintainer check workflow from `pull_request` to `pull_request_target` --
this caused the "checkout" action to check out the base branch instead of
the pull request branch and effectively made the workflow compare the
mainline MAINTAINERS.yml against itself.

This commit reworks the workflow such that it checks out the pull request
MAINTAINERS.yml separately and compare it against the mainline
MAINTAINERS.yml checked out by the "checkout" action.

Note that the `requirements-actions.txt` and `check_maintainer_changes.py`
files used in this workflow are checked out from the base branch (i.e. does
not contain any modifications) and therefore do not pose a security risk.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2025-09-09 10:00:29 -04:00
Leon Mueller
bc77dfb170 [doc]: correct board target for xiao_nrf54l15
This corrects the board referred to as "xiao_nrf54l15" to the correct
target "xiao_nrf54l15/nrf54l15/cpuapp".

Signed-off-by: Leon Mueller <leon@nowatch.com>
2025-09-09 14:54:14 +02:00
Sylvio Alves
75220de8c6 boards: adafruit: esp32s3: make usb-serial as default
Adafruit feather board's use USB-serial interface
for shell-uart and console as default.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-09-09 14:54:04 +02:00
Raffael Rostagno
abc36a6dcb tests: drivers: spi: esp32h2: Add testcase
Add SPI testcase for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-09 14:53:55 +02:00
Raffael Rostagno
5304062c15 boards: esp32h2_devkitm: Add SPI support
Add SPI support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-09 14:53:55 +02:00
Raffael Rostagno
7cb8951829 drivers: spi: esp32h2: Add support
Add GSPI support to ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-09 14:53:55 +02:00
Jacob Wienecke
7201c1f79b tests: drivers: spi: loopback: Fix cache coherency on size9/size24
Make tx_data9 and tx_data24 non-cachable within the 9-bit word size and
24-bit word size functions. This repairs a suspected cache coherency issue
where these buffers are written to cache and therefore not seen correctly
by spi/dma.

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2025-09-09 14:53:36 +02:00
Andrzej Głąbek
0e1dfd9403 drivers: mspi_dw: Add support for DQS line
Add possibility of using data strobe signal (DQS) called RXDS in
the SSI documentation. This signal may be necessary to make use
of DDR modes.
Remove also a TODO comment that should have been removed when support
for DDR was added in fc64fec8fe.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-09-09 14:53:24 +02:00
Emil Dahl Juhl
bed6ab353f spi: rtio: fix using rx_bufs entries for tx_buf
Within spi_rtio_copy there'd be a case where the tx_buf pointer would
mistakenly get assigned the address of an rx buffer.
Specifically this would happen in the case where there are no rx buffers
provided, and as such this would lead to pontential nullptr dereferences.

Correct the mistake to let tx_buf correctly point to the provided tx
buffers.

Signed-off-by: Emil Dahl Juhl <emil@s16s.ai>
2025-09-09 14:53:13 +02:00
Mark Holden
827a4f7387 coredump: xtensa: Add support for ARCH_SUPPORTS_COREDUMP_STACK_PTR
Select ARCH_SUPPORTS_COREDUMP_STACK_PTR on xtensa, and provide an
implementation for the arch_coredump_stack_ptr_get function.

Signed-off-by: Mark Holden <mholden@meta.com>
2025-09-09 14:53:00 +02:00
Emil Gydesen
ceb567a62b Bluetooth: ISO: Cleanup BIG before stopped callback
Modify the big_disconnect function to do cleanup_big before
calling the `stopped` callback. This will allow the ISO channels,
as well as the BIG itself, to be reused for other purposes directly
in the stopped callback, without having to offload such actions
to a separate thread.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-09-09 14:52:46 +02:00
Tahsin Mutlugun
69e31d87be drivers: i3c: max32: Do not exit CCC if no known I3C devices exist
I3C targets can join the bus after initialization so CCC should not exit
if no known I3C devices exist at init time.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-09-09 12:19:41 +01:00
Gerson Fernando Budke
1e22848f6d boards: atmel: Fix devicetree style
The Zephyr is implementing a linter to catch devicetree problems. This
boards comments are exceptions and are formatted to be compliance with
the linter. However due to the exception the linter check was disabled
to avoid undesirable formatting and keep the original details in the
comments.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2025-09-09 12:19:34 +01:00
Loic Domaigne
adea69f408 doc: releases: device_init() changes
document API behaviour changes in migration guide.

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-09-09 12:19:20 +01:00
Marek Matej
5761bf8b53 drivers: counter: FIx unused config
Remove unused config from the counter driver Kconfig.
Fix typo in dependant config.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-09-09 12:19:12 +01:00
Piotr Kosycarz
801d5e071d tests: drivers: spi: spi_loopback: skip timing test when COVERAGE
Skip checking timing expectation when COVERAGE is used.
Coverage mode affect timing - making code slower,
as additional operations are needed to gather coverage stats.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-09-09 12:19:02 +01:00
Dawid Niedzwiecki
6fddc44d59 mgmt: ec_host_cmd: add USB backend
Add a new ec_host_cmd backend based on USB. The backend uses the new USB
device stack.

The backend implements a vendor-specific (Google) USB interface. It uses
three endpoints:
- bulk OUT to transfer a host command request
- bulk IN to transfer a host command response
- interrupt IN to signal an event and readiness of the response

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2025-09-09 12:18:52 +01:00
Dawid Niedzwiecki
da61ccc4e3 mgmt: ec_host_cmd: add buffer alignment config
Add a new config to specify an alignment for the buffers defined by the
ec_host_cmd handler.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2025-09-09 12:18:52 +01:00
Benjamin Cabé
1852f9ce52 shields: add MikroE ILLUMINANCE Click shield
Adds support for the MikroE ILLUMINANCE Click shield

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-09 11:49:29 +02:00
Jordan Yates
d02725f4a1 boards: nordic: nrf9160dk: fix NS application SRAM
Fix the node configured as the application SRAM partition. This aligns
this board with all the other Nordic DK `_ns` boards.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-09 11:45:35 +02:00
Andreas Kurz
cd9a28fec1 doc: zbus: swap boxes to match bullet points
By swapping the boxes with observer types in the graphics (thanks
Rodrigo) it now matches the description of the bullet points. Before
they were not in the order of the bullet points which confused during
reading.

Signed-off-by: Andreas Kurz <info@akurz.net>
2025-09-09 11:45:25 +02:00
Fin Maaß
d1b6795d34 mgmt: hawkbit: move variable declaration out of if
move variable declaration out of if,
because it will be optimized away, when
optimisation is enabled and leads to
undefined and unwanted behavior.

In my case `send_buf`  of `http_client_req`
was put at the same address and the
http request was malformed.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-09-09 11:45:16 +02:00
Anas Nashif
f5d7081710 kernel: do not include ksched.h in subsys/soc code
Do not directly include and use APIs from ksched.h outside of the
kernel. For now do this using more suitable (ipi.h and
kernel_internal.h) internal APIs until more cleanup is done.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-09-09 11:45:06 +02:00
Marc Reilly
cc0fecd299 sensor: shell_battery: display labels for capacity are mAh
Update the units labels to be mAh

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2025-09-09 11:44:59 +02:00
Marc Reilly
5bc2d0758a sensor: shell_battery: fix current value display
The sensor interface gives current channel values in Amps, but the "I"
(current) value is displayed in mA, so needs to be converted accordingly.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2025-09-09 11:44:59 +02:00
Fabio Baltieri
c0c757d892 twister: use csv to split extra argument arguments for west flags
Use csv instead of a plain split to split extra arguments for extra west
flags, this allows correct passing of arguments that are internally
escaped in quotes, such as arugments containing commas.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-09 11:44:54 +02:00
Rubin Gerritsen
524b72ce40 toolchain: llvm: Provide working BUILD_ASSERT macro
The resulting BUILD_ASSERT macro provided by
zephyr/toolchain/gcc.h is defined to be empty, making the macro
useless.

This commit ensures we define it to something that actually
performs a validation. When not compiling for C++ or >=C11,
we rely on that cdefs.h provides _Static_assert.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2025-09-09 11:44:38 +02:00
Chekhov Ma
d632b1cfd9 dts: nxp_mimx93_a55: make gpio disabled by default
GPIO should be enabled in boards. Disable them by default.

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2025-09-09 11:44:27 +02:00
Hongbo Wang
6b615d3307 boards: nxp: add support for platform FRDM-IMX93
Add initial support for FRDM-IMX93 board

Building hello_world:
west build -p always -b frdm_imx93/mimx9352/a55 samples/hello_world

Signed-off-by: Hongbo Wang <hongbo.wang@nxp.com>
Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2025-09-09 11:44:27 +02:00