Commit graph

116973 commits

Author SHA1 Message Date
Jamie McCrae
f8717d756b doc: hardware: porting: soc_porting: Fix cluster typo
Fixes 2 minor issues in the documentation

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-06-10 08:48:13 +02:00
sudarsan N
1d51942c50 drivers: adc: fix overflow and div-by-zero in adc_ad7124_odr_to_fs
Add check for odr <= 0 and cast odr to uint32_t before multiplication
to avoid integer overflow and division by zero.

Fixes: CID 489220

Signed-off-by: sudarsan N <sudarsansamy2002@gmail.com>
2025-06-10 08:48:05 +02:00
Tom Hughes
6f433a93ab arch: riscv: core: Add support for CONFIG_ISR_TABLES_LOCAL_DECLARATION
Adjust the linker scripts to use the same setup as ARM for
CONFIG_ISR_TABLES_LOCAL_DECLARATION.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-06-10 08:47:51 +02:00
Tahsin Mutlugun
836b6c2ca4 tests: drivers: dma: Add MAX32657 ns board overlay files
Enable 'chan_blen_transfer' and 'loop_transfer' tests for MAX32657EVKIT
nonsecure variant.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-06-10 08:47:42 +02:00
Furkan Akkiz
5ddbb22478 tests: drivers: dma: Add MAX32657 boards overlay files
Enable 'chan_blen_transfer' and 'loop_transfer' tests for MAX32657EVKIT.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-06-10 08:47:42 +02:00
Furkan Akkiz
d448e92848 boards: adi: max32657evkit: Enable DMA for MAX32657 boards
Add DMA into '.yaml' files.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-06-10 08:47:42 +02:00
Furkan Akkiz
e5fb161de4 dts: arm: adi: Add MAX32657 DMA instances and binding file
Add DMA0 and DMA1 nodes to MAX32657 dtsi file and add binding file
for DMA slots.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-06-10 08:47:42 +02:00
Tahsin Mutlugun
f7d315cf49 drivers: dma: max32: Handle channel index conversion in HAL
Handle SoC-level differences in channel numbering logic in HAL.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2025-06-10 08:47:42 +02:00
Furkan Akkiz
85ef719eb2 drivers: dma: Add a wrapper function to fix build error
For MAX32657, 'MXC_DMA_EnableInt' function requires DMA instance
and this causes build error. To fix this, created wrapper version
of this function and update driver with it.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-06-10 08:47:42 +02:00
jacob kung
2fe357a592 drivers: dma: atcdmac300: add flush chain_block when Data cache is enabled
Add cache flush to ensure dma_chain is written back to memory
for DMA coherence

Signed-off-by: jacob kung <jacob.kung@egistec.com>
2025-06-10 08:47:34 +02:00
Qiankun Li
f31a411770 drivers: wifi: nxp: Modify shim driver to support btwt changes.
Align struct wlan_btwt_config_t in shim driver
with nxp wifi driver.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-06-10 08:47:25 +02:00
Qiankun Li
448b787c82 net: l2: wifi: Modify btwt_setup usage.
Soft ap supports WIFI_BTWT_AGREEMENT_MAX BTWT sessions.
The BTWT parameters for each session can be different.

The current usage can only set one set of parameters.
All sessions follow this set of parameters.

Add enhance code to support setting different
BTWT parameters for every sessions.

Usage:
wifi twt btwt_setup <sta_wait> <offset>
<twtli> <session_num>
<id0> <mantissa0> <exponent0> <nominal_wake0>
<id1> <mantissa1> <exponent1> <nominal_wake1>
<idx> <mantissax> <exponentx> <nominal_wakex>
The total number of '0, 1, ..., x' is session_num

For example:
wifi twt btwt_setup 0 0 0 2 0 112 10 128 1 32 10 64

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-06-10 08:47:25 +02:00
Van Petrosyan
8d2010e1e1 sensor: sht4x: add device power management support
Registers driver with pm_device_driver_init(). Peform
software reset on TURN_ON. Added a small delay after
power-up

Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
2025-06-09 16:45:30 -07:00
Nimish Tambe
936d0278bd posix: fnmatch: fix bugs in fnmatch(), see issue #55186
all tests in tests/posix/c_lib_ext/src/fnmatch.c seem to pass
except one (which is still commented)

Signed-off-by: Nimish Tambe <nimisht@gmail.com>
2025-06-09 17:05:40 -05:00
Al Semjonovs
452fe47765 arch: Add config for downstream toolchains to support local ISR tables
Add config for local toolchains to indicate support for local
declaration of ISR tables.

Signed-off-by: Al Semjonovs <asemjonovs@google.com>
2025-06-09 15:04:25 -07:00
Benjamin Cabé
ec01159440 drivers: clock_control: wch_rcc: remove duplicate reg write
Removed a redundant register write to FLASH->ACTLR

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 15:03:20 -07:00
Joel Holdsworth
08d496b5f5 usb: device_next: Disassociate USB contexts from classes
The usbd_class_remove_all removes all registered classes from a
configuration. However, it previously left the uds_ctx back-pointer to the
usdb_context set, meaning that if the class is re-registered with the
usbd_register_class function, this fails with the error message "Class
registered to other context at different speed" due to uds_ctx being set to
another context.

This patch corrects the issue by clearing udc_ctx after usbd_class_shutdown
has been called.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
2025-06-09 15:02:55 -07:00
Kesavan Yogeswaran
d5fc087690 cmake: Fix warning if a Zephyr library is created in app-mode
zephyr_append_cmake_library attempts to warn the user if a user calls it
to create a Zephyr library while the build is in application mode. At
that stage of the build, the list of Zephyr libraries has already been
processed so the function is effectively a no-op.

This heuristic used to determine if the build was in kernel mode or
application mode checked for the presence of the zephyr_prebuilt target.
This check was broken by a previous commit that renamed this target.

This commit fixes the heuristic by checking for the zephyr_pre0 target.

This was tested by calling zephyr_append_cmake_library from some
application build files, building the application, and seeing the
warning only for the call I added. No warnings were printed for any
Zephyr internal libraries.

Link: https://github.com/zephyrproject-rtos/zephyr/pull/35887
Link: https://github.com/zephyrproject-rtos/zephyr/pull/39959

Signed-off-by: Kesavan Yogeswaran <hikes@google.com>
2025-06-09 15:02:01 -07:00
Benjamin Cabé
5cdcaf7b7c drivers: sensor: veaa_x_3: fix broken config initialization
Fixed typos in the preprocessor macros for pressure range initialization
Unfortunately this particular configuration is not covered in CI since
build_all test has pressue-range "D2" and the broken code was concerning
"D9"

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 15:00:26 -07:00
Robert Lubos
00bd154d84 samples: net: echo_client/server: Lower log level for OpenThread
OpenThread stack prints just too much data at the info log level,
completely obfuscating the output of the sample, which prints a lot on
its own. Therefore, lower the log level for OT logs.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-06-09 14:59:35 -07:00
Robert Lubos
c63ca134c6 net: openthread: Fix tasklet error printed on boot
OpenThread tries to signal pending tasklets during initialization, which
currently generate an error, as the work queue configured to handle
tasklets is initialized later. This is not a fatal issue, as the
initialization code on the Zephyr side triggers a work item immediately
after the work queue was initialized, but it doesn't look good to have
errors printed on boot.

Therefore, move the work queue initialization before the OpenThread
stack initialization, so that tasklets triggered from OT side can be
signalled properly w/o an error.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-06-09 14:59:35 -07:00
Quy Tran
452f2b150c drivers: spi: Update unsupported bit width in SPI driver
Add condition to check the unsupported bit width for Renesas
RA spi and spi_b driver

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-06-09 14:58:30 -07:00
Andreas Wolf
dbdfd96c61 drivers: spi: spi_pico_pio: Fix data size issue
To convey the correct data size, use the 'data->dfs' value instead
of '1' when moving the SPI context to the next buffer.

Signed-off-by: Andreas Wolf <awolf002@gmail.com>
2025-06-09 14:56:34 -07:00
Benjamin Cabé
67cfd32e04 drivers: input: esp32: fix threshold calculation
Fix a bug in the touch threshold calculation where channel_num was
incorrectly used instead of channel_sens.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:54:30 -07:00
Benjamin Cabé
3d97b76438 drivers: input: esp32: fix reference voltage assignment
Fixed a copy-paste error where `refl` configuration value was not
properly assigned.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:53:22 -07:00
Benjamin Cabé
c83fbaee14 drivers: pwm: remove duplicate macro definition
Removed duplicate definition of TIM_CC1E macro

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:52:45 -07:00
Benjamin Cabé
9d785706df pinctrl: raspberrypi: rp2350: fix copy-paste error
correct the entry for PWM_3B_P23

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:52:18 -07:00
Benjamin Cabé
3d59a44ab9 drivers: sensor: bma4xx_emul: add missing break statement
Add a missing break statement in set_channel function

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:51:47 -07:00
Benjamin Cabé
1350918ac2 drivers: gpio: cc23x0: return negative error codes
fixed a couple occurrences of not returning -errno.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:51:17 -07:00
Benjamin Cabé
f72942067a drivers: led: fix LED_BRIGTHNESS_MAX typo
Renames LED_BRIGTHNESS_MAX to LED_BRIGHTNESS_MAX in led.h and all
in-tree users of the macro.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:50:33 -07:00
Benjamin Cabé
036a76a4cb drivers: clock_control: esp32c6: fix modem clock source selection
Properly default to MODEM_CLOCK_LPCLK_SRC_RC_SLOW in modem LP
clock source selection

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:49:38 -07:00
Benjamin Cabé
ba17577d7c drivers: sensor: adi: adxl362: change return type of ret variable
Updated the return type of the 'ret' variable in the
adxl362_attr_set_thresh function to int

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:47:41 -07:00
Benjamin Cabé
e744c53fc0 drivers: serial: fix Rx pin configuration in lpuart_esp32
Updated the Rx pin configuration in the lpuart_esp32 driver to fix a
typo and use correct MUX function.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:46:35 -07:00
Benjamin Cabé
48566d834d drivers: sensor: mmc56x3: add error handling in mmc56x3_chip_init
The return code of several initialization functions was being ignored.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:45:27 -07:00
Benjamin Cabé
5fd565e6b4 drivers: sensor: mmc56x3: add missing return statement
Added a missing return statement in the mmc56x3_decoder_get_size_info
causing incorrect size calculation for single channel data

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:45:27 -07:00
Benjamin Cabé
854713cc88 drivers: sensor: fix sensor_handlers checks
z_vrfy_sensor_reconfigure_read_iodev function was performing a
a K_SYSCALL_MEMORY_READ check using an incorrect structure type.

z_vrfy_sensor_get_decoder wasn't properly checking output
parameter `decoder`

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:44:36 -07:00
Benjamin Cabé
fd7c3b4c1c drivers: sensor: paa3905: fix condition in SQE acquisition check
Corrected the logical operator (||, not |) in the condition that checks
for successful acquisition of RTIO SQEs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:43:42 -07:00
Benjamin Cabé
df2179f2a4 drivers: sensor: icm45686: fix condition in SQE acquisition check
Corrected the logical operator (||, not |) in the condition that checks
for successful acquisition of RTIO SQEs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-09 14:43:42 -07:00
Pavel Maloletkov
26cf7a0064 net: http: fix __z_http_service_define fields incorrect order
Fixes an error:
error: designator order for field 'http_service_desc::backlog'
does not match declaration order in 'const http_service_desc'
When compiled for C++

Signed-off-by: Pavel Maloletkov <pavllick@gmail.com>
2025-06-09 14:43:04 -07:00
Muzaffar Ahmed
918d76918f drivers: wifi: siwx91x: Fix TWT wake interval unit conversion
Fixed an incorrect TWT wake interval unit conversion (256 was
incorrectly swapped with 1024)

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
2025-06-09 14:41:20 -07:00
Martin Hoff
91f4082a52 drivers: serial: ns16550: clock subsys correction
Fix clock subsys property selection when having multiple uart device
that uses ns16550 driver.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-06-09 14:40:36 -07:00
Alessandro Manganaro
bbef47fc56 drivers: flash: stm32wba: fix build issue when BLE enabled
Specific flash driver is used for stm32wbax when ble is
enabled. A simple typo error was fixed to properly build
all the samples where flash and ble are enabled,
such as the peripheral one.

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2025-06-09 14:39:34 -07:00
Robin Kastberg
0fc490956b iar: linker: Do --whole_archive linking
Instead of getting names of all object files, link
against libraries using `--whole_archive`
Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
2025-06-09 14:37:05 -07:00
Raffael Rostagno
8ed4d044d1 tests: dma: esp32c2: esp8684: Add test config
Add test config for chan_blen_transfer suite.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-06-09 14:35:51 -07:00
Raffael Rostagno
04cf4e1389 boards: esp8684_devkitm: Add DMA indication
Add DMA support indication to board's YAML file.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-06-09 14:35:51 -07:00
Raffael Rostagno
0dd3274a92 dts: esp32c2: esp8684: Add GDMA support
Add GDMA peripheral to device tree.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-06-09 14:35:51 -07:00
Sudan Landge
46a7b290e5 doc: arm: MPS4 Corstone-320
Add documentation for MPS4 board.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-06-09 14:35:12 -07:00
Sudan Landge
feb8f7766e tests: update for MPS4
MPS4, similar to MPS3 Corstone-310, splits code between DTCM and SRAM
and thus requires similar handling.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-06-09 14:35:12 -07:00
Sudan Landge
97c501f0f3 modules: ethos_u: arm: update for MPS4
Update support for MPS4 which has default 256 MACs as per FVP.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-06-09 14:35:12 -07:00
Sudan Landge
5a3c4941a2 pinctrl: add support for mps4
Add MPS4 pinctrl support by referring to
`mps4/common/partition/platform_base_address.h`
from TF-M's main branch.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-06-09 14:35:12 -07:00