Commit graph

115817 commits

Author SHA1 Message Date
Sylvain Chouleur
a8b3238437 arm64: core: force data synchronization between context switch
This patch fixes memory corruption that can happen when running in
multi-thread and multi-core environment with heavy scheduling stress.

In SMP configuration, we must ensure that all thread's context is
stored before writing the switch_handle flag. Otherwise some of the
thread context writes could be delayed after another CPU begins to
schedule this thread which could lead to memory corruptions.

Signed-off-by: Sylvain Chouleur <schouleur@snapchat.com>
2025-05-26 11:54:13 +02:00
Lyle Zhu
71ef6c6979 Drivers: Bluetooth: H4: Use a semaphore to wake up HCI RX thread
There is an issue that the buffer cannot be allocated by the function
`read_payload()` in UART ISR context. Then the UART RX will be
disabled. The H4 driver hopes to get the receive buffer in the HCI RX
thread and then open the UART RX again. However, there is a situation
where the HCI RX thread is blocked in getting the received data
buffer. However, since the UARt RX has been disabled, the HCI RX
thread cannot get the received data buffer. Therefore, the RX thread
is always blocked here, causing the Bluetooth host to not work
properly.

Add a semaphore `rx.ready` to notify new received data buffer has
been added to H4 RX queue.

Wait for the semaphore `rx.ready` instead of H4 RX queue in HCI RX
thread.

Wake up the HCI RX thread when failing to allocate the RX buffer.

Fixes #89879.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-05-26 11:54:09 +02:00
Etienne Carriere
74056a7aed boards: st: stm32f0_disco: fix partition inline comment
Fix end offset value in inline comment of the internal partition node.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
785c454207 boards: st: fix STM32WL5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
a8430ef296 boards: st: fix STM32WB boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
0e8069e7e3 boards: st: fix STM32WBA boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
84add0da76 boards: st: fix STM32WB0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
2418d03869 boards: st: fix STM3U5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

Also remove a few spurious space characters.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
d9354ad48c boards: st: fix STM3U0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
9777242353 boards: st: fix STM3N6 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
cb09d19d19 boards: st: fix STM3MP1* boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
0a3526b6de boards: st: fix STM32L5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
37d545a52f boards: st: fix STM32L4 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
ea0eacebd6 boards: st: fix STM32L1 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
af3f64fba2 boards: st: fix STM32L0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
39a9fe9f59 boards: st: fix STM32H7* boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
135e0dd7a3 boards: st: fix STM32H5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
1aa8f51374 boards: st: fix STM32G4 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

By the way, also correct indentation in node stm32_lp_tick_source of
b_g474e_dpow1.dts.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
e8e3560ecf boards: st: fix STM32G0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
3782c24ad7 boards: st: fix STM32F7 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
721b3b8e39 boards: st: fix STM32F4 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
b6a3c0cf93 boards: st: fix STM32F3 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
41129ab7c7 boards: st: fix STM32F2 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
c217fc4c30 boards: st: fix STM32F1 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
c865aa5b39 boards: st: fix STM32F0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
8f02dc5633 boards: st: fix STM32C0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Yonas Alizadeh
440de0dde0 fs: nvs: fix invalid block compare when data CRC is enabled
When nvs_write is called, the nvs_flash_block_cmp is used to check if
the new data to be written matches the data already on flash. This check
always fail when CONFIG_NVS_DATA_CRC is enabled, caused by the
NVS_DATA_CRC_SIZE being added to the len parameter. The pointer to the
new data does not already have the CRC part added, while the data on
flash does, and the size to be compared includes CRC section.
By removing the addition of NVS_DATA_CRC_SIZE to the compare size, only
the data without CRC is compared, which will make the compare work in
both cases.

Signed-off-by: Yonas Alizadeh <yonas.alizadeh@alfalaval.com>
2025-05-26 09:19:54 +02:00
Sebastian Głąb
691816d213 tests: drivers: spi: spi_loopback: Test fast spi on slow GPIO port
Add test configuration where fast SPI instance operates at slow
GPIO port 2.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-05-26 09:19:45 +02:00
Jiawei Yang
623479cc3c Bluetooth: RFCOMM: Fix CR bit in DISC frame
The CR bit in DISC frames should be set as a command rather than a
response.
This patch fixes the rfcomm_send_disc function to correctly use
BT_RFCOMM_CMD_CR instead of BT_RFCOMM_RESP_CR when setting the CR bit in
the address field of DISC frames.

Signed-off-by: Jiawei Yang <jiawei.yang_1@nxp.com>
2025-05-26 09:19:35 +02:00
Camille BAUD
f06f6beecc boards: ai_wb2_12f: default to bflb_mcu_tool runner for flashing
Sets bflb_mcu_tool to be the tool used by default for flashing

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-26 09:19:26 +02:00
Camille BAUD
75972e0e21 tests: west_runners: Add bflb_mcu_tool to import test
Adds bflb_mcu_tool to import test

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-26 09:19:26 +02:00
Camille BAUD
f275463fee boards: bl604e_iot_dvk: default to bflb_mcu_tool runner for flashing
Sets bflb_mcu_tool to be the tool used by default for flashing

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-26 09:19:26 +02:00
Camille BAUD
fb937beb62 scripts: runners: Introduce bflb_mcu_tool runner
Introduces one of the official flash tools for bouffalolab platforms.

Co-authored-by: Gerson Fernando Budke <nandojve@gmail.com>
Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-26 09:19:26 +02:00
Camille BAUD
94f78a035b drivers: display: Fix Black White Red SSD16xx displays
This fixes SSD16xx tricolor displays being all red when using this driver.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-25 21:55:17 +02:00
Lucien Zhao
e70fef36e1 samples: net/secure_mqtt_sensor_actuator: replenish filter condition
The original filtering condition was only whether ambient-temp0
device existed or not. However, registering ambient temp0 does
not mean that NET-related devices have been enabled.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-05-25 21:55:07 +02:00
Lucien Zhao
0baa6bc37b sample: sensor: Add support for temperature sensor on RT700 cm33_cpu1
Add support for p3t1755 temperature sensor on RT700 cm33_cpu1 core
Add net driver condition to exclude rt700 platform

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-05-25 21:55:07 +02:00
Lucien Zhao
84fb8700ee dts: arm: nxp: add i3c2/3 instances for cm33_cpu1
add i3c2/3 instances for cm33_cpu1

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-05-25 21:55:07 +02:00
Lars-Ove Karlsson
64ac57abcb arch: arm: Added IAR support to ARM irq header macros
Added IAR support to the macros ARCH_ISR_DIAG_OFF and
ARCH_ISR_DIAG_ON and updated the IAR warning macros.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2025-05-24 18:04:20 +02:00
Lars-Ove Karlsson
8cfd84986d arch: arm: mpu: Fix alignment check for iccarm
The IAR C/C++ compiler can't resolve a cast on a pointer
to a constant expression. This is used in the
_ARCH_MEM_PARTITION_ALIGN_CHECK macro.

This fix checks if an IAR compiler is used and disables the
start-alignment check if it is.

This was already fixed for v7 in rev d34d554d.

Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
2025-05-24 18:04:09 +02:00
Miguel Gazquez
a9f2a19b82 boards: Add support for the board CH32V303EVT
Adds support for the CH32V303EVT board, based on the CH32V303 soc.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-05-24 18:03:53 +02:00
Miguel Gazquez
be9549be60 soc: Add support for the WCH CH32V303
Adds support for building an image for the ch32v303.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-05-24 18:03:53 +02:00
Miguel Gazquez
2b91c467f2 modules: Update hal_wch
Update hal_wch.

As the hal upstream changed name, there is now a name conflict.
Rename ch32fun.h to hal_ch32fun.h to fix this conflict.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-05-24 18:03:53 +02:00
Andre Morishita
265cfb45a8 boards: variscite: Adjust index.rst
Adjust hierarchy level in index.rst of Variscite boards.

Signed-off-by: Andre Morishita <andre.m@variscite.com>
2025-05-24 09:37:46 +02:00
Andre Morishita
d3ecec1e2c boards: variscite: Add Variscite DART-MX93 board
Add Variscite DART-MX93 board support. This SoM is based on NXP's
i.MX93 SoC. It includes Cortex-A55 and Cortex-M33 support.

Signed-off-by: Andre Morishita <andre.m@variscite.com>
2025-05-24 09:37:46 +02:00
Benjamin Cabé
aa3af71eb4 shields: add shield.yml for st_b_cams_imx_mb1854
The PR for this shield was in-flight while shield.yml was being introduced.
Add the missing file so that this shield is properly listed in the
board catalog.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-24 06:01:13 +02:00
Parthiban Nallathambi
b2de146ea8 boards: ti: lp_mspm0g3507: fix doc to use code-block
fix documentation to use code-block for west commands to flash.

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2025-05-24 06:01:06 +02:00
Parthiban Nallathambi
18360d574b dts: arm: ti: mspm0: fix typo
fix typo, s/oscialltors/oscillators/

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2025-05-24 06:01:06 +02:00
Sreeram Tatapudi
c4866ec68a soc: cyw20829: Initial integrate Cypress MCUBoot for 20829
Added custom mcuboot cmake for sign/encrypt by using cysecuretools

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
2025-05-24 06:00:57 +02:00
Sreeram Tatapudi
968704e6b7 soc: cyw20829: add support of Secure LCS
Enable support of SECURE LCS stage. In this stage, the protection
state is set to “secure”. A secured device will boot only when the
authentication of its flash boot and application code succeeds

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2025-05-24 06:00:57 +02:00
Sreeram Tatapudi
7ef83fca97 soc: cyw20829: Use python script to generate app header
Instead of using app_header.c generate the app header using python
script and merge with final binary post build

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2025-05-24 06:00:57 +02:00