Commit graph

136,983 commits

Author SHA1 Message Date
Mathieu Choplain
544a96356d arch: arm: cortex_m: __aeabi_read_tp: add missing include
The eponymous function in __aeabi_read_tp.S is declared using:
  SECTION_FUNC(TEXT, __aeabi_read_tp)

Note the first argument (section name) is `TEXT` in capital letters which
a define in `include/zephyr/linker/sections.h` should replace with `text`,
such that the function is placed in section `.text.__aeabi_read_tp` which
matches the ".text.*" pattern in linker script. However, this file is not
included by __aeabi_read_tp.S: as such, the substitution never happens and
the function goes in `.TEXT.__aeabi_read_tp` instead! This has not caused
issues thanks to a workaround in the Cortex-M linker script, which also
has ".TEXT.*" as input section name pattern (unlike all other archs!), but
is a bug nonetheless.

Fix this issue by adding the missing include which ensures the function
is placed in a section with the proper name.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 16:10:19 -06:00
Aiden Hu
8534decf38 drivers: usb: uhc: handle stall status in transfer callback
Return -EPIPE when status is kStatus_USB_TransferStall.

Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
2026-01-29 16:09:42 -06:00
Daniel Leung
34021be789 cmake: toolchain/xt-clang: add flag to skip FLIX generation
This adds the compiler flag to instruct xt-clang not to generate
FLIX (Flexible Length Instruction Xtensions) instructions, where
multiple instructions can be fused into one instruction. FLIX
can provide performance and code size advantages.

When userspace is enabled, FLIX may reorder memory access
where memory is accessed before code determines whether
we should perform that memory access. For example,
when guarding memory access via k_is_user_context(), and
some kernel variables can only be accessed via kernel mode,
FLIX may reorder memory access such that these variables are
accessed before k_is_user_context(). This results in access
violation. This turns off FLIX generation by default and
lets the application developers to decide whether to enable
FLIX generation.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-29 16:09:13 -06:00
Daniel Leung
8776407309 cmake: compiler: add flags for VLIW generations
This adds to compiler flags template on instructing the compiler
on whether to generate VLIW instructions.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-29 16:09:13 -06:00
Yves Wang
181e421611 scripts: traceconfig: Improve file path display
For Windows, if the build dir is under same drive with zephyr base, the
generated link shall be relative url like posix style.
If they are in different drive, url is meaningless. So just use raw link
format so that some editors can directly jump to.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-01-29 16:08:38 -06:00
Luis Ubieda
57d25cfdbc boards: vmu-rt1170/mr-canhubk3: Set enet PHY role as auto
To allow flexibility of ethernet "just working" with various peers,
including Linux peers that may be configured by default as master.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2026-01-29 16:07:54 -06:00
Murali Iyengar
09f92ad393 tracing: add external tracing module support
Enhancement request:
zephyrproject-rtos/zephyr#37912

Code reference from
zephyrproject-rtos/zephyr#39552

Adds out of tree tracing backend support

Signed-off-by: Murali Iyengar <murali.r.iyengar@intel.com>
2026-01-29 17:20:22 +01:00
Jamie McCrae
a1479c8b48 tests: posix: xsi_single_process: Exclude hifive platform
This platform is failing the
portability.xsi.single_process.newlib test, therefore add it to
the exclusion list

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-29 17:20:11 +01:00
Jamie McCrae
d88e590b93 doc: release: migration_guide: 4.4: Add notes on sifive boards
Adds notes of changes to these Kconfigs

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-29 17:20:11 +01:00
Jamie McCrae
80f19801b2 soc: sifive: sifive_freedom: Fix SoC Kconfig naming and issues
Fixes the Kconfig name of this so that it matches the value from
soc.yml, and deprecates the old name - this is required to support
future build system features. Additionally, it fixes an issue in
Kconfigs of this SoC of duplicating existing symbols

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-29 17:20:11 +01:00
Stefan Schwendeler
413c0189f4 tests: drivers: adc: Adds test case for voltage_divider_scale64_dt()
The test case is similar to `voltage_divider_scale_dt()` but works
with microvolts.

Signed-off-by: Stefan Schwendeler <Stefan.Schwendeler@husqvarnagroup.com>
2026-01-29 17:20:02 +01:00
Stefan Schwendeler
a82e5209d8 drivers: sensor: voltage_divider: Improves resolution to sub-millivolt
The calculation of the sensor value uses the intermediate value of the
function `adc_raw_to_microvolts_dt`. This results in a sensor value
with a resolution that is not below `voltage-divider-scaling` millivolts
which can be too rough for some applications.

Using `adc_raw_to_microvolts_dt` and 64-bit-based scaling improves
the resulting voltage resolution.
Therefore, the public function `voltage_divider_scale64_dt()` is
introduced, which performs the same as `voltage_divider_scale_dt()`.
This decision does not affect implementations that use the current
32-bit implementation of `voltage_divider_scale_dt()`.

Signed-off-by: Stefan Schwendeler <Stefan.Schwendeler@husqvarnagroup.com>
2026-01-29 17:20:02 +01:00
Guilherme Costa
2590401cfa testsuite: ztest_posix: Do not register -test if ZTEST_SHELL=y
The -test command line option can be used to filter tests for execution
on native_sim targets, but if ZTEST_SHELL is enabled this filtering can
be done via the shell itself, so the option loses its purpose and can be
disabled.

Signed-off-by: Guilherme Costa <glhrmcosta91@gmail.com>
2026-01-29 17:19:51 +01:00
Guilherme Costa
1c6b554a29 testsuite: Make TC_END_POST empty when ZTEST_SHELL is enabled
On POSIX targets, TC_END_POST calls posix_exit(), which terminates the
process after test execution. When tests are run via the ztest shell,
this behavior is undesirable, as the shell session is expected to remain
active for further interaction.

Change TC_END_POST to expand to an empty statement when CONFIG_ZTEST_SHELL
is enabled, preventing premature process termination.

Signed-off-by: Guilherme Costa <glhrmcosta91@gmail.com>
2026-01-29 17:19:51 +01:00
Guilherme Costa
e0a833a21e testsuite: Add missing functions to ztest_posix
When CONFIG_ZTEST_SHELL=y, the system failed to compile due unsatisfied
references to ztest_set_test_args and ztest_reset_test_args. This commit
fixes the issue by copying these functions from ztest_shell and
modifying libc calls to their nsi_host_* equivalents, fixing
compilation.

Signed-off-by: Guilherme Costa <glhrmcosta91@gmail.com>
2026-01-29 17:19:51 +01:00
Zhaoxiang Jin
f3fc221f35 drivers: adc: mcux_lpadc: fix offset calibration and type casting
Fix offset calibration handling and improve type safety in the
LPADC driver:
- Change offset_a and offset_b from uint32_t to int16_t to match HAL API.
- Add explicit int16_t casts when initializing offset values from DT.
- Add conditional logic to handle platforms with single offset trim.
- Use LPADC_SetOffsetValue() with appropriate parameters based on
  FSL_FEATURE_LPADC_OFSTRIM_COUNT when auto-calibration is disabled.

This ensures proper offset calibration on all supported platforms and
prevents potential type mismatch issues.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-29 17:19:38 +01:00
Zhaoxiang Jin
6b18307011 drivers: adc: mcux_lpadc: fix code formatting and indentation
Fix inconsistent formatting in the LPADC driver by:
- Consolidating multi-line preprocessor conditionals onto single lines
- Aligning macro continuation backslashes consistently
- Fixing indentation in structure initialization and macro definitions
- Removing unnecessary line breaks in function calls

No functional changes, formatting cleanup only.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-01-29 17:19:38 +01:00
Fabrice DJIATSA
fc76351ea2 tests: drivers: memc: ram: boards: delete mac node
PR #100910 assigns SRAM2 memory regions to the MAC node,
which does not exist because SRAM2 was deleted and combined
with SRAM1 to increase the memory needed for the test to run.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-01-29 17:19:26 +01:00
Henrik Brix Andersen
f28522e036 dts: bindings: can: nxp: flexcan-fd: remove number-of-mb-fd property
Remove the "number-of-mb-fd" property from the NXP FlexCAN FD binding. The
number of Message Buffers (MBs) supported by a given FlexCAN instance is
always specified in 8-byte sized MBs using the "number-of-mb" property
present in the "nxp,flexcan" binding.

The fact that the Zephyr FlexCAN shim driver sets the MB size to 64-byte
when CAN FD is enabled is purely a software construct which should not be
described in devicetree.

Each 512 byte message buffer RAM region can either contain up to 32 x
8-byte MBs or 7 x 64-byte MBs, so just calculate the number of CAN FD MBs
at driver build time.

The FlexCAN IP can either support 16 (CAN classic only), 32, 64, 96, or 128
8-byte MBs, so limit the property to these values.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-01-29 17:19:15 +01:00
Robert Lubos
5d0c9391cd net: tcp: Drop redundant depends on NET_TCP in Kconfig
The whole TCP Kconfig options block is already behind "if NET_TCP",
therefore "depends on NET_TCP" on certain options was redundant.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-29 17:19:03 +01:00
Robert Lubos
c60f51e2ab net: tcp: Add Kconfig option to preserve TCP contexts on iface down
Zephyr by default closes all TCP contexts associated with a given
network interface when the interface goes down. This leads to
reporting an error on the associated network socket, allowing the
application to reopen sockets (for example in case of a network or
an IP address change).
It's been reported however that in certain cases this behavior is
undesirable. If this option is enabled, the TCP stack won't
close any TCP contexts when the network interface is going down.
Therefore, it is the application's responsibility to monitor the IP
address or network interface state changes, and restart the TCP
sockets when needed. Enable this option only if you can guarantee
that the application handles that properly.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-29 17:19:03 +01:00
Robert Lubos
da563ebecd net: tcp: Don't close TCP contexts bound to any address on iface down
Contexts bound to any address are not associated with any specifc IP
address (sockets not connected yet or listening sockets bound to any),
therefore there's no need to shut down the connection context on the
interface down event. Hence, check the local address binding before
shutting down the context.

Note, that there's some extra logic involved when reading the TCP local
address, implemented in net_tcp_endpoint_copy(), therefore I've simply
reused that function for the purpose.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-29 17:19:03 +01:00
Pieter De Gendt
42bcba313b doc: Add links to the generated Kconfig symbols from devicetree
A couple paragraphs refer to automatically generated Kconfig symbols,
add references to detailed information.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-29 17:18:50 +01:00
Karol Lasończyk
73d0234a15 MAINTAINERS: change maintainer of hal_nordic and nRF platforms
Change maintainer of Nordic spaces from masz-nordic to krch-nordic.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2026-01-29 17:18:38 +01:00
Fabrice DJIATSA
6e330846fb boards: st: steval_stwinbx1: add missing node alias
add the missing accel0 node alias for steval_stwinbx1.
This will fix the build error encountered when running
sample.sensor.accel_trig.generic-tap sample scenario.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-01-29 17:18:18 +01:00
Pieter De Gendt
539b38d949 drivers: input: chsc5x: Ignore non touch events
Data that isn't a touch event needs to be discarded, especially after
wakeup when it's possible the read has no touch event.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-29 17:18:05 +01:00
Riadh Ghaddab
88c793564f MAINTAINERS: add rghaddab as a collaborator for fs
Add myself to the Filesystems collaborators list

Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
2026-01-29 17:17:55 +01:00
Yves Wang
745e0b28bd scripts: guiconfig: Add dark mode
TK under Windows/Linux did not have a native support for dark mode.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-01-29 17:17:31 +01:00
Jon Ringle
cf5deb7c6e scripts: footprint: plot: Increase label font size
Improve readability of sunburst labels in generated interactive plot.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
2026-01-29 14:26:47 +00:00
Grzegorz Chwierut
1b1e902540 Revert "twister: pytest: fix duplicate log lines from pytest"
This reverts commit 96985a32e8.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2026-01-29 14:26:41 +00:00
Fin Maaß
2eeaefbd19 Kconfig: use configdefault to set default for FPU
By using configdefault the original dependencies
are preserved (CPU_HAS_FPU).

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-29 14:26:28 +00:00
Jon Ringle
f6487c3b8c scripts: footprint: plot: Guard against missing total_size
When total_size is missing, skip the percentage line in hover text.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
2026-01-29 14:26:10 +00:00
Fabrice DJIATSA
c07a283e35 samples: sensor: stream_drdy: boards:fix invalid dt enums in overlays
Fix Devicetree compilation errors caused by incorrect enum macro
names used in DTS overlay files.

Replace LSM6DSV16X_DT_ODR_AT_960Hz with the correct Devicetree enum
LSM6DSVXXX_DT_ODR_AT_960Hz in the stream_drdy sample boards overlay.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-01-29 14:25:57 +00:00
Etienne Carriere
c27bd1cee9 boards: st: clarify OpenOCD board config file for U5A/U5G devices
Add an explicit inline comment in the OpenOCD board configuration
file explaining why 'gdb_memory_map disable' and
'gdb_breakpoint_override hard' are used and add missing
'gdb_memory_map disable' command to nucleo_u5a5zi_q board file.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-01-29 14:25:49 +00:00
Etienne Carriere
0173ec7027 boards: st: nucleo_wba55cg: support latest OpenOCD config file renaming
OpenOCD recently renamed stm32wba55 target config file [1] from
stm32wbax.cfg to stm32wba5x.cfg. Use the new file name if found or
alternatively fallback to the old file name to support both older
and recent version of OpenOCD tool.

Link: c36f59d9b4 [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-01-29 14:25:49 +00:00
Etienne Carriere
64f62c252e boards: st: *wba65*: support latest OpenOCD config file
OpenOCD recently merged stm32wba6x support, providing a dedicated
target config file [1]. Use that file when available. Alternatively
fallback to OpenOCD support of STM32WBA5x, with some limitation
(memory layout and software breakpoints disabled. This change allows
to better support coming change sin OpenOCD tool.

Link: c36f59d9b4 [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-01-29 14:25:49 +00:00
Etienne Carriere
10b6b22678 boards: st: *wba*: update doc about OpenOCD support
Add some information about OpenOCD support for WBA5xx and WBA6xx
targets. This better comply with an inline comment of the board
openocd.cfg file. While at it, rephrase that inline comment for
sake of clarity.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-01-29 14:25:49 +00:00
Mathieu Choplain
29f1498257 drivers: sensor: stm32_vref: read calibration data once during init
Instead of reading calibration data (device-unique, but never changing!)
then multiplying the result with a constant as part of each conversion,
perform the read+multiplication once during init and cache the result.

This notably avoids frequently an ICACHE disable/enable cycle on STM32H5,
which is a somewhat slow operation.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 14:25:28 +00:00
Mathieu Choplain
98f450029e drivers: sensor: stm32_vref: move constants to instance configuration
Various fields were stored in the instance data despite being initialized
at compile-time to a constant value.
Move these fields to the instance configuration instead.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-01-29 14:25:28 +00:00
Tomas Groth Christensen
c73e59c5f4 dac: mcux_gau: fix output-voltage-range mapping on RW61x
Map DT range index to SDK values {0,1,3} on RW61x

Signed-off-by: Tomas Groth Christensen <tgc@foss.dk>
2026-01-29 14:25:16 +00:00
Yangbo Lu
9932feee31 tests: net: bridge: support FDB test
Added support for FDB test.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-29 14:25:09 +00:00
Yangbo Lu
967d19ffd5 samples: net: bridge: enable FDB table support
Enabled FDB table support in default for verification.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-29 14:25:09 +00:00
Yangbo Lu
ab0f29bbd6 net: bridge_input: move debug messages to proper location
Moved forward decision debug messages ahead of interface TX/RX
operations. That's proper to see forward decision debug messages
first, and then interface TX/RX debug messages.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-29 14:25:09 +00:00
Yangbo Lu
3f7c957db6 net: bridge_shell: add fdb subcommand support
Added fdb subcommand support for bridge FDB entry
add/delete/show operations.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-29 14:25:09 +00:00
Yangbo Lu
3a6b67ac3a net: bridge_shell: convert to use SHELL_HELP
Converted to use SHELL_HELP.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-29 14:25:09 +00:00
Yangbo Lu
62d4998b0d net: bridge: add FDB (Forward Database) table support
Added FDB (Forward Database) table support for bridge.
Implemented very basic functions for adding/deleting
static <MAC + iface> FDB entry.

The dynamic FDB entry and hardware FDB configuration is
still TODO work.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-01-29 14:25:09 +00:00
Timothy Keys
f2e28f7420 manifest: Update Segger debug monitor files.
Add support for Cortex-M23 / M33 / M55 / M85 Cores.

Signed-off-by: Timothy Keys <timothy.keys@nordicsemi.no>
2026-01-29 14:24:42 +00:00
Andy Lin
449fe27eb8 dts: raspberrypi: riscv: add support for Zbb and Zbkb ISA extensions
Add support for Zbb and Zbkb ISA extensions. They are used
by some pico-sdk library code.

Signed-off-by: Andy Lin <andylinpersonal@gmail.com>
2026-01-29 14:24:29 +00:00
James Bennion-Pedley
69d1b144ca soc: wch: Add idle gating functionality to fix hardware bug
In WCH chips entering idle via `wfi` will break ongoing DMA
transactions. This adds PM state to prevent `wfi` idle in specific drivers.

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2026-01-29 14:24:11 +00:00
Qingsong Gou
d0f44beb3d drivers: i2c: sf32lb: add i2c dma support for sf32lb
Add i2c dma support for sf32lb platform

Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
2026-01-29 14:23:58 +00:00