Commit graph

136,983 commits

Author SHA1 Message Date
Alex Ciascai
4ec16b4d53 tests: Bluetooth: HAS: Enable preset sync support for synchronized tests
Configure the HAS tester to advertise preset synchronization support by
setting preset_sync_support=true in bt_has_register(). This passing the
PTS tests, even if we fake the synchronization. The test does not require
an additional lower tester, so there is no other IUT to synchronize with.
Additional any actual inter-device synchronization is expected to be
implemented by the application..

Signed-off-by: Alex Ciascai <alexandru.ciascai@nordicsemi.no>
2026-02-11 13:56:05 +01:00
Jérôme Pouiller
1ac564bc4f soc: silabs: siwx91x: Fix corrupted firmware
Since, commit 2f7d13840f ("kconfig: Fix CONFIG_FLASH_LOAD_OFFSET for non-0
starting addresses"), the way to compute offsets in the flash memory has
changed.

With this change, the arguments passed to siwx91x_isp_prepare.py were not
correct anymore and "west flash" ended up with:

   ERROR: Waiting for flashloader failed: 108 - Checksum error

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-02-11 13:55:49 +01:00
Jordan Yates
bac33dc2e6 tests: mcumgr: mpstat: fix heap detection
Detect the kernel and libc heaps through the total size of the heap,
instead of comparing block counts to total sizes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-02-11 13:55:35 +01:00
Pieter De Gendt
8100484e5d doc: services: nvmem: Add CONFIG_NVMEM_BBRAM mention
Add entry for CONFIG_NVMEM_BBRAM in the Kconfig options for the NVMEM
subsystem.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 10:39:41 +01:00
Pieter De Gendt
963e59ad11 tests: nvmem: Add BBRAM test case
Add a new case to the NVMEM API testsuite for Battery Backed RAM.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 10:39:41 +01:00
Pieter De Gendt
b317afd845 nvmem: Add support for BBRAM
Add a new NVMEM backend for Battery Backed RAM.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 10:39:41 +01:00
Pieter De Gendt
68b28e8d97 tests: nvmem: Move common parts to shared dtsi file
Instead of copying the nvmem layout and consumer, move this to a common
include file.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 10:39:41 +01:00
Tim Pambor
176a880666 drivers: flash: simulator: support multiple instances
Rework flash simulator to use per-instance configuration,
replacing single global state and enabling support for
multiple independent simulator instances.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-02-11 10:39:29 +01:00
Jordan Yates
cf866c1063 kernel: mempool: use Z_HEAP_MIN_SIZE_FOR for system heap
Use `Z_HEAP_MIN_SIZE_FOR` on the system heap. This fixes allocations
failing when there is only a single small user of the heap defining
a symbol like the following, even when only allocating 16 bytes.
```
config HEAP_MEM_POOL_ADD_SIZE_{X}
	int
	default 64
```

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-02-11 10:39:13 +01:00
Jordan Yates
692d120981 tests: lib: heap: measure heap overhead
Add a testcase that outputs the overhead of heaps declared multiple
different ways, by printing the largest single allocation that can be
made from the heap.

```
START - test_heap_overhead
Base |  Raw | Z_HEAP_MIN_SIZE | Z_HEAP_MIN_SIZE_FOR
  64 |   12 |              60 |                  68
 128 |   68 |             124 |                 132
 256 |  196 |             244 |                 260
 512 |  444 |             500 |                 516
1024 |  956 |            1004 |                1028
2048 | 1972 |            2028 |                2052
```

Signed-off-by: Jordan Yates <jordan@embeint.com>

test
2026-02-11 10:39:13 +01:00
Jordan Yates
39657b93ff kernel: macro to approximate required heap size
Add a macro to approximate the heap size required by a heap in order for
an allocation of N bytes to succeed. The intent is to provide a way for
small heaps to more accurately specify their sizes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-02-11 10:39:13 +01:00
Dong Wang
daa15a8a32 x86: Always put snippets-rodata into regular rodata section
Always put the inclusion of snippets-rodata.ld into the normal rodata
section no matter pinned sections are used or not. No reason to put it
in pinned sections.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2026-02-11 09:22:38 +01:00
Fabrice DJIATSA
ddf61c7fbf samples: drivers: opamp: output_measure: update readme file
The sample does not set or print separate inverting and
non-inverting gains.
Remove the parts related to the description of the two gains.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-02-11 09:22:25 +01:00
Fabrice DJIATSA
913685c5e6 samples: drivers: opamp: fix console harness regex to match actual output
Update the harness to:
- Accept a gain token that is either an integer or a fraction:
(?:\d+|\d+/\d+)
- Match the full printed line including the (@gain: …) token
- Remove the invalid expectations for "Set opamp inverting/
                                                      non-inverting gain"
This aligns CI with the sample’s actual output.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-02-11 09:22:25 +01:00
Allen Zhang
7974ec8f64 manifest: update hal_nxp to have updates for header file
Update hal_nxp to add Chip_GetUID function for MCXW7x series

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2026-02-11 09:22:07 +01:00
Immo Birnbaum
c9671cf934 drivers: ethernet: xlnx_gem: unify spelling
Whenever a buffer descriptor or one of its properties is
referenced, either in macros, struct declarations or variable
declarations, use the spelling 'rx_bd'/'RX_BD'/'tx_bd'/'TX_BD'
instead of 'rxbd'/'RXBD'/'txbd'/'TXBD'.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2026-02-11 09:21:47 +01:00
Immo Birnbaum
c206ff165f drivers: ethernet: xlnx_gem: fix DMA operation on ZynqMP
Add fixes for ZynqMP-based targets:

- Consider the retrofitted 64-bit RX/TX buffer descriptor ring
  base address registers which didn't exist on the Zynq-7000 yet.
- Properly tie off the unused set of RX/TX BD ring base address
  registers as described in the ZynqMP TRM (UG1085 v2.4, chap. 34:
  'GEM Ethernet', 'Programming Model', 'Initialize the controller',
  p. 1064): indicate that there's no data to be transmitted via the
  unused TX BD ring, and that no data can be placed via the unused
  RX BD ring.
- Change the DMA layout: instead of having both the BD rings and
  the packet buffers in non-cached memory or the Zynq's OCM, place
  the BD rings in uncached memory but place the actual RX/TX packet
  buffers in cached memory instead.
- Add the required cache maintenance operations for this layout.
- Select the required facilities for nocache memory and cache
  maintenance support in the driver's Kconfig file.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2026-02-11 09:21:47 +01:00
Pieter De Gendt
674a6a1bc8 drivers: watchdog: rts5817: Put API into iterable section
Use DEVICE_API macro to put the driver API into the correct iterable
section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 07:59:49 +01:00
Pieter De Gendt
40cbbd5793 drivers: dma: Put driver APIs into iterable sections
Make sure all DMA drivers are located in their linker sections.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-11 07:59:34 +01:00
Aiden Hu
0b6930e66d usb: host: fix usbh_bus_thread name setting
Use correct thread data pointer when setting bus thread name.

Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
2026-02-11 07:59:17 +01:00
Holt Sun
0d507c58f1 drivers: timer: mcux_os_timer: fix drift in tickless mode.
In tickless mode, advance last_count in whole tick increments rather
than setting it to the raw timer value. This prevents sub-tick ISR
latency from accumulating in last_count, which would otherwise manifest
as long-term timer drift.

The fix inverts the conditional logic so that:
- Tickless mode: last_count += elapsed_ticks * CYC_PER_TICK
- Tickful mode: last_count = now (unchanged behavior)

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-02-11 07:59:00 +01:00
Andre Stefanov
76476d8a9f drivers: stepper: tmc51xx: add EN GPIO support
Add optional support for controlling a hardware enable pin via devicetree.

When an enable GPIO is provided, the driver configures it as an output and
toggles it in stepper enable/disable so boards can energize and de-energize
the driver stage reliably.

If no enable GPIO is present, behavior is unchanged.

Signed-off-by: Andre Stefanov <mail@andrestefanov.de>
2026-02-11 07:58:07 +01:00
Moritz Gericke
bd9ee2d22c drivers: intc: intc_gpio_stm32: Assert against invalid exti lines
Unchecked indexing into intc_gpio_data.cb could lead to overflow in
the following functions:

- stm32_gpio_intc_set_irq_callback
- stm32_gpio_intc_remove_irq_callback

Fixes zephyrproject-rtos/zephyr#103573

Signed-off-by: Moritz Gericke <xmoexdev@gmail.com>
2026-02-11 07:57:52 +01:00
Keith Packard
d54c66f030 hal_rpi_pico: Pass CONFIG_PICOLIBC to bootloader. Fix compile_options
Oops. #103436 tried to make the bootloader select the correct specs file
using CONFIG_PICOLIBC, but that variable wasn't set while configuring the
bootloader. Pass that from the Zephyr build into the bootloader build.

This also uncovered a gap in the target_compile_options setting when
picolibc is not the default C library -- the bootloader was getting linked
with --specs=picolibc.specs but it wasn't getting compiled with that flag,
so compilation was happening using the default C library headers.

Signed-off-by: Keith Packard <keithp@keithp.com>
2026-02-11 07:57:35 +01:00
Derek Snell
eb3a081815 MAINTAINERS: add simonguinot as collaborator for NXP LPC11U6x
Adds simonguinot as collaborator for the LPC11U6x SOC support
and lpcxpresso11u68 board, so they can help maintain this platform
support.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2026-02-11 07:57:16 +01:00
Derek Snell
77387c9844 MAINTAINERS: add henrikbrixandersen as collaborator for KE1xF SOC
Adds henrikbrixandersen as collaborator who contributed the KE1xF SOC
support and twr_ke18f board, so they can help maintain this
platform support.
Added in https://github.com/zephyrproject-rtos/zephyr/pull/16049

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2026-02-11 07:57:16 +01:00
Derek Snell
a469fbc37f MAINTAINERS: add shields maintained by NXP
Adds file-groups for collaborators

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2026-02-11 07:57:16 +01:00
Sean Kyer
21fdd4f3dc cpu_freq: pressure: Add silent macro fix
Silently set the threshold weight to be the
lowest_thread_prio in case of being set too
high.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2026-02-11 07:56:44 +01:00
Sean Kyer
ebf64aeb2d cpu_freq: on_demand: Fix wording of comment
Change comment from "increasing" order to "decreasing"
since the 0th indexed Pstate must have the highest
threshold.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2026-02-11 07:56:44 +01:00
Henrik Brix Andersen
d7bc3e126c dts: bindings: can: nxp: flexcan: allow overriding max filters
Add property for overriding the maximum number of hardware message buffers
used for RX filters on a per-instance basis.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-11 07:56:26 +01:00
Henrik Brix Andersen
1b9e927ea6 drivers: can: mcux: flexcan: allow configuring max filters from 0 to 128
The maximum number of RX filters is limited by the number of message
buffers, which cannot exceed 128. Add a range to the Kconfig option
imposing this.

Remove artificial build-time check on CONFIG_CAN_MCUX_FLEXCAN_MAX_FILTERS
being larger than zero, as transmit-only configuration is otherwise fully
supported.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-11 07:56:26 +01:00
Henrik Brix Andersen
2cd56213e2 drivers: can: mcux: flexcan: no need to zero-initialize static variables
Remove unnecessary zero-initialization of static variables.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-11 07:56:26 +01:00
Axel Le Bourhis
9ba4525d05 drivers: bluetooth: hci_nxp: fix clang-format defects
Run clang-format on hci_nxp.c to fix formatting issues in the file.

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-02-11 07:56:13 +01:00
Axel Le Bourhis
aea630b9e5 drivers: bluetooth: hci_nxp: move calibration data to zephyr
This commit moves NXP Bluetooth HCI calibration data handling from the
HAL to Zephyr hci_nxp driver.
Added Kconfig choice to select antenna diversity.

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-02-11 07:56:13 +01:00
Hoang Nguyen
05720e3544 tests: drivers: i2c: Add support for RZ devices
Add test support for I2C driver of:
- RZ/T2L-RSK
- RZ/G2L-SMARC, RZ/G2LC-SMARC, RZ/G2UL-SMARC
- RZ/V2N-EVK, RZ/V2H-EVK

Signed-off-by: Hoang Nguyen <hoang.nguyen.jx@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-02-11 07:55:35 +01:00
Hoang Nguyen
f9ee49872c boards: renesas: Add I2C support for RZ devices
Add I2C support for:
- RZ/T2L-RSK
- RZ/G2L-SMARC, RZ/G2LC-SMARC, RZ/G2UL-SMARC
- RZ/V2N-EVK, RZ/V2H-EVK

Signed-off-by: Hoang Nguyen <hoang.nguyen.jx@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-02-11 07:55:35 +01:00
Hoang Nguyen
3cd33b791f drivers: i2c: Update driver to support RZ/V2H, RZ/V2N
Update I2C driver to support Renesas RZ/V2H, RZ/V2N

Signed-off-by: Hoang Nguyen <hoang.nguyen.jx@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-02-11 07:55:35 +01:00
Hoang Nguyen
9d0c75eaf4 dts: renesas: Add I2C support for RZ SoCs
Add I2C nodes for devicetree of
- RZ/T2L
- RZ/G2UL, RZ/G2L, RZ/G2LC
- RZ/V2H R8 Core, RZ/V2H M33 Core, RZ/V2N

Signed-off-by: Hoang Nguyen <hoang.nguyen.jx@bp.renesas.com>
Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
2026-02-11 07:55:35 +01:00
Jukka Rissanen
6fd0d6bcac drivers: net: Increase loopback interface MTU to 1500
No need to have such a low MTU 576 bytes as it prevents sending
larger packets for loopback interface. If one have low MTU setting
and one tries to send for example larger UDP packets, then one
can get this rather confusing error message

Available payload buffer (548) is not enough for requested DGRAM (1197)

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2026-02-10 22:20:48 +01:00
Pieter De Gendt
9d36f4b2ab drivers: counter: Put counter driver API into iterable section
Use DEVICE_API macro to put the API into the correct iterable section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:20:25 +01:00
Pieter De Gendt
d1b570533b drivers: display: Put display drivers into iterable sections
Use the DEVICE_API macro to put the diplay driver APIs into the correct
iterable sections.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:20:12 +01:00
Pieter De Gendt
9351b76a6e drivers: reset: Put reset driver APIs into iterable section
Use the DEVICE_API to put the reset driver APIs into the correct linker
section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:19:58 +01:00
Pieter De Gendt
fa719f5aa7 drivers: adc: infineon_autanlog_sar: Put API into iterable section
Use the DEVICE_API wrapper to put the driver API into the correct linker
section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:19:45 +01:00
Pieter De Gendt
f71da28f90 drivers: crypto: Put device API into iterable section
Update some crypto drivers to use the DEVICE_API macro.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 22:19:30 +01:00
Henrik Brix Andersen
8f7e7661d6 doc: releases: migration-guide: 4.4: add entry for the NXP LPC MCAN driver
Add an entry for the renaming of the NXP LPC family MCAN driver.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Henrik Brix Andersen
f04bdd23d6 drivers: can: nxp: lpc_mcan: reformat source code file
Reformat the NXP LPC family MCAN driver source code file using
clang-format.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Henrik Brix Andersen
75c39d7265 drivers: can: rename the NXP LPC family MCAN driver
Rename the NXP LPC family MCAN driver to not use "MCUX" in its name as this
is not a shim driver based on the MCUXpresso HAL.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Henrik Brix Andersen
53f54b813c drivers: clock control: nxp: fix copy-paste error in comments
Fix copy-paste errors in a closing #endif comments.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Henrik Brix Andersen
52eacc83ce soc: nxp: lpc: lpc55xxx: remove unnecessary Kconfig default setting
Remove unnecessary default change for CONFIG_CAN_MCUX_MCAN.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-10 22:19:12 +01:00
Daniel Leung
4523fa57c5 soc: intel_adsp: clear BSS on core #0 at boot
Since the audio DSP is not using the architecture boot path,
the BSS is not cleared/zeroed at boot. So we need to manually
zero out the BSS via arch_bss_zero().

Also, the _bss_table_start/_end symbols are no longer needed
since we are not using the arch boot code. Saves a few bytes.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2026-02-10 22:19:02 +01:00