Commit graph

136,983 commits

Author SHA1 Message Date
Tim Pambor
21c3722f73 tests: drivers: flash: add fixture for flash 5 click shield
Prevent execution on devices without MikroElektronika Flash 5 Click
shield attached

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-04-01 11:48:28 -05:00
The Nguyen
00e94d2d5a boards: renesas: fix wrong clock configuration on aik_ra8d1
Disable subclock due to it is not populated on board.
Set correct PLL multiple factor to get correct desired clock freq.

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2026-04-01 09:19:56 -05:00
Sylvio Alves
478f23a2b5 west.yml: update hal_espressif to fix mcuboot build
Add guards for wpa_supplicant and mbedtls port include
directories behind CONFIG_WIFI_ESP32, fixing a memset_func
redefinition error when building MCUboot with non-RSA
signature types in sysbuild.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-04-01 09:19:28 -05:00
Jani Hirsimäki
a85db98380 net: iface: longest-prefix match for net_if_ipv6_addr_onlink()
Select the interface whose on-link prefix has the greatest length when
multiple prefixes match the same address. Fixes wrong iface selection
when a host has several interfaces whose on-link prefixes overlap (e.g.
a shorter prefix on one link and a longer, more specific prefix on
another). Callers that pass iface == NULL still get a boolean only; no
interface pointer is written.

Signed-off-by: Jani Hirsimäki <jani.hirsimaki@nordicsemi.no>
2026-04-01 09:18:32 -05:00
Jukka Rissanen
97e96f2957 net: Remove experimental status from pre-emptive network threads
The support for running network TX/RX threads in pre-emptive way
was introduce in 2020. The experimental status is no longer valid
as the feature has been there for quite some time and it is being tested
also regularly by CI.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2026-04-01 09:17:53 -05:00
Ren Chen
57956c7d57 tests: watchdog: wdt_error_cases: add it51xxx soc test support
as title.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-04-01 09:17:29 -05:00
Ren Chen
db64bd6acf drivers: watchdog: it51xxx: improve error handling
`tests/drivers/watchdog/wdt_error_cases` test was failing
on `it51xxx_evb/it51526aw` due to insufficient error
handling. This change fixes those issues, and the following
tests now pass.
- tests/drivers/watchdog/wdt_error_cases
- tests/drivers/watchdog/wdt_basic_api
- tests/drivers/watchdog/wdt_basic_reset_none
- tests/drivers/watchdog/wdt_variables
- samples/drivers/watchdog

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-04-01 09:17:29 -05:00
Ren Chen
06f17b1768 drivers: adc: it51xxx: validate buffer size in start_read()
Move buffer size validation into `start_read()` to prevent adc
context from getting stuck. This issue is revealed by
`tests/drivers/adc/adc_error_cases` test.

Also, this patch adds check for unsupoorted options, including
oversampling and invalid resolution and adds support for higher
channel range. (8 and above).

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-04-01 09:16:23 -05:00
Liam Ogletree
70d1db5713 tests: application_development: Exclude invalid platform
Commit 71aa3be37b breaks
ram_context_for_isr build tests for CRD40L50. Exclude
CRD40L50 from the build test.

Signed-off-by: Liam Ogletree <liam.ogletree@cirrus.com>
2026-04-01 09:15:47 -05:00
Lucien Zhao
259da45c4f west: hal_nxp: sync clock driver update for RT11XX
sync clock driver update for RT11XX platforms.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-04-01 09:14:31 -05:00
Anas Nashif
f75779abbd arm: deal with static assert when building with clang
Some compilers do not support BUILD_ASSERT() to check alignment of arrays.

 This fix checks if a CLANG  compiler is used and disables the
start-alignment check if it is.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-04-01 09:13:54 -05:00
Felix Wang
304ffce894 tests: drivers: counter: set GPT run-mode to free-run for NXP boards
Configure the GPT (General Purpose Timer) instances to use "free-run"
mode in the counter basic API test overlays for NXP i.MX RT and i.MX 8
boards. This ensures consistent timer behavior across the test suite.

Changes apply to:
- mimxrt1170_evk (GPT2-6)
- mimxrt1180_evk cm33 and cm7 (GPT2)
- imx8mp_evk, imx8mn_evk, imx8mm_evk (GPT1)

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-04-01 09:13:29 -05:00
Adrian Bieri
77517213c2 version: add extraversion in version.h
This commit adds EXTRAVERSION to code through version.h.
This aligns the symbols available in code with those available
in the VERSION file.

Signed-off-by: Adrian Bieri <adrian.bieri@loepfe.com>
2026-04-01 09:12:15 -05:00
Fabian Kainka
218484b36b drivers: gpio: pca_series: fix GPIO_DISCONNECTED as not supported
Configuring a pin with GPIO_DISCONNECTED currently
results in the pin being set as output due to a
fallthrough in the code. This is not supported by
the driver and should return -ENOTSUP instead.

This commit ensures that configuring GPIO_DISCONNECTED
is explicitly rejected and not applied to the hardware.

Signed-off-by: Fabian Kainka <f.kainka@gmx.de>
2026-04-01 09:09:57 -05:00
Nicholas Cadieux
4e5cb31d32 usb_c: pe: fix PE state on DRS sender response timeout
When the SenderResponseTimer expires in PE_DRS_SEND_SWAP, PE was
unconditionally transitioning to PE_SNK_READY. This is incorrect when
the port is operating as a Source, as it should return to PE_SRC_READY.

Replace pe_set_state(dev, PE_SNK_READY) with pe_set_ready_state(dev),
which selects the correct ready state based on the current power role.

Signed-off-by: Nicholas Cadieux <ncadieux@qti.qualcomm.com>
2026-03-31 18:24:46 -05:00
Armando Visconti
97af889e3f samples: fix units in printed out data
Fix printed out sensor data units using International System (SI).
In particular 'dps' is changed into 'rad/s', 'm.s-2' into 'm/s^2',
'gauss' into 'G' and 'kpa' into 'kPa'.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-31 18:23:09 -05:00
Armando Visconti
fb3a678af9 include: sensor.h: use SI sensor units symbols
Use International System of units (SI) symbols in gyrometer (rad/s)
and magnetometer (G) sensors API documentation.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-31 18:23:09 -05:00
Alexander Wachter
a03080b002 usb: usb_c: fix level of vbus check in Attached.SNK
The transition from Attached.SNK to Unattached.SNK is currently
triggered if vbus is < vSafe5V.
USB-Type C Spec R2.4 Table 4-3 defines vSinkDisconnect as
the voltage to be used for the transition from
Attached.SNK to Unattached.SNK
This commit changes the check to use the correct voltage level.

Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
2026-03-31 18:22:17 -05:00
Ryan Erickson
4023ded959 drivers: dp: fix reset state
When the debug port is turned on, the reset IO should be set inactive.
Setting the pin active will hold the device in reset constantly and
causes issues with debug port access.

When the port is turned off, the keep_reset_deast option should set
the IO to inactive as the kconfig states.

Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
2026-03-31 18:21:41 -05:00
Benjamin Cabé
dfaa055de8 doc: develop: update MCUXpresso Installer link in host-tools documentation
The previous link is now redirecting to
https://mcuxpresso.nxp.com/mcux-vscode/latest/html/MCUXpresso-Installer.html
so we might as well use that one directly :)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-31 14:01:23 -05:00
Quy Tran
d7876f59e1 soc: renesas: rx: add mcu_clock_setup for RX14T
Add the lacking of mcu_clock_setup in soc early init function
of the RX14T MCU

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2026-03-31 14:01:10 -05:00
Haoran Jiang
913004ba66 MAINTAINERS: promote HalfSweet to maintainer for SiFli platform
Move HalfSweet from collaborator to maintainer for the SiFli SF32LB

Signed-off-by: Haoran Jiang <halfsweet@halfsweet.cn>
2026-03-31 14:00:24 -05:00
Qingsong Gou
a56e785506 MAINTAINER: hal_sifli: add ck-telecom as collaborators
As title.

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-03-31 14:00:05 -05:00
Bill Waters
390596dd79 soc: infineon: cyw20829 linker.ld update
To address the "warning: orphan section", added
.llext_heap, .llext_ext_heap, and .llext_metadata_heap
sections to the #ifndef CONFIG_USERSPACE noinit section
in the linker script, wrapped in #ifdef CONFIG_LLEXT.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2026-03-31 13:59:45 -05:00
Bill Waters
edb7b58825 boards: infineon: cyw920829m2evk_02 warning
Added CONFIG_NULL_POINTER_EXCEPTION_DETECTION_NONE=y
to the defconfig. The CYW20829 has flash at 0x08000000
(not near address 0), so MPU null-pointer detection
can't work and was generating a pragma message.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2026-03-31 13:59:45 -05:00
Bill Waters
3519c4ade0 modules: hal_infineon: CMakeLists.txt duplicates
In a few CMakeLists.txt files there were duplicate
zephyr_library_sources entries - one conditional
and one unconditional.  The unconditional entry
was removed in each case.  A couple of device-
family conditionals needed to be added after this
update.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2026-03-31 13:59:19 -05:00
Erwan Gouriou
5ac8a0e2ae Revert "drivers: pwm: add support for enabling DMA requests"
This reverts commit 311a841620.
+ related changes done in 841e4d4597

Proposed API change result in vendor specific details of the DMA leaking
into application code, which prevents usage with portable code.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-03-31 13:58:55 -05:00
Ederson de Souza
4d02410527 samples/subsys/pmci/mctp: Use worker on I2C+GPIO endpoint to reply
MCTP message RX callback is called from ISR context - we shouldn't be
sending the reply from there. Instead, submit work to a work queue to
handle the reply.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Ederson de Souza
99bdef5ae9 tests/subsys/pmci/mctp: Add "big message" test for I3C
This test ensures that the MCTP I3C binding can handle big messages,
that are split into several MCTP packets.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Ederson de Souza
d723a996eb subsys/pmci/mctp: Avoid possible race when enabling MCTP over I3C
Callback for IBI (In-Band Interrupt) was being set after enabling IBI -
which could be an issue if an IBI would be asserted in between enabling
IBI and setting the callback. This patch simply sets the callback before
enabling IBI.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Ederson de Souza
66a74a2385 tests/subsys/pmci/mctp: Add "big message" test for I2C+GPIO
This test ensures that the MCTP I2C+GPIO binding can handle big messages,
that are split into several MCTP packets.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Ederson de Souza
5609406614 subsys/pmci/mctp: Allow unregistering I2C target
Add a `mctp_i2c_gpio_target_unregister`, which basically calls I2C
`i2c_target_unregister`. While libmctp binds are only "started", with
no cleanup, this will be useful for tests, allowing a sequence of them.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Ederson de Souza
caedcd4655 tests/subsys/pmci/mctp: Add "big message" test for UART
This test ensures that the MCTP UART binding can handle big messages,
that are split into several MCTP packets.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Ederson de Souza
a8b6717816 subsys/pmci/mctp: Block on UART transfer
When sending "big messages", libmctp queues a series of packets and
calls the binding in a loop to transmit all messages. If previous
message was still being sent, transmission would fail with -EBUSY, but
libmctp wouldn't handle it.

This patch makes the UART TX blocking, so it only returns after
completion, allowing next TX to just work.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2026-03-31 14:58:06 -04:00
Paulo Santos
ca7230d8ca doc: develop: manifests: external: fix zview cfg block
Fix identation of the cfg block for ZView docs.

Signed-off-by: Paulo Santos <pauloxrms@gmail.com>
2026-03-31 13:57:40 -05:00
Krzysztof Chruściński
59f2d401ba logging: Fix case where compilation failed with GCOV
It was seen that with COVERAGE_GCOV a log entry with a floating number
was failing to compile because macro resolved during compilation was
returning negative value for _plen (error code). It seems like some
compiler artifact when coverage is enabled as adding early exit when
error is detected fixed compilation issue and log is still printed
which means that early exit case is not executed.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-31 14:57:31 -04:00
Benjamin Cabé
e893b8be06 doc: releases: add Zephyr 4.4 release highlights
Complete the section about major highlights for Zephyr 4.4.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-31 13:57:20 -05:00
Daniel Leung
8a977567b9 soc: cdns_swerv: allow running without external IRQ controller
SweRV S4xx SoCs has an external interrupt controller by design.
The corresponding driver is enabled via CONFIG_SWERV_PIC.

However, it is not fully supported in the whisper simulator.
Accessing the controller's MMIO space will result in access
fault when PMP is enabled with catchall entry. To workaround
this, we simply skip building the driver so there will be no
invalid memory access at boot. For this to work correctly,
we need to implement some basic arch_irq_*() function to
utilize the internal interrupt controller so we can still
boot and test. For non-PMP boards, we still have the driver
enabled so it is built in CI to avoid breakage.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-03-31 13:56:50 -05:00
Benjamin Cabé
fee0407ac4 doc: boards: qemu_or1k: use ..zephyr:board-supported-hw:: directive
Remove manual hardware feature table from the QEMU OpenRISC board
documentation in favor of auto-generated table using the
..zephyr:board-supported-hw:: directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-31 13:56:17 -05:00
Benjamin Cabé
044ee12b69 Revert "libc: use picolibc module with openrisc [REVERT ME]"
This reverts commit 1113abfb66.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-31 13:56:17 -05:00
Benjamin Cabé
ad924cc2f7 Revert "qemu_or1k: limit tests to kernel and arch initially [REVERT ME]"
This reverts commit fa0f89317f.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-31 13:56:17 -05:00
Benjamin Cabé
0bb2f6ee24 Revert "arch: openrisc: do not enableL TLS support [REVERT ME]"
This reverts commit be388896e0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-31 13:56:17 -05:00
Mikhael Skvortsov
01586032e4 net: wireguard: fix PSA slot leak
Free any leftover ephemeral key from a previous unanswered initiation.

Signed-off-by: Mikhael Skvortsov <mikhael.skvortsov@gmail.com>
2026-03-31 13:55:23 -05:00
Cristian Bulacu
51a320886e openthread: shell: rw612: Fix circular psa_generate_random() calls
Enable CONFIG_MBEDTLS_PSA_CRYPTO_LEGACY_RNG to avoid
recursive calls to psa_generate_random() function.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-03-31 13:54:46 -05:00
Guillaume Gautier
9e10d4a7ca drivers: adc: stm32: fix preselection register for stm32h72x/73x
STM32H72x/73x ADC have a PCSEL_RES0 register instead of PCSEL for other
series.
Make a special case to prevent a compilation error.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-03-31 13:54:23 -05:00
Eve Redero
223ba366e3 doc: nvmem: more explanations on MAC and nvmem
Add some more explanations on how to configure MAC
addresses with nvmem

Signed-off-by: Eve Redero <eve.redero@gmail.com>
Co-authored-by: Pieter De Gendt <pieter.degendt@gmail.com>
2026-03-31 13:53:59 -05:00
Fabrice DJIATSA
196d6ddc78 tests: drivers: dac: dac_loopback: fix regression on stm32f3
Avoid initialization failure by Updating channel information
to match the <dac1 1> configuration.

Also reduce ADC resolution to 10 bits to prevents the test from failing
due to ADC sampling value being outside the valid range.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-03-31 13:53:34 -05:00
Fabian Blatz
8cc0c77a9a include: drivers: watchdog: document driver operations using doxygen
Use doxygen driver_ops commands to properly document the required
watchdog driver operations.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2026-03-31 13:52:59 -05:00
Basile GRUNER
2e56a0806c dts: bindings: clock: fix typo in description for stm32n6
Fix a typo in `st,stm32n6-ic-clock-mux.yaml`.
Description was using `div` property instead of `ic-div`.

Signed-off-by: Basile GRUNER <basile.gruner@smile.fr>
2026-03-31 13:52:35 -05:00
Furkan Akkiz
1df6f82029 soc: adi: max32: Remove unused header from power.c
This commit removes the unused mcr_regs.h header from the power.c file
in the MAX32 SoC directory.
The header is not required for current power management implementation.
Furthermore, since some MAX32 SoC variants do not include this specific
register definition, removing it prevents potential build failures and
improves cross-SoC compatibility within the series.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2026-03-31 13:52:01 -05:00