Commit graph

126,787 commits

Author SHA1 Message Date
Piotr Kosycarz
e3a3fca7fa boards: nordic: nrf54h20dk: fix flashing for xip variants
Make sure operations are groupped when using ppr/xip and flpr/xip.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-10-02 15:14:55 +03:00
Tim Pambor
9041793ccb Revert "ztest: Add validation of zassert strings"
This reverts commit ef73155f96.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-02 15:14:45 +03:00
Lin Yu-Cheng
2d72d86ba2 serial: rts5912: implement power management
support uart wake up function

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2025-10-02 11:47:32 +03:00
Lin Yu-Cheng
3372459e28 serial: uart_ns16550: add uart_ns16550_get_port() function
For user to get the register address of the device by this function

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2025-10-02 11:47:32 +03:00
Lin Yu-Cheng
5bca3095ac gpio: rts5912: implement power management
support gpio wake up function.
change init stage from POST_KERNEL to PRE_KERNEL_1
because uart wrap init need to use the gpio functions.

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2025-10-02 11:47:32 +03:00
Lin Yu-Cheng
75c4be1f51 soc: realtek: ec: Implement power saving
Impelment RTS5912 power saving (heavy sleep)
Remove the power state of "suspend_to_ram"

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2025-10-02 11:47:32 +03:00
Lin Yu-Cheng
83e350b5a0 sensor: rts5912: reduce Tachometer wake up frequency
Adjusted RTS5912 tachometer behavior to reduce interference with CPU sleep.

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2025-10-02 11:47:12 +03:00
Tim Pambor
e2138150ca tests: ram_context_for_isr: fix format specifier for addresses
Use %lx for printing addresses (uintptr_t) instead of %x.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-02 11:47:01 +03:00
Tim Pambor
5b016159e7 tests: zdsp: Correct format specifier in assert_strings
strlen returns size_t, not int. Fix the format specifier to avoid warnings
when building with -Wformat.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-02 11:47:01 +03:00
Tim Pambor
ef73155f96 ztest: Add validation of zassert strings
Add __printf_like attribute to ztest assertion functions
zassert, zassume, zexpect to validate format strings and arguments
at compile time.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-02 11:47:01 +03:00
Tomasz Chyrowicz
e3c5bdfa02 boards: Add secondary_app_partition alias
Add secondary_app_partition aliases.
Those aliases can be used to configure the code partition for the
second copy of the FW in the Direct XIP update scenarios.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-02 11:46:41 +03:00
Peter Johanson
f89c00441a soc: raspberrypi: rpi_pico: Add RP2 bootloader support
Add an early init hook to check the boot mode and reset into the RP2 USB
bootloader if requested. Includes a snippet to use with any RP2040/RP2350
board to enable the necessary DTS/Kconfig to use the functionality, and
easy DTS includes for boards to use explicitly.

Signed-off-by: Peter Johanson <peter@peterjohanson.com>
2025-10-02 11:46:31 +03:00
Chris Friedt
6c01157fef kernel: dynamic: update storage size for pool of dynamic thread stacks
Commit 5c5e17f introduced a subtle regression when userspace was
configured on architectures requiring guard pages.

Prior to 5c5e17f, the assumption was that guard pages would be included in
`CONFIG_DYNAMIC_THREAD_STACK_SIZE`, and that was something that the caller
of `k_thread_stack_alloc()` would need to be aware of, although it was not
documented at all, unfortunately.

It seems that 5c5e17f intended to remove the need for that assumption, but
the necessary conditions for doing so had not been met.

Update pool storage size to account for guard pages, which ensures that
users can access every byte of `CONFIG_DYNAMIC_THREAD_STACK_SIZE` rather
than needing to be aware that guard pages would be included in the
requested size.

The compromise is a more intuitive API at the cost of more storage space
for the pool of thread stacks when userspace is enabled.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-10-02 11:46:22 +03:00
Andreas Schweigstill
4c221ac3cf drivers: disk: sdmmc_stm32: fix compilation error for SDMMC_STM32_EMMC
Compilation fails if CONFIG_SDMMC_STM32_EMMC is set. This bugfix
adds #ifdef ... #endif pairs for unused static functions and
a call to stm32_sdmmc_card_detect_uninit().

Signed-off-by: Andreas Schweigstill <andreas@schweigstill.de>
2025-10-02 09:32:03 +02:00
Michael Zimmermann
f07f0d288e net: mqtt_sn: Implement updating will topic and message
Since the protocol doesn't have message IDs in the responses to these
update messages, there's no reliable way to know, if an update succeeded or
not. I use that fact to simplify the implementation by:
- Not providing success/failure callbacks.
- Not handling updating the variables in the client struct while
  an update is in progess.

In addition to adding some tests, I tested this with the emqx server.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-10-02 09:31:53 +02:00
Alain Volmat
d4fddc2a74 shields: st_stm32f4dis_cam: add a stm32h747i_disco//m7 overlay
Add an overlay allowing to use the stm32f4dis_cam shield on the
stm32h747i_disco board.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
04c1bf6424 shields: weact_ov2640_cam_module: use MCO macro from stm32 bindings
Switch to the usage of MCO configuration macros provided by
stm32h7_clock.h clock bindings.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
23bb046905 shields: st_stm32f4dis_cam: add stm32l4r9i_disco specific overlay
Move the selection of the dma channel and the sensor input clock into
a board specific overlay since this differ from a board to another.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
c4285ef4b9 shields: st_b_cams_omv_mb1683: remove i2c/dcmi/dmamux nodes from overlay
The i2c bus configuration and dcmi pins alternate function settings are
already done within the board dts since this is fixed for each board
so remove then from the shield overlay.
The dmamux node enabling is also removed since currently the DCMI/DMA
cannot rely on dmamux.

In the shield main overlay file, ensure that the i2c bus is properly
enabled.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
5006c834c0 boards: st: stm32h7b3i_dk: add dcmi pinctrl and remove duplicated i2c4
The pin alternate function settings are boards related so configure
the dcmi pinctrl within the board dts file in order to remove them
from the shield board specific overlay.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
2c131a62a9 boards: st: stm32h747i_disco: add camera support
Add connector, i2c and dcmi labels and pinctrl in order to allow
usage of a camera module shield with this the stm32h747i_disco board.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
c2da6dea40 include: zephyr: dt-bindings: clock: h7: add MCO SEL/PRE macros
Add macros in order to select the MCO input clock and prescaler
value.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
6b13cc8666 include: zephyr: dt-bindings: clock: l4: add MCO SEL/PRE macros
Add macros in order to select the MCO input clock and prescaler
value.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
e94495700f dma: stm32: removal of unused stm32_dma_config_channel_function
Function stm32_dma_config_channel_function is unused hence remove it
from headers and dma_stm32_v1. In case of dma_stm32_v1, the related
configuration is already part of the LL_DMA_Init call done in
another place in dma_stm32.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
a09fc068ea dma: stm32: dma_stm32_slot_to_channel is only applicable on STM32Fx
The dma_stm32_slot_to_channel function is only applicable on the
STM32Fx series since the LL_DMA_CHANNEL_x macros only exist for those
platforms among the one based on st,stm32-dma-v1.
While checking for !defined(CONFIG_DMAMUX_STM32) is ok to enable this
on STM32Fx, it prevents to disable dmamux on other platforms since
required symbols do not exist.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Alain Volmat
002d9542d7 dts: st: l4: fix dcmi dma stream id
Channel ID should be numbered starting from 1.
Correct the dma properties of dcmi devices in L4 series
and use dma1 by default to make it same for all L4 series.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-10-02 09:31:36 +02:00
Hieu Nguyen
c6bbf4d51c tests: counter: Handle zero tick_us for very short timer ticks
Ensure tick_us is at least 1 for very short timer ticks

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-02 09:31:28 +02:00
Hieu Nguyen
34d863a072 samples: drivers: counter: Add Counter support for Renesas RZ/V2L, A3UL
Add Counter sample support for Renesas RZ/V2L-SMARC, RZ/A3UL-SMARC

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-02 09:31:28 +02:00
Hieu Nguyen
2854797a79 tests: drivers: counter: Add Counter support for Renesas RZ/V2L, A3UL
Add Counter test support for Renesas RZ/V2L-SMARC, RZ/A3UL-SMARC

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-02 09:31:28 +02:00
Hieu Nguyen
05fd05d29b boards: renesas: Add Counter support for Renesas RZ/V2L, A3UL
Add Counter support for board Renesas RZ/V2L-SMARC, RZ/A3UL-SMARC

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-02 09:31:28 +02:00
Hieu Nguyen
34d764ea11 dts: renesas: Add Counter support for Renesas RZ/V2L, A3UL
Add GTM nodes to Renesas RZ/V2L, A3UL

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>

temp

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2025-10-02 09:31:28 +02:00
Hieu Nguyen
424a12446f drivers: counter: Add Counter support for Renesas RZV2L, A3UL
Add Counter driver support for Renesas RZ/V2L, A3UL

Signed-off-by: Hieu Nguyen <hieu.nguyen.ym@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>

drivers: counter: Improve ISR Prototype for Renesas RZ
2025-10-02 09:31:28 +02:00
Xiaolu Sun
0ab40913c2 drivers: i2c_sedi: add API to retrieve current configuration
Introduced a API to get the current I2C configuration.
Facilitates runtime inspection of I2C settings.
Useful for debugging and dynamic configuration changes.

Signed-off-by: Xiaolu Sun <xiaolu.sun@intel.com>
2025-10-01 20:24:23 -04:00
Benjamin Cabé
0a9c7634a0 ci: workflows: doc: use self-hosted runner
Running full documentation build on GH hosted runners is not really
working for us anymore as we run out of disk space.
Switch (back) to our self-hosted runners.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-01 20:23:51 -04:00
Benjamin Cabé
fea720c51f doc: requirements: regen pinned dependencies
Run uv pip compile to get fresh snapshots of the pinned dependencies.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-01 20:23:51 -04:00
Benjamin Cabé
27330f6f02 scripts: requirements-actions: regen pinned dependencies
Run uv pip compile to get fresh snapshots of the pinned dependencies.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-01 20:23:51 -04:00
Jeppe Odgaard
bbe4a064c8 tests: drivers: build_all: sensor: add omron d6f
Add Omron D6F to sensor build_all test.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-10-01 17:14:28 -04:00
Jeppe Odgaard
29d01736d8 drivers: sensor: omron: add d6f driver
Add support for Omron D6F mass flow rate sensor series. The sensor series
outputs an analogue voltage which is read using an ADC.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-10-01 17:14:28 -04:00
Jeppe Odgaard
50015354d6 dts: bindings: vendor-prefixes: Add omron prefix
Add OMRON vendor prefix.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-10-01 17:14:28 -04:00
Jeppe Odgaard
f8a952f2fe include: drivers: sensor: add flow rate channel
Add flow rate to `enum sensor_channel` in litres per minute.

The SI unit for flow rate is cubic metres per second. Due to a sensor value
resolution of 1/100000 this unit is not granular enough for low flow rate
sensors.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-10-01 17:14:28 -04:00
Rex Chen
e8e4d2159e mcux: wifi_nxp: Enable IMU IRQ after event initialized
After running 'kernel reboot' cmd on coex application,
zephyr os clean bss section, IMU13 IRQ event data set as 0,
then CPU3 receive IMU13 IRQ from CPU1, need access IMU13 IRQ event,
cause hang.
Put enable IMU13 IRQ operation after related task and event created
to fix this issue.

Signed-off-by: Rex Chen <rex.chen_1@nxp.com>
2025-10-01 17:14:15 -04:00
Cla Mattia Galliard
4925e3a221 drivers: sensor: voltage_divider: Use k_timepoint_t for absolute time
Use k_timepoint_t instead of k_timeout_t for absolute time to avoid
ambiguity and ensure the code works even when CONFIG_TIMEOUT_64BIT=n.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
2025-10-01 17:13:59 -04:00
Alexander Lay
b4d5cd3c47 tests: drivers: pwm: pwm_api: Add Kconfig options for test values
Add Kconfig options for default period/pulse values and port to
remove platform/vendor specific preprocessor conditionals.

Signed-off-by: Alexander Lay <alexanderlay@tenstorrent.com>
2025-10-01 17:13:17 -04:00
Alexander Lay
3855d1809f tests: drivers: pwm: pwm_api: Add pwm-test alias for pwm device node
Introduce a common pwm-test alias for pwm device nodes to remove
platform/vendor specific preprocessor conditionals.

Signed-off-by: Alexander Lay <alexanderlay@tenstorrent.com>
2025-10-01 17:13:17 -04:00
Fabian Blatz
a6500f1c48 drivers: sensor: voltage-divider: Add skip-calibration property
Adds a skip-calibration property to the voltage divider sensor,
which can be enabled, in case the underlying ADC driver
does not support calibration.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-10-01 17:13:05 -04:00
Seppo Takalo
0025751414 modem: cmux: Rework the drop handling
Do not read extra byte when we decide to drop a frame.
Instead go directly to MODEM_CMUX_RECEIVE_STATE_SOF, so the next
flag character will start a new frame.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-10-01 17:12:50 -04:00
Vlad Kulikov
2d151b22c1 lib: smf: remove unreachable case in get_lca_of()
smf_set_state() excludes ancestor/descendant relations before calling
get_lca_of(). The function now walks from source->parent and returns
the first ancestor that contains dest. The 'ancestor == dest' case
was unreachable and is removed.

No functional change intended.

Ref: RFC #95952
Signed-off-by: Vlad Kulikov <vlad_kulikov_c@pm.me>
2025-10-01 17:12:38 -04:00
Guennadi Liakhovetski
ca641d8410 llext: only build fs_loader.c if file-systems are enabled
No need to build fs_loader.c if CONFIG_FILE_SYSTEM=n.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2025-10-01 17:12:22 -04:00
Krzysztof Chruściński
7a6c7ea0f9 drivers: serial: nrfx_uarte: Remove redundant pinctrl call
Pinctrl call is redundant as uarte_periph_enable calls it as well.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-01 17:12:09 -04:00
Robert Lubos
e8548e697a net: sockets: Reserve a default heap space for getaddrinfo
Add a default heap reservation for gettaddrinfo(), enough for a single
function call in a default configuration on 64-bit platform.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-10-01 17:11:58 -04:00