Commit graph

16700 commits

Author SHA1 Message Date
Nithin Ramesh Myliattil
70a97a8222 Bluetooth: BAP: Add control point cbs to BASS
For the control point operations, add/modify/
remove source, callbacks are added so that Application
can decide whether to accept/reject the control point
operations.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
2025-05-14 14:15:51 +02:00
Emil Gydesen
615409b349 tests: Bluetooth: Audio: Remove dependency on host mocks
Removes the dependency on the host mocks for LE Audio tests.
This is done by copying the missing mocks for assert into
the audio mocks, and then always including ztest.h.

The inclusion of ztest.h is due to the fact that
arch/cpu.h does not have an appropriate header file for
ztest, and some header files depend on ARCH_STACK_PTR_ALIGN
which is usually defined by those headers in cpu.h. However
ztest.h does define this value as well, and thus needs
to be included always.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-14 14:10:02 +02:00
cyliang tw
3a4e12899c tests: drivers: pwm: pwm_loopback: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-05-14 11:04:17 +01:00
Furkan Akkiz
13a36718fa tests: drivers: Enable new test for MAX32650 boards
This commit enables following tests for MAX32650EVKIT and MAX32650FTHR:
- counter/counter_basic_api
- dma/chan_blen_transfer
- dma/loop_transfer
- i2c/i2c_target_api (only for MAX32650EVKIT)
- spi/spi_loopback

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
Signed-off-by: Burak Babaoglu <burak.babaoglu@analog.com>
2025-05-14 11:03:22 +01:00
Hao Luo
ba52a93ac9 drivers: adc: Add support for Apollo510 ADC
This commit adds support for Apollo510 SoC in ambiq adc driver

Signed-off-by: Hao Luo <hluo@ambiq.com>
2025-05-14 09:11:17 +02:00
Chris Friedt
3c7e43f4e2 tests: posix: add posix_clock_selection testsuite
Add a testsuite for the POSIX_CLOCK_SELECTION Option Group which
consists of clock_nanosleep(), pthread_condattr_getclock(), and
pthread_condattr_setclock().

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-13 22:23:21 -04:00
Chris Friedt
8673d7408b tests: posix: add test for the xsi_single_process option group
Add tests for the XSI_SINGLE_PROCESS Option Group.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-13 22:23:21 -04:00
Chris Friedt
cfae041834 posix: implement the XSI_SINGLE_PROCESS Option Group
gettimeofday() was already implemented, but incorrectly lumped into
POSIX_TIMERS.

putenv() is really just a wrapper around setenv().

The only one left to implement was gethostid() which was relatively
trivial.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-13 22:23:21 -04:00
Tomi Fontanilles
35f7eda545 modules: mbedtls: make key exchange Kconfigs depend on, not select
Turn the MBEDTLS_RSA_FULL selects into depends on.
This is how the other MBEDTLS_KEY_EXCHANGE_* Kconfig options are defined.

This is done to avoid circular dependencies.

At the same time update uses of the affected MBEDTLS_KEY_EXCHANGE_*
Kconfig options to enable/disable the dependencies which used to be
automatically handled.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-05-13 22:22:43 -04:00
Alain Volmat
12b8fb21cd tests: drivers: build_all: video: add testcase of stm32 dcmi
Add a testcase for building the stm32 dcmi driver on all
currently supported platforms / shields.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-05-13 22:22:09 -04:00
Michał Stasiak
a397a7e939 tests: boards: nrf: comp: Move AIN index to Kconfig
Moved index of analog input used in test from source
code to Kconfig option to simplify adding new targets.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-05-13 17:45:18 +02:00
Florijan Plohl
f72f1ebf6a boards: mimxrt1170_evk: Enable DAC
Enable DAC on MIMXRT1170-EVK for both Cortex M7 and M4.

Signed-off-by: Florijan Plohl <florijan.plohl@norik.com>
2025-05-13 03:20:29 +02:00
Mateusz Junkier
04b49fadab twister: harness_config extended by test retries in testcase.yaml
Extend Twister to allow defining repeat counts
for specific scenarios by harness_config.

Signed-off-by: Mateusz Junkier <mateusz.junkier@intel.com>
2025-05-13 03:20:10 +02:00
Keith Packard
958ef2288e tests/llext: Compute linker script option rather than using -Wl,-T
Use the same logic as the top-level Zephyr CMakeLists.txt does to
find the linker script option by using the first one of these
which is set:

 1. Global TOPT property
 2. Compiler's linker_script property
 3. -Wl,-T

This avoids toolchains which insert a default linker script
when none is provided on the command line using the -T option.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-05-12 21:09:44 +02:00
Camille BAUD
bcfe94ce87 tests: build_all: Add ssd1351 build test
Adds ssd1351 build test

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-12 21:09:36 +02:00
Srishtik Bhandarkar
09ab462e10 drivers: sensor: pzem004t: add pzem004t AC parameter sensor driver
Adds driver for Peacefair pzem004t multifunction AC parameter sensor.

Signed-off-by: Srishtik Bhandarkar <srishtik.bhandarkar2000@gmail.com>
2025-05-12 21:09:27 +02:00
Josuah Demangeon
84f0eec62e drivers: video: common: fix video_closest_frmival() fie.index
Fix bug introduced in 46a262ffe6 where the
fie.index field was expected to be incremented by the driver, while it
is the responsibility of the caller to increment it.

Fixes #89663

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-05-12 19:20:45 +02:00
Derek Snell
f1c9799668 tests: drivers: counter_basic_api: add testcase for NXP FRDM-RW612
New test case enables low-power standby mode, but disables testing
the lpc_rtc_highres driver, since it is used to wake the device from
standby mode.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2025-05-12 19:19:40 +02:00
Camille BAUD
40c75b7d8c tests: drivers: add ssd1331 to build_all
Add the build test

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-12 19:19:15 +02:00
Pavel Vasilyev
14b4e30cdf bluetooth: host: Deprecated BT_CONN_TX_MAX
After https://github.com/zephyrproject-rtos/zephyr/pull/72090,
`conn_tx_alloc` no longer blocks, and each buffer always has a
corresponding `bt_conn_tx` object. This eliminates the need to configure
the number of `bt_conn_tx` objects via `CONFIG_BT_CONN_TX_MAX`, since
every buffer now carries its own context even when no callback is used.

This commit deprecates `CONFIG_BT_CONN_TX_MAX` as it is no longer
necessary. Instead, `CONFIG_BT_BUF_ACL_TX_COUNT` is used to allocate
`bt_conn_tx` objects for outgoing ACL data. ZLL already uses
`CONFIG_BT_BUF_ACL_TX_COUNT` to configure the number of outgoing ACL
packets. With this change, modifying the packet count will automatically
adjust the number of corresponding contexts, preventing both context
starvatoin and underutilization.

This approach also aligns with ISO, where the number of `bt_conn_tx`
objects for outgoing ISOdata matches `CONFIG_BT_ISO_TX_BUF_COUNT`.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-05-12 14:54:26 +02:00
Robert Lubos
7e093351d8 tests: net: coap_server: Adjust test filters
Add netif dependency for the test suite, as in other networking tests
and adjust minimal RAM and FLASH values.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-12 13:30:57 +02:00
Emil Gydesen
eeb1d92df4 tests: Bluetooth: Tester: Set controller ACL buffer size
Change the ACL buffer sizes to be a higher value than the
default, as that caused some issues with the CIS established
event.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-09 14:02:10 +02:00
Neil Chen
aa1f9e2d34 tests: drivers: spi: add spi test support for frdm_mcxa153 board
add spi test support for frdm_mcxa153 board.
reduce isr stack size to avoid ram overflow.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-05-09 12:51:20 +02:00
Emilio Benavente
417b9027a4 tests: drivers: watchdog: Enable reset none testing for ewm
Enabled the wdt_basic_reset_none to test boards using the EWM.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-05-09 01:39:56 +02:00
Arkadiusz Balys
ca40f410ac openthread: Change log level to PLATFORM in OpenThread platform
Stop using L2 log level in OpenThread platform files.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
2025-05-08 15:56:11 +02:00
Robert Lubos
1c46508c54 tests: net: dhcpv4: client: Verify Request xid
According to RFC 2131 Request message Exchange ID should be the same as
the one received in the Offer message from the server. Modify test to
verify that.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-08 15:55:55 +02:00
Robert Lubos
eabeb84350 tests: net: dhcpv4: client: Verify that Pad option is handled
Add Pad option to the DHCP packets generated by the fake server, to
verify the client processes them correctly.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-08 15:55:55 +02:00
Jeremy Dick
a167c2d895 drivers: input: cap12xx Add properties for sensitivity and guard signal
The Microchip CAP12xx series has a configurable sensitivity and
can drive an optional guard signal to reduce noise sensitivity.

Signed-off-by: Jeremy Dick <jdick@pivotint.com>
2025-05-08 12:25:18 +02:00
Hao Luo
04aaa18f1d drivers: counter: add counter support for apollo510
This commit adds support for apollo510 counter

Signed-off-by: Hao Luo <hluo@ambiq.com>
2025-05-08 08:55:06 +02:00
Hao Luo
c2ef2c551e drivers: rtc: add rtc support for apollo510
This commit adds support for apollo510 rtc

Signed-off-by: Hao Luo <hluo@ambiq.com>
2025-05-08 08:55:06 +02:00
Stanley Huang
e589fd6e24 boards: raytac: Add support for raytac_an54l15q_db
Add support for Raytac's new AN54L15Q-DB demo board.

Signed-off-by: Stanley Huang <stanley@raytac.com>
2025-05-08 08:54:58 +02:00
Dipak Shetty
a123178898 tests: drivers: build_all: stepper: add diag0 test case
Added second tmc51xx node with diag0 interrupt pin.

Signed-off-by: Dipak Shetty <shetty.dipak@gmx.com>
2025-05-07 13:34:02 +02:00
Emil Gydesen
c8cb0426d2 tests: Bluetooth: Tester: Update supported_services
The supported bits were out of date and the response size
was incorrect.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 13:31:58 +02:00
Emil Gydesen
18193b86c3 tests: Bluetooth: Tester: Validate PBP features
Add validation of the PBP features in the
pbp_set_public_broadcast_announcement function.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 13:31:48 +02:00
Emil Gydesen
181a0238a2 tests: Bluetooth: Tester: Fix bad rsp len of CAP broadcast setup
The btp_cap_broadcast_source_setup_rp was reported with
an invalid length.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 13:31:39 +02:00
Emil Gydesen
228d89b433 tests: Bluetooth: Tester: Default to use overlay-bt_ll_sw_split.conf
Default the BT Tester to use the overlay-bt_ll_sw_split.conf for all
Zephyr based configurations.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 13:31:20 +02:00
Emil Gydesen
7f0c78210a tests: Bluetooth: Tester: Add new BT controller config
Adds a new BT controller configuration that can be applied
to multiple boards and not specific to the nRF5340 cpunet
as the existing setup uses from hci_ipc.

The config is based on nrf5340_cpunet_iso-bt_ll_sw_split.conf
from hci_ipc sample.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 13:31:20 +02:00
Emil Gydesen
b7a85a4ca5 tests: Bluetooth: Tester: Add missing checks for tx in bcast
The stream_started and stream_stopped callbacks are called for
both broadcast sink and source in the BT Tester, and thus
they should check if the stream can send before attempting
to register it for TX (which would otherwise fail).

This also guards the call to btp_send_bis_syced_ev so that
the event is only sent for broadcast sinks.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 13:31:09 +02:00
Karol Lasończyk
c6413c3e17 tests: drivers: Turn on HFCLK before LFCLK calibration in nRF devices
This change plays with situation in nRF54L devices where XOTUNE make
LF clock calibration process starts a bit longer. Now HF clock
is configured to be ready right before LF calibration test.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2025-05-07 11:45:48 +02:00
Emil Gydesen
ae4c6fe609 tests: Bluetooth: Tester: Refactor ACSC events for BAP unicast
This commit refactors when the BTP_ASCS_EV_OPERATION_COMPLETED
is sent to the upper tester. Previously it was send
in the stream changed callbacks, but that would send
the events to the BAP Unicast Server when it did not initiate
any changes, and would not properly match when the control
point operation was completed (which happens before the
ASE state changes).

This change makes it easier to determine when an operation was
actually completed, and easier to separate that from a
ASE state change which is another type of event.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 11:44:40 +02:00
Emil Gydesen
2263fb8ec7 tests: Bluetooth: tester: Send stream changed event for all states
The ase state changed event was only sent when entering the
streaming state, rather whenever there is a state change.

This commit sends the event for all ASE/stream state changes.
To make it clear that these are called in the callbacks,
the callbacks have all been suffixed with _cb.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 11:44:40 +02:00
Benjamin Cabé
38f822cff2 tests: Bluetooth: fix misspelling of brief in doxygen
Fixes trivial typo

Co-authored-by: Harry Martin <48959255+Harry-Martin@users.noreply.github.com>
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-07 11:44:33 +02:00
Swift Tian
726eb0a25d drivers: mspi: add apollo5x MSPI controller
Add the MSPI controller support for apollo5x.
Add the MSPI controller to mspi API test.
Updated west.yml for hal updates.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2025-05-07 10:33:38 +02:00
Emil Gydesen
c2178bc25e tests: Bluetooth: Tester: Update README to rst and add text
Update the README file to be .rst instead of (implied) .md
and update the text w.r.t. supported profiles and services,
and how to build for LE Audio.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-07 10:29:24 +02:00
Charles Dias
deef1de9a1 boards: st: add support for STM32U5G9J-DK1
Adds the device tree, Kconfig, and documentation files.

The following features have been confirmed working on hardware:
* LED
* Button
* UART

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-05-07 08:17:26 +01:00
Benjamin Cabé
878de4727a tests: lib: json: zero-initialize structs before using memcmp in tests
Zero-initialize the `test_int_limits` and `test_enums` structs before
assignment and decoding in their respective tests.

This ensures that all padding bytes are set to zero, making
`memcmp`-based comparisons reliable and portable across different
architectures and compilers.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-05-06 18:23:49 +02:00
Francois Ramu
c719e2cbb7 tests: drivers: flash testing stm32 flash size
Add a special testcase to test any stm32 target
The expected flash size is given by the config FLASH_SIZE (in bytes)
and stm32 flash driver API function should return the same value
Do not run on the stm32wb55 nucleo as 216K are reserved among the 1MB
(only 808K declared but mcu has 1MB)

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-05-06 18:23:36 +02:00
Declan Snyder
5ac2baccfd tests: flash: Fix LPC54114 failure
Fix test failure for LPC54114 m4 platform by adding config.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-06 16:34:41 +02:00
Declan Snyder
d8be41c00a tests: flash: common: Add disable spi nor case
Since the test is hardcoded to prioritize testing a spi nor flash if
there is one, add a twister case for disabling that config in case if a
platform should also test some other flash which is present, such as
internal SOC flash. I.e, relevant platforms would be those which have
both internal and spi nor flash enabled in DT.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-06 16:34:41 +02:00
Sylvio Alves
5599f99e30 tests: console: use printf instead
This change aligns the test case with the hello_world sample.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-05-06 15:32:46 +02:00