Commit graph

126,787 commits

Author SHA1 Message Date
Raffael Rostagno
4cad8d65ff tests: drivers: uart: esp32h2: Add test config
Add test config for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
c7a295b068 tests: clock: esp32h2: Add testcase
Render test settings more generic regarding clock options, in order
to better support new devices. Add ESP32-H2 testcase to rtc_clk suite.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
ebd1b1c44b boards: esp32h2_devkitm: Add initial support
Add initial support for esp32h2_devkitm.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
c5770e1b14 drivers: hwinfo: esp32h2: Add support
Add hwinfo support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
1bd2734991 drivers: wdt: esp32h2: Add support
Add WDT support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
36c528316d drivers: systimer: esp32h2: Add support
Add systimer support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
d1ecc51dcd drivers: uart: esp32h2: Add support
Add UART support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
270307f61d drivers: gpio: esp32h2: Add support
Add gpio support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
9d257c362f drivers: pinctrl: esp32h2: Add support
Add pinctrl support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
6293140ff6 drivers: clock_control: esp32h2: Add support
Add clock control support for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
5bd4741c83 soc: esp32h2: Add initial support
Add initial support files for ESP32-H2 SoC.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
5a84b68e61 bindings: clock: intmux: pinctrl: esp32h2: Add defines
Add defines for clock, interrupt management and pin control.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Raffael Rostagno
7f68a73c8e west.yml: hal_espressif: Update for ESP32-H2 support
Update HAL for ESP32-H2 support.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Aleksander Wasaznik
3a8846e947 Bluetooth: Document bt_conn_le_cs_mode and clarify encoding notes
Add API documentation for `bt_conn_le_cs_mode` and internal extractors
for main and sub-mode parts. Clarify that the enum values are an
internal encoding, not a stable API, and that the sub-mode extractor
maps 0 to HCI 0xFF (unused) for a compact representation.

Also mark the extractors as private helpers and tighten wording for
developer clarity.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2025-08-26 16:14:16 +02:00
Mike J. Chen
ebab75bb73 nvs: support sector_size of 64KB
Allows NVS to work with flash device configured to
use only 64KB block erase. Due to how addresses
are encoded internally in NVS, 64KB is the maximum
sector size. Add a test for this during mount.

Add a native_sim unit test case for 64kb erase block size

Signed-off-by: Mike J. Chen <mjchen@google.com>
2025-08-26 16:13:23 +02:00
Aksel Skauge Mellbye
33da9bfd92 drivers: spi: silabs: Add missing iodev_submit implementation
Series 2 EUSART and SiWx91x GSPI drivers were missing the
`iodev_submit` member from their API structs, leading to
null pointer dereference if CONFIG_SPI_RTIO was used.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-08-26 16:04:32 +02:00
Jeppe Odgaard
a8c8f7f2b8 shell: mqtt: select NET_CONNECTION_MANAGER
Replace `select NET_MGMT` and `select NET_MGMT_EVENT` with
`select NET_CONNECTION_MANAGER` to get L4 events.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-08-26 13:25:47 +02:00
Jeppe Odgaard
ddc4479243 shell: mqtt: use topic levels
Change topic from <device_id>_rx (and tx) to <device_id>/sh/rx.

This allows use of wildcards. E.g. subscribe to all devices "+/sh/tx".

Level "sh" is added to the topic to make it less generic and prevent
potential clashes with other topics.

The topic part after <device_id> is configurable via Kconfig.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-08-26 13:25:47 +02:00
Etienne Carriere
5ff3dbeeee drivers: i2c: stm32: exclude stm32f7 family for PM in RTIO driver
Exclude STM32F7 SoC series from PM support since that SoC doees not
yet manage power management in Zephyr and HAL API functions
LL_I2C_EnableWakeUpFromStop() and LL_I2C_DisableWakeUpFromStop()
are not implemented in the H7 HAL/LL drivers.

This change ports into the STM32 RTIO driver the change made in the
non-RTIO driver through commit 1804eb7bc3 ("drivers: i2c: stm32:
exclude stm32f7 family for PM").

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-26 11:34:55 +02:00
Etienne Carriere
e29ebbe13c drivers: i2c: stm32: drop few redundant guards in RTIO driver
Drop few CONFIG_PM_DEVICE_RUNTIME guards, the pm_device_runtime
functions they are masking are no-op automatically when the
corresponding config option is not selected.

This change is related to the change made in the STM32 non-RTIO driver
trough commit 4f3523d9af ("i2c: stm32: drop few redundant guards").

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-26 11:34:55 +02:00
Etienne Carriere
181e544550 drivers: i2c: stm32: sync stm32_v2 RTIO on PM runtime state
Always call pm_device_runtime_get() when registering a target
even if the device is not wakeup capable to prevent I2C target not being
function if the device goes into a SoC Stop mode.

This change ports into the STM32 v2 RTIO driver the change made in the
non-RTIO driver through commit 67f80e35b8 ("i2c: stm32: always call
runtime_get when registering targets").

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-08-26 11:34:55 +02:00
Ajay Parida
092347cdb1 driver: nrf_wifi: TWT setup duration
Build time configuration option to set TWT setup duration.
If AP does not respond to TWT setup request for this period,
STA will timeout and report setup failure.

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
2025-08-26 11:34:45 +02:00
Kapil Bhatt
028eec235e manifest: Update nrf_wifi revision to fix raw tx
Fix TX buffer issue for raw tx.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2025-08-26 11:34:45 +02:00
Vinayak Kariappa Chettimada
3461135d02 Bluetooth: Controller: Fix assertion in scan aux release
Fix assertion under race conditions where LLL scheduling
did not have an auxiliary context assigned but when node rx
is released an auxiliary context is picked from the scan
context that has no parent assigned yet due to a previously
assigned auxiliary context to the scan context was not
cleared.

Relates to commit 49642efa41 ("Bluetooth: Controller: Fix
regression in scan aux release").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-08-26 11:34:36 +02:00
Vinayak Kariappa Chettimada
5ce9d0c621 Bluetooth: Controller: Fix extended scanning assert on invalid chan_idx
Fix extended scanning assert on invalid chan_idx received in
the aux pointer structure.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-08-26 11:34:36 +02:00
Sebastian Bøe
ac851ca160 soc: nordic: uicr: Reorganize how gen_uicr.py is invoked
Reorganize how gen_uicr.py is invoked.

Instead of invoking it from one of the Zephyr images we invoke it from
a new special Zephyr image called uicr.

This uicr Zephyr image is flashed in the same way as normal Zephyr
images so special handling in the runner is no longer necessary.

Also, we simplify gen_uicr.py by moving parsing of Kconfig/DT from
gen_uicr.py to CMake.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-08-26 09:38:18 +02:00
Jonathan Nilsen
ae191f66c9 soc: nordic: uicr: Populate UICR.VERSION field in gen_uicr.py
Set the VERSION field to 2.0 in gen_uicr.py to indicate the version of
the format the script produces blobs for. This is required for forwards
compatibility with newer versions of IronSide SE.

Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
2025-08-26 09:38:18 +02:00
Sebastian Bøe
5f9d20cf38 tests: drivers: comparator: gpio_loopback: Update SNIPPET_ROOT
When SNIPPET is added to the build, it is added to all images. But not
all images have the test directory added to their SNIPPET_ROOT, so we
also update the SNIPPET_ROOT.

This allows, for instance, the uicr image of nrf54H to find this
snippet.

Ref: NCSDK-NONE

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-08-26 09:38:18 +02:00
Arunmani Alagarsamy
06158853c3 drivers: wifi: siwx91x: Add support for regulatory domain GET
Added support for retrieving the regulatory domain information from
the siwx91x driver. Since the SDK does not provide a GET API for
region details, the driver now stores the country code and reuse
the configuration `sli_si91x_set_region_ap_request_t` to get the
channel information. This stored data is returned when a GET
operation is requested.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-08-26 09:38:05 +02:00
Arunmani Alagarsamy
eac7784574 soc: silabs: siwg917: Relocate country code mapping function
Moved the `siwx91x_map_country_code_to_region()` function
from the Wi-Fi driver source file to nwp.c.

This change prepares the codebase for upcoming enhancements
related to the regulatory domain GET operation.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-08-26 09:38:05 +02:00
Arunmani Alagarsamy
72a3f7e4c9 drivers: wifi: siwx91x: Add support for setting regulatory domain
Add support for configuring the regulatory domain (region code) to
ensure the device operates in compliance with local RF regulations.

The region must be set before the Wi-Fi interface becomes active
i.e., before scan or connection in STA mode, or before starting in
AP mode.

Since the SDK does not support setting the country code directly,
the driver maps country codes to region codes

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-08-26 09:38:05 +02:00
Make Shi
9cfbed62df Bluetooth: Shell: AVRCP: Shell interface for browsing support
- Add shell interface for browsing connect and disconnect testing and
  SetBrowsedPlayer command testing.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-08-26 09:32:21 +02:00
Make Shi
240ad5cedc bluetooth: avrcp: Add support for AVRCP browsing
- AVRCP SDP record updates for browsing channel
- L2CAP setup for AVCTP browsing channel, and add connect/disconnect
- Add SetBrowsedPlayer browsing command handling

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-08-26 09:32:21 +02:00
Make Shi
b923bde676 bluetooth: avrcp: provide an API for net buffer allocation
Add bt_avrcp_create_pdu() to allocate net_buf with protocol headroom.

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-08-26 09:32:21 +02:00
Make Shi
895ba04b32 Bluetooth: AVCTP: Refactors the AVCTP to support multiple L2CAP PSMs
- This patch refactors the AVCTP layer to support multiple L2CAP PSMs
- Introduced bt_avctp_server structure for dynamic L2CAP server
  registration and new server register apis
- Added k_sem protected server list to support multiple AVCTP servers

Signed-off-by: Make Shi <make.shi@nxp.com>
2025-08-26 09:32:21 +02:00
Gang Li
009114a607 modules: hostap: flush all unused BSS entries before 11V roaming
For 11V roaming, it attempts to use previously received scan results,
if they are recent enough to be used for connection.
If wifi driver does not keep the previous scan results, it will failed
to find the bss entry.
Fix: flush all unused BSS entries, for 11V roaming, don't try to use
recent scan results.

Signed-off-by: Gang Li <gang.li_1@nxp.com>
2025-08-26 08:35:08 +02:00
Jannik Woernle
b10204b36d kernel: k_pipe: Fixed initializer order
Changed order of Z_PIPE_INITIALIZER to match with k_pipe struct

Signed-off-by: Jannik Woernle <jjw2202@outlook.de>
2025-08-26 08:34:55 +02:00
Johann Fischer
b318fb3fc3 boards: remove test feature usb_cdc
The test feature USB_CDC is not required or used in any of the USB
samples or tests, yet it mysteriously appears again and again for
various boards.

Follow-up on commit ef784cd3fd
("boards: remove test feature usb_cdc and usb")

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-26 04:07:45 +02:00
Johann Fischer
6f57a7a3f3 boards: replace test feature usb_device with usbd for some boards
Replace test feature usb_device with usbd for boards that use the CDC
ACM serial backend. Otherwise, Twister could use these boards with
deprecated legacy samples, but the build would fail due to warnings
about the CDC ACM log level.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-26 04:07:45 +02:00
Johann Fischer
8b065f9183 samples: cdc_acm: set CDC ACM log level to OFF
When building for the board with a serial backend, a warning will appear
regarding the log level of the CDC ACM implementation. Set it to "OFF"
to avoid CI failures.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-26 04:07:45 +02:00
Johann Fischer
ec9488ceaa samples: usb: explicitly disable initialization at boot
To avoid conflicts with boards using the CDC ACM serial backend,
explicitly disable initialization at boot.

Similar to commit 11c7371f99
("samples: Explicitly disable boot USB device support init at boot")
addressing it for the legacy device stack.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-26 04:07:45 +02:00
Johann Fischer
489ea9df31 samples: usb: legacy: disable next device stack explicitly
Disable the new device stack explicitly to avoid build issues in CI.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-08-26 04:07:45 +02:00
Daniel DeGrasse
dcb472926c include: zephyr: move disks directory to disk
Move disks directory to disk to match with the naming of the driver
class. This only affects the recently introduced header for STM32 disk
drivers so it should be very low impact.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-26 04:07:27 +02:00
Ioannis Damigos
92d092f715 include: drivers: bluetooth: Use DT_ENUM_IDX_OR to get HCI bus from DT
Use DT_ENUM_IDX_OR instead of DT_STRING_UPPER_TOKEN_OR to get HCI bus
from DT, in order to avoid the expansion of UART/SPI/etc. macros when
they exist in vendor's SoC headers.

Fixes #93675

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>

fix
2025-08-26 04:07:10 +02:00
Ioannis Damigos
70c70fda24 doc/releases: Update migration guide regarding IPM HCI bus removal
Update migration guide regarding IPM HCI bus removal.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-08-26 04:07:10 +02:00
Ioannis Damigos
4920a6d7b1 bluetooth: hci: Remove deprecated IPM HCI bus
Remove deprecated IPM HCI bus.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-08-26 04:07:10 +02:00
Ioannis Damigos
fe645cd346 dts/bindings/bluetooth: Use IPC instead of deprecated IPM
Use IPC in bt-hci-bus property instead of deprecated IPM.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-08-26 04:07:10 +02:00
Emil Gydesen
23e0d30a39 Bluetooth: ISO: Expand defines and their text
Add a few missing defines for limits used in ISO.
Add missing units and provide the value in both
hex and decimal (with units) for easier-to-read support.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-25 17:50:33 +02:00
Erwan Gouriou
4cd7d139fa tests: flash: Enable test on stm32n6570_dk
Since no internal flash is available, provide the right configuration
so the test can run on external flash for stm32n6570_dk.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-08-25 17:50:11 +02:00
Erwan Gouriou
b49fa46d9d drivers: flash: stm32 o/xspi: Implement get_size()
This api was missing from these driver. Add it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-08-25 17:50:11 +02:00