Commit Graph

1567 Commits

Author SHA1 Message Date
Kumar Gala
2a8e3fe82d tests: gpio_basic_api: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 09:26:30 -05:00
Kumar Gala
1f82e32518 tests: gpio-api-1pin: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 09:26:30 -05:00
Yuriy Vynnychek
99479ecbda drivers: adc: introduce new Telink B91 ADC driver
ADC driver basic support for Telink B91 SoC.

Signed-off-by: Yuriy Vynnychek <yura.vynnychek@telink-semi.com>
2022-07-08 11:07:18 +02:00
Kumar Gala
9d175ca5f1 tests: regulator: fixed: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 10:54:48 +02:00
Kumar Gala
c49e67cffd tests: regulator: fixed: Convert to use gpio_dt_spec
Move test to use gpio_dt_spec for GPIO access.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 10:54:48 +02:00
Kumar Gala
8739899a02 tests: regulator: pmic: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 10:51:16 +02:00
Kumar Gala
7f7ce3a70c tests: counter: maxim_ds3231_api: Rework test to use struct device
Move to pass 'struct device' instead of a 'char *'.  This lets us move
from device_get_binding to DEVICE_DT_GET.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 10:47:38 +02:00
Kumar Gala
572782020f tests: drivers: counter_seconds: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Note: the CONFIG_COUNTER_CMOS driver is devicetree based so we can
remove the hardcoded "CMOS" and use DT_COMPAT_GET_ANY_STATUS_OKAY.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 10:47:19 +02:00
Kumar Gala
8daf80e929 tests: counter: counter_nrf_rtc: fixed_top: Rework to use struct device
Move to pass 'struct device' instead of a 'char *'.  This lets us move
from device_get_binding to DEVICE_DT_GET.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-08 10:47:07 +02:00
Kumar Gala
b9940d5988 tests: gpio_get_direction: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 15:13:36 +02:00
Kumar Gala
e5185edb62 tests: drivers: build_all: Remove mt9m114 from sensor
Remove mt9m114 from dtsi is a video driver and not a sensor.  The
sensor build_all test didn't actually build this driver and we have
coverage now from the video build_all test for it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 15:12:29 +02:00
Kumar Gala
0a41c47277 tests: drivers: build_all: Add test for video drivers
Add a set of tests to cover building drivers that are in drivers/video/

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 15:12:29 +02:00
Francois Ramu
209c75ca19 tests: drivers: gpio on nucleo_g071rb new pins
This commit changes the pin assignment for the gpio_basic_api
test case because A0 was conflicting with the testcase
tests/drivers/dac/dac_loopback.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-07-07 10:28:23 +00:00
Kumar Gala
55df2bf08f tests: i2c_target_api: use DEVICE_DT_GET
Convert test to use DEVICE_DT_GET instead of device_get_binding
to help phase out use of DT_LABEL/DT_BUS_LABEL.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:20:39 +02:00
Kumar Gala
a40a0e9294 tests: drivers: bbram: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:08:14 +02:00
Kumar Gala
823bf7b3d3 tests: drivers: kscan_api: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:05:50 +02:00
Kumar Gala
b161a013c1 tests: i2c_tca954x: remove dead code
I2C_x_CTRL_DEV_NAME defines are not used, so remove them.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:05:18 +02:00
Kumar Gala
9985f2d281 tests: drivers: nrf_clock_calibration: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:04:38 +02:00
Kumar Gala
31756e3e4c tests: espi: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:04:26 +02:00
Kumar Gala
b20613d650 tests: drivers: i2c_api: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:04:00 +02:00
Kumar Gala
ef26ab7e85 tests: clock_control: on_off: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:03:49 +02:00
Kumar Gala
e42cffb058 tests: clock_control: nrf_onoff_and_bt: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:03:36 +02:00
Kumar Gala
7102f6a95a tests: drivers: dac_api: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:03:24 +02:00
Kumar Gala
92b4f23deb tests: dac_loopback: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:03:12 +02:00
Kumar Gala
5454008edc tests: drivers: sensor: accel: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 09:59:12 +02:00
Kumar Gala
8d4bd6be3a tests: watchdog: wdt_basic_api: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 02:45:13 -04:00
Anas Nashif
02f2896586 tests: add mising braces to single line if statements
Following zephyr's style guideline, all if statements, including single
line statements shall have braces.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-06 11:00:45 -04:00
Marcin Niestroj
d32d4af935 boards: arm: add Seeed XIAO BLE board
The Seeed XIAO BLE is a tiny (21 mm x 17.5 mm) Nordic Semiconductor
nRF52840 ARM Cortex-M4F development board with onboard LEDs, USB port,
QSPI flash, battery charger, and range of I/O broken out into 14 pins.

Co-authored-by: Peter Johanson <peter@peterjohanson.com>
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-07-06 10:58:37 +02:00
Jamie McCrae
f113b1f718 tests: drivers: watchdog: Add RPI Pico support
Adds support for running the wdt test on the Raspberry Pi Pico by
increasing the window size and disabling timeouts.

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2022-07-06 10:52:29 +02:00
Kumar Gala
02804f509c tests: uart_pm: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-06 10:46:03 +02:00
Kumar Gala
f23a079b7e tests: uart_mix_fifo_poll: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-06 10:46:03 +02:00
Kumar Gala
5deec936a0 tests: uart_async_api: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Also, fixed issue that change exposes with SEGGER RTT testing
in that in some platforms the device getting selected for the
RTT test was not the RTT device.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-06 10:46:03 +02:00
Thomas Stranger
f1a37c9629 tests: drivers: build_all: sensor: add w1 driver and ds18b20
This commit adds the necessary changes to build w1-devices using
the vnd,w1 dummy driver in the build_all test case.

Additionally, definitions for the ds18b20 1-wire temperature sensor
are added.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-07-05 23:06:45 +02:00
Thomas Stranger
442b06d02a tests: drivers: w1: add basic api test
This commit adds basic api tests for the w1 driver.

These tests mostly make sure that everything compiles without
errors. They expect a w1-bus configuration without any connected slave.
No bidirectional read/write tests are executed.
Send tests simply send without verifying the output,
and receive tests expect an idle bus(receiving only logical ones).

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-07-05 23:06:45 +02:00
Kumar Gala
e1ec648124 tests: adc_emul: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-05 12:26:28 +02:00
Kumar Gala
a50f118f0e tests: adc_dma: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-05 12:26:28 +02:00
Kumar Gala
7022eb05e4 tests: adc_api: Convert test to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as we
work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-05 12:26:28 +02:00
Francois Ramu
01909a21f8 tests: drivers: dac loopback testcase for nucleo g071rb
Running the testcase dac loopback on the nucleo_g071rb
target board.
The ADC1 in0 on PA0 (pin A0), the DAC1 out1 on PA4 (pin A2)
must be connected on the HW.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-07-04 17:32:10 +00:00
Alexandre Duchesne
b4034adec7 hal: gigadevice: Update gd32f4xx to firmware 3.0.0
Fix to support gd32f4xx update to firmware 3.0.0

Signed-off-by: Alexandre Duchesne <alexandre.duchesne@rtone.fr>
2022-07-04 18:07:51 +02:00
Thomas Stranger
33eba217de tests/drivers/clock_control: stm32_common_devices: add adc alt. clk. src
This commit adds a test case that configures an alternative clock source
for an ADC peripheral.

In case no alt clock is available, only the gating clock is enabled
and disabled.
Unlike the i2c and lptim test, the actual gating clock frequency is
not checked, because for the adc there seems to be no uniform way
to retrieve the frequency via the hal.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-07-04 16:41:24 +02:00
Thomas Stranger
a6f4d604b6 tests/drivers/clock_control: stm32 add adc-pll_p overlays(g0,g4,wl)
For the STM32G0, STM32G4, and STM32WL enable the adc node in one
configuration, and select the PLL_P output as its clock source.
PLL_P divider is chosen to be 20 to make sure it's a unique frequency.
- g0, and g4 have pll as sysclk
- wl has hse as sysclock

The test configurations and the overlay-files are renamed accordingly.
All overlays that don't specify an alternative clock source still
make sure that the adc node is "okay" to be able to perform basic test.
The basic test only turns on and off the gate clock without checking the
frequency.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-07-04 16:41:24 +02:00
Thomas Stranger
1feaea34aa tests/drivers/clock_control: stm32_common_devices: lptim check disabled
The test checks if the peripheral gating clock was correctly disabled
after the test, but accidentally the I2C_CLK was checked instead of the
LPTIM_CLK.

This commit fixes this by using __HAL_RCC_LPTIM1_IS_CLK_ENABLED instead.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-07-04 16:41:24 +02:00
Thomas Stranger
fd49f4df1b tests: drivers: clock_control: stm32_wl fix external clock dts
The nucleo_wl55jc according to the datasheet does have a
NT2016SF-32M-END5875A 32MHz TCXO as HSE, therefore needs
enable the "hse-tcxo;" property to work, this was not the case
for the clock_configuration/stm32_common_devices test cases.

Additionally, remove the comment about about ST-Link clock,
because the source is the tcxo and not the ST-Link.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2022-07-04 16:41:24 +02:00
Hake Huang
3051ba19f0 tests: counter: disable driver debug message
to avoid log log in test report, disable driver debug message

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2022-07-04 16:21:02 +02:00
TOKITA Hiroshi
8e330cfcd6 tests: exclude arduion_mkrzero from uart_async and spi_loopback tests
uart_async test and spi_loopback test require UART and SPI
with an ASYNC option.
The SAM0 UART/SPI driver requires configuring DMA support.
Arduino MKRZero is not DMA configured like other SAM0 boards.
We exclude it from the tests.

ea36f9b and f4c5bdf already exclude other SAM0 boards from these tests.
Arduino MKRZero also followed these PR policies.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-07-04 16:00:56 +02:00
Sahaj Sarup
9320dc7921 board: arm: Add support for Black Pill V1.2 F401CC
Changes:

 - Copied over board files for blackpill_f401ce
 - Changed appropriate soc dtsi from stm32f401Xe.dtsi to stm32f401Xc.dtsi
 - Replaced any instance of F401CE to F401CC
 - Added blackpill_401cc to adc test

In essense the blackpill_f401ce and blackpill_f401cc are the exact
same boards,
the f401cc variant of the stm32 mcu has lesser sram and flash than
the f401ce.

Signed-off-by: Sahaj Sarup <sahaj.sarup@linaro.org>
2022-07-04 15:46:03 +02:00
Daniel DeGrasse
21b8d1c8e0 tests: drivers: disk: Add disk performance test
Add disk performance test, to report performance of disk devices. This
test reports performance for single sector R/W, sequential read/writes,
and an IOPS score based on random 512 byte reads and writes.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-07-04 15:45:47 +02:00
Daniel DeGrasse
809f8a9380 tests: drivers: disk: rename disk driver test to disk_access
Rename disk driver test to disk_access, as multiple disk tests exist.
Disk access test is intended to verify disk functionality.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-07-04 15:45:47 +02:00
TLIG Dhaou
933bd0e55a tests: drivers: clock_control: stm32_clock_configuartion add testcases
Add testcases when hsi used with the hsi div as system clock source.

Signed-off-by: TLIG Dhaou <dhaou.tlig-ext@st.com>
2022-07-04 15:20:06 +02:00
Reto Schneider
7a6c5710ff cmake: Update cmake_minimum_required to 3.20.0
As Zephyr currently requires CMake version 3.20.0, update all
occurrences of cmake_minimum_required.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2022-07-04 10:18:45 +02:00