Commit graph

136,983 commits

Author SHA1 Message Date
Mirai SHINJO
170a1fe01b scripts: coredump: update RISC-V parser for full register set
Add support for ARCH_HDR_VER 3 (RISC-V 32-bit layout) and 4
(RISC-V 64-bit layout), carrying all 33 registers in GDB order
(x0-x31 and pc).

For versions 3/4, map tuple entries directly to GDB register numbers.

Keep ARCH_HDR_VER 1/2 parsing unchanged so existing stored dumps
can be decoded as well.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
2026-02-18 10:31:33 +00:00
Michał Stasiak
5f8d1eb80d modules: hal_nordic: nrfx: remove UART instance specific symbols
No longer needed after switching to nrfx 4.1 API.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-02-18 10:31:16 +00:00
Adam Kondraciuk
38c736295a drivers: spi: spi_nrfx_spi: use standard instantiation
Switched nrfx_spi API to standard instantiation.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2026-02-18 10:31:16 +00:00
Adam Kondraciuk
6d14ea188c drivers: i2c: i2c_nrfx_twi: use standard instantiation
Switched nrfx_twi API to standard instantiation.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2026-02-18 10:31:16 +00:00
Krzysztof Chruściński
f3cbc13912 drivers: timer: nrf_rtc: Align to nrfx 4.1
Align to change in nrf_rtc HAL.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-02-18 10:31:16 +00:00
Michał Stasiak
39d64f17ca modules: hal_nordic: nrfx: bump API to version 4.1.0
Updated nrfx API version to 4.1.0.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-02-18 10:31:16 +00:00
Jonathan Nilsen
04bebca0f4 soc: nordic: uicr: add support for UICR.POLICY_PERIPHCONFSTAGE
Add support for configuring the "PERIPHCONF stage" that is set
when the application core is started by IronSide SE. This configures
which permissions the application has when calling the IronSide
PERIPHCONF write API at boot time.

The new option is part of the new version 2.1 of the UICR format.
IronSide SE versions that do not support the 2.1 format version
will fail the boot if given a UICR with that version number.
To avoid forcing users to upgrade IronSide, the UICR generator
only sets the UICR format version to 2.1 if a PERIPHCONF stage policy
is explicitly set, otherwise it will default to the 2.0 version.

Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
2026-02-18 10:30:59 +00:00
Jonathan Nilsen
ceb55f56cc soc: nordic: uicr: make it possible to keep the PERIPHCONF section
Add a config that can be disabled to keep the PERIPHCONF data in the
firmware binary rather than stripping it. When the option is disabled
for a given image, the UICR generator does not include that image's
PERIPHCONF data in the UICR PERIPHCONF blob, instead it is expected that
it is loaded separately via an IronSide API call.

Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
2026-02-18 10:30:59 +00:00
Josuah Demangeon
6c1d24cde1 usb: device_next: uvc: fix frame/formats descriptors
The standard format "frame-based payload" was abused as a way to get
generic descriptors that match all other format and frame types.
This is not accurate as some fields do not match, causing misalignment
of some struct fields in some case.

Correct the misuse by introducing new valid structs and refactoring the
descriptor parsing to use them instead.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2026-02-18 10:30:44 +00:00
Henrik Brix Andersen
5b3057b3f1 tests: drivers: can: timing: automatically test all bitrates @ 80 MHz
Automatically enable tests for all bitrates when the CAN core clock is 80
MHz. This will minimize the need for board-specific test configurations.

Remove now unnecessary board configurations for qemu_x86, qemu_x86_64,
native_sim, and native_sim_native_64.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-18 10:30:16 +00:00
Etienne Carriere
55dd40fee1 boards: st: stm32h573i_dk: remove external flash address range mapping
Remove the explicit mapping of the external flash address range.
It is not needed (driver use the privileged background map) and
the attribute set was set (DT_MEM_ARM_MPU_IO) causes troubles. The
issue appeared since commit fec8b10a09 that defines the mapping
attribute for Armv8M. Before that commit, attribute was not defined
hence was this node ignored.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2026-02-18 10:30:03 +00:00
Josuah Demangeon
4360894965 usb: host: class: support multiple controllers
Only bind to a controller after probing. Wait that a class is matching and
assigned to a device to assign a host controller to a class. This allows
a class to be used by any of the controller in place.
Remove the `c_data->uhs_ctx` field, not used anywhere, in favor of using
`c_data->udev->ctx`.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2026-02-18 10:29:27 +00:00
Grzegorz Chwierut
69edab8c97 twister: move ZEPHYR_BASE to constants to reduce dependencies
Moving ZEPHYR_BASE from environment.py to constants.py
allows importing classes like HardwareMap in
pytest-twister-harness module without pulling in unnecessary
dependencies from environment.py.

This refactoring improves module independence and makes selective
imports cleaner across the twister Python package structure.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2026-02-17 17:41:16 -06:00
Jukka Rissanen
0179cce4cd net: shell: Convert the code to use SHELL_HELP macro
This will save flash memory by 646 bytes and make usage help look
uniform in different commands.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2026-02-17 17:40:49 -06:00
Ryan McClelland
f3eb844f95 maintainers: add xenuiswatching as i3c maintainer
Move xenuiswatching from collaborator to a maintainer for i3c

Signed-off-by: Ryan McClelland <rymcclel@gmail.com>
2026-02-17 17:40:15 -06:00
Scott Worley
8f12af2c28 soc: microchip: mec: MEC174x/5x/165xB SoC managed PM enablement
We add the initial enablement of SoC managed PM (CONFIG_PM) for
Microchip MEC174x, MEC175x, and MEC165xB series. Common SoC
PM handling code was added with support for light and deep
sleep (standby and suspend respectively). The code includes
initial save and restore for peripherals that do not obey
the MEC PCR block sleep signals. This initial commit implements
save and restore for basic timers and UARTs. The code builds
and runs the Zephyr SoC managed PM subsystem test.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-02-17 17:40:04 -06:00
Scott Worley
b3f3ff28ec tests: boards: mec172xevb_assy6906: Fix test failure due to SPI driver
Test update to resolve Zephyr issue #103893.
Zephyr SPI_EXTENDED_MODES is now marked EXPERIMENTAL and documented as
requiring more API changes. On our last Microchip XEC SPI QMSPI SPI driver
update we were instructured to remove SPI_EXTENDED_MODES support. We
forgot to update this test. We removed dual/quad tests and updated the
test case YAML. Dual and quad support will require developing a Zephyr
MSPI driver.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-02-17 17:39:37 -06:00
Benjamin Cabé
e5e32eaea1 dts: bindings: gpio: move DTS snippets from description to examples
Use the new `examples` property to provide example usage in a more
structured way.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-17 17:38:53 -06:00
Aleksandr Senin
4c7d61ba26 drivers: hwinfo: add GD32 support
Add a hwinfo backend for GD32 providing:
- device unique ID readout from the 96-bit UID registers
- reset cause reporting via the RCU_RSTSCK reset status register

Reset cause mapping uses the hal_gigadevice RCU_RSTSCK flag definitions
and reports supported causes based on the macros available in the HAL.

Signed-off-by: Aleksandr Senin <al@meshium.net>
2026-02-17 17:38:27 -06:00
Lukasz Fundakowski
d73ea02be1 twister: Do not clean previous results for listing tests
When user only wants to list tests or tags twister should
not clean previous results.
This change improves also performance for listing tests.

Signed-off-by: Lukasz Fundakowski <lukasz.fundakowski@nordicsemi.no>
2026-02-17 13:22:35 -06:00
Titouan Christophe
c621c97083 bluetooth: fix typo in reference to option values
The options field of struct bt_le_per_adv_param are defined in Doxygen
group bt_le_per_adv_opt, not bt_le_adv_opt

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2026-02-17 13:22:09 -06:00
Titouan Christophe
fb8a0c8fe5 bluetooth: fix missing doxygen for optional struct fields
When Periodic Advertisement with Responses is enabled with
`CONFIG_BT_PER_ADV_RSP`, some extra optional fields are included in
struct bt_le_ext_adv_cb and struct bt_le_per_adv_param. Even though
these fields are properly doxygen-documented, they are not included
in the HTML docs because they are excluded with conditional compilation.

Update the conditional macros to include them when building the
documentation so they appear there, and add a note to the
corresponding kconfig option to enable them.

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2026-02-17 13:22:09 -06:00
Sylvio Alves
3bef399524 soc: espressif: use ZSR_CPU_STR macro for cpu pointer register
Replace hardcoded wsr.MISC0 with the build-generated ZSR_CPU_STR
macro to write the correct Xtensa special register for the CPU
pointer.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-17 13:21:49 -06:00
Henrik Brix Andersen
c2c43341fc MAINTAINERS: do not include the dts/ folder in the Boards/SoCs category
Remove the dts/ folder from the "area: Boards/SoCs" category.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-02-17 13:21:30 -06:00
Jukka Rissanen
66812f66a7 net: ipv6: Do packet length checks before starting fragment reassembly
Make sure to check packet length check before starting the
IPv6 fragmentation reassembly process. This way we can drop the
malformed packet without consuming resources.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2026-02-17 13:21:17 -06:00
Yassine El Aissaoui
38b284802f soc: mcxw: Fix PM Kconfig dependency on MCXW23
We are no longer able to enable CONFIG_PM.
This Kconfig depends on HAS_PM, which is no longer
selected by the MCXW23 platform.

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2026-02-17 13:20:35 -06:00
Abdulrahman Aminu
2c53ff4944 boards: rakwireless: rak5010: Add SHTC3 temperature and humidity sensor
Add devicetree node for the onboard Sensirion SHTC3 temperature and
humidity sensor on the RAK5010.

This allows applications and sensor samples to access temperature
and relative humidity readings through the Zephyr sensor subsystem.

Validation:
- Built and tested on rak5010/nrf52840.
- Ran samples/sensor/dht_polling using the board-provided dht0 alias.
- Verified temperature and humidity readings over console output.

Signed-off-by: Abdulrahman Aminu <aminuabdulrahmandayo@gmail.com>
2026-02-17 13:20:13 -06:00
Jeremy Thompson
bf8749007b drivers: sensor: ti_hdc302x: Fix mask on temp alert threshold
Correct a bitmask issue on the temperature alert threshold
as per the datasheet (Section 7.5.7.4.2).

Signed-off-by: Jeremy Thompson <jthompson@blackberry.com>
2026-02-17 13:20:03 -06:00
Zafer SEN
85f4a38d2b samples: net: lwm2m_client: add NTN config overlay for HL78xx EVK
Introduce overlay-swir_hl78xx_ev_kit_ntn.conf to enable testing and
evaluation of NB-NTN operation with the HL78xx modem. The overlay
configures RAT selection for NB-NTN, increases DNS/TLS/CONNECT timeouts
for high RTT satellite links, and adjusts CoAP and LwM2M timing to
improve reliability under NTN latency conditions.

Also includes optional manual UE position parameters and aligns sample
behavior with expected NTN network characteristics.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-17 13:19:52 -06:00
Zafer SEN
5c8d9c2ab3 samples: net: lwm2m_client: enable PSA CCM to fix DTLS handshake failure
Enable CONFIG_PSA_WANT_ALG_CCM in the DTLS overlay to resolve TLS
handshake failures seen with the default LwM2M sample. Without CCM
support enabled, mbedTLS cannot negotiate AES-CCM-based PSK ciphers,
resulting in handshake errors such as:

  net_sock_tls: TLS handshake error: -0x7780
  net_lwm2m_engine: Cannot connect UDP (-113)

Adding PSA CCM support restores compatibility with the server's DTLS
requirements and allows the sample to connect successfully.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-17 13:19:52 -06:00
Zafer SEN
628f28ed13 drivers: modem: hl78xx: add NB-NTN support and positioning
Add initial NB-NTN RAT support to the HL78xx driver:

* Enable RAT selection for NB-NTN (SET_RAT_NBNTN_CMD_LEGACY).
* Configure NTN positioning via +KNTNCFG("POS", provider, dynamic).
* Query +KNTNCFG at init and cache into modem_status.ntn_rat.
* Handle +KNTNEV:"POSREQ" and raise MODEM_HL78XX_EVENT_NTN_POSREQ.
* If MANUAL position source is enabled, push +KNTNCMD("POS") with
  Kconfig-provided latitude/longitude/altitude.
* Kconfig updates:
  - Add MODEM_HL78XX_ADDRESS_FAMILY_IP and default it for NB-NTN.
  - Add NTN_MANUAL_{LATITUDE,LONGITUDE,ALTITUDE} under MANUAL source.
* For NB-NTN, program PDP context without explicit AF in +KCNXCFG and
  use address family "IP".
* Extend socket connect and TLS handshake timeout ranges to 120 s to
  tolerate higher RTT on NTN links.

Non-NTN builds keep previous behavior.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-02-17 13:19:52 -06:00
Marek Maškarinec
fe789226d6 drivers: tmag5273: Add device PM support
Adds device power manager support to TMAG5273 driver.
Suspending the device will put it into its SLEEP mode, resuming will
restore it to the mode configured in devicetree.

Before communicating with a device in sleep mode, an extra I2C transfer
is needed. Something like this is briefly mentioned in the datasheet,
but without any more specific details. The wake up has also been added
to the init function, even in case PM is disabled.

The device is marked as busy for the whole sample_fetch function.

Signed-off-by: Marek Maškarinec <marek.maskarinec@hardwario.com>
2026-02-17 13:19:19 -06:00
Seppo Takalo
5c31ef18df drivers: modem: Allows modems to use default PDP context or APN
LTE modems typically support default PDP context (cid 0) which
is activated when network is attached.

Allow driver to choose whether this CID 0 is used by default, and
skip the whole APN state.

Some modems require PDP context to be defined by AT+CGDCONT=1 command
but do not necessary need the APN name.

Add both options as a Devicetree settings as an enum value so that
specific DTS bindings may change the default while allowing user
to override. Booleans with "default: true" would not work.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-17 13:19:03 -06:00
Manojkumar Konisetty
0e8686e4f7 tests: drivers: flash: Add Overlay for cy8cproto_041tp
- Add test parititon with a size of 64KB to validate
  robustness of the interface between the controller
  and the flash chip using pattern-based testing

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Manojkumar Konisetty
ff45823b47 tests: drivers: flash: Add Overlay for cy8cproto_041tp
- Add test parititon with a size of 64KB to test erase blocks

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Manojkumar Konisetty
0a89e0ae00 tests: drivers: flash: Add support for cy8cproto_041tp
- Add overlay and config file for cy8cproto_041tp to test
  flash - fill, flatten, page_layout, copy, erase and
  unaligned address.

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Manojkumar Konisetty
7ab5c80d2f tests: drivers: flash: Add support for cy8cproto_041tp
- Define flash start and the size for cy8cproto_041tp
- Add overlay  for cy8cproto_041tp to define the storage partition.

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Manojkumar Konisetty
7c9048d70d dts: arm: infineon: Add Flash controller for psoc4100tp.dtsi
- Define the register region for controller and non-volatile
  flash node which is 128Kb in size.

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Manojkumar Konisetty
e2bb8efb9a drivers: flash: Add Infineon PSOC4 flash driver and CMakeLists
- Implement flash read, write and erase APIs.
- flash rows are automatically erased during Cy_Flash_WriteRow()
  operation.
- Implement erase by writing the erased value (0xFF) to maintain
  compatibility with the Zephyr flash API.i

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Manojkumar Konisetty
d48b688dcb drivers: flash: Add Flash Kconfig for PSOC4 series
- Introduce FLASH_INFINEON_PSOC4 to enable the flash driver for the
  Infineon PSoC4 family.
- This option selects required flash capabilities.

Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-17 13:18:35 -06:00
Lyle Zhu
dd1de01d96 tests: bluetooth: tester: add RFCOMM service support
Add RFCOMM service implementation to the Bluetooth tester framework,
enabling testing of RFCOMM protocol functionality over Bluetooth
Classic connections.

The implementation includes:
- RFCOMM DLC (Data Link Connection) management with support for up to
  10 concurrent channels and 5 server instances
- BTP (Bluetooth Test Protocol) command handlers for connect,
  disconnect, send data, listen, send RPN, and get DLC info operations
- Event notifications for connection state changes and data transfer
- Integration with the existing BTP service infrastructure

Enable RFCOMM support in the Bluetooth Classic test configuration.

Co-Author: Jiawei Yang <jiawei.yang_1@nxp.com>
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2026-02-17 15:22:50 +00:00
Zophai Liu
9cae0c4b25 doc: develop: flash_debug: add realtek bee mpcli docs
Add setup and usage documentation for realtek bee mpcli.

Signed-off-by: Zophai Liu <zophai_liu@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Zophai Liu
9ee71b498c west: runner: add realtek bee mpcli flash runner
Add support for the official realtek programming tool (CLI
version).

Signed-off-by: Zophai Liu <zophai_liu@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Zhiyuan Tang
353022a47d boards: add rtl87x2g_evb_a board
Add initial version of rtl87x2g_evb_a board.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Yuzhuo Liu
08bad54b32 drivers: gpio: add realtek bee gpio driver
Add realtek bee gpio driver.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Yuzhuo Liu
3cf997ed6c drivers: serial: add realtek bee serial driver
Add realtek bee serial driver.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Yuzhuo Liu
b1e409e01f drivers: pinctrl: add realtek bee pinctrl driver
Add realtek bee pinctrl driver.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Yuzhuo Liu
e3864c87c2 drivers: clock: add realtek bee clock driver
Add realtek bee clock driver.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Zhiyuan Tang
ba5b90f22e soc: realtek: add soc support for RTL87x2G series
Add the initial version of soc support for Realtek RTL87x2G series.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-02-17 15:22:38 +00:00
Zhiyuan Tang
6a8227918c dts: arm: add initial dtsi support for RTL87x2G series
Introduce the initial Device Tree Source Include (dtsi) files for the
Realtek RTL87x2G series SoCs.

The structure is organized as follows:
- rtl87x2g.dtsi: Contains the common definitions shared across all
  part numbers in the RTL87x2G series.
- rtl8762gkh_gku.dtsi / rtl8762grh_gru.dtsi: Specific configuration
  files to handle different flash sizes associated with these part
  numbers.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-02-17 15:22:38 +00:00