Commit graph

3380 commits

Author SHA1 Message Date
Jakub Topic
3de17474b0 tests: drivers: rtc: skip alarm callback test if not supported
Check for ENOTSUP on alarm callback test if ALARM functionality is
enabled but callbacks are not supported

Signed-off-by: Jakub Topic <jakub.topic@anitra.cz>
2024-06-17 12:09:15 -04:00
Trent Piepho
d7e03dd148 drivers/sensor: si7006: Support SHT21 and HTU21D
These three sensor types are all largely compatible.  The SHT21 and
HTU21D can be supported by this driver by sending command 0xE3 instead
of 0xE0 to read the temperature.

Mention the sensor names in bindings and Kconfig to help those looking
for support to find it.  There have been at least five PRs attempting to
add SHT21 and/or HTU21D support that did not realize the Si7006 is the
same.

As mentioned in PR #22862, the Sensirion SH21 is the original.  The dts
bindings are adjusted (in a backward compatible way!) to make the sht21
the base binding and si7006 is derived from that.

Examples of dts compatibles:

TE Connectivity née Measurement Sepcialties HTU21D:
compatible = "meas,htu21d", "sensirion,sht21";

Sensirion SHT21:
compatible = "sensirion,sht21";

Silicon Labs Si7006
compatible = "silabs,si7006";

Silicon Labs Si7021
compatible = "silabs,si7021", "silabs,si7006";

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
2024-06-15 04:42:31 -04:00
Swift Tian
2b103137ab tests: mspi: Add apollo3p_evb board to flash test
The apollo3p_evb board has a ATXP032 NOR flash and driver is tested
in mspi/flash test.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2024-06-14 21:07:00 -04:00
Swift Tian
4d83bc2c8c tests: mspi: Add apollo3p_evb board to api test
Add the apollo3p_evb board to test the MSPI controller implementation.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2024-06-14 21:07:00 -04:00
Swift Tian
292a4ebf21 tests: mspi: Add a mspi flash test
The mspi flash test is intended to test mspi flash device driver
implementation on MSPI bus. The test requires the device to have at
least two sectors of memory with MSPI_FLASH_SECTOR_SIZE as size.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2024-06-14 21:07:00 -04:00
Swift Tian
42d24e5716 tests: mspi: Add mspi api test
Add a MSPI controller API test and run on native_sim board.
The API implementation within mspi_emul.c is the test target.
The stub device emulator is added for convenience to test controllers.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2024-06-14 21:07:00 -04:00
Sadik Ozer
6bb6bfb458 tests: drivers: gpio: Enable gpio driver tests for max32670evkit board
Enable gpio driver test for max32670evkit

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-06-14 21:06:16 -04:00
Raffael Rostagno
ec10f1b97f boards: esp32c6: Added PWM test file for esp32c6_devkitc
Added basic PWM test for esp32c6_devkitc

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-06-14 18:51:46 -04:00
Raffael Rostagno
1173273f32 boards: esp32c6_devkitc: Added support for GP-SPI2
Added support for general purpose SPI2 (GP-SPI2)

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2024-06-14 18:51:46 -04:00
Benjamin Lemouzy
5c8937fbac drivers: sensor: lm75: add alert threshold support
Add SENSOR_ATTR_ALERT and SENSOR_ATTR_HYSTERESIS attributes support.
The code is heavily inspired by the one for lm77 sensor.

Signed-off-by: Benjamin Lemouzy <blemouzy@centralp.fr>
2024-06-14 18:48:32 -04:00
David Ullmann
ba75fe482a tests: add build test for reyax lora driver
adding test to build the reyax lora driver

Signed-off-by: David Ullmann <davidl.ullmann@gmail.com>
2024-06-14 17:12:49 -04:00
Daniel DeGrasse
1893928d94 tests: drivers: build_all: display: clean up reg addresses
Clean up register addresses for devices defined as children of the dummy
SPI bus, so that they start from zero. This ensures all SPI chip select
gpio indices will be used

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-14 17:11:20 -04:00
Daniel DeGrasse
be23e70fff drivers: display: gc9x01: convert to MIPI DBI API
Convert galaxycore GC9X01 to MIPI DBI API. In tree boards and tests
using this display have also had their devicetrees updated to use the
new MIPI DBI SPI emulated device.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-14 17:11:20 -04:00
Robert Hancock
2d171efcec drivers: sensors: Add driver for LM95234 temperature sensor
Add a driver for the National/TI LM95234 Quad Remote Diode and Local
Temperature Sensor with SMBus Interface and TruTherm Technology.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
2024-06-14 19:34:01 +02:00
Daniel DeGrasse
7714f8f87b tests: drivers: display: build_all: add uc81xx
Add uc81xx to display build test

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-14 19:32:39 +02:00
Rubin Gerritsen
8799ab1ec2 test: Apply semantic patch file ztest_strcmp.cocci
This patch file updates the use of assertion macros
comparing strings.

Command line used:
```
./scripts/coccicheck --mode=patch \
--cocci=scripts/coccinelle/ztest_strcmp.cocci tests/
```

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2024-06-14 19:25:42 +02:00
Jeppe Odgaard
86fa756dde tests: drivers: dac: use zassert_ok
Replace `zassert_equal` with `zassert_ok` where return value contains 0
or errno.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-06-14 15:38:24 +02:00
Francois Ramu
2146813cb3 tests: drivers: adc stm32 api testing on the stm32h7s78 disco kit
add the stm32h7s78_dk disco kit to run the tests drivers
This  testcase is executed (XiP) from the external NOR
of the stm32h7s78_dk board.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-06-14 11:13:54 +02:00
Anke Xiao
4141b7cb64 tests: drivers: i2c: add i2c support for NXP FRDM-KE17Z512
Added support for NXP FRDM-KE17Z512,
and tested i2c_target_api sample.

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
2024-06-14 11:12:27 +02:00
Sadik Ozer
ae5a15ab0e tests: drivers: gpio: Enable gpio driver tests for max32672 boards
Enable gpio driver test for max32672evkit and fthr boards

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-06-13 20:17:49 -04:00
Daniel DeGrasse
323adb9f08 tests: drivers: display: build_all: add ssd16xx
Add ssd16xx to display build test

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-13 17:01:16 -04:00
Declan Snyder
e902a08832 boards: frdm_rw612: Simple enablements collection
A collection of simple enablements to match some of the enablement
done for rd_rw612_bga as closely as possible on the frdm_rw612 board.

- i2c
- spi
- dma
- mrt
- ctimer
- os timer
- dac
- adc
- trng (alread was enabled but now listed support)
- watchdog

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-06-13 16:44:12 -04:00
Jeronimo Agullo
436f56646b boards: sparkfun: Add micromod nrf52840 board and asset tracker shield
Initial support of Sparkfun Micromod ecosystem with micromod nrf52840
board, asset tracker shield and micromod header definition.

Signed-off-by: Jeronimo Agullo <jeronimoagullo97@gmail.com>
2024-06-13 17:55:42 +02:00
Thomas Stranger
ee923b538b tests: drivers: can: timing: enable all bitrates on stm32h5 boards
Enable testing of all CiA recommended bitrates on the nucleo_h563zi,
where I can test, and the stm32h573i_dk, which is the testing platform
for the stm32h5 series.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-06-13 05:33:06 -04:00
Daniel DeGrasse
c37e46c906 tests: drivers: display: display_read_write: add support for ILI9340
Add support for ILI9340 to display_read_write test. This support was
verified with the adafruit_2_8_tft_touch_v2 shield.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-13 09:23:40 +02:00
Daniel DeGrasse
ebacd80c7b tests: drivers: build_all: display: add st7789v display
Add st7789v display to the display build all test

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-13 09:22:54 +02:00
Lothar Felten
7fef853015 boards: lilygo: ttgo_t8c3: initial support
adds initial support for Lilygo TTGO T8-C3 board

Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
2024-06-12 21:15:09 -04:00
Tim Lovett
216a1d95ed boards: seeed: Add xiao_rp2040 board
Adds xiao_rp2040 board built off rpi_pico
Currently only uf2 flash supported

Signed-off-by: Tim Lovett <timo614@gmail.com>
2024-06-12 17:10:04 -05:00
Hou Zhiqiang
abf90d4ad7 arm64: linker: create region and section from zephyr,memory-region
In arm64 linker script, create a memory region and section for each
device tree node with compatible string "zephyr,memory-region".

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2024-06-12 17:09:24 -05:00
Aksel Skauge Mellbye
fee86aecaa boards: silabs: Consistently name radio boards
Rename all Silicon Labs radio boards to always use the official kit name of
the kit containing only the radio board as board target name. Disentangle
boards using Series 1 and Series 2 SoCs that have almost nothing in common
in terms of devicetree content, but still occupied the same directory.

As part of the initial HWMv2 port, all radio boards were merged into a
single target efr32_radio, using the SoC as a board qualifier to target
specific boards. This was unfortunate, as the SoC name is not sufficient
to identify a specific board -- the same SoC may be used on multiple
different boards. This commit reinstates every radio board as an individual
board target.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-06-12 12:52:28 -04:00
Aksel Skauge Mellbye
bc6c363bc9 boards: silabs: Consistently name dev kits
Rename all Silicon Labs dev kits to always use the official kit name
as board target name. Previous kit names used various naming schemes,
including putting part of the SoC name in the board name. With HWMv2,
SoC names (if needed) should go in the SoC board qualifier.

Use HWMv2 revisions for the two variants of SLTB010A.

Split the xG27 Dev Kit from the EFR32BG22 Thunderboard. This attempt
at deduplication is confusing due to the very different kit names
and use of different ICs (BG22 vs BG27), and was not continued with
the xG24 Dev Kit, meaning that it wasn't consistent.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2024-06-12 12:52:28 -04:00
Abderrahmane Jarmouni
924206e083 test: drivers: spi: loopback: stm32: add more boards to CI
Add more STM32 boards to run in DMA & IRQ test cases.

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
2024-06-12 14:28:35 +03:00
Thomas Stranger
34cac05775 drivers: sensor: sensirion: shtcx: remove chip property
Removes the dts "chip" property, the compatible should be used instead.

Any existing dts should be converted from something like:

test_i2c_shtc3: shtc3@70 {
	compatible = "sensirion,shtcx";
	reg = <0x70>;
	chip = "shtc3";
	measure-mode = "normal";
	clock-stretching;
};

to something like:

test_i2c_shtc3: shtc3@70 {
	compatible = "sensirion,shtc3", "sensirion,shtcx";
	reg = <0x70>;
	measure-mode = "normal";
	clock-stretching;
};

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-06-11 20:12:15 +03:00
Ruben Völl
9bb3853e67 tests: drivers: uart_emul: extend test case for async API
- Tests that the API of the uart-emul also works with the async API
- Tests that `uart_emul_set_release_buffer_on_timeout()` configures the
  behavior as expected
- The tests are now splited into three different configurations: only
  polling API enabled, additionally interrupt driven API enabled and
  additionally async API enabled
- Enabled `native_sim` board

Signed-off-by: Ruben Völl <ruben.voell@grandcentrix.net>
2024-06-11 20:05:24 +03:00
Emilio Benavente
e8b500fd22 tests: drivers: counter: counter_basic_api: enabled lptmr testing
Enabled the counter_basic_api test to test lptmr.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-06-11 17:04:26 +03:00
Krzysztof Chruściński
4d6c05928b tests: drivers: counter: counter_basic_api: Add nrf54h20 ppr
Add overlays for PPR core on nrf54h20.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-06-11 11:39:14 +01:00
Krzysztof Chruściński
331442f059 tests: drivers: counter: basic_api: Tweak test timing
For slow processors it is possible that setting 1 ms alarm and
then canceling it could lead to alarm expiring before it is canceled
and that was not expected in the test. Increasing timeout to 1.5ms.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-06-11 11:39:14 +01:00
Krzysztof Chruściński
c87ab8c566 tests: drivers: counter: nrf_rtc: fixed_top: Add nrf54h20 ppr
Add overlays for PPR core on nrf54h20.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-06-11 11:39:14 +01:00
Johann Fischer
1695eed7c9 tests: udc: rework driver test configuration
Distinguish between test case dependencies where a board has a test
feature "usbd" and where no dependency is required other than the
devicetree overlay file, as here to build the UDC skeleton driver.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-06-11 11:38:09 +01:00
Karol Lasończyk
ba305170f6 tests: drivers: adc: Add overlay for nRF54H20 board
Adds configuration for making tests work.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
2024-06-11 11:37:59 +01:00
Aurelien Jarno
d78a942945 tests: drivers: bbram: add nucleo_g071rb as an integration platform
Add the nucleo_g071rb board as an integration platform to the bbram
test.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2024-06-10 15:16:59 -05:00
Lucas Tamborrino
f071a26cca tests: spi: spi_loopback: organize esp32 based boards
Move esp32 based boards to `soc` folder to avoid repeated files.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-06-10 14:56:24 -05:00
Marcio Ribeiro
86ff968718 tests: drivers: adc
adds test case for esp32 adc with dma enabled

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2024-06-10 07:02:19 -07:00
Furkan Akkiz
2d44b48cec tests: drivers: i2c: i2c_target_api: Add MAX32690EVKIT
Enable I2C target API test for MAX32690EVKIT board.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2024-06-07 13:01:50 +02:00
Anke Xiao
495b90eadc tests: drivers: gpio: gpio_basic_api: add overlay for ke17z512
The gpio_basic_api sample for gpio driver was tested for frdm_ke17z512

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
2024-06-07 09:55:56 +02:00
cyliang tw
6293daa438 tests: drivers: watchdog: wdt_basic_api: support numaker_m2l31ki
Add support for Nuvoton numaker board numaker_m2l31ki.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2024-06-07 09:52:58 +02:00
Daniel DeGrasse
1ef42731fd test: drivers: build_all: video: add ov7670 to build test
Add ov7670 camera driver to build test for video drivers

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-06 20:07:57 -04:00
Jordan Yates
90bbf19d6a boards: remove spi-flash0 alias
As `samples/drivers/spi_flash` no longer needs this alias, there is no
use for it on boards.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-06 15:21:18 -05:00
Henrik Brix Andersen
06f02eb384 tests: drivers: can: timing: enable full timing test on frdm_mcxn947
Enable the full range of CAN timing tests on the NXP FRDM-MCXN947 board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-06-06 15:46:57 +01:00
Sreeram Tatapudi
0b599c6600 tests: drivers: Enable driver tests for cyw20829
Add overlays to enable GPIO and I2C driver tests

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2024-06-06 09:42:20 +02:00