Commit graph

136,983 commits

Author SHA1 Message Date
Robert Lubos
fbd9079148 net: dns: Implement CONFIG_DNS_RESOLVER_ADDITIONAL_QUERIES
There was a Kconfig option defined to limit the number of additional DNS
queries sent for aliases received in CNAME records (to avoid potential
query loops), however it was not implemented. This commit implements the
feature - the resolver will now only send up to
CONFIG_DNS_RESOLVER_ADDITIONAL_QUERIES follow-up queries after
receiving CNAME record with an alias w/o any IP addresses.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-21 17:08:29 +01:00
Robert Lubos
38d9c632d6 net: dns: Fix query redirection in case of CNAME result
In case CNAME record is received with no IP addresses, DNS resolver will
attempt to re-send the query for the name indicated by the CNAME record.
The logic for scheduling the new query was inconsistent though:
dispatcher_cb() assumes that it'll reuse the query context with the same
query id, while dns_read() cancelled the query, which shouldn't really
happen, as that would cause an error to be reported to the application
via callback.

Fix that by skipping the query cancel in case of DNS_EAI_AGAIN result.
The query context will be properly reused then, and freed either when
reply for another query arrives, or the query times out.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-21 17:08:29 +01:00
Robert Lubos
2a1b814f7b net: dns: Don't report CNAME records via callback
Don't report CNAME records via application callback (as it used to be
done). They don't carry any data in the info struct and are only used
internally to redirect DNS queries.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-21 17:08:29 +01:00
Sudan Landge
6891d57c01 boards: arm: musca_s1: disable crypto HW acceleration
Disable HW acceleration to fix CI failures caused by -Werror triggered
by prototype mismatches in the crypto accelerator path between TF-M and
Mbed TLS.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2026-01-21 17:08:08 +01:00
Sudan Landge
c30ab4e404 boards: arm: musca_b1: disable crypto HW acceleration
TF-M documentation states that code sharing on Musca-B1 is only
supported with software crypto and requires crypto hardware acceleration
to be disabled. So, force CRYPTO_HW_ACCELERATOR=OFF for the Musca-B1
non-secure TF-M build to match this requirement.

This also fixes CI failures caused by -Werror triggered by prototype
mismatches in the crypto accelerator path between TF-M and Mbed TLS.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2026-01-21 17:08:08 +01:00
Sudan Landge
7294fca0ac boards: arm: musca: Update flash layout to fix ci failure
Flash layout of musca_b1 and musca_s1 is updated as recommended by
mcuboot. This also fixes the below cmake build failures reported in
Zephyr ci.

```
CMake Error at
zephyrproject/zephyr/cmake/modules/extensions.cmake:3877
(message):
  required nodelabel not found: slot0_partition
Call Stack (most recent call first):
  zephyrproject/zephyr/modules/trusted-firmware-m/CMakeLists.txt:489
  (dt_nodelabel)
```

Note that the flash address of musca_b1 board is fixed from 0x0A07_0000
to 0x0A08_0000 as this was missed after the layout was changed in TF-M
in e1570bd143ef4843a531b57f77f0c2814b075dd9

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2026-01-21 17:08:08 +01:00
Magne Værnes
c2011b9d0f lib: posix: add missing getopt_long guard
Added ifdef guard (CONFIG_GETOPT_LONG) around the functions in
getopt_shim.c that requires getopt_long implementation.

Signed-off-by: Magne Værnes <magne.varnes@nordicsemi.no>
2026-01-21 17:07:49 +01:00
Jonas Berg
7c66a65c73 boards: shields: Add Adafruit HTS221 humidity sensor shield
Tested with the command mentioned in index.rst

Compile testing of the overlay file is done via
the dht_polling sample.

Product photo from https://learn.adafruit.com/assets/89387

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
2026-01-21 17:07:33 +01:00
Sylvio Alves
be501ebb06 drivers: i2s: skip syscall validation when unconfiguring stream
When frame_clk_freq is set to 0, the I2S API specifies that the
stream should transition to NOT_READY state (i.e., unconfigure).
In this case, other config fields like mem_slab and block_size
are not used by the driver.

Skip the mem_slab and block_size validation in the syscall handler
when frame_clk_freq is 0 to match the driver behavior and avoid
rejecting valid unconfigure requests due to uninitialized fields.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-21 17:07:19 +01:00
Sylvio Alves
a5dd03b029 tests: drivers: i2s: initialize i2s_config struct to avoid garbage
Initialize the i2s_config struct to zero before use in the
test_i2s_state_not_ready_neg test case.

When frame_clk_freq is set to 0 to unconfigure a stream, other
fields in the struct were left uninitialized. On platforms with
userspace support, the syscall handler validates block_size against
the mem_slab block size before calling the driver.
Uninitialized garbage values could cause this validation to
fail unexpectedly.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-21 17:07:19 +01:00
Albort Xue
f5bee07bf5 drivers: spi: nxp_lpspi: Add clock configuration support
Add clock_control_configure() call during initialization to properly
configure the LPSPI clock. The implementation gracefully handles
platforms that don't support clock configuration by checking for
-ENOTSUP and -ENOSYS return codes and continuing with default
settings. Real configuration errors are logged and propagated.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-01-21 17:06:57 +01:00
Grzegorz Chwierut
efc36d96d3 twister: refactor DUT class to dataclass for serialization support
Convert the DUT class from a traditional class to a dataclass to enable
proper serialization and support for future multi-device testing with
pytest-harness.

Key changes:
- Migrated DUT class to use `dataclass` decorator with proper type hints
- Renamed `baud` property to `serial_baud` for consistency
- Updated hardware map schema to support both `baud` (legacy) and
`serial_baud` fields for backward compatibility
- Updated tests

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2026-01-21 17:06:36 +01:00
Gaetan Perrot
8340e8c264 drivers: sensor: ina2xx: get: remove redundant channel NULL checks
The ina2xx channel get helpers assume that channel descriptors are
valid when the driver exposes a given sensor channel.

Checking for NULL channel pointers after they are already
dereferenced does not provide any real safety and can hide
configuration errors.

Drop the late NULL checks and rely on the driver contract that
supported channels must be properly defined.

No functional change intended.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-21 17:06:19 +01:00
Gaetan Perrot
ae44e1e7b7 drivers: sensor: ina2xx: fetch: remove redundant channel NULL checks
The INA2xx fetch path assumes valid channel descriptors for all
supported sensor channels.

NULL checks performed after channel data is accessed are ineffective
and misleading, as invalid channel definitions indicate a
configuration error rather than a runtime condition.

Remove the redundant checks and keep the channel handling consistent
with the driver expectations.

No functional change intended.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-21 17:06:19 +01:00
Pieter De Gendt
3a961db126 doc: releases: 4.4: Add COBS streaming support entry
Add a Utilities entry with added COBS structs and functions.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
Pieter De Gendt
aa76c1d10d tests: lib: cobs: Add streaming tests
Add test cases for streaming variants of COBS encoder/decoder.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
Pieter De Gendt
f344ab6b98 cobs: Introduce streaming
This commit does:

- Introduce COBS streaming
- Refactor custom delimiter with XOR'ed encoded data
- Update tests

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
Pieter De Gendt
d4bf9ea2e8 tests: lib: cobs: Remove malloc/free
Use static fixture struct so no malloc/free is needed.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
James Roy
ae556f8914 dts: bindings: can: Move the dts clips to the examples
Move the dts sample nodes from the binding `description`
into the `examples` block.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2026-01-21 17:05:41 +01:00
James Roy
55870811db dts: bindings: timer: Move the dts clips to the examples
Move the dts sample nodes from the binding `description`
into the `examples` block.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2026-01-21 17:05:41 +01:00
James Roy
08ba0d242c dts: bindings: cache: Move the dts clips to the examples
Move the dts sample nodes from the binding `description`
into the `examples` block.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2026-01-21 17:05:41 +01:00
James Roy
a93c789c51 dts: bindings: charger: Move the dts clips to the examples
Move the dts sample nodes from the binding `description`
into the `examples` block.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2026-01-21 17:05:41 +01:00
James Roy
3989a59e9b dts: bindings: auxdisplay: Move the dts clips to the examples
Move the dts sample nodes from the binding `description`
into the `examples` block.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2026-01-21 17:05:41 +01:00
James Roy
6524e670b3 edtlib: Fix the accidental merging of examples in the binding
Fix the example nodes in the examples block being accidentally
merged and overwritten during build.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2026-01-21 17:05:41 +01:00
Aditya Ganesh
f9de2777d9 drivers: sensor: i3g4250d: migrate SPI support to stmemsc
Convert the i3g4250d driver to use the ST MEMS SC API for SPI

Signed-off-by: Aditya Ganesh <adga5133@colorado.edu>
2026-01-21 17:05:13 +01:00
Tim Lin
125d88c172 soc: it8xxx2: Select KERNEL_NO_LTO only when LTO is enabled
Select KERNEL_NO_LTO only when LTO is enabled. This ensures proper
handling when kernel code is placed in RAM.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2026-01-21 17:04:50 +01:00
Tim Lin
2edece9d58 kernel: Add Kconfig option to disable LTO for kernel sources
Some SoCs require kernel code to be placed in RAM, which makes
link-time optimization (LTO) unsuitable for these files.
Disabling LTO allows the affected code to be linked as separate
objects and placed in specific memory regions.

Running kernel code from RAM can improve execution performance,
especially for timing-critical routines or context switch paths.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2026-01-21 17:04:50 +01:00
Alberto Escolar Piedras
4d0852b005 lib/midi2: Do not add to include path always
Do not add this folder to the include path when this component is not
enabled. As that creates noise and slows down builds.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2026-01-21 13:03:38 +00:00
Gang Li
0a92e6f908 modules: hostap: Fix DPP show UNKNOWN security type after reconfiguration
In case DPP reconfiguration test, if the dpp_akm has psk,
it will set WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_PSK_SHA256 |
WPA_KEY_MGMT_FT_PSK to key_mgmt, then wifi status shows
security as "Unknown".

Signed-off-by: Gang Li <gang.li_1@nxp.com>
2026-01-21 13:03:26 +00:00
Lucien Zhao
0e0757cc3c soc: nxp: delete HAS_MCUX_SIM/RCM kconfig symbols
- Remove HAS_MCUX_SIM and HAS_MCUX_RCM Kconfig symbols
on NXP platforms

- delete HAS_MCUX_SIM/HAS_MCUX_RCM kconfigs,
use dt ways to get enabled SIM/RCM devices

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-21 13:03:11 +00:00
Lucien Zhao
0a6e0160b4 hwinfo: mcux_sim/mcux_rcm: Add new dependency
Change to use DT_HAS_NXP_SIM_UUID_ENABLED/DT_HAS_NXP_RCM_HWINFO_ENABLED
as the dependency condition for HWINFO_MCUX_SIM/HWINFO_MCUX_RCM to
enable the driver when the nxp,sim-uuid/nxp,rcm-hwinfo compatible
is present in the devicetree.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-21 13:03:11 +00:00
Lucien Zhao
eb43ffc6b8 dts: arm: nxp: Add specific compatible strings for RCM and SIM
Add vendor-specific compatible strings to RCM and SIM nodes:
- "nxp,rcm-hwinfo" for Reset Control Module (hwinfo-reset functionality)
- "nxp,sim-uuid" for System Integration Module (hwinfo-UUID functionality)

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-21 13:03:11 +00:00
Lucien Zhao
215a35c78f dts: bindings: hwinfo: add nxp,rcm-hwinfo and nxp,sim-uuid.yaml
- add nxp,rcm-hwinfo.yaml and nxp,sim-uuid.yaml to support hwinfo
  features by using dts ways

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-21 13:03:11 +00:00
Peter Hoddie
ec3c28db0f boards: adafruit: correct gpio pin numbers for feathers
These DTS uses absolute GPIO numbers for some
pins where relative pin numbers are required.
This causes crash on booth when these pins
are enabled. Follow on PR to #101857.

Signed-off-by: Peter Hoddie <peter@moddable.com>
2026-01-21 13:02:55 +00:00
Tom Hughes
2d6aa47398 tests: mcumgr: Re-enable clang warning by using variables
When removing TOOLCHAIN_DISABLE_CLANG_WARNING, building the
settings.mgmt test with clang fails with:

tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:87:22: error:
variable 'test_response_read_data_start' is not needed and will not be
emitted [-Werror,-Wunneeded-internal-declaration]
   87 | static const uint8_t test_response_read_data_start[5] = {
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:91:22: error:
variable 'test_response_read_data_end' is not needed and will not be
emitted [-Werror,-Wunneeded-internal-declaration]
   91 | static const uint8_t test_response_read_data_end[1] = {

Add additional asserts to use these variables in the test.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2026-01-21 13:02:20 +00:00
Stephan Linz
8bf8eeb338 drivers: display: rm67162: avoid uninitialized variable
Warning as error was:

.../drivers/display/display_rm67162.c: In function ‘rm67162_write_fb’:
.../drivers/display/display_rm67162.c:383:9: error: ‘wlen’ may be used
          uninitialized in this function [-Werror=maybe-uninitialized]
  383 |  return wlen;
      |         ^~~~
cc1: all warnings being treated as errors

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-01-21 13:01:53 +00:00
Evgenii Kosenko
7deab5e334 Bluetooth: Shell: Add per-bearer pool for GATT operations
The original implementation used a single global parameter structure for
GATT operations, preventing concurrent operations on different bearers. By
introducing a per-bearer context pool, each bearer can maintain its own
operation state, enabling simultaneous GATT operations.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2026-01-21 13:01:42 +00:00
Laurentiu Mihalcea
bf747b8e03 bindings: scmi: modify description format
Modify the description format of all SCMI-related bindings such that the
SCMI/SHMEM acronym is spelled out in between parentheses and not the other
way around. This will make the generated documentation more compact.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2026-01-21 11:25:46 +00:00
Braeden Lane
4e314b4aec boards: infineon: standardize pinctrl in supported list
Update board YAML files to use 'pinctrl' instead of 'pin_ctrl'
in the supported features list for consistency with Zephyr
naming conventions.

Affected boards:
- cy8cproto_041tp
- kit_pse84_ai
- kit_pse84_eval

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
2026-01-21 11:25:38 +00:00
Robert Lubos
699da43045 samples: net: sockets: http_get: Fix addrinfo dump
The debug code for dumping resolved addresses was modifying the addrinfo
res pointer (effectively setting it to NULL), causing crash later in the
sample. Fix this, by using a temporary pointer copy for iterating over
resolved addresses.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-21 11:24:43 +00:00
Felix Wang
c7425884d6 MAINTAINERS: add FelixWang47831 as PWM collaborator
Add FelixWang47831 as a collaborator for the PWM driver.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-01-21 11:24:32 +00:00
Aksel Skauge Mellbye
a2b64c9335 dts: arm: silabs: Clean up radio feature selection
Sort ble radio feature properties alphabetically according to
the coding standard.

Certain features on xg22 and xg28 depend on the specific SoC
selected, move the properties from the generic .dtsi file to
the SoC specific one.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2026-01-21 11:24:21 +00:00
Flavio Ceolin
3d5a3ae075 entropy: mcux_rng: Do not ignore possible error
Propagate the HAL error otherwise it may return success even
when it fails causing invalid entropy and compromising security.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2026-01-21 11:24:07 +00:00
Daniel Leung
231e72af8e boards: snps/arc: add nsim_vpx5/mpuv3 board
This adds the nsim_vpx5/mpuv3 board for MPU. The files
are based on nsim_vpx5 board files.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-21 11:23:33 +00:00
Daniel Leung
ee8f9915a4 soc: arc: mark nsim_vpx5 as supporting MPU
This selects CONFIG_CPU_HAS_MPU for nsim_vpx5 series SoC as
it supports ARC MPUv3.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-21 11:23:33 +00:00
Daniel Leung
2c911b1b8a soc: snps: vpx5: no -Hccm compiler option for userspace
With -Hccm, the linker automatically moves stuff in RODATA
section into DATA section. Our current kobject related
scripts cannot accommodate this, resulting in space not
being reserved correctly. So for now, disable -Hccm
compiler option if userspace is enabled.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-01-21 11:23:33 +00:00
Waqar Tahir
8e7198392a manifest: tf-m: BL2 support mcxn947
Updated TF-M repo for BL2 support in mcxn947

Signed-off-by: Waqar Tahir <waqar.tahir@nxp.com>
2026-01-21 11:23:17 +00:00
Waqar Tahir
07384efb72 samples: tfm_ipc: update mcxn947 board support
As the board now supports TF-M with bl2, spport
from sample.tfm_ipc.no_bl2 is removed and
added in sample.tfm_ipc test.

Signed-off-by: Waqar Tahir <waqar.tahir@nxp.com>
2026-01-21 11:23:17 +00:00
Waqar Tahir
bdcb5c6b4b boards: nxp: mcxn947: updated partitions
- Updated partitions in non-secure device tree
  files as tfm now supports Bl2.
- Flash_base address updated for ns-app as
  tfm apps are now using bl2 by default.

Signed-off-by: Waqar Tahir <waqar.tahir@nxp.com>
2026-01-21 11:23:17 +00:00
Hui Bai
0cafc3e4f6 modules: hostap: Add new APIs to set operating mode for SoftAP
Add new APIs to set operating mode 11n, 11ac and 11ax for SoftAP.
Currently, the 11n, 11ac and 11ax are enabled by default. Theses APIs
can be used to configure operating modes enable/disable for SoftAP.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2026-01-21 11:22:57 +00:00