Commit graph

126,787 commits

Author SHA1 Message Date
Tom Burdick
9c27d72922 rtio: Add a context pool
Adds a context pool that can be used when a number of threads may be
dynamically created to use with RTIO. While the pool has a small cost to
it, the cost of verifying a statically declared kobject likely makes it
worth avoiding dynamically allocating these with the typical
kobject_alloc method. Instead this arena style pool of objects can be
used where the kobject validation uses the gperf hash created at build
time.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-08-22 16:45:53 +02:00
Sebastian Głąb
80ab4b8100 boards: nordic: nrf54l15dk: Extend ext memory node with reset GPIO
Extend external memory node with 'reset-gpios' property.
When this property is defined, driver will reset
the memory at startup.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-08-22 14:51:02 +02:00
Benjamin Cabé
71722b2d40 include: drivers: espi: doxygen comments for espi_evt_data_pvt
follow up to commit 5e3f1dbaa that introduced espi_evt_data_pvt without
full doxygen comments for it.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 14:50:54 +02:00
Mario Paja
82ea32bd6e dts: st: use dma defines to describe sai dma configs
Use DMA defines to describe SAI DMA configuration.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-08-22 14:50:47 +02:00
Pavel Vasilyev
50928fc517 bluetooth: host: remove bt_ prefix from internal functions
Remove the bt_ prefix from internal functions to avoid confusion when
reading code.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-22 14:50:38 +02:00
Pavel Vasilyev
dfe05dd0d7 bluetooth: host: prefix API functions with bt_
Prefix API functions of a module with bt_ to avoid confusion when
reading code.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-22 14:50:38 +02:00
Pavel Vasilyev
c21e613fa9 bluetooth: host: mark internal functions and variables as static
Mark functions and variables as static when not used outside a unit.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-08-22 14:50:38 +02:00
Marek Porwisz
c846939548 net: openthread: Fix exiting diag when transmission is ongoing
Crash was observed if "diag stop" was invoked during the transmission.
The issue was caused by an update to otPlatRadioSleep that made it
compilant with the documentation and not allowing direct Transmit to
Sleep transition.
The transmission result was forwarded to OpenThread making it crash due
to an invalid state.

Signed-off-by: Marek Porwisz <marek.porwisz@nordicsemi.no>
2025-08-22 14:50:24 +02:00
Benjamin Cabé
f7f84f0a46 include: drivers: misc: Add doxygen docs for NXP FlexIO driver
Add missing doxygen docs for the NXP FlexIO driver and "mount" into the
Misc. drivers doxygen group.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:57:03 +02:00
Mario Paja
c83703c30f samples: i2s: output: add nucleo_n657x0
Add nucleo_n657x0 in samples/drivers/i2s/output

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-08-22 12:56:57 +02:00
Mario Paja
d9aacfa037 drivers: i2s: add sai support for stm32n6xx
This commit adds specific DMA configuration for STM32N6xx.
STM32N6xx uses GPDMA for SAI as STM32U5xx/U3xx/H5xx/H7RS etc.
In constrast to these series, STM32N6xx DMA requires a secure
and privileged channel.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-08-22 12:56:57 +02:00
Mario Paja
3ef3de0d78 dts: st: n6: add SAI1 A/B & SAI2 A/B nodes
Add SAI1 & SAI2 nodes to STM32N6xx series

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-08-22 12:56:57 +02:00
Guillaume Gautier
12ce564915 boards: st: nucleo_c031c6: use asynchronous clock for adc
Use an asynchronous clock with an increased prescaler value for the ADC of
the Nucleo C031C6 so that the adc_sequence sample runs correctly.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-08-22 12:45:01 +02:00
Henrik Brix Andersen
04f88f2be1 samples: boards: st: backup_sram: switch to Zephyr cache management API
Switch the STM32 Backup SRAM sample to use the Zephyr cache management API.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-22 12:38:20 +02:00
Benjamin Cabé
87138ea36e include: drivers: flash: andes: fix doxygen for Andes XIP flash exops
Use proper Doxygen commands so that 100% of the
andes_flash_xip_api_ex.h header is documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
bf6b2366c7 include: drivers: flash: npcx: fix doxygen for NPCX flash exops
Use proper Doxygen commands so that 100% of the
npcx_flash_api_ex.h header is documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
aa8e51622b include: drivers: flash: ra: fix doxygen for Renesas RA flash exops
Use proper Doxygen commands so that 100% of the
ra_flash_api_extensions.h header is documented.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
12c705e65b include: drivers: flash: rts5912: fix doxygen for rts5912 flash exops
Use proper Doxygen commands so that 100% of the rts5912_flash_api_ex.h
header is documented.

Note that this uncovers weird usage of in vs. out parameters in the
various functions and might be worth a cleanup as a follow-up.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
d990c20851 include: drivers: flash: stm32: fix doxygen for stm32 flash exops
Use proper Doxygen commands so that 100% of the
stm32_flash_api_extensions.h header is documented.
Removed unnecessary #ifdefs since enums needed not to be guarded from
declaration in the context of the header file.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Benjamin Cabé
f0f4198cc0 include: drivers: flash: Add Doxygen group for flash exops
Add a new Doxygen group for vendor-specific extended operations so that
they can all be properly documented and show up in one place.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 12:38:11 +02:00
Jun Lin
b30d2ac07c ec_host_cmd: shi: npcx: change log level for some error messages
It was observed in a project that when an error transaction occurs,
printing the error message can delay resetting the SHI state machine and
initializing the output buffer, which may cause the subsequent
transaction to fail, especially during stress tests involving heavy host
command communication.
This commit changes some error log level from ERR to DBG to prevent the
condition above from happening.
Also change the default debug level for the SHI driver to LOG_LEVEL_ERR.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2025-08-22 12:37:17 +02:00
Jakub Zymelka
20cb820648 drivers: adc: nrfx_saadc: Fix for negative samples correction
Increment pointer only when channel was selected.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-08-22 12:37:06 +02:00
Anthony Williams
7293068571 drivers: flash: nrf_qspi_nor: Implement fix for NRF5340 Errata 159
Add a workaround for `NRF53_ERRATA_159_ENABLE_WORKAROUND`
instead of simply printing an error and failing the transaction.

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-08-22 12:36:27 +02:00
Mathieu CHOPLAIN
4f18ccd73b tests: ram_context_for_isr: exclude STM32C0 boards
The test attempts to register an ISR for an IRQ
used by a device driver on this platform.
This breaks builds of the test and makes CI red.

Temporarily exclude all C0-based platforms from
the test until a clean solution is implemented.

Signed-off-by: Mathieu CHOPLAIN <mathieu.choplain@st.com>
2025-08-22 12:36:18 +02:00
Lyle Zhu
f772e3f21d tests: Bluetooth: Add test case test_sdp_discover_with_range
Add a test case test_sdp_discover_with_range to test the ssa request
with attribute ID range with the following test steps.
Step 1, Discover all included attribute IDs,
Step 2, Set the start of range from 0 to (max value + 9) of the
        discovered attribute ID,
Step 3, Set the end of range from start of range to (max value + 9)
        of the discovered attribute ID.
step 4, Send SSA request with the specific attribute ID range,
Step 5, check the discovery result according to the range,
Step 6, repeat step 4 - 5 until the range to
        (max value + 9, max value + 9).

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-22 12:36:09 +02:00
Lyle Zhu
de0b53578a Bluetooth: SDP: Fix ssa discovery issue caused by setting range
If the range of the service search attribute request is set and the
start of the range is not 0x0000, the response data of the request is
not valid. It is caused by the data element sequence has not be added
to response data. The client cannot parse the response data properly.

The root cause of this issue is that the total length of service
record will be added only when adding the first attribute of service
record.

Fix the issue by reset the `state.last_att` and `state.last_att_index`
if the index of current record is not same with `state.current_svc`.

And do not update `state.last_att`, `state.last_att_index`, and
`state.current_svc` in the function `select_attrs()`.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-22 12:36:09 +02:00
Lyle Zhu
bb159e9d08 Bluetooth: SDP: Fix issue that RX buf is used for others discovery
In current implementation, the received buffer is incorrectly used for
other SDP discover requests.

Release the RX buffer when the SDP discovery is done. And allocate the
new RX buffer from the pool of the new SDP discovery request.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-22 12:36:01 +02:00
Tanguy Raufflet
1ab9ef8c3a stm32mp257f_ev1_stm32mp257fxx_m33.dts: add spi node
This commit adds the spi3 node to the device tree for the
STM32MP257F-EV1 board. This node corresponds to the spi exposed by the
GPIO expansion connector [1].

[1]: https://wiki.st.com/stm32mpu/wiki/STM32MP257x-EV1_-_hardware_description

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2025-08-22 12:35:56 +02:00
Tanguy Raufflet
769219b778 boards: st: stm32mp257f_ev1_stm32mp257fxx_m33.yaml: update documentation
The SPI is now supported.

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2025-08-22 12:35:56 +02:00
Tanguy Raufflet
eb0f0530eb dts: arm: st: stm32mp2_m33.dtsi: add spi nodes
Add SPI nodes in non-secure context to dtsi.

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2025-08-22 12:35:56 +02:00
Tanguy Raufflet
9532ee7803 drivers: clock_stm32_ll_mp2: add spi clock
Add SPI clocks rate reading to the STM32MP2 clock driver.

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2025-08-22 12:35:56 +02:00
Tanguy Raufflet
786d770b46 dt-bindings: stm32mp2_clock.h: add clock for spi peripherals
Add clock bindings for SPI peripherals for the STM32MP2 series.

Signed-off-by: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
2025-08-22 12:35:56 +02:00
Taeyoun Park
cb4c836e84 boards: st: Enable CAN1 and CAN2 on nucleo_f207zg
Enable CAN1 and CAN2 in nucleo_f207zg.dts. Update supported
features in YAML and the board documentation accordingly.

Signed-off-by: Taeyoun Park <nvnv0422@gmail.com>
2025-08-22 12:35:50 +02:00
Taeyoun Park
7ccbd9f396 dts: arm: Add CAN1 and CAN2 nodes to stm32f207
Add CAN1 and CAN2 device tree nodes for STM32F207

Signed-off-by: Taeyoun Park <nvnv0422@gmail.com>
2025-08-22 12:35:50 +02:00
Krzysztof Chruściński
5e838284ab drivers: serial: nrfx_uarte: Add support for device deinit
Add device deinit function. Support is optional as it is not widely
used and it enables pinctrl sleep state so it impacts memory footprint.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-08-22 12:35:42 +02:00
Krzysztof Chruściński
4b374ec7f5 drivers: pinctrl: Allow keeping pinctrl sleep state
When PM or PM_DEVICE is enabled pinctrl sleep state is using for
device suspension. However, there are cases where power management is
not used but we still want to be able to put pins to sleep state, e.g.
device deinit.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-08-22 12:35:42 +02:00
Garrett L. Ward
d8d90c087b scripts: west: runners: stm32cubeprogrammer: fix path lookup on macOS
On Windows and Linux, the stm32cubeprogrammer runner will use
STM32_Programmer_CLI from PATH if it is available, but this was not
implemented on macOS. Add PATH lookup for macOS as well, using the same
approach as Windows and Linux.

Fixes zephyrproject-rtos/zephyr#93056

Signed-off-by: Garrett L. Ward <glward@glward.net>
2025-08-22 12:35:34 +02:00
Jake Greaves
7ae90a6ae4 drivers: clock_control: STM32U5XX wake up clocks
Disable wake-up source clocks for STM32U5XX if not enabled by DTS.

Signed-off-by: Jake Greaves <jake.greaves@analog.com>
2025-08-22 12:35:25 +02:00
Benjamin Cabé
bd98c836eb include: drivers: video: doxygen fixes for video-controls.h
A bit of doxygen love to this header to improve documentation coverage,
mainly focusing on missing documentation for a few enumerations, as well
as making sure javadoc-style comments are used where appropriate.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-22 09:45:57 +02:00
Mario Paja
c70aaee863 drivers: i2s: stm32_sai fix drain and stop of tx stream
Fix two issues with the SAI TX Stream.

1. Drain command does not release the last memory buffer
2. TX Stream status does not change to READY after STOPPING

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-08-22 09:45:51 +02:00
CHEN Xing
ed5b9cffd2 drivers: counter: sam_tc: Big fix for alarm 1
Issue: the alarm 1 do not generate interrupt
There are three compare registers in a SAM TC channel:
RA --> alarm 0
RB --> alarm 1
RC --> top_value
By default the RB/TOIB was configured as an input and no longer
generates interrupt.
Set the direction of TIOB to output for alarm 1 interrupt.

Fixes zephyrproject-rtos/zephyr#85018

Signed-off-by: CHEN Xing <xing.chen@microchip.com>
2025-08-22 09:45:41 +02:00
Keith Packard
cc93349925 west: Add cmsis-dsp fix for shifting by negative amounts
This patch has been accepted upstream https://github.com/ARM-software/CMSIS-DSP/pull/265 and
into the Zephyr module https://github.com/zephyrproject-rtos/cmsis-dsp/pull/7

This PR is ready for review and merging.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-08-22 09:45:26 +02:00
Yves Wang
066a2f472f tests: watchdog: Add nxp mcxn4x and ke1xz for ewm
Support frdm_mcxn947 and frdm_ke17z for watchdog reset_none_ewm

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-08-22 09:45:18 +02:00
Yves Wang
d7b219cc34 dts: nxp: add ewm for mcxnx4x and ke1xz
Add ewm peripheral for nxp mcxnx4x and ke1xz.
Attach xtal32k to ewm for frdm_mcxn947.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-08-22 09:45:18 +02:00
Yves Wang
201f70bfa9 drivers: watchdog: Make clock divider optional
Some SoCs did not provide ewm clock divider

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-08-22 09:45:18 +02:00
Andrej Butok
9a48044906 boards: nxp: mimxrt1060: fix flash module type for Rev. C.
- Fixes the flash module type used for MIMXRT1060-EVKC.
  It has the 16MB w25q128jw flash module
- Fixes flash driver initialization failure for MIMXRT1060-EVKC.
- Older MIMXRT1060-EVK/EVKB have the 8MB is25wp064 flash module.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-08-22 06:53:20 +02:00
Neil Chen
e1210ba709 boards: nxp: frdm_mcxa156: Add arduino_gpio for frdm_mcxa153 board
Support arduino_gpio example for NXP frdm_mcxa153 board.
Test using tests/drivers/gpio/gpio_basic_api.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-08-22 06:53:12 +02:00
Neil Chen
183542baff driver: gpio: update gpio_mcux.c driver
GPIO interrupts do not work on MCXA, MCXA has ICR register but feature
FSL_FEATURE_GPIO_HAS_INTERRUPT_CHANNEL_SELECT value is 0, can't only use
this feature to support ICR. So adjust feature judgment.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-08-22 06:53:12 +02:00
Javier Santos
09d79795e1 boards: nxp: frdm_mcxa156, frdm_mcxa166, frdm_mcxa276: fix led2 color
The red LED repeats twice, so it changes to blue.

Signed-off-by: Javier Santos <jasr93@outlook.es>
2025-08-22 06:53:02 +02:00
Declan Snyder
ee960a819e dts: nxp: rt7xx: Use DT spec recommended node names
Use node names as recommended by DT spec.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-08-22 06:52:51 +02:00