Commit graph

136,983 commits

Author SHA1 Message Date
Mathieu Choplain
61d0117615 drivers: watchdog: document semantics of WDT_DISABLE_AT_BOOT
WDT_DISABLE_AT_BOOT should only be used to forcefully disable watchdog
timers that are enabled by default after system reset. Update the Kconfig
help text of WDT_DISABLE_AT_BOOT and its dependency HAS_WDT_DISABLE_AT_BOOT
to make this clear.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-10 15:41:46 +00:00
Mattia Pennasilico
906cb669c4 boards: arduino: opta: enable SDHC SDIO support
This commit enable SDHC SDIO support for OPTA

Signed-off-by: Mattia Pennasilico <m.pennasilico@arduino.cc>
2026-02-10 15:41:36 +00:00
Allen Zhang
a4c333a865 boards: frdm_mcxw70: add frdm_mcxw70 board
enable board support for frdm_mcxw70

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2026-02-10 15:41:24 +00:00
Allen Zhang
6043f99786 soc: mcxw7xx: add SOC support for MCXW70AC
add soc MCXW70AC
get SYS_CLOCK_HW_CYCLES_PER_SEC from dt

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2026-02-10 15:41:24 +00:00
Allen Zhang
f70c41c575 dts: mcxw70: add dts for MCXW70
add dts for device MCXW70
add sysclk node for mcxw71 and mcxw72

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
2026-02-10 15:41:24 +00:00
Andrej Butok
35c0938428 boards: nxp: frdm_mcxc444: enable MCUboot
Adds missing "zephyr,code-partition" required for MCUboot.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2026-02-10 15:41:06 +00:00
Laurentiu Mihalcea
df2351fbea dts: arm: nxp: imx95_m7: use hex instead of decimal for "reg" values
Values passed via the "reg" property are usually in hex so switch to that.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2026-02-10 15:40:55 +00:00
Laurentiu Mihalcea
a4eff68152 dts: arm: nxp: imx95_m7: fix unit addresses for power domain nodes
Fix mismatch between unit address of the power domain nodes and the value
passed via the "reg" property.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2026-02-10 15:40:55 +00:00
Kyle Bonnici
cd4a6e229c dts: remove 0x and ull from node addresses
0x is node addresses as these are always hexadecimal values.

ull or ULL is also redundant as the address size is defined by the
@size-cells property.

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2026-02-10 15:40:38 +00:00
Niyas Hameed
cb5b9e9a05 west.yml: fix hal unconditional directory inclusion
Update hal_microchip revision to fix unconditional directory inclusion.

Signed-off-by: Niyas Hameed <niyas.hameed@microchip.com>
2026-02-10 15:12:00 +01:00
Omkar Nanajkar
d2c47a5cee scripts: west: zsh completion: add missing commands and options
Update the Zsh completion script to support newer west extensions and
commands, bringing it closer to feature parity with the Bash completion.

Key changes:
- Add completion support for twister, bindesc, blobs, robot, sdk,
  packages, patch, gtags, simulate, and reset
- Improve option completion for build, flash, debug, and runner commands
- Enable dynamic lookup for boards and shields
- Refactor argument handling for better Zsh compliance

Fixes #73129

Signed-off-by: Omkar Nanajkar <nomkar2131@gmail.com>
2026-02-10 15:11:42 +01:00
Etienne Carriere
90915fc715 drivers: flash: stm32_*spi: remove ARG_UNUSED() where useless
Remove ARG_UNUSED() where not needed in STM32 QSPI/XSPI drivers.

No functional changes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-02-10 15:11:28 +01:00
Etienne Carriere
7c90d75a73 drivers: flash: stm32_*spi: duplicated IOMEM registers base address
IOMEM interface base address is stored in both device configuration
and device data structures. Remove the occurence in the config data
that is used only for trace messages.

No functional changes.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-02-10 15:11:28 +01:00
Emil Gydesen
a65c3fb171 Bluetooth: BAP: SD: Refactor use of mutex
This commit does the following 2 changes:
1) The return value of k_mutex_lock has been modified to
be treated as a fatal error instead of a simple runtime error.
The reason for this is to avoid having to handle those cases,
and to treat those cases a fatal errors. The timeout for the
mutex should be long enough for any operation within the lock,
and if it isn't, then that should be treated as something that
needs to be fixed, as it is likely a bug. This is also the reason
why the timeout was kept, instead of using K_FOREVER.

2) Ensure that all log statements are done while the log isn't
locked.

The implementation should be reconsidered in terms of application
callbacks, as the current state, where we need to unlock and relock
the mutex so many times does not only risk resolving in cases where
wrong values are set, but is also not very readable nor performant.
Changes to the API will be done in a followup commit, as that requires
more significant changes.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 15:11:09 +01:00
Emil Gydesen
4230213f1f Bluetooth: CAP: Clear params before handover continues
When an unicast initiator procedure or a commander broadcast
procedure is completed and we have handover enabled, the
parameters used need to be cleared before continueing.
This is due to the fact that the parameters are only cleared
on completion, rather than at initialization, and that the
initiator and commander parameters are in a union.
Not clearing the parameters could set some values to an
unknown/unexpected start value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 15:10:38 +01:00
Johann Fischer
d67600eb2e doc: connectivity: usb: add initial CDC ACM documentation
Add initial documentation for CDC ACM function provided by the new USB
device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2026-02-10 15:10:21 +01:00
Pieter De Gendt
a0a71dabf8 scripts: zephyr_module.py: Optional jsonschema dependency
Commit 58bf2dc0e6 replaced pykwalify with
jsonschema for Zephyr module.yml files. However the west 'packages'
extension uses this module to list Python dependencies for Zephyr and
active Zephyr modules.

Make YAML validation optional using a new argument.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 15:10:10 +01:00
Josuah Demangeon
5c88168758 usb: host: shell: call usbh_device_set_address()
Instead of calling the low-level function from usbh_ch9.c, call the
higher level function from usbh_device.c to update the address,
making sure that the udev->address and udev->state are updated
appropriately.

Signed-off-by: Josuah Demangeon <josuah.demangeon@nordicsemi.no>
2026-02-10 13:02:10 +01:00
Josuah Demangeon
abdc1ff11d usb: host: add a usbh_device_set_address() function
To complement usbh_req_set_address(), add a matching function
usbh_device_set_address() that also takes care of updating the data
structures.

Signed-off-by: Josuah Demangeon <josuah.demangeon@nordicsemi.no>
2026-02-10 13:02:10 +01:00
Maximilian Zimmermann
a73d3d36da doc: connectivity: bluetooth: audio: fix multiple spelling errors
Fix multiple spelling errors/typos in the BLE Audio stack documentation.

Signed-off-by: Maximilian Zimmermann <gitmz@posteo.de>
2026-02-10 13:02:00 +01:00
Lingao Meng
63bfb2d6ee tests: fs: nvs: add test for sector full after partial ATE write
Add a new flash simulator test
`test_nvs_startup_full_sector_after_ate_power_loss`
to verify that NVS startup correctly handles a sector that becomes
logically full due to a power loss during the last ATE write.

The test simulates:

- Continuous data writes filling the sector.
- A corrupt ATE at the end of the data area (simulating power loss).
- Presence of a valid GC ATE and Close ATE.
- Verification that `nvs_mount()` succeeds despite the corrupt ATE.

This ensures NVS does not fail to mount in realistic power-loss
scenarios and that garbage collection is correctly triggered on
the next write.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2026-02-10 13:01:50 +01:00
Lingao Meng
c200ff1eb4 fs: nvs: handle power loss during ATE write at sector end
NVS writes an entry by first programming the data area and then writing
the corresponding ATE. If a power loss occurs after the data has been
written but while the ATE is being programmed, and the remaining space
in the sector is only large enough for a single ATE, the ATE may end up
partially written.

1) Power loss while writing the last data ATE, leaving only space for
   a delete ATE but no space for additional data entries:

       [ data ][ data ][ erase ][ ATE ][ ATE ][ erase ] (sector end)
                                  ^^^
In this cases, nvs_startup() scans the sector and fails to find any
erased space usable for data writes, causing failed to mount.

       [ data ][ data ][ erase ][ ATE (Invalid) ][ ATE ][ erase ]
               ^       ^
                    ate_wra
            data_wra

The sector is logically exhausted andshould be closed and garbage
collected.

Detect this condition during startup. If no erased space exists after
the last ATE write, explicitly close the sector and trigger garbage
collection to restore a writable sector.

This completes the missing recovery path for power-loss scenarios
where a sector becomes effectively full due to ATE writes.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2026-02-10 13:01:50 +01:00
Vinayak Kariappa Chettimada
1c128d59b5 samples: Bluetooth: bap broadcast source nRF54LM20DK USB Audio Device
bap broadcast source nRF54LM20DK with BAP_BROADCAST_48_2_1
USB Audio Device support.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-02-10 13:01:38 +01:00
Vinayak Kariappa Chettimada
1d7566da9d samples: Bluetooth: bap broadcast source nRF5340DK 48_2_1 USB Audio
bap broadcast source nRF5340DK with BAP_BROADCAST_48_2_1
USB Audio Device support.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-02-10 13:01:38 +01:00
Vinayak Kariappa Chettimada
8be2d91a2b samples: Bluetooth: bap broadcast source BAP_BROADCAST_48_2_1
bap broadcast source BAP_BROADCAST_48_2_1 support.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-02-10 13:01:38 +01:00
Vinayak Kariappa Chettimada
aad5167e9b samples: Bluetooth: bap broadcast source nrf21540dk_nrf52840
bap broadcast source nrf21540dk_nrf52840 sample.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-02-10 13:01:38 +01:00
Seppo Takalo
50a15a6a88 drivers: modem: cellular: Stop re-dial retry loops
Use same retry counter for APN script as the dial-script uses.

When dial-script fails, shut down the modem. Don't restart from
beginning.
When might still have CMUX connected, so jumping to IDLE->RESUME
leaves the CMUX connected, while the state machine expect otherwise.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-10 13:01:29 +01:00
Guillaume Gautier
25db90d296 dts: arm: st: fix some stm32f1 and f4 adc compatibles
Some ADC instances of STM32F1 and F4 didn't use the correct compatible.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-10 10:54:50 +01:00
Gaetan Perrot
7b8464834f tests: net: udp: fix invalid NULL check in test callback
The UDP test callback test_ok() contains a NULL check for user_data,
but this pointer is always valid for successful registrations.

The current code also dereferences the pointer inside the NULL
branch.

Remove the redundant check to make the test logic explicit.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 10:54:26 +01:00
Pieter De Gendt
15b86499ce shell: devmem_service: Unmap virtual memory
WHen running the shell devmem dump command and CONFIG_MMU is enabled, the
virtual memory wasn't unmapped.

Call the device_unmap function to cleanup virtual memory resources.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 10:53:32 +01:00
Pieter De Gendt
2efad2301a tests: kernel: device: mmio: Unmap virtual memory
Unmap memory obtained with device_map at the end of the test.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 10:53:32 +01:00
Pieter De Gendt
b92f6e9793 sys: device_mmio: Add device_unmap
Add a function that unmaps virtual memory obtained from device_map.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-10 10:53:32 +01:00
Mathieu Choplain
281b9fa260 drivers: usb: udc: stm32: enable SOF support
For some reason, the driver was not requesting the HAL to enable SOF even
if the feature was enabled at UDC stack level.

Fix by requesting HAL to enable SOF based on stack configuration.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-10 10:52:24 +01:00
Stephan Linz
796482737f drivers: wifi: infineon: airoc: avoid unhandled values in switch statement
When build:

  west build -p -b rpi_pico2/rp2350a/m33/w zephyr/samples/net/wifi/shell

Warnings occur (leading to errors in Twister runs):

  .../drivers/wifi/infineon/airoc_wifi.c:749:9: warning: enumeration value
      '__WIFI_FREQ_BANDWIDTH_AFTER_LAST' not handled in switch [-Wswitch]
  .../drivers/wifi/infineon/airoc_wifi.c:749:9: warning: enumeration value
      'WIFI_FREQ_BANDWIDTH_UNKNOWN' not handled in switch [-Wswitch]
    749 |         switch (params->bandwidth) {
        |         ^~~~~~

Signed-off-by: Stephan Linz <linz@li-pro.net>
2026-02-10 10:52:12 +01:00
Emil Gydesen
1a28a70d9b doc: releases: Add entry for bt_ccp_call_control_client_cb.user_data
Add entry for newly added field.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 10:51:43 +01:00
Emil Gydesen
5864564a46 Bluetooth: CCP: Add user_data to bt_ccp_call_control_client_cb
Add a user_data field to bt_ccp_call_control_client_cb. The
field is optional to enable via Kconfig. The field can be used
to provide additional context from the owner of the callback
structure, to the callbacks themselves.

This solves a memory use-after-free issue in the unit tests
where the values from the callback was accessed after they
were released, as the values were just stack allocated.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-02-10 10:51:43 +01:00
Ren Chen
d91f3dbb12 boards: ite: it51xxx_evb_it51526aw: include it51526aw.dtsi
The it51526.aw soc doesn't support isa c extension, and
support for isa extensions was updated via dt property
in previous pr (#97540).

This change adds the missing it51526aw.dtsi include for
it51xxx_evb/it51526aw.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-02-10 08:25:06 +01:00
Sebastian Głąb
69cdf5f36c samples: boards: nordic: nrf_sys_event: Enable Twister on nrf54lm20dk
Add nrf54lm20dk/nrf54lm20a/cpuapp to platform_allow list.
Overlay for this target is already there.

Remove skipping of RRAMC_POWER_MODE on nrf54lm20dk
because PyTest always expects result from this configuration.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-02-10 08:24:29 +01:00
Sebastian Głąb
3bb4b92a53 samples: boards: nordic: nrf_sys_event: Remove unused overlays
Remove overlay for nrf54l15dk/nrf54l15/cpuflpr/xip target as
it is no longer supported.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-02-10 08:24:29 +01:00
Gaetan Perrot
ce47cbeaa4 drivers: i2s: i2s_ambiq: remove dead error check in init
Remove a useless return value check in i2s_ambiq_init().

The variable 'ret' was initialized to zero and checked before being
assigned, making the condition always false.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 08:24:07 +01:00
Jay Beavers
03a86f89a1 usb: device_next: fix bInterfaceSubClass for CDC ECM data interface
According to the USB CDC 1.2 specification, section 4.6, the value of
bInterfaceSubClass for the data interface should be 0.

Signed-off-by: Jay Beavers <jay@tolttechnologies.com>
2026-02-10 08:23:40 +01:00
Jay Beavers
4d5477d0f3 bindesc: fix compile error when CONFIG_BINDESC_READ_FLASH disabled
Origin: Original
Fixes: zephyrproject-rtos/zephyr#103444

The get_entry() function uses IS_ENABLED(CONFIG_BINDESC_READ_FLASH) in
an if statement to guard code that accesses struct members (flash_device,
buffer) which are only defined when CONFIG_BINDESC_READ_FLASH is enabled.

While IS_ENABLED() correctly evaluates to 0 when the config is disabled,
the C compiler still performs type-checking on all code paths before
optimization can eliminate the dead branch. This causes a compile error:

  error: 'struct bindesc_handle' has no member named 'flash_device'
  error: 'struct bindesc_handle' has no member named 'buffer'

Fix by using preprocessor #if directive instead of runtime if statement.
This ensures the flash-specific code is excluded during preprocessing
when CONFIG_BINDESC_READ_FLASH is not enabled.

Signed-off-by: Jay Beavers <jay@tolttechnologies.com>
2026-02-10 08:23:22 +01:00
Gaetan Perrot
a6fd608050 drivers: mbox: ti_secproxy: add missing SPDX license identifier
Add the SPDX-License-Identifier tag to the file header to properly
declare the Apache-2.0 license, in line with Zephyr licensing
requirements.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 08:23:05 +01:00
Gaetan Perrot
94830a2827 drivers: mbox: ti_secproxy: drop redundant NULL check on dev pointer
The mailbox send callback is always invoked with a valid device
pointer.

Remove the redundant NULL check.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-10 08:23:05 +01:00
Fabio Baltieri
89e778d5b2 usb: device_next: usbd_cdc_{ecm,ncm}: support promisc mode
Flag the ECM and NCM interfaces as supporting promisc mode. There's no
filtering really so enabling promisc is a noop but pretending to have
support is needed to allow these to be added to a bridge.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-02-10 08:22:46 +01:00
Fabio Baltieri
314d9477ad MAINTAINERS: remove fabiobaltieri from stepper
Haven't been active in this area recently unfortunately, pulling my name
from it.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-02-09 16:14:04 -06:00
Fin Maaß
517bffdb84 adc: ads1x1x: remove DT_HAS_TI_ADS1119_ENABLED
the ads1119 has its own driver connected to CONFIG_ADC_ADS1119,
so remove it from CONFIG_ADC_ADS1X1X. Also the driver under
CONFIG_ADC_ADS1X1X doesn't support it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-09 16:13:53 -06:00
Laura Carlesso
361d324ded tests: drivers: gpio: Update/add overlay for PSOC6 boards
For BLE board, update the present overlay to use the right
port info to mark as okay.
For 062 board add overlay to run 2 pins tests successfully.

Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
2026-02-09 16:13:27 -06:00
Muhammad Waleed Badar
e8e3819c09 dts: broadcom: bcm2711: add rng device node
Add device tree node for the Broadcom iProc RNG200 hardware
random number generator found on BCM2711 SoC

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-02-09 16:12:54 -06:00
Sergei Ovchinnikov
cb5a44458a drivers: regulator: npm13xx: add LDO soft start support
Starting from revision 1.1 nPM1304 has support for soft start on the LDSW
regulators configured in the LDO mode. This requires special handling and
is done automatically for applicable device versions.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2026-02-09 16:12:33 -06:00