Commit Graph

257 Commits

Author SHA1 Message Date
Andriy Gelman
662f48a45b tests: drivers: adc_api: Add copyright header to xmc45_relax_kit
Add missing copyright header.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2023-05-02 12:34:55 +02:00
Andriy Gelman
f8f09300c1 boards: arm: Add xmc47_relax_kit
Adds Infineon xmc47_relax_kit board.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2023-05-02 12:34:55 +02:00
Lucas Tamborrino
631423bc8e tests: adc: adc_api: add esp_wrover_kit overlay
Add support for esp_wrover_kit board in adc test.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-04-28 14:49:08 +02:00
Bill Waters
3e02d48e4e driver: adc: infineon: Adding ADC driver
- This includes the driver, test app, and sample app
- Only the boards\arm\cy8cproto_062_4343w board is supported for now

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2023-04-27 10:16:23 -07:00
TOKITA Hiroshi
0a24c4c869 tests: driver: adc: adc_api: add nucleo_f030r8 config
Add adc_api test configuration for nucleo_f303r8

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2023-04-27 09:51:32 +02:00
Roman Dobrodii
59b6c84e1f dts/arm/silabs: IADC support for EFR32BG27
Enable IADC for EFR32BG27 and add support for this board to
tests/drivers/adc_api test.

Signed-off-by: Roman Dobrodii <rdobrodii@antmicro.com>
2023-04-25 12:21:03 +02:00
Filip Kokosinski
a01dc33ef1 tests/drivers/adc/adc_api: add efr32xg24_dk2601b.overlay
This file adds the board overlay file for the `efr32xg24_dk2601b` board
to enable the `drivers.adc` test on this board.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-04-24 09:22:21 -05:00
Filip Kokosinski
153f084cd7 tests/drivers/adc/adc_api/boards: add efr32bg22_brd4184a overlay
This commit adds support for the `drivers.adc` test by adding an overlay
for the `efr32bg22_brd4184a` board.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2023-04-21 16:24:39 +02:00
Benjamin Björnsson
3386463f95 tests: drivers: adc: adc_emul: Move to use default adc node
Use adc node already present in native_posix dts.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-20 10:48:33 +02:00
Benjamin Björnsson
2ee24bf619 tests: drivers: adc: adc_api: Remove redefinition of adc node
Remove redefinition of adc0 node in native_posix overlay
since it's now present in the board dts.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-20 10:48:33 +02:00
Benjamin Björnsson
5fb5de7e43 tests: remove unnecessary includes of adc dt-bindings
Remove includes of adc dt-bindings header since these are
now already included in the root .dtsi file that adds an
adc node.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-20 10:48:33 +02:00
Tim Lin
bcb173becd tests: drivers: Unit test for it82xx2_evb board
The below is the unit test result for the driver and kernel of
it82xx2_evb board.

GPIO/gpio_basic_api: PASS
I2C/i2c_api: PASS
Flash: PASS
UART/uart_basic_api: PASS
PWM/pwm_api: PASS
WDT/wdt_basic_api: PASS
KSCAN/kscan_api: PASS
kernel/sched/schedule_api: PASS
kernel/sched/preempt: PASS
kernel/timer/timer_api: PASS
kernel/sleep: PASS
ADC/adc_api: PASS.
ADC note: conversion time~=61.6us
          sample time delay~=60us
          wait voltage stable time~=202.8us
Set sampling time to 500us will pass for ADC test.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2023-04-19 03:48:38 -04:00
Benjamin Björnsson
9e105d2037 tests: drivers: adc: adc_api: Remove mikroe adc click sheild
Remove shield, using this shild will require an overlay for
the particular board being used.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
7938f86f50 tests: drivers: adc: adc_api: Move compat atmel,sam-afec to DT
Move channel description to devicetree for atmel,sam-afec
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
89ed720f06 tests: drivers: adc: adc_api: Move compat atmel,sam0-adc to DT
Move channel description to devicetree for atmel,sam0-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
9024ffa0c7 tests: drivers: adc: adc_api: Move compat atmel,sam-adc to DT
Move channel description to devicetree for atmel,sam-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
b09423fce8 tests: drivers: adc: adc_api: Move compat gd,gd32-adc to DT
Move channel description to devicetree for gd,gd32-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
70b6a17a96 tests: drivers: adc: adc_api: Move compat telink,b91-adc to DT
Move channel description to devicetree for telink,b91-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
c3c9ce5e01 tests: drivers: adc: adc_api: Move compat nxp,kinetis-adc16 to DT
Move channel description to devicetree for nxp,kinetis-adc16
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
34dad8c55b tests: drivers: adc: adc_api: Move compat nordic,nrf-saadc to DT
Move channel description to devicetree for nordic,nrf-saadc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
64c2cd3230 tests: drivers: adc: adc_api: Move compat nordic,nrf-adc to DT
Move channel description to devicetree for nordic,nrf-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
9d397c2173 tests: drivers: adc: adc_api: Move compat st,stm32-adc to DT
Move channel description to devicetree for st,stm32-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
3219e1618f tests: drivers: adc: adc_api: Move compat nxp,kinetis-adc12 to DT
Move channel description to devicetree for nxp,kinetis-adc12
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
25ca362907 tests: drivers: adc: adc_api: Move compat microchip,xec-adc to DT
Move channel description to devicetree for microchip,xec-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
b2349d817c tests: drivers: adc: adc_api: Move compat nxp,lpc-lpadc to DT
Move channel description to devicetree for nxp,lpc-lpadc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
ad4e732a77 tests: drivers: adc: adc_api: Move compat nuvoton,npcx-adc to DT
Move channel description to devicetree for nuvoton,npcx-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
6e0ce6e81b tests: drivers: adc: adc_api: Move compat ti,cc32xx-adc to DT
Move channel description to devicetree for ti,cc32xx-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
0e1fb2fc23 tests: drivers: adc: adc_api: Move compat ti,cc13xx-cc26xx-adc to DT
Move channel description to devicetree for ti,cc13xx-cc26xx-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
a1b58c7217 tests: drivers: adc: adc_api: Move compat ite,it8xxx2-adc to DT
Move channel description to devicetree for ite,it8xxx2-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
4e93ede856 tests: drivers: adc: adc_api: Move compat nxp_mcux,12b1msps-sar to DT
Move channel description to devicetree for nxp_mcux,12b1msps-sar
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
3d93116b1c tests: drivers: adc: adc_api: Move compat raspberrypi,pico-adc to DT
Move channel description to devicetree for raspberrypi,pico-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
ef91d2f87c tests: drivers: adc: adc_api: Move compat espressif,esp32-adc to DT
Move channel description to devicetree for espressif,esp32-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
8382d119f9 tests: drivers: adc: adc_api: Move compat infineon,xmc4xxx-adc to DT
Move channel description to devicetree for infineon,xmc4xxx-adc
compatible to make the test more readable.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Benjamin Björnsson
5848200dc8 tests: drivers: adc: adc_api: Move test to devicetree
Move test to use adc_dt_spec for native posix board.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-14 09:57:51 +02:00
Thomas Stranger
d312ce97c9 tests: drivers: adc: adc_api: add definitions for nucleo_h563zi
Adds the necessary definitions for the nucleo_h563zi to be able to run
the adc_api test on the ADC1 channel 15 (on pa3).

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2023-04-07 13:14:21 +00:00
Benjamin Björnsson
193b1ca784 tests: drivers: adc: adc_api: Add min_flash filter
Adding min_flash filter to not build for Nucleo C031C6.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2023-04-07 08:18:03 +00:00
Francois Ramu
0b422ed02e tests: drivers: adc for the stm32h573 board
Conifgures the new h573i disco kit board for testing the adc_api driver
on the ADC1 channel0 (on pa0).

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2023-04-03 09:50:43 +02:00
Hein Wessels
641722afab tests: drivers: adc_dma: stm32h7: use auto generated linker section
Change this test to use the automatically generated linker section
to place the buffer in SRAM4, instead of using the manually created
region added in 088d38f. This is in preperation of removing the
manually created section.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-03-24 17:37:06 +00:00
scott worley
6b8bc83f54 tests: adc: Microchip XEC fix ADC API test and ADC shell
Microchip XEC ADC and ADC V2 driver were merged into one
That PR did not change the ADC API test and ADC shell resulting
in twister build failures. Fixed both ADC API test and ADC shell.

Signed-off-by: scott worley <scott.worley@microchip.com>
2023-03-24 11:28:20 -04:00
Daniel DeGrasse
6240fb5f66 tests: drivers: adc: update for LPADC API change
Update test/drivers/adc/adc_api to support the new channel configuration
method used by the LPADC driver.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-03-23 08:58:44 +00:00
Hein Wessels
5ec8aa4bb0 tests: drivers: adc_dma: fix sampling interval failing NXP tests
In 6e21ebf the sampling interval was changed, which caused the
issue #56070. This is fixed by allowing different boards to
specify a sampling period.

Also changed the test_task_with_interval to verify that
the supplied interval was used.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-03-23 08:43:56 +00:00
Pieter De Gendt
3cbac96134 tests: drivers: adc: adc_api: Add sam4s_xplained board
Define ADC channel configuration for the SAM4S Xplained internal
temperature sensor.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2023-03-23 09:41:00 +01:00
Hein Wessels
7e4de9363f tests: drivers: adc_dma: fix buffer state not being verified
Previously the contents of buffers after an ADC DMA read was
simply printed, but not verified with an zassert that the
value was updated.

This commit updates it to be similar to the adc_api test that
fills the buffer initially with a known value, which is then
used to ensure the ADC DMA functioned successfully.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-03-20 16:29:24 +01:00
Hein Wessels
a0e6fe34e0 tests: drivers: adc_dma: add nucleo_h743zi
Adds nucleo_h732zi ADC DMA unit tests with multiple channels.

The STM32 ADC DMA driver requires the buffers to be placed
in a non-cacheable memory region as defined by the DMA.
Therefore this adds configurability to the test to change
the region the buffer is placed in.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-03-20 16:29:24 +01:00
Hein Wessels
9d314faf28 tests: drivers: adc_dma: remove test userspace
These test uses DMA which sometimes require buffers to be placed
in custom specific section. This is not compatible with ztest
userspace, which requires variables to be placed in a specific
partition.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-03-20 16:29:24 +01:00
Hein Wessels
6e21ebf2e0 tests: drivers: adc_dma: wrap nxp specifc functionality
This test contained NXP specific functions, for example
the counter trigger, which is not required for all ADC DMA implementations.

Also moved NXP specific kconfigs to appropriate board files

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-03-20 16:29:24 +01:00
Jamie McCrae
af78cbdc99 samples and tests: Add REQUIRED to Zephyr find_package call
Adds REQUIRED to samples and tests for finding the zephyr package
to align all samples and tests with the same call and parameters.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-03-02 09:58:27 +01:00
Stanley Huang
5cac2aa377 boards: arm: add raytac_mdbt50q_db_40_nrf52840
Adds new raytac_mdbt50q_db_40_nrf52840 board.

Signed-off-by: Stanley Huang <stanley@raytac.com>
2023-02-28 13:56:24 +01:00
Stanley Huang
ca552eaf20 boards: arm: add raytac_mdbt50q_db_33_nrf52833
Adds new raytac_mdbt50q_db_33_nrf52833 board.

Signed-off-by: Stanley Huang <stanley@raytac.com>
2023-02-28 13:56:24 +01:00
Ben Marsh
30e0fa82f8 boards: arm: stm32h735g_disco: Enable ADC support
Enable ADC support for the stm32h735g_disco board in devicetree

Signed-off-by: Ben Marsh <ben.marsh@helvar.com>
2023-02-28 10:26:26 +01:00