Commit graph

136,983 commits

Author SHA1 Message Date
Alberto Escolar Piedras
4411efb5a7 samples/subsys/shell/shell_module: Fix use of sys_getopt global status
sys_getopt has now its global status variables prefixed with sys_getopt_
Let's fix the use here. Note this worked as Zephyr's POSIX_C_LIB_EXT
keeps a replica of these variables without the prefix, and it is
enabled by default.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-20 17:14:57 +00:00
Alberto Escolar Piedras
065289e27d samples/shields/npm6001_ek: Fix use of sys_getopt global status
sys_getopt has now its global status variables prefixed with sys_getopt_
Let's fix the use here. Note this worked as Zephyr's POSIX_C_LIB_EXT
keeps a replica of these variables without the prefix.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-20 17:14:57 +00:00
Alberto Escolar Piedras
68e4d0c517 doc/services/shell: Fix incorrect variable name
sys_getopt has now its global status variables prefixed.
Let's fix the docs.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-11-20 17:14:57 +00:00
Jamie McCrae
02e6615020 doc: services: pm: device: Fix missing #ifdef
Adds a missing #ifdef for CONFIG_DEVICE_DEINIT_SUPPORT for the
driver deinit function example

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Jamie McCrae
b128e51994 kernel: kconfig: Disable DEVICE_DEINIT_SUPPORT by default
This Kconfig, which it itself admits is for a "very specific case"
was set to default as yes, this includes extra code in drivers with
this functionality and increases driver struct size for cases where
this function isn't needed (i.e. all because it's enabled by
default), therefore change it to be opt-in rather than opt-out

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Jamie McCrae
005a292bbd tests: pm: device_driver_init: Add CONFIG_DEVICE_DEINIT_SUPPORT
Adds this Kconfig, which is needed for the test, because it will
no longer be globally enabled by default

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Jamie McCrae
cf08b9062f tests: kernel: device: Add CONFIG_DEVICE_DEINIT_SUPPORT
Adds this Kconfig, which is needed for the test, because it will
no longer be globally enabled by default

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Jamie McCrae
13b722b36f drivers: i2c: i2c_bflb: Fix not guarding deinit function
Fixes an issue with an unused function being defined if
CONFIG_DEVICE_DEINIT_SUPPORT was disabled

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Jamie McCrae
57263db2e2 drivers: serial: uart_bflb: Fix not guarding deinit function
Fixes an issue with an unused function being defined if
CONFIG_DEVICE_DEINIT_SUPPORT was disabled

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-11-20 17:14:50 +00:00
Fabrice DJIATSA
9478522b88 tests: drivers: disk: disk_access: change sdmmc bus-with on stm32n6570_dk
The test required an SD card to be plugged into the board.
the test only passes with the bus width set to 1

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
2a662e7ed6 samples: drivers: spi_flash: exclude stm32n6570_dk from CI testing
Decide to remove stm32n6570_dk from this scenario since it seems to
be relevant and work when CONFIG_STM32_MEMMAP is enabled based on
how flash_stm32_xspi.c driver is implemented.

Since there is already a scenario(sample.drivers.spi.flash.stm32.memmap)
that test this mode, excluding from this scenario could also help us
avoid erasing the memory twice every day at the same address.

Note:
  test with dma/interrupt mode will succeed without enable
  CONFIG_STM32_MEMMAP if we remove dependency
  on CONFIG_STM32_APP_IN_EXT_FLASH in 'flash_stm32_xspi_read'.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
a788c77a52 drivers: flash: stm32_xspi: extend HAL DMA EX support to STM32N6X
add SOC_SERIES_STM32N6X dependency with USE_STM32_HAL_DMA_EX
to enable building applications that use XSPI with DMA
configuration.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
5aa0ec8053 tests: application_developement: ram_context_for_isr: exclude stm32n6570_dk
The test requires RAM-based vector table relocation
(CONFIG_SRAM_VECTOR_TABLE), which depends on CONFIG_XIP being enabled.
However, stm32n6570_dk lacks internal flash and does not support XIP,
making SRAM vector relocation unsupported.As a result, the test cannot
validate ISR execution from RAM on this platform.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
6c681272e6 boards: st: reduce the size of ram and flash on stm32n6570_dk
some scenarios (libraries.cmsis_dsp.transform.cq31,
libraries.cmsis_dsp.transform.rq31.fpu) in the test
tests/lib/cmsis_dsp/transform require a minimum RAM of 1024 KB
because they deal with data needing large buffer sizes for dynamic
allocation. However, 1024KB is insufficient for the tests to succeed.

By decreasing these values, the test will no longer be performed.
The rest of the tests will try to fit within SRAM size.

Note: checks have been made to ensure that 512 KB of flash and
128 Kb of RAM are enough to perform relevant daily tests on the
stm32n6570_dk.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
bcfb5bc055 samples: subsys: usb: uvc: boards: increase main stack size
Increase the size of the main stack to avoid a stack overflow error
when running some sample scenarios.
This occur by example on stm32n6570_dk,
sample.subsys.usb.uvc.encoder.jpeg scenario.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Fabrice DJIATSA
f0a0053d41 tests: drivers: gpio: api_1pin: boards: update led0 on stm32n6570_dk
Replace the green user LED 1 with the red user LED 2 from alias led0
for the test to succeed.
LED1 is connect from a circuitry that prevents GPIO state from
triggering a interrupt while LED2 is directly wired to the GPIO pin.

While we're at it, change the LED's state from GPIO_ACTIVE_HIGH to
GPIO_ACTIVE_LOW to match the circuitry.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-11-20 17:14:21 +00:00
Anas Nashif
4704c6d24d drivers: promote APIs from unstable to stable
Quite a few well established APIs are stuck in unstable status, move
them to stable.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-11-20 17:14:12 +00:00
Jukka Rissanen
77bdec412f net: openthread: Remove invalid assert
There is no openthread_instance so the assert will always fail so
remove it to prevent compilation issue.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-20 16:00:46 +00:00
Jukka Rissanen
f97e33eb38 tests: net: all: Verify OpenThread compilation
Try to catch various OpenThread related compilation issues.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-20 16:00:46 +00:00
Mathieu Choplain
a8349e7f10 migration-guide: 4.4: add entry about STM32 power configuration
Add an entry about the STM32 power supply configuration to the migration
guide for release 4.4 - it is now done through Devicetree instead of
Kconfig, and all existing Kconfig symbols have been deleted.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
df71f6c730 soc: st: stm32: wba: replace Kconfig power supply configuration with DT
Replace the existing infrastructure to specify power supply configuration
through Kconfig with Devicetree, and update all boards according to new
mechanism.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
3b55e9a219 soc: st: stm32: u5: replace Kconfig power supply configuration with DT
Replace the existing infrastructure to specify power supply configuration
through Kconfig with Devicetree.
Set the LDO as default to reduce out-of-tree breakage - most users were
relying on LDO being the default and it is harmless to use LDO if board
is designed for SMPS. (Existing SMPS users should break anyways since the
Kconfig symbol no longer exists, but this ensures they actively set the
power supply to SMPS in DT)

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
a3b6347b1d dts: bindings: power: introduce STM32 PWRC for LDO+SMPS series
Introduce power controller binding for series equipped with two voltage
regulators (LDO + SMPS).

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
7477212372 soc: st: stm32: h7rs: replace Kconfig power supply configuration with DT
Replace the existing infrastructure to specify power supply configuration
through Kconfig with Devicetree. Also update all boards that were defining
the Kconfig to no longer do so.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
a14f0b8940 dts: arm: st: h7rs: add Power Controller node
Add node representing the Power Controller to SoC DTSI of STM32H7RS series,
and update DTS of all STM32H7RS-based boards since the new node has
required properties.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
9f4d8d57c6 dts: bindings: power: introduce STM32H7R/S Power Controller
Introduce a new binding for the Power Controller of the STM32H7R/S series.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
800fefa82b soc: st: stm32: h7: replace Kconfig power supply configuration with DT
Replace the existing infrastructure to specify power supply configuration
through Kconfig with Devicetree. Also update all boards that were defining
the Kconfig to no longer do so.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
2af417fae1 dts: arm: st: h7: add Power Controller node
Add node representing the Power Controller to SoC DTSI of STM32H7 series,
and update DTS of all STM32H7-based boards since the new node has required
properties.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
6b1aa557ca dts: bindings: power: introduce STM32H7 power controller binding
Introduce a new binding for the power controller of STM32H7 series.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Mathieu Choplain
5ea01d9a4c boards: ruiside: art_pi: fix DTS formatting issues
Fix some formatting issues in the board's DTS which trigger CI failures.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-11-20 16:00:39 +00:00
Siratul Islam
6dad32c81c drivers: display: hub12: add horizontal chaining support
- Add support for chaining multiple 32x16 panels horizontally
- Also fixed a race condition issue.

Signed-off-by: Siratul Islam <email@sirat.me>
2025-11-20 16:00:29 +00:00
Siratul Islam
62f585de7e dts: bindings: display: hub12: add horizontal chaining support
- Add support for chaining multiple 32x16 panels horizontally by
  setting width to multiples of 32 (64, 96, 128, etc).

Signed-off-by: Siratul Islam <email@sirat.me>
2025-11-20 16:00:29 +00:00
Yurii Lozynskyi
088536e547 drivers: uart: ifx_cat1: disable async API for SOC_CY8C6244LQI_S4D92
Exclude SOC_CY8C6244LQI_S4D92 from UART async API support due to
hardware limitations, similar to SOC_FAMILY_INFINEON_CAT1C.

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-11-20 16:00:16 +00:00
Yurii Lozynskyi
b1fa628433 uart: async_api: add cy8ckit_062s2_ai board support
Add overlay files and sample configuration for cy8ckit_062s2_ai
to enable UART async API functionality.

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-11-20 16:00:16 +00:00
Yurii Lozynskyi
2a3f708279 boards: infineon: add trade marks to board names
Update board full names to include PSOC™ trade mark symbols
for consistent branding across Infineon board definitions.

Signed-off-by: Yurii Lozynskyi <yurii.lozynskyi@infineon.com>
2025-11-20 16:00:16 +00:00
Carles Cufi
db0c34d836 c standard: Default to C17 as the minimum required C standard
C99 has been the minimum required C standard version for Zephyr since
its inception. After multiple attempts and discussions, a decision has
been made to upgrade to C17 going forward.
This commits replaces the default C standard from C99 to C17 in the
configuration and build system, and deprecates support for the older
standards.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-11-20 09:04:46 -05:00
Mykyta Poturai
f3b9d18711 xen: Add support for changing Xen Sysctl interface version
Add a new Kconfig option CONFIG_XEN_SYSCTL_INTERFACE_VERSION that allows
to change the version of the Sysctl interface used by Zephyr to issue
sysctl hypercalls.
For now versions 0x15 is supported.

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Mykyta Poturai
4f6fb8989a xen: Add support for changing Xen Domctl interface version
Add a new Kconfig option CONFIG_XEN_DOMCTL_INTERFACE_VERSION that allows
to change the version of the Domctl interface used by Zephyr to issue
domctl hypercalls. Add compile-time checks to enable or disable certain
Domctl operations based on the selected Domctl interface version.
For now versions 0x15, 0x16, and 0x17 are supported.

Also it required to correctly guard domctl call that were not supported
prior to specified version.

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Mykyta Poturai
f344dcb274 xen: domctl: Get back created domain id
If 0 is passed as domain id to the Xen createdomain hypercall, it will
allocate a new domain id and return it via the domctl structure.
Allow callers to access this new domain id via a pointer arg.
This will allow to create domains without explicitly specifying the
domain id for them.

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Mykyta Poturai
db984ae4d2 xen: domctl: add doxygen comments for domctl functions
Document all of the public functions in the domctl API with doxygen

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Mykyta Poturai
eb65bc0f43 xen: domctl: fix function parameter name in set/get_paging_mempool_size
The size is passed in bytes, not in megabytes. So rename the parameter
to avoid confusion.

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Dmytro Semenets
6a2db68fcf drivers: xen: dom0: added getvcpuinfo domctl call
Domain control call "XEN_DOMCTL_getvcpuinfo" provides information
about domain's virtual CPU(s). It can be used by Domain-0 services
for gathering statistic and vCPUs current status.

Signed-off-by: Dmytro Semenets <dmytro_semenets@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Dmytro Semenets
f131d5f3ed drivers: xen: dom0: add Xen sysctl hypercall
This hypercall can be used get some information about physical machine
and running guests:

- sysctl hypercall "xen_sysctl_getphysinfo" allows read information about
physical machine: number CPUs, memory sizes, hardware capabilities, etc.

- sysctl hypercall "xen_sysctl_getdomaininfolist" returns array of domain
info structures that provide information about particular domain(s).

Signed-off-by: Dmytro Semenets <dmytro_semenets@epam.com>
Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Dmytro Semenets
eaaa5400dc drivers: xen: add xen version hypercall
Xen API contains hypercall, which allows domains to identify Xen
version, that is currently used on the system. It can be used to check
if current version is supported by Zephyr or to change behavior of the
drivers or services.

Signed-off-by: Dmytro Semenets <dmytro_semenets@epam.com>
Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
2025-11-20 09:01:06 -05:00
Emil Gydesen
797fa99f57 Bluetooth: BAP: Shell: Refactor receive states
Refactor how receive states are handled in the BAP
shell.

The scan delegator's receive states are not available from
the broadcast sink, and the broadcast sink makes sure to
properly set the pa_sync object in the receive state
struct.
The receive states are now also using the BAP service data to
identity the receive state when using PAST.

The broadcast assistant will now cache data from a remote device,
and makes it available to e.g. CAP.
Additionally if there is a broadcast source, we cache the values
neccesary to identity if a remote receive state represents our
local broadcast source.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-11-20 09:00:27 -05:00
John Batch
80e3b271e7 MAINTAINERS: update Infineon Platforms collaborators
Adds jsbatch and billwatersiii as collaborators for Infineon Platform
and hal_infineon west project.

Signed-off-by: John Batch <john.batch@infineon.com>
2025-11-20 09:00:17 -05:00
Emil Gydesen
be874a2aaf Bluetooth: BAP: Missing assignment to aggregated_bis_syncs
When using the add_src and mod_src APIs the
aggregated_bis_syncs variable was only ever set to 0
and never updated, thus making all calls to
bis_syncs_unique_or_no_pref to be true.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-11-20 08:59:49 -05:00
Peter van der Perk
819955b52c kernel: thread: mark return undefined in z_thread_entry using DWARF
Add DWARF hint to handle z_thread_entry correctly
in debuggers. This function starts a new thread and never returns.
Use `.cfi_undefined` so DWARF-based unwinding does not rely on return.
Without this, unwinding may follow a bogus return address, leading to
invalid memory reads and potential bus faults during backtrace.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2025-11-20 08:59:42 -05:00
Aleksandr Khromykh
f93e78b7f7 tests: bluetooth: tester: fix model rx handler
Commit fixes the model rx handler.
Model can receive maximum access payload.
Test should be able fit maximum access payload and
its own header for serial communication.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-11-20 08:59:31 -05:00
Pieter De Gendt
1384cfa83c MAINTAINERS: remove pdgendt as Atmel collaborator
Atmel related work has reduced, remove my collaborator role.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-11-20 08:59:10 -05:00