Commit graph

438 commits

Author SHA1 Message Date
Kyle Bonnici
a510704ed2 devicetree: format files in tests
Applying dts-linter results for files in

tests

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-11-28 10:09:39 +00:00
Nikodem Kastelik
ad1e5ac253 nordic: update and align to nrfx 4.0.1
New nrfx release contains major rework of nrfx drivers
instantiation making it easier to integrate with dts nodes.
Now, nrfx driver instances can no longer be `const`
because they contain driver runtime state.
Additionally, all nrfx drivers return `errno` error codes
instead of deprecated `nrfx_err_t`.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-11-27 14:45:17 +01:00
Sylvio Alves
8ae38804ac tests: board: espressif: update net struct usage
Fix net struct naming convention.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-11-27 11:37:26 +01:00
Khoa Tran
940ae75941 tests: boards: renesas: Add ELC test support for mck_ra4t1
Add ELC test support for Renesas mck_ra4t1

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-11-27 11:30:12 +01:00
Adrian Bonislawski
b038ee72fa drivers: dai: Add size parameter to dai_config_set API
Add explicit bespoke_cfg_size parameter to the dai_config_set()
function and its underlying driver API to improve configuration
validation and security.

Changes:
- Add 'size_t size' parameter to dai_driver_api.config_set callback
- Update dai_config_set() inline wrapper to pass size parameter
- Update all DAI driver implementations:
  - Intel: SSP, DMIC, HDA, ALH
  - NXP: SAI, ESAI, MICFIL
- Add documentation for new size parameter

This change enables drivers to validate the size of bespoke
configuration data, preventing buffer overruns and improving
robustness of the DAI configuration interface.

All existing callers must be updated to pass the size of their
bespoke configuration structures.

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
2025-11-24 20:59:20 +01:00
Sebastian Głąb
cfe1ffa501 tests: boards: nrf: i2c: i2c_slave: Move tests DTS files
Move DTS overlay files that modify test configuration
from boards sub-directory to the main application directory.
There is no 'i2c_speed_fast' board.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-11-18 11:21:48 +01:00
Sebastian Głąb
55f9d2c82c tests: boards: nrf: i2c: i2c_slave: Run test on nrf54l15 NS
Enable i2c_slave test on nrf54l15dk/nrf54l15/cpuapp/ns platform.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-11-18 11:21:48 +01:00
Sebastian Głąb
5501999078 tests: boards: nrf: i2c: i2c_slave: Fix DTS formatting
Add reqired empty line as indicated by the compliance check.
Add License header.
Add information about GPIO loopbacks used by the test.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-11-18 11:21:48 +01:00
Sebastian Głąb
e761ba1950 tests: boards: nrf: qdec: Run test on nrf54l15 NS
Enable QDEC test on nrf54l15dk/nrf54l15/cpuapp/ns platform.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-11-18 11:21:48 +01:00
Jukka Rissanen
d45cd6716b net: Convert network codebase to use renamed network APIs
Rename network symbols in network stack to use the renamed network APIs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-17 14:01:32 -05:00
Josuah Demangeon
e6e7fc549e style: tests: apply coding style on CMakeLists.txt files
Apply the CMake style guidelines to CMakeList.txt files in tests/.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-11-17 13:48:03 -05:00
Daniel Leung
65d31ea860 tests: intel_adsp/smoke: cast to signed ints before abs()
xt-clang complains about the clock ratio difference is unsigned
when being fed to abs(), though GCC does not. So type cast that
to signed integer before feeding to abs(). Clock ratio could be
big enough to overflow signed 32-bit integer. So we first cast
it to be a signed 64-bit integer before substraction.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-11-14 10:26:32 +02:00
Robert Lubos
587d9e6a4a net: icmp: Verify the address family before calling the callback
Check the address family of the packet before passing it to a ICMP
handler, to avoid scenarios where ICMPv4 packet is paseed to a ICMPv6
handler and vice versa.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-11-05 13:19:03 -05:00
Valerio Setti
f960db846c modules: mbedtls: rename MBEDTLS_TLS_VERSION_1_2
Align Kconfig name to the Mbed TLS build symbol.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-10-24 13:27:59 -04:00
Riadh Ghaddab
ac3e7cb6da tests: boards: nrf: add rram_throttling test
Verifies that the throttling is working for boards that enable
CONFIG_SOC_FLASH_NRF_THROTTLING

Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
2025-10-23 17:52:08 +02:00
Marcio Ribeiro
1a31b0a513 tests: boards: esp32: add simplified i2s test
Adds simplified i2s test for the following platforms:
- esp32_devkitc/esp32/procpu
- esp32s2_saola

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-10-20 11:52:31 +02:00
Sebastian Głąb
9ff2c0ff9d tests: boards: nrf: hwinfo: Add latest reset causes
Reset cause API was expanded with two more reset causes.
These are RESET_BOOTLOADER and RESET_FLASH.

Add handling of RESET_BOOTLOADER and RESET_FLASH to reset_cause test.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-10-17 11:18:08 +02:00
Sebastian Głąb
3d56c2f8f8 tests: boards: nrf: coresight_stm: Align test to STM driver
There were recent changes to nrf54h20dk and STM driver.
Align test accordingly:
- add Kconfig that boots Radio core,
- update expected timing results.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-10-10 12:53:40 -04:00
Alberto Escolar Piedras
972d5e35a7 Revert "tests native_sim reset_hw_info: Skip by now"
This reverts commit 8d7c2e115a.
The issue should be fixed now.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-10-07 23:01:38 -04:00
Jakub Zymelka
6d7f429369 tests: comparator: nordic: Align boards overlays for changed input types
Align samples and tests boards overlays
for changed comparator input types.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-10-07 22:58:20 -04:00
Krzysztof Chruściński
5a588f1b99 tests: boards: nrf: dmm: Skip stress test for empty memory region
Skip stress test if null memory region. That's the case if DMM is
disabled.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-10-06 20:02:37 +03:00
Marek Matej
134042c014 tests,samples: boards: espressif: add missing psram0 node
Add missing psram0 node which is used to determine the memory size.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-10-01 17:21:07 +03:00
Alberto Escolar Piedras
8d7c2e115a tests native_sim reset_hw_info: Skip by now
This tests is failing in CI and at random locally.
While we understand why and how to fix it, let's disable it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-09-30 09:49:36 +02:00
Daniel Leung
ed0b5605d4 tests: boards: intel_adsp/smoke: update to use new IPC API
This updates the Intel Audio DSP smoke test to use the new
IPC API based on IPC message service. The old API is still
being tested for now until all users of the old API has
moved to the new one.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-09-29 12:42:00 -04:00
Daniel Leung
ec28731c39 tests: boards: intel_adsp/smoke: adds ACE boards
This adds ACE boards to the allowed platforms so they can
be tested.

Note that this only adds boards that I have tested to run
correctly with the tests.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-09-29 12:42:00 -04:00
Daniel Leung
6a72cc5435 tests: boards: intel_adsp/smoke: threshold for CPU timing test
The 4th CPU test tries to gauge tight loop performance. However,
it has been observed occasionally that the calculated would go
over just a bit. The threshold was 3, and the observed ratio
has been bouncing between 2.9 and 3.1. So up the threshold
a little bit to account for that.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-09-29 12:42:00 -04:00
Daniel Leung
2afa46d84b tests: boards: intel_adsp/smoke: no CPU halt for ACE
On ACE, the CPU halting requires the cooperation of the PM
subsys to set the CPU to SOFT_OFF. The mechanism has not
been implemented in the smoke test. So skip the halting test
on ACE for now.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-09-29 12:42:00 -04:00
Daniel Leung
ae8ab19dcf tests: boards: intel_adsp/smoke: remove IPC for CPU test
The IPC is only needed for old hardware earlier than CAVS 2.5.
They are no longer supported in the tree as their board configs
have been removed. So there is no need to do IPC anymore.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-09-29 12:42:00 -04:00
Daniel Leung
28a0d90b46 tests: boards/intel_adsp/smoke: remove IPM test
This removes the IPM test from the intel_adsp smoke test.
The IPM driver is not being used by SOF and is there simply
for this test. The host IPC functionality is also being tested
via test_host_ipc. The additional usage of mailbox in the test
does not provide much value since the mailbox is shared memory
between the DSP and the host. We would have bigger problems if
the shared memory does not work properly.

Removing the test is in preparation to removing the CAVS host
IPM driver. That is also a preparation to rewrite the host IPC
driver to the IPC API, and there is no need to maintain
another host IPC driver that is not used by SOF.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-09-29 12:42:00 -04:00
Alberto Escolar Piedras
9669cc3402 board native_sim: Test sys_reboot and hw_info reporting the reset cause
Add a test of the CONFIG_NATIVE_SIM_REBOOT functionality together
with the hw_info get_reset_cause() logic.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-09-29 12:37:47 -04:00
Krzysztof Chruściński
c02f904a57 tests: boards: nrf: dmm: Add stress test
Add stress test which validates that allocator is thread safe
and has no memory leaks.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-09-29 12:36:47 -04:00
Krzysztof Chruściński
3d3104207c tests: boards: nrf: dmm: Extend test coverage
Extended test to check usage stats and longer buffer alloc.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-09-29 12:36:47 -04:00
Krzysztof Chruściński
8cc4da31ca tests: boards: nrf: dmm: Align test to changes in DMM
Align to API changes.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-09-29 12:36:47 -04:00
Krzysztof Chruściński
f06e05097f tests: boards: nrf: dmm: Add timing measurements
Add timing measurement to the test to allow DMM profiling.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-09-29 12:36:47 -04:00
Sylvio Alves
2ace07774d samples: boards: espressif: update board reference
As esp32s3_devkitm does not provide SPIRAM, change test
to use esp32s3_devkitc instead.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-09-25 14:19:32 -04:00
Manoj Purushothama
ce828abc98 tests: boards: nrf: qdec: Fix Arduino typo
Fix the typo in the comments

Signed-off-by: Manoj Purushothama <hpmanoj@umich.edu>
2025-09-24 19:20:28 -04:00
Michał Bainczyk
39f1085beb tests: boards: nrf: qdec: Fix test for nRF54L15
Added additional cleanups between tests, which fixed the issue
of a failing testcase on nRF54L15.

Signed-off-by: Michał Bainczyk <michal.bainczyk@nordicsemi.no>
2025-09-24 11:29:19 +01:00
Michał Bainczyk
327bbc70af tests: boards: nrf: qdec: Fix test for multiple instances
- Fixed pin configuration for nRF54L15 (QDECs can use only port 1)
- Changed the way the test handles testing multiple instances
  to make it possible to output quadrature signal to one QDEC
  instance at a time.

Signed-off-by: Michał Bainczyk <michal.bainczyk@nordicsemi.no>
2025-09-24 11:29:19 +01:00
Marek Matej
ccf27a9701 tests: boards: espressif: Nested IRQ
Add test suite to test nested interrupts on ESP32 Xtensa targets.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-09-19 08:29:49 -04:00
Kyle Micallef Bonnici
396bde4068 devicetree: format files in tests/boards/nrf
Applying dts-linter results for files in

tests/boards/nrf

Signed-off-by: Kyle Micallef Bonnici <kylebonnici@hotmail.com>
2025-09-08 10:28:48 +01:00
Kyle Micallef Bonnici
639264205d devicetree: format files in tests/boards/mec172xevb_assy6906
Applying dts-linter results for files in

tests/boards/mec172xevb_assy6906

Signed-off-by: Kyle Micallef Bonnici <kylebonnici@hotmail.com>
2025-09-08 10:28:48 +01:00
Kyle Micallef Bonnici
776e00b79d devicetree: format files in tests/boards/mec15xxevb_assy6853
Applying dts-linter results for files in

tests/boards/mec15xxevb_assy6853

Signed-off-by: Kyle Micallef Bonnici <kylebonnici@hotmail.com>
2025-09-08 10:28:48 +01:00
Benjamin Cabé
0132ea07fb doc: fix spelling errors tree-wide
fix some spelling errors in code comments and Kconfig helps

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-03 17:04:13 +02:00
Raffael Rostagno
c7a295b068 tests: clock: esp32h2: Add testcase
Render test settings more generic regarding clock options, in order
to better support new devices. Add ESP32-H2 testcase to rtc_clk suite.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00
Jamie McCrae
db8f991c77 kconfig: Use $(...) instead of ${...} for getting variables
Updates this to comply with the Zephyr Kconfig recommendations

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-08-20 12:05:41 +02:00
Khoa Nguyen
538fca94ee tests: boards: renesas: elc: Add support test app elc for ek_ra4c1
Add support test app ``renesas/elc`` for Renesas ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Piotr Kosycarz
8d5823d814 tests: boards: nrf: xip: extend timeout
Flashing ext flash is long.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-08-12 21:30:55 +02:00
Chaitanya Tata
52bf8fbf61 tests: nrf70: bustest: Add more QSPI tests
Add tests based on QSPI command register, this is the entry point even
before we test nRF70 internal memories.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-08-01 07:47:59 -04:00
Luis Ubieda
2d589fda85 boards: vmu_rt1170: Update dts to reflect the second IMU being ICM42686
Additionally, remove overlay from sensor-shell sample, which is
redundant.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-07-25 23:28:47 +02:00
Nikodem Kastelik
20efb9edbb tests: nrf: comp: fix VDD reference dependency
Some SoCs might not have any VDD reference available.
Use internal 1.2V reference derived from VDD in this case.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-07-25 08:20:09 -04:00