Commit Graph

4068 Commits

Author SHA1 Message Date
S Swetha
c90694c0a8 tests: drivers: uart: Bug fix
This commit fixes the following
bug.Issue link:
https://github.com/zephyrproject-rtos/
zephyr/issues/86399.
Some users reported data access
violations due to the qualifier.
Removing static ensures proper memory
alignment and avoids potential
memory access issues.

Signed-off-by: S Swetha <s.swetha@intel.com>
2025-03-04 12:16:12 +00:00
Mahesh Mahadevan
0b5eeb3eee tests: spi: Add overlay for NXP 1040EVK FlexIO-SPI
Add an overlay for the Flexio-SPI driver for the
MIMXRT1040-EVK board.
Update testcase.yaml and add new overlay configuration
to support flexio spi testing on 1040_evk.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-02-27 08:01:04 +01:00
Alberto Escolar Piedras
bab10c0f6f tests/drivers/gpio/gpio_reserved_ranges: Fix overlays
Correct overlays names.
In 982425f818
this test was changed from using native_posix to native_sim,
but the overlay file renaming slipped thru the cracks.
Due to the test DT filter, the test just was not run since then,
and we did not realize.
Let's fix it now so the test can run again.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-25 20:39:41 +01:00
Alberto Escolar Piedras
8087053ab9 tests/drivers/gpio/gpio_reserved_ranges: Fix missing includes
Revert the changes done in
b51f998063
to this file.
Those 2 headers are indeed needed for it to build.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-25 20:39:41 +01:00
S Swetha
6688f62f92 tests: drivers: uart: boards: Disable Userspace
This commit disables CONFIG_TEST_USERSPACE in
intel_rpl_s_crb.conf of uart_async_api
testcase.Enabling this config introduces
restrictions that interfere with cacheable
regions by blocking access and modifying
cache attributes.By disabling this
configuration, the following issues
are resolved:
-Cacheable region retain their attributes.
-Execution and data transactions work without
restrictions.
-System behavior align with expected
configuration in privileged mode.
-Some code primarily relying on non-cache
region continues to work.

This change is neccessary to ensure
cachebale memory regions function as intended
without interferance from user mode restrictions.

Signed-off-by: S Swetha <s.swetha@intel.com>
2025-02-25 15:23:34 +00:00
S Swetha
bf7f53d0cd tests: drivers: uart: Aligned buffers to 32 bytes
This commit aligns the buffers to 32 bytes in
uart_async_api testcases.This is because most
of the platform DMA operations are aligned to
32 bytes.This ensures proper memory alignment
for cache handling and avoid potential
unaligned access issues.

Signed-off-by: S Swetha <s.swetha@intel.com>
2025-02-25 15:23:34 +00:00
Aksel Skauge Mellbye
8fefb44e3e tests: drivers: adc: Fix silabs overlays
Fix typo in overlays for silabs boards that stopped tests from
running.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-02-25 15:12:58 +00:00
David Leach
8873ff9cb1 tests: drivers: dma: add mimxrt685 to scatter_gather platform_allow
The mimxrt685 has a different IP/driver from other NXP platforms
in the platform_allow list.

Signed-off-by: David Leach <david.leach@nxp.com>
2025-02-20 21:04:17 +01:00
Pieter De Gendt
585d61246e tests: drivers: build_all: ethernet: Add davicom,dm8806-phy
Add a davicom,dm8806-phy entry to the build_all test for ethernet drivers.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-02-20 11:47:21 +01:00
Benjamin Cabé
74e8cefc37 tests: fix spelling of "below"
s/bellow/below/

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-19 18:51:13 +01:00
Anas Nashif
a8ce2dbe15 tests: tests should not enable mmu directly
MMU is enabled via the arch specific MMU option and by the platform.
i.e. X86_MMU or ARM_MMU selects MMU.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-02-19 04:59:19 +01:00
Declan Snyder
e76a5a8ed1 boards: mimxrt1050_evk: Fix test/sample conf names
Fix test/sample .conf names for this board, so they are actually pulled
into the build.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-18 18:38:51 +01:00
Benjamin Cabé
9a0631d018 tests: drivers: adc: fix overlay filenames for nucleo_n657x0_q_sb board
This was causing adc_api test to fail due to overlay
not being applied.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-17 16:48:43 +01:00
Piotr Krzyzanowski
6d8eb184b7 tests: drivers: uart: add 54l15 fast uart
Add the fast uart instance of 54l15 for testing

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-02-17 14:03:27 +01:00
Corey Wharton
f6d0e7d97c tests: drivers: regulator: add api test for count/list current_limit APIs
Adds missing fake methods to regulator_fake and corresponding API tests.

Signed-off-by: Corey Wharton <xodus7@cwharton.com>
2025-02-17 08:09:48 +01:00
Sreeram Tatapudi
d339b96132 tests: drivers: uart: uart_async_api: Add the missing overlay file
Add the overlay file to enable the DMA driver to fix the
compilation error

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2025-02-14 21:04:29 +01:00
Mert Ekren
0311f8bea9 tests: drivers: sdhc: Add MAX32666fthr to disk performance test
Add MAX32666fthr sdhc to tests/drivers/disk/disk_performance

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
2025-02-14 20:20:03 +01:00
Guillaume Gautier
29f6bcc76f tests: drivers: spi: spi_loopback: add stm32n6 boards overlays
Add SPI loopback test overlays for Nucleo N657x0-Q and STM32N6570 DK
boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 19:15:09 +00:00
Sebastian Głąb
8f39cea705 tests: drivers: pwm: Remove overlay for nRF54L20pdk
All needed configuration was moved to the board definition.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-02-14 19:13:11 +00:00
Thao Luong
e44a7684d0 tests: drivers: uart: Add dts node for ek_ra4l1
Add dts node for ek_ra4l1 run on uart_async_api

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
5a2ee87291 tests: drivers: i2c: Add config and dts node for ek_ra4l1
Add config and dts node for ek_ra4l1 run on i2c_api

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
48c46179e7 tests: drivers: pwm: Add dts nodes for ek_ra4l1
Add dts nodes for ek_ra4l1 run on pwm_loopback

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
cf9aa0fdd3 tests: drivers: adc: Add dts nodes for ek_ra4l1
Add dts nodes for ek_ra4l1 run on adc_accuracy_test and adc_api

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
b0b1394ff7 tests: drivers: spi: Add configs and dts node for ek_ra4l1
Add configs and dts node for ek_ra4l1 run on spi_loopback

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Guillaume Gautier
5155cb673f tests: drivers: adc: adc_api: boards: add overlays for stm32n6 boards
Add dts and conf overlay for nucleo_n657x0 and stm32n6570_dk boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 10:48:35 +01:00
Guillaume Gautier
ed673d5e88 tests: drivers: adc: adc_api: src: change data size for stm32n6
STM32N6 needs to have a buffer of 32-bit data instead of 16-bit.
Adds a Kconfig to select whether the test shall use a 32-bit buffer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 10:48:35 +01:00
Steffen Jahnke
16c4b6a51a tests: Add necessary configurations for PAN B511 EVB
Running tests for PAN B511 evaluation board needs additional
configuartion.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2025-02-14 10:47:54 +01:00
Guillaume Gautier
c0164e4afe tests: drivers: i2c: target_api: add stm32n6 overlays
Add overlays for STM32N657X0-DK and Nucleo N657X0 boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 10:43:44 +01:00
Wilfried Chauveau
c0139fad06 drivers: gpio: mmio32: update gpio_mmio32 to behave like other divers
The current implementation requires SoCs/Boards to manualy instantiate
the preripherals and initilize them.

The change lets Zephyr rely on the device tree setup to instantiate &
initialize the relevant gpio peripheral.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
2025-02-14 10:42:02 +01:00
Marcin Lyda
f370d38363 drivers: rtc: Add Maxim DS1337 RTC driver
This PR adds support for Maxim Integrated
DS1337 RTC chip.

Supported functionalities:
* Alarm interrupt (both alarms trigger INTA pin)
* Time setting/reading
* Both alarms setting/reading
* SQW frequency configuration

Tested on nRF52833-DK using rtc_api test set.

Signed-off-by: Marcin Lyda <elektromarcin@gmail.com>
2025-02-14 03:03:56 +01:00
Camille BAUD
637686695c sensor: Introduce Phosense XBR818 Driver
This Introduces a driver for the i2c interface of Phosense XBR818.
XBR818 is a 10.525Ghz Radar chip with builtin detection algorithm.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-02-14 03:03:22 +01:00
Ryan McClelland
ed9c6d84a9 tests: drivers: build_all: add build for i3c_dw
The Synopsys I3C has no in-tree board with it to built with. This
adds a test build-only for the cadence i3c peripheral attaching
with the qemu_cortex_m3 board as that appears to be generic
enough.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-02-14 03:02:43 +01:00
Furkan Akkiz
d256a90a54 tests: drivers: dma: Enable dma driver tests for max32662evkit board
Enable 'chan_blen_transfer' and 'loop_transfer' tests for MAX32662EVKIT.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-02-14 00:47:03 +01:00
Mert Ekren
540b3543f4 tests: drivers: dma: Add MAX32666FTHR
Enable DMA test for MAX32666FTHR board for tests chan_blen_transfer and
loop transfer

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-02-14 00:47:03 +01:00
Furkan Akkiz
0399d892e9 tests: drivers: dma: Enable dma driver tests for max32666evkit board
Enable dma driver tests for MAX32666EVKIT

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-02-14 00:47:03 +01:00
Andrej Butok
95b74e2b97 boards: mimxrt1170_evk: switch the default revision to B
Switches the default revision of mimxrt1170_evk from A to B.
Customers can only purchase MIMXRT1170-EVKB.
Revision "A" is obsolete and unavailable.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-14 00:46:02 +01:00
Lucien Zhao
7ac0496741 tests: driver: adc: support adc_api case for mimxrt700_evk
support lpadc0 channel0/1 on cm33_cpu0/1 cores
test passed on adc_api case

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-02-14 00:45:15 +01:00
Guillaume Gautier
5415e8e4a6 tests: drivers: can: add stm32n6 boards overlays
Add CAN test overlays for Nucleo N657x0-Q and STM32N6570 DK boards.
Userspace needs to be disabled for the tests to pass.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-13 20:11:30 +01:00
Rafał Kuźnia
f78742ff75 tests: drivers: adc: add nRF54L20 configuration
Added the test configuration for nRF54L20 for the following tests:
- adc_api
- adc_error_cases

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
2025-02-13 16:41:57 +01:00
Sebastian Głąb
c4a817971d tests: drivers: watchodg: Enable wdt_error_cases on nRF5340dk
Enable wdt_error_cases test on nRF5340dk.

Define valid test configuration for that target
(reuse from nRF54H/nRF54L).
Add target to the platform_allow.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-02-13 12:15:41 +01:00
Guillaume Gautier
824bc6cfb5 tests: drivers: uart: async_api: add stm32n6 boards overlays
Add UART test overlays for Nucleo N657x0-Q and STM32N6570 DK boards.
Remove non serial boot conf file since they are now unnecessary.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-13 12:15:01 +01:00
Piotr Kosycarz
e3e45487db tests: drivers: pwm: pwm_gpio_loopback: adjust configuration for nrf54h20
Extend CONFIG_SKIP_EDGE_NUM.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-02-13 12:14:41 +01:00
Khoa Nguyen
fc43629c6f tests: drivers: uart: Add support uart_async_api for ek_ra4m1
Add support uart_async_api to run test app on ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
0c277e7a39 tests: drivers: spi: Add support spi_loopback for ek_ra4m1
Add support spi_loopback to run test app on ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
78b55cc972 tests: drivers: i2c: Add support i2c test for ek_ra4m1
Add support i2c_target_api test app for ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
35d94de056 tests: drivers: adc: add support adc test app for ek_ra4m1
Add support adc_accuracy_test and adc_api test app
for ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
ddcd752e67 tests: drivers: pwm: Add support pwm_loopback for ek_ra4m1
Add support pwm_loopback to run test app on ek_ra4m1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Tom Hughes
782152f404 tests: i2c_emul: Remove unused variable
Building with clang warns:

tests/drivers/i2c/i2c_emul/src/test_forwarding_buf.cpp:20:32: error:
unused variable 'targets' [-Werror,-Wunused-const-variable]
constexpr const struct device *targets[FORWARD_COUNT] = {
                               ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-13 03:27:24 +01:00
Tom Hughes
bae8e34a38 tests: i2c_emul: Remove unused variable
Building with clang warns:

tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp:19:32: error:
unused variable 'targets' [-Werror,-Wunused-const-variable]
constexpr const struct device *targets[FORWARD_COUNT] = {
                               ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-13 03:27:13 +01:00
Sachin D Kulkarni
522387ec17 drivers: nrf_wifi: Add missing test cases
Add test cases for SoftAP and P2P modes.

Signed-off-by: Sachin D Kulkarni <Sachin.Kulkarni@nordicsemi.no>
2025-02-12 20:18:47 +01:00