Commit Graph

3664 Commits

Author SHA1 Message Date
Raffael Rostagno 38a70cc1fd tests: drivers: spi: esp32c6: Fix overlay configuration for loopback
Fixes overlay configuration to allow running the test on CI without
externally connecting two pins.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-11-08 11:36:21 -06:00
Dmitrii Golovanov e3ec702196 tests: drivers: ipm: Fix drivers.ipc.mailbox
Fix 'drivers.ipc.mailbox' test suite to restore and improve
its testing functionality:

 * fix printf() redirection through IPM console.

 * fix and check the dummy driver initialization.

 * specify correct Twister harness type (Console)
   and use matching patterns to recognize the expected
   console output.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2024-11-08 09:28:50 -06:00
Daniel DeGrasse 07a8e3253a drivers: disk: mmc_subsys: remove CONFIG_MMC_VOLUME_NAME
Remove CONFIG_MMC_VOLUME_NAME, and set the disk name based on the
``disk-name`` property. This aligns with other disk drivers, and allows
for multiple instances of the mmc_subsys disk driver to be registered.

Add disk-name properties for all in tree definitions for the
mmc-subsys disk driver, and change all in tree usage of the disk name

Fixes #75004

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-11-05 15:25:10 -06:00
Daniel DeGrasse a1dc0b8b3e drivers: disk: sdmmc_subsys: remove CONFIG_SDMMC_VOLUME_NAME
Remove CONFIG_SDMMC_VOLUME_NAME, and set the disk name based on the
``disk-name`` property. This aligns with other disk drivers, and allows
for multiple instances of the sdmmc_subsys disk driver to be registered.

Add disk-name properties for all in tree definitions for the
sdmmc-subsys disk driver, and change all in tree usage of the disk name

Fixes #75004

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-11-05 15:25:10 -06:00
Anas Nashif 9cabb89969 tests: drivers: display: fix filtering
Test was marked build only with filters in each scenario looking for
sdl-dc which is only available on native_sim, so cut the chase and use
platform_only to narrow things down to native_sim directly instead of
building the world to get information we already know.

reduces build/run time from 78s to 17s on invocation of twister with
default options, saves a ton more when running twister with --all.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-05 10:56:29 -06:00
David Leach 21f37c8bfd tests: counter: RW612 dts overlay support for basic_api tests
Remove memory spaces not needed for the counter_basic_api test.
Add frdm_rw612.overlay

Signed-off-by: David Leach <david.leach@nxp.com>
2024-11-05 10:56:00 -06:00
Mert Vatansever 9cfd185ab0 tests: drivers: flash: Fix MAX32666 flash error
This commit fixes flash error by correcting flash size.

Signed-off-by: Mert Vatansever <mert.vatansever@analog.com>
2024-11-01 09:55:52 -05:00
Mathieu Choplain 5e7009a120 tests: adc: adc_api: add overlay for Nucleo-WB05KZ
Add an overlay to the test to allow build for this board (needed for CI).

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-10-27 01:08:25 +02:00
Mathieu Choplain 59b469725b tests: adc: adc_api: add overlay for Nucleo-WB09KE
Add an overlay to the test so that it can run on STM32WB0 series hardware.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-10-27 01:08:25 +02:00
Jilay Pandya 367f853a4c drivers: stepper: rename compatible of gpio-stepper
This commit fixes minor copyright issues and corrects the compatible of
gpio-stepper with the vendor name as zephyr

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2024-10-26 11:29:57 +02:00
Raffael Rostagno 5e3fe2765a tests: counter: overlays: Files cleanup
Moving overlay files from boards to socs as cleanup of
redundant configs.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-10-26 03:57:23 +01:00
Raffael Rostagno 891b946bc6 tests: counter: rtc: Change clock source for precision
Clock source is changed from RC_SLOW to RC_FAST_D256 in order
to improve clock precision and avoid tests failing due to
lower precision of RC clock (around 10%).

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-10-26 03:57:23 +01:00
Declan Snyder 5f51b0acba boards: frdm_mcxw71: Enable ADC and tests/sample
Enable LPADC on the FRDM_MCXW71 and add overlays for tests and sample

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-10-25 18:52:10 +01:00
Mathieu Choplain 31fea97e05 tests: dma: loop_transfer: add overlay for Nucleo-WB09KE
Add an overlay to the test so that it can run on STM32WB0 series hardware.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-10-25 14:22:06 +02:00
Mathieu Choplain 35835f8d47 tests: dma: chan_blen_transfer: add overlay for Nucleo-WB09KE
Add an overlay to the test so that it can run on STM32WB0 series hardware.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-10-25 14:22:06 +02:00
Krzysztof Chruściński a04c1db9a4 tests: drivers: uart: uart_async_api: Add nrf54l15dk//cpuapp overlay
Add overlay for nrf54l15dk/nrf54l15/cpuapp target.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-25 14:02:03 +02:00
Phi Bang Nguyen 59e253ed4a drivers: video: csi: Drop source device phandle reference
The peer remote device "source_dev" can be retrieved from the
remote-endpoint-label. Direct reference via phandle is not needed.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-10-25 08:54:57 +02:00
Trung Hieu Le a182394725 drivers: video: mipi_csi2rx: Set clocks according to pixel rate
Instead of fixing csi2rx clock frequencies, set them according to the
pixel rate got from the camera sensor.

Signed-off-by: Trung Hieu Le <trunghieu.le@nxp.com>
Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-10-25 08:54:57 +02:00
Phi Bang Nguyen f82b0d5681 drivers: video: mipi_csi2rx: Drop sensor device phandle reference
The peer remote device "sensor_dev" can be retrieved from the
remote-endpoint-label. Direct reference via phandle is not needed.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-10-25 08:54:57 +02:00
Phi Bang Nguyen 328f40fddb dts-bindings: video: mipicsi2rx: Use video interfaces bindings
Switch to use the new video interfaces bindings

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-10-25 08:54:57 +02:00
Phi Bang Nguyen 30604a8a76 dts-bindings: video: ov5640: Use video interfaces binding
Switch to use the new video interfaces binding

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-10-25 08:54:57 +02:00
Krzysztof Chruściński d480093cd6 tests: drivers: uart: async_api: Use custom long buffer for nrf54h20
nrf54h20dk_nrf54h20_cpurad by default has less RAM dedicated for
DMA transfers and default 1k buffer cannot be used for
uart_async_long_buf case. Use custom value.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-25 08:53:15 +02:00
Krzysztof Chruściński d612982b14 tests: drivers: uart: async_api: Make long buffer configurable
One of the test case is performing long transfers using 1k buffers.
For some targets there may be not enough RAM to perform such
transfers. Make long buffer length configurable.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-25 08:53:15 +02:00
Henrik Brix Andersen 54545254d9 tests: tests: drivers: can: timing: enable full timing test on usb2canfdv1
Enable the full range of CAN timing tests on the WeAct USB2CANFDV1 board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2024-10-24 22:02:53 +01:00
Henrik Brix Andersen 1e83368d88 tests: drivers: can: api: fix misunderstood use of ESI flag
Fix the test for sending frames with the CAN_FRAME_ESI flag set. Sending
frames with this flag set in software is never allowed.

Fixes: 8023a58c2a

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-10-24 18:02:26 +02:00
Rafael Laya 16218018d7 drivers: regulator: Linter pass to unit test
Linter pass makes CI happy and keeps code compliant
with the stylistic guidelines of the project

Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
2024-10-24 17:51:25 +02:00
Rafael Laya e542dde890 drivers: regulator: add tests for get_max/min voltage
Adds unit tests to make sure get_max and get_min voltage
remain healthy

Signed-off-by: Rafael Laya <rafael_laya97@hotmail.com.com>
2024-10-24 17:51:25 +02:00
Benjamin Cabé d885957fe8 boards: nxp: adopt new zephyr:board directive and role
This updates the documentation of all the NXP boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Adam Kondraciuk 245aee4a8b tests: drivers: timer: nrf_grtc: run GRTC tests on nRF54L20
Run GRTC tests for nRF54L20 platform.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2024-10-24 13:15:11 +01:00
Krzysztof Chruściński 1689eaf6a4 tests: drivers: spi: spi_error_cases: Improve nrf54h20dk cpuppr
Rework overlays and add sysbuild/vpr_launcher folder to allow standard
test configuration for nrf54h20dk cpuppr.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński 949566f829 tests: drivers: spi: spi_controller_peripheral: Add nrf54h20dk cpuppr
Rework existing nrf54h20dk overlays to allow adding of
nrf54h20dk//cpuppr target.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński f20b595dfe tests: drivers: spi: loopback: Add nrf54h20dk cpuppr
Add configuration for nrf54h20dk//cpuppr target.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński 20c34ea092 tests: drivers: spi: spi_loopback: Add nrf54h20dk cpurad
Add overlay for nrf54h20dk cpurad.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Krzysztof Chruściński 614e7d5399 tests: drivers: spi: loopback: Configurable large buffer
In order to allow fiting test in targets with smaller memory make
large buffer configurable through Kconfig.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-24 09:29:39 +02:00
Bartlomiej Buczek dfbcea777a tests: drivers: adc_accuracy: add calibration before sampling
Calibrate adc before taking measurement.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:17 +02:00
Bartlomiej Buczek 557b5bda9a tests: drivers: adc_accuracy: parametrize expected accuracy
On nrf boards expected accuracy from ref voltage is 64 instead of 32.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:17 +02:00
Bartlomiej Buczek 008f8babac tests: drivers: adc_api: change second channel gain for nrf54.
It will increase test coverage for adc driver, no test uses
ADC_GAIN_2_3 setting yet.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:17 +02:00
Bartlomiej Buczek 108f6cdf3a tests: adc_accuracy: add overlay for nrf54l15dk.
Add overlay and enable test for nrf54l15dk.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:17 +02:00
Bartlomiej Buczek d4c8b358fa tests: adc_accuracy: Add overlay for nrf54h20dk.
Add overlay and enable test for nrf54h20dk.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:17 +02:00
Bartlomiej Buczek dc9a9dcf40 tests: adc_accuracy: Add overlay for nrf52840dk.
Add overlay and enable test for nrf52840dk.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:17 +02:00
Bartlomiej Buczek da81490034 tests: drivers: adc: add adc_error_cases tests.
Tests are checking error codes returned from adc_read() and
adc_channel_setup() used with invalid configurations.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2024-10-23 17:02:07 +02:00
TOKITA Hiroshi 0845fbda7f tests: drivers: build_all: w1: Add `zephyr,w1-serial` to build test
Add configuration for `zephyr,w1-serial` to enable build test

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-23 16:54:15 +02:00
TOKITA Hiroshi 06eaf05bc8 tests: drivers: build_all: w1: Add i2c-devices build test
Add build tests for following devices.

- maxim,ds2482-800
- maxim,ds2484
- maxim,ds2485

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-23 16:54:15 +02:00
TOKITA Hiroshi 317405c01d tests: drivers: build_all: Add a build_all test for disk
The test targets the following devices at this time.

- zephyr,sdmmc-disk
- zephyr,mmc-disk

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-23 16:54:15 +02:00
TOKITA Hiroshi 60002865c7 tests: drivers: build_all: Add a build_all test for crypto
The test targets the following devices at this time.

- atmel,ataes132a

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-23 16:54:15 +02:00
Armando Visconti 5be36eef47 drivers/sensor: lps2xdf: add ilps22qs support
The ILPS22QS is an ultra-compact piezoresistive absolute pressure sensor
which functions as a digital output barometer, supporting dual full-scale
up to user- selectable 4060 hPa. The device delivers ultra-low pressure
noise with very low power consumption and operates over an extended
temperature range from -40 °C to +105 °C.

(https://www.st.com/en/mems-and-sensors/ilps22qs.html)

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2024-10-23 16:52:57 +02:00
Karol Lasończyk 19252bdc3d tests: drivers: i2s: Add overlay to support nRF54L15 DK
Add overlay to support nRF54L15 DK.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2024-10-23 16:52:49 +02:00
Sebastian Głąb 8023a58c2a tests: drivers: can: api: Add negative test for can_send()
Check error codes when sending invalid frames:
- too big data payload;
- wrong set of flags.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-10-23 11:40:34 +02:00
Sebastian Głąb 2616720ee2 tests: drivers: can: api: Add negative test for can_set_bitrate_data()
There is negative test for too high data bitrate.
Add test that checks too low data bitrate.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-10-23 11:40:34 +02:00
Sebastian Głąb 13fbac86eb tests: drivers: can: api: Add negative test for can_set_bitrate()
There is negative test for too high bitrate.
Add test that checks too low bitrate.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-10-23 11:40:34 +02:00