Commit Graph

110943 Commits

Author SHA1 Message Date
Alberto Escolar Piedras
b1680688c1 samples/subsys/debug/fuzz: run on native_sim instead of native_posix
native_posix is deprecated and will be removed in 4.2
Run this sample in native_sim instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Alberto Escolar Piedras
cc2d31f4da samples/subsys/fs/zms: Allow it to run and add check
This sample could not run on any target as it depedend on zms
which is set by no board.
But it seems to run just fine in both allowed platforms,
so let's add a trivial twister check (so it actually passes instead
of waiting for ever), and remove that `depends on`.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Alberto Escolar Piedras
4a91a55ae2 samples/subsys/fs/zms: run on native_sim instead of native_posix
native_posix is deprecated and will be removed in 4.2
Run this sample in native_sim instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Eve Redero
3daac6aee3 board: due: change pinctrl header to match soc
Arduino Due uses Atmel SAM3X8E, not SAM3X8H, so pinctrl should
call the appropriate header.

Signed-off-by: Eve Redero <eve.redero@gmail.com>
2025-02-27 13:27:34 +00:00
Joakim Andersson
d082c7dc46 net: http_client: Fix handling of poll error revents
Fix handling of poll setting socket error flag.
In this case errno is no set, so should not be the return value either.
Instead retrieve the socket error for SOCKERR and return EBADF for
SOCKNVAL.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2025-02-27 13:27:28 +00:00
Lars-Ove Karlsson
5a1f7a58db cmake: toolchain: Removed config FP16 from IAR kconfig.default
Removed config FP16 from kconfig.default as it is set by the arch/cpu.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2025-02-27 13:27:20 +00:00
Benjamin Cabé
d15bbfafef doc: releases: Zephyr 4.1 release highlights
A first stab at adding some highlights for the upcoming 4.1 release.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-27 13:26:56 +00:00
Benjamin Cabé
6060f07189 doc: toolchain: add reference label for IAR Arm Toolchain documentation
Add anchor to be able to reference this page from other places.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-27 13:26:56 +00:00
Jordan Yates
b74b092f22 modules: tf-m: fix build verbosity
Only set CMAKE_INSTALL_MESSAGE in a single location, remove the
unconditional overrides of the value in other locations.

This prevents dozens of rather pointless messages appearing in the build
log when CONFIG_TFM_BUILD_LOG_QUIET is set.
```
Installing: /home/jordan/code/workspace/build/nrf5340dk/...
```

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:08:24 +00:00
Jordan Yates
c0ef487a38 tests: secure_storage: add dependencies
Now that `SECURE_STORAGE` does not `select` dependencies, they need to
be enabled explicitly by the tests.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jordan Yates
5ad76de07f secure_storage: swap select to depends on
Mixing `select` and `depends on` is a common source of Kconfig
dependency loops and should be avoided. Both `ZMS` and `SETTINGS` are
more commonly used with `depends on` rather than `select`.

The usage here also contradicts the Zephyr best practices guide for
`select`:
 * Avoid selecting symbols with prompts or dependencies.
   Prefer depends on.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jordan Yates
8f36307329 secure_storage: remove incorrect imply symbols
`SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS` does not use either
the `FLASH_MAP` or `NVS` APIs, only `SETTINGS`.

Similarly, `SECURE_STORAGE_ITS_STORE_MODULE` does not consist of any
code itself and therefore should not select or imply any options.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jordan Yates
76c526a035 fs: nvs: move FLASH_PAGE_LAYOUT to depends on
`FLASH_PAGE_LAYOUT` has a hardware dependency on `FLASH_HAS_PAGE_LAYOUT`
which is not present for all boards. Forcing this symbol to `y` when
the hardware doesn't support it results in build errors at the Kconfig
stage.

`FLASH_PAGE_LAYOUT` is enabled by default when `FLASH_HAS_PAGE_LAYOUT`
is true, so this change will not require any user changes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
David Brown
68a5a95f2b docs: develop: languages: Add initial documentation for Rust
Start a simple set of documentation on using Rust within Zephyr.  This
gives an overview of how to use Rust, and pointers to the generated API
documentation.

Signed-off-by: David Brown <david.brown@linaro.org>
2025-02-27 09:07:42 +00:00
Daniel Leung
88968b970c doc: release/4.1: add bits about I3C
This adds some bits about changes in I3C drivers in the release
note.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-02-27 09:07:26 +00:00
Daniel Leung
634403f093 doc: release/4.1: add bits about common architecture interface
This adds bits in the release note on changes in common
architecture interface, where the changes affect more than one
architectures.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-02-27 09:07:26 +00:00
James Roy
f527494e90 dts: wifi: Simplify the description of the binding
Remove redundant descriptions in Wi-Fi bindings, such
as "This is a representation of".

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-02-27 08:01:38 +01:00
Vinayak Kariappa Chettimada
1cc6bab2ee doc: Update to release notes update scope and purpose
Update the scope and purpose of release notes to include
style, typographical fixes and upmerge from maintenance
releases to keep the latest documentation consistent with
the changes in the project.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-27 08:01:29 +01:00
Emil Gydesen
9e84fc39d5 Bluetooth: TBS: Add missing documentation for bt_tbs_register_param
The struct was missing doxygen documentation.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Emil Gydesen
570a88c29f Bluetooth: CAP: Add missing documentation for some structs
bt_cap_commander_broadcast_reception_stop_param and
bt_cap_commander_distribute_broadcast_code_param
were missing doxygen documentation.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Emil Gydesen
029e06610e Bluetooth: Audio: Fix bad uses of @internal in header files
Replaced the use of @internal with @cond INTERNAL_HIDDEN
which is the correct way to hide fields from doxygen.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Emil Gydesen
6f882f3401 Bluetooth: BAP: Fix bad documentation in bap.h
Add missing of documentation of BT_BAP_BASS_MAX_SUBGROUPS
and simplify the definition.

Removed incorrect use of @internal and replaced with
@cond INTERNAL_HIDDEN.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-27 08:01:18 +01:00
Flavio Ceolin
902751411f doc: release-notes-4.1: Add CVE-2025-1675
Add CVE-2025-1675 to release notes.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
3918c86b1a doc: release-notes-4.1: Add CVE-2025-1674
Add CVE-2025-1674 to release notes.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
5a0d4675a8 doc: release-notes-4.1: Add CVE-2025-1673
Add CVE-2025-1673 to release notes.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
bc189229ac doc: security: Disclose CVE-2025-1675
Disclose information about published CVE.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
b777714e2a doc: security: Disclose CVE-2025-1674
Disclose information about published CVE.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Flavio Ceolin
48f15dda9f doc: security: Disclose CVE-2025-1673
Disclose information about published CVE.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-02-27 08:01:08 +01:00
Mahesh Mahadevan
0b5eeb3eee tests: spi: Add overlay for NXP 1040EVK FlexIO-SPI
Add an overlay for the Flexio-SPI driver for the
MIMXRT1040-EVK board.
Update testcase.yaml and add new overlay configuration
to support flexio spi testing on 1040_evk.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-02-27 08:01:04 +01:00
Jiafei Pan
af2f497ad0 soc: imx8mm/n: fix pinctrl field shifting value
The lowest bit in DSE and FSEL field of pinctl register is not used
in the register and dts binding definitions also don't conver this bit,
so shift one more bit to align with actual register definitions.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-02-26 22:05:29 +00:00
Luca Burelli
b801fe61c2 arduino_due: add Arduino connector description
This patch adds the standard Arduino UNO R3 connector description to the
Arduino Due board.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-02-26 22:05:13 +00:00
Yuval Peress
d4347fcf6d license: Remove non-copyrightable license
The generated configs.c is technically not copyrightable since it's
using the configs selected by the end user which might not fall under
the Apache license. This license header in the generated file is causing
us issues downstream from a legal perspective. It's important to note
that other generated files in Zephyr don't include the copyright header.

Fixes #86259

Signed-off-by: Yuval Peress <peress@google.com>
2025-02-26 22:04:51 +00:00
Jhan BoChao
43b95ddb48 soc: Add DT_NODE_HAS_STATUS_OKAY check for swj_connector_init
Add conditional compilation check for swj_connector_init call in
soc_early_init_hook to prevent link errors when swj_port is disabled
in device tree. The code is now wrapped with
DT_NODE_HAS_STATUS_OKAY(SWJ_NODE) to ensure the function is only
included when the corresponding device tree node is enabled.

This fixes the undefined reference link error that occurs when
compiling with swj_port disabled in the device tree configuration.

Signed-off-by: Jhan BoChao <jhan_bo_chao@realtek.com>
2025-02-26 22:04:46 +00:00
Jamie McCrae
8b5fb6a599 samples: subsys: mgmt: mcumgr: smp_svr: Update README
Updates README to reduce required steps

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-02-26 22:04:36 +00:00
Jamie McCrae
01c5edcd5c doc: serices: device_mgmt: smp_groups: smp_group_1: Add doc anchor
Adds an anchor so that the section text can be linked to

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-02-26 22:04:36 +00:00
Declan Snyder
d46c382950 drivers: ethernet: Remove deprecated eth_mcux
This driver was deprecated and must be removed by Zephyr version
4.1 according to lifecycle/release guidelines.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-26 22:04:26 +00:00
Declan Snyder
2ba6ba8494 drivers: nxp_enet: Re-add EXT RMII CLK config
This config was missed when converting from eth_mcux to nxp_enet driver,
re-add it and use new one instead of old one.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-26 22:04:26 +00:00
Fabio Baltieri
e10432afce soc: imxrt: drop the ADC_MCUX_12B1MSPS_SAR overrides
Drop the override conditions to ADC_MCUX_12B1MSPS_SAR for imxrt, the
current one causes the driver to be built when it does not have to and
are not needed anyway, and drop the HAS_MCUX_12B1MSPS_SAR option
entirely as it's not needed anymore.

Tested with:

west build -p -b teensy40 tests/lib/devicetree/api_ext

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-02-26 22:03:36 +00:00
Paul Alvin
c897adb1c6 sd: mmc: Remove unwanted request to card for reading OCR content
As part of the MMC card initialization sequence, CMD1 command send
multiple times to the card, first time to identify the card type and
second time to check the requested voltage window is supported or not.
There is a chance that after issuing the CMD1 for first time, card will
move to the ready state before issuing the CMD1 for second time. In this
case, card will not respond to the CMD1 send for the second time as card
is already moved to ready state and this leads to failures. Hence remove
the separate card identification logic and call mmc_send_op_cond only
once to check both supported voltage window and card type
identification.

Signed-off-by: Paul Alvin <alvin.paulp@amd.com>
2025-02-26 22:03:23 +00:00
Benjamin Cabé
22ed2f73d4 doc: Enhance board supported hardware directive and catalog generation
Improve the board supported hardware feature catalog generation and
`.. zephyr:board-supported-hw` directive:

- Differentiate on-chip vs on-board hardware features
- Added count information when a given IP (compatible) appears multiple
  times.
- Show okay *and* disabled features
- Improve table layout and readability

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-26 22:02:39 +00:00
Benjamin Cabé
424d15a259 doc: _extensions: create dedicated board.css/js files
Don't clutter custom.css with css rules and scripts only used in boards'
doc pages.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-26 22:02:39 +00:00
Benjamin Cabé
529656e2be devicetree: Add filename and line number tracking for nodes & properties
This change enhances the devicetree library by adding support for tracking
the source filename and line number for nodes and properties.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-26 22:02:39 +00:00
Aaron Ye
8081008a08 boards: ambiq: apollo4p_blue_kxr_evb: update Bluetooth configuration
There is new added build_assert in the Bluetooth host stack to require
CONFIG_BT_BUF_EVT_RX_COUNT larger than CONFIG_BT_BUF_ACL_TX_COUNT.
Update the specific Bluetooth configurations to fix the build assert of
Bluetooth samples.

Signed-off-by: Aaron Ye <aye@ambiq.com>
2025-02-26 15:07:44 +01:00
Ravi Dondaputi
10280a8bf1 manifest: hostap: Fix WPA3 connection failure.
Pull in changes to initialize hostap RNG context.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-02-26 15:06:26 +01:00
Ravi Dondaputi
4bab37e7dd modules: hostap: Enable SHA384 support
Enable MBEDTLS_SHA384 support to use of RSA3K + Suite-B, that
is required by WPA3-Enterprise.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-02-26 15:06:26 +01:00
Björn Bergman
f70e72ae69 toolchain: iar: Fixes for iar linker generator
I have found a number of problems that shows up for CONFIG_USERSPACE,
but may ake effect even without it.

 * Output the x_init block even if x dont have any content. This is
   rather common if you have sections guarded with PASS.
 * Put KEEP on init-blocks. To circumvent peculiarities in ilink,
   the _init blocks (as well as their content) needs to be tagged
   with keep.
 * Handle noinit linker sections. zephyr_linker_section( NOINIT )
   has been ignored so far. This change fixes that and puts it as
   do not initialize { }

Signed-off-by: Björn Bergman <bjorn.bergman@iar.com>
2025-02-26 15:06:15 +01:00
Simone Orru
d1c383993b samples: sensor: die_temp_polling: add i.MX RT1064 EVK support
Add the overlay file for the i.MX RT1064 EVK board.
The sample can be run on the i.MX RT1064 EVK board out of the box.

Signed-off-by: Simone Orru <simone.orru@secomind.com>
2025-02-26 15:05:42 +01:00
Simone Orru
9a18497eb6 dts: arm: nxp: i.MX RT10xx move die-temp0 from chosen to aliases
Move the die-temp0 from chosen to the more appropriate aliases section.
Fixes the broken die temp polling sample for the i.MX RT10xx boards.

Signed-off-by: Simone Orru <simone.orru@secomind.com>
2025-02-26 15:05:42 +01:00
Szymon Janc
c20bd87d3d tests: bluetooth: tester: Fix invalid checks in oob_data_request
CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY disables all but legacy OOB
pairing (including LE SC) and is not intended for enabling/disabling
support for legacy OOB pairing. bt_le_oob_set_legacy_tk() depends on
CONFIG_BT_SMP_SC_PAIR_ONLY so just use same check here.

For BT_CONN_OOB_LE_SC only supported way to disable LE SC OOB is
to force BT_SMP_OOB_LEGACY_PAIR_ONLY which disables all pairing
except legacy OOB support.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-02-26 15:05:33 +01:00
David Brown
b33a1a8775 modules: optional: Bring in release fixes for Rust
This update fixes a few things that are breaking CI:

- Rust 1.85 changes the type of `core::ffi::c_char` to match the native
  platform. On some platforms, this causes a compile error in printk.  Fix
  this by using the `c_char` type directly instead of assuming it is either
  signed or unsigned

- Disable RiscV SMP targest in the samples and tests.  These haven't been
  a focus, an appear to have locking problems causing various deadlocks and
  test failures.

Signed-off-by: David Brown <david.brown@linaro.org>
2025-02-26 15:05:06 +01:00