Commit graph

136,983 commits

Author SHA1 Message Date
Sylvio Alves
e2f6e190cb twister: increase ESP32 reset pulse duration
Increase the reset pulse from 10ms to 100ms to ensure reliable
boot across all Espressif SoCs. Shorter pulses may cause the UART
to miss early bootloader output, leading to false-positive test
failures.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-18 08:45:23 -05:00
Fin Maaß
7d74695fa3 drivers: sensor: ina226: add support for SHUNT_VOLTAGE
For the ina226 shunt voltage is implemented and supported,
unfortunatly it was forgotten to select
INA2XX_HAS_CHANNEL_SHUNT_VOLTAGE.
Since 70423db9d1c69d32597ba1f7b2fe66569014a4b0 it will
no longer build. This fixes it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-18 08:45:02 -05:00
Sylvio Alves
b1daf9f62f drivers: mipi_dbi: esp32: update driver to meet HAL changes
Update the MIPI DBI ESP32 driver to match the renamed/split LCD HAL
APIs from the latest hal_espressif sync:
- soc/gdma_channel.h moved to hal/gdma_channel.h
- lcd_ll_set_data_width() split into lcd_ll_set_dma_read_stride()
  and lcd_ll_set_data_wire_width()
- lcd_ll_enable_rgb_yuv_convert() renamed to
  lcd_ll_enable_color_convert()

Also update west.yml hal_espressif revision.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-18 08:44:49 -05:00
Emil Gydesen
9fafa1288d Bluetooth: TBS: Add check before memcpy of URI scheme
Add a check of the URI scheme length before comparing it
to any instance's supported URI schemes. If the incoming
URI scheme is longer than what we support, then there's
no point in checking if we support it, as we cannot.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-03-18 08:44:27 -05:00
Tim Lin
aee295e880 dt-bindings/interrupt-controller: ite: Add RTC alarm interrupt numbers
Add IRQ numbers for RTC1 and RTC2 alarm on the IT8xxx2 interrupt
controller for RTC driver support.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2026-03-18 08:43:59 -05:00
Patryk Koscik
9817c94b12 dts: arm: ti: update R5 compatible string to cortex-r5f
Correct the TI K3 R5 cores DT compatible string from `arm,cortex-r5`
to `arm,cortex-r5f`.

Signed-off-by: Patryk Koscik <pkoscik@antmicro.com>
2026-03-18 08:43:26 -05:00
Muhammed Asif
1940c1015c tests: drivers: counter: Added pic32cx_sg41 test support files
Added pic32cx_sg41_cult.overlay file for tc.
Added board support in main.c
Added an extra scenario to testcase.yaml

Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2026-03-18 08:42:58 -05:00
Muhammed Asif
8b1ea8934e samples: counter: pic32cx_sg61_cult: Added the overlay file
- Added overlay file for running the sample application

Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2026-03-18 08:42:58 -05:00
Muhammed Asif
0b34d87f0a boards: microchip: pic32cx_sg61_cult: Adds support for counter with tc
- Adds tc instance with counter support

Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2026-03-18 08:42:58 -05:00
Muhammed Asif
e7433f3d9b samples: counter: pic32cx_sg41_cult: Added the overlay file
- Added overlay file for running the sample application
 - Updated main.c to use tc instance for running it

Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2026-03-18 08:42:58 -05:00
Muhammed Asif
accf4a5241 boards: microchip: pic32cx_sg41_cult: Adds support for counter with tc
- Adds tc instance with counter support

Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
2026-03-18 08:42:58 -05:00
Vedant Malkar
e49a5c1bc2 Bluetooth: MCS: Remove the GATT include service when OTS is disabled
The BT_GATT_INCLUDE_SERVICE is always included in
BT_MCS_SERVICE_DEFINITION even when CONFIG_BT_OTS=n,
this fixes it such that it is only included when OTS is enabled.

Fixes zephyrproject-rtos#105345

Signed-off-by: Vedant Malkar <vedantitsme@gmail.com>
2026-03-18 08:42:34 -05:00
Seppo Takalo
474c6db093 drivers: modem: cellular: Close UART before updating baud rate
Some UART drivers (for example nrfx) might return -EBUSY, if we
try sequence of close->change baud->open without any delay.

Instead, close the UART pipe and wait for BUS_CLOSED event before
reconfiguring the baud rate.
Then wait for the timeout to pass, before continuing with dial script.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-03-18 08:42:02 -05:00
Jimmy Zheng
e2711d5f2d tests: drivers: wdt_basic_api: use dt_alias_exists for YAML filter
This test uses alias 'watchdog0' instead of label name.
Update YAML filter to use dt_alias_exists and moving this check to the
beginning of the filter expression for better understanding of scenario
requirements.

This fix is from PR #102950.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
Co-authored-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-18 08:40:59 -05:00
Jimmy Zheng
3041d51e62 samples: drivers: watchdog: use dt_alias_exists for YAML filter
This sample uses alias 'watchdog0' instead of label name.
Update YAML filter to use dt_alias_exists and moving this check to the
beginning of the filter expression for better understanding of scenario
requirements.

This fix is from PR #102950.

Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
Co-authored-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-18 08:40:59 -05:00
Jamie McCrae
529914b2f5 dts: vendor: nordic: Add bl_storage UICR partitions
Adds default partitioning bl_storage UICR areas which can be used
for bootloader storage purposes

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-18 08:40:04 -05:00
Jamie McCrae
e139161fc1 dts: arm: nordic: Add ranges property to UICR register
Allows using relative addresses for child nodes of these devices

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-18 08:40:04 -05:00
Yves Wang
e2c0dad4fb drivers: watchdog: nxp_s32: fix soft-lock unlock wait
Correct the syntax to check soft unlock status.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-18 08:39:33 -05:00
Yves Wang
255f069f00 drivers: clock_control: mc_cgm: accept SIRC clock requests
Add empty branch MCUX_SIRC_CLK in clock on to avoid incorrect return
value for drivers which use this clock.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2026-03-18 08:39:33 -05:00
Zhiyuan Tang
a557d2ccb8 soc: rtl87x2g: fix ROM ISR restore for direct ISRs and add irq_lock
This commit addresses two issues during ISR restoration:

1. Support IRQ_DIRECT_CONNECT: Compare the current RAM vector table
   against Zephyr's initial flash vector table (`_vector_start`)
   instead of hardcoding `_isr_wrapper`. This correctly identifies
   ROM-patched ISRs without falsely overriding Zephyr direct ISRs.
2. Prevent race conditions: Add `irq_lock()` and reorder
   `NVIC_EnableIRQ` to safely handle driver interrupts that might
   already be active during late initialization.

Note: There is a known limitation with this approach. If a user
registers a direct ISR on an IRQ that the ROM also registers, the
ROM's ISR will take precedence. However, this overlap is practically
rare as users do not typically override ROM-owned interrupts.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Zhiyuan Tang
222be8cf74 soc: rtl8752h: add essential SoC initialization
Add initialization of critical components for the RTL8752H
series.

Key initializations include:
- Realtek OS abstraction layer.
- Clock active mode settings.
- Power Management (PM).
- PHY  modules.
- Bluetooth controller ROM initialization.

Note: A mechanism is introduced to synchronize the RAM Vector Table between
Realtek's ROM code (which writes raw ISRs) and Zephyr's interrupt
management subsystem (sw_isr_table).

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Zhiyuan Tang
413767d636 tests: boards: realtek: adapt osif_msgq test for RTL8752H
The OSIF API signature for `os_msg_queue_create` differs between the
RTL8752H series and other supported SoCs (e.g., RTL87x2G). Specifically,
the RTL8752H implementation does not accept a queue name string as an
argument.

This commit adds a conditional check using `CONFIG_SOC_SERIES_RTL8752H`
to invoke the correct API variant. This ensures the test suite compiles
and runs correctly on both RTL8752H and RTL87x2G platforms.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Zhiyuan Tang
5ca420e2e0 modules: hal_realtek: refactor OSIF and add RTL8752H support
This commit refactors the Realtek OSIF (Operating System Interface)
implementation to support multiple SoCs within the Bee family and
introduces support for the RTL8752H series.

Previously, the OSIF implementation was tightly coupled with the
RTL87x2G series. To facilitate the addition of new SoCs, the
architecture has been restructured into a common layer and
SoC-specific layers:

1. Common Layer: The generic Zephyr wrapper implementations have
   been moved to `osif/common/osif_zephyr_impl.c`. This code is
   now shared across different Realtek SoCs.

2. SoC-specific Layer: The function pointer assignments (ROM patch
   initialization) are now separated into SoC-specific files
   (e.g., `osif_zephyr_patch.c`).

Based on this new architecture, the RTL8752H series support is added
by providing its specific patch initialization while reusing the
common Zephyr wrappers.

The file structure changes are as follows:
- generic wrappers: Moved to `osif/common/osif_zephyr_impl.c`
- RTL87x2G patch: Moved to `osif/rtl87x2g/osif_zephyr_patch.c`
- RTL8752H patch: Added in `osif/rtl8752h/osif_zephyr_patch.c`

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Zhiyuan Tang
5579b54389 manifest: update hal_realtek revision
Update the hal_realtek revision to support expanded features on
RTL875H series SoCs.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Khai Cao
a295755128 samples: subsys: ipc: openamp: Add support for ek_ra8d2
Add support sample app openamp for Renesas ek_ra8d2

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
9ef03c520f boards: renesas: move trng enablement to cm85-specific dts
The &trng node was enabled in the shared ek_ra8d2.dtsi, but it is
only referenced by the CM85 variant. This caused build failures on
the CM33 variant with '__device_dts_ord_DT_CHOSEN_zephyr_entropy_ORD'
undeclared errors across many test suites.

Move trng enablement to ek_ra8d2_r7ka8d2kflcac_cm85.dts so
it is only enabled for the CM85 variant that actually uses it

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
7432679b51 tests: drivers: mbox: Add support mbox_data for ek_ra8d2
Add support mbox_data for ek_ra8d2

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
5c6df0e1df soc: renesas: ra: Add Kconfig.sysbuild for second-core launcher
Add Kconfig.sysbuild for ek_ra8d2 second-core launcher

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
9e3a95a2a7 tests: drivers: counter: Add test support for ek_ra8d2 cm33
Add support for test app ``counter_basic_api`` on Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
983171da23 samples: drivers: counter: Add support alarm for ek_ra8d2 cm33
Add support sample ``alarm`` for Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
7a7078aa05 tests: drivers: comparator: Add support gpio_loopback for ek_ra8d2 cm33
Add support test app ``gpio_loopback`` for Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
dcb1301f28 tests: drivers: pwm: Add support pwm_loopback for ek_ra8d2 cm33
Add support test app ``pwm_loopback`` for Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
c7133c2b85 tests: drivers: Add support spi_loopback for ek_ra8d2 cm33
Add support test app ``spi_loopback`` for Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
e7ed70b00c tests: drivers: i2c: Add support i2c_api for ek_ra8d2 cm33
Add support test app ``i2c_api`` for Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
1cf7a441da tests: drivers: uart: Add support uart_async_api for ek_ra8d2 cm33
Add support test app ``uart_async_api`` for Renesas ek_ra8d2 cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
7dbf79f27b boards: renesas: Add support Renesas ek_ra8d2_r7ka8d2kflcac_cm33
Add support Renesas ek_ra8d2_r7ka8d2kflcac_cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
cf5ccb14e5 boards: renesas: remove duplicate nodes
Remove redundant node definitions for &port_irq12
and &port_irq13

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Khai Cao
f8382dc4c1 dts: arm: renesas: ra: Add support for Renesas r7ka8d2kflcac_cm33
Add support for Renesas r7ka8d2kflcac_cm33

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-18 08:38:02 -05:00
Axel Le Bourhis
d20e9a9484 drivers: flash: mcux: disable cache clear on mcxw70
On mcxw70, the flash cache is managed by the underlying driver from
hal_nxp. The method used in the soc_flash_mcux driver is not suitable
for this platform, and should be disabled.

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-03-18 08:37:20 -05:00
Axel Le Bourhis
d7912cf2e4 soc: nxp: mcxw70: enable BLE support
- Add NBU pinmux to configure HDI mode with external radio
- Define nbu_handler to the MU interrupt handler
- Enable TSTMR0 clock at init
- Enable connectivity framework, MCMGR, rpmsg-lite
- Enable MU driver when selecting NXP_RF_IMU
- Disable LPUART1 to avoid pin conflicts with radio interface

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-03-18 08:37:20 -05:00
Axel Le Bourhis
388fe4b4d8 dts: bindings: nxp,nbu: add pinctrl to support external radio
When using an external radio, we need to configure pins for HDI mode.
Since it's specific to NBU, we can add this control in the nxp_nbu
driver.

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-03-18 08:37:20 -05:00
Axel Le Bourhis
36dc5caac3 dts: mcxw71/mcxw72: factorize smu2 definition
Move the "ranges" property to the main smu2 definition.
This makes sure the smu2 properties are centralized at the same
location.

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-03-18 08:37:20 -05:00
Axel Le Bourhis
76789229e7 soc: mcxw70: define the shared memory on the device tree
Define a shared memory section in STCM, this shared memory is used
to transmit data to the NBU core.
This shared STCM section must be used through non-secure address range
because the NBU core can only access non-secure memory regions, and
the main core must reference non-secure addresses in the data shared
with the NBU core.

Since the MCXW70 doesn't have an SMU2, reworked the sections.ld file
to use a macro-based approach to determine the node label.
This allows to differentiate devices that have SMU2 from those that
don't, while reusing the same sections.ld file.
Use "stcm_shared" as node label for MCXW70.
Use node status in sections.ld since all regions are not available
on all SoCs.

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2026-03-18 08:37:20 -05:00
Tim Pambor
02672c5590 tests: drivers: disk: disk_access: add test for ftl disk driver
Add testcase and corresponding overlay for native_sim to test
the FTL (Flash Translation Layer) disk driver.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-18 08:36:45 -05:00
Tim Pambor
2d1bb4e729 modules: fatfs: support ftl disks when generating FF_VOLUME_STRS
Add disk names for zephyr,ftl-dhara disks to FF_VOLUME_STRS, so that
they are available for mounting.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-18 08:36:45 -05:00
Tim Pambor
29a68cd884 modules: dhara: Implement Dhara disk driver as Zephyr module
Zephyr has currently no flash translation layer implemented. This commit
adds the basic possibility to use Dhara as FTL in Zephyr. It is
implemented as disk driver that can be placed between a filesystem and a
flash driver.

Signed-off-by: Pascal Linder <pascal.linder@zuehlke.com>
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-18 08:36:45 -05:00
Pascal Linder
63b26574ba drivers: flash: simulator: Add extended operations
NAND flash translation layers require the flash extended operations API
for bad block management. Add it here without implementation to test an
FTL on the flash simulator.

Signed-off-by: Pascal Linder <pascal.linder@zuehlke.com>
2026-03-18 08:36:45 -05:00
Tim Pambor
765895861e drivers: flash: Add bad block management API extensions
Add extended operations to the flash API to support marking blocks
as bad and checking if a block is bad. This is necessary for
NAND flash devices, which can have bad blocks that need to be managed.

Signed-off-by: Pascal Linder <pascal.linder@zuehlke.com>
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-18 08:36:45 -05:00
Kai Cheng
77e1d6a86c Bluetooth: host: call bt_br_init() for Classic init in hci_init
When the controller supports BR/EDR and CONFIG_BT_CLASSIC is
enabled, call bt_br_init() to perform the full BR/EDR Classic
initialization (SSP mode, inquiry mode, local name, Class of
Device, etc.).

For non-Classic builds that still need BR/EDR buffer sizes,
gate the hci_read_buffer_size() fallback with
IS_ENABLED(CONFIG_BT_CONN) to make the build-time condition
explicit at the call site.

Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
2026-03-18 08:35:43 -05:00
Kai Cheng
8cec37d8ec Bluetooth: Classic: sync local name to BR/EDR in bt_set_name()
When CONFIG_BT_CLASSIC is enabled and the controller is ready,
push the updated device name to the BR/EDR controller via
bt_br_write_local_name() inside bt_set_name(). This ensures
runtime name changes are properly synchronized to the BR/EDR
transport.

Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
2026-03-18 08:35:43 -05:00