Commit graph

417 commits

Author SHA1 Message Date
Hein Wessels
82a6a69b81 tests: drivers: adc_dma: add test for nucleo_l476rg
Add test to verify the ADC + DMA functionality works
for the STM32L476 MCU.

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-11-23 10:00:50 +01:00
Alberto Escolar Piedras
a7ee8b2757 tests/drivers/adc: Switch to native_sim
Switch from native_posix to native_sim as default test platform.
For test with overlays, switch overlays and platform_allow from
native_posix to native_sim.
For tests without overlays, enable also in native_sim, and
set native_sim as integration platform.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-22 09:53:20 +01:00
Abderrahmane Jarmouni
ebf67b2cef test: drivers: adc_api: add overlay for STM32U5A9J
Add overlay for STM32U5A9J board to pass test in CI

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
2023-11-21 08:44:34 +00:00
Mathieu Choplain
4750cbab1e tests: drivers/adc: Add STM32L4R9I-DISCO overlay
Adds the required overlay for test to build and
pass successfully on STM32L4R9I-DISCO board.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2023-11-03 11:44:55 +01:00
Anas Nashif
345735d0a8 tests: remove CONFIG_ZTEST_NEW_API in all tests
Remove all usage of CONFIG_ZTEST_NEW_API from tests and sample as this
is now enabled by default.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-20 15:04:29 +02:00
Anas Nashif
dd743c97a4 tests: drivers: fix test meta data and components
Fix meta data and standarize components in test identifiers.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-11 14:19:40 +03:00
Guillaume Gautier
04de62d56d tests: drivers: adc: adc_api: add nucleo u5a5zj-q board
Add Nucleo U5A5ZJ-Q board to the list of supported boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-29 10:34:33 +02:00
Nick Ward
ead0c4f865 drivers: adc: use adc_read_dt api
Where struct adc_dt_spec is in use use adc_read_dt().

Signed-off-by: Nick Ward <nix.ward@gmail.com>
2023-09-25 09:52:16 +02:00
YuLong Yao
36cd04c8e5 tests: drivers: adc: add esp32s3_luatos_core
add overlay and conf for esp32s3_luatos_core board

Signed-off-by: YuLong Yao <feilongphone@gmail.com>
2023-09-22 15:58:11 +02:00
Guillaume Gautier
47d1dcda4e tests: drivers: adc: adc_api: boards: add sequence for b_u585i_iot02a
Add multiple channels in overlay to test the sequencer for ADC4.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
b72e4910cc tests: drivers: adc: adc_api: boards: add sequence for b_u585i_iot02a
Add multiple channels in overlay to test the sequencer for ADC1.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
d79bf2383a tests: drivers: adc: adc_api: boards: add sequence for disco l475 iot1
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
80b3b2a7dd tests: drivers: adc: adc_api: boards: add sequence for stm32l562e dk
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
3716a1b4e5 tests: drivers: adc: adc_api: boards: add sequence for stm32h573i dk
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
6a725d08dd tests: drivers: adc: adc_api: boards: add sequence for stm32f3 disco
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
a6ece6a0c8 tests: drivers: adc: adc_api: boards: add sequence for nucleo wl55jc
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
83ab36f2a1 tests: drivers: adc: adc_api: boards: add sequence for nucleo wba52cg
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
7eec6ea1e4 tests: drivers: adc: adc_api: boards: add sequence for nucleo wb55rg
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
ec51e3978b tests: drivers: adc: adc_api: boards: add sequence for nucleo l552ze_q
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
6224784a0b tests: drivers: adc: adc_api: boards: add sequence for nucleo l152re
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
8d145da53c tests: drivers: adc: adc_api: boards: add sequence for nucleo l073rz
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
c833abc15c tests: drivers: adc: adc_api: boards: add sequence for nucleo g474re
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
0446f59c30 tests: drivers: adc: adc_api: boards: add sequence for nucleo f746zg
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
3c82c6fb7c tests: drivers: adc: adc_api: boards: add sequence for nucleo f429zi
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
0986c07443 tests: drivers: adc: adc_api: boards: add sequence for nucleo f207zg
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
7a19b995bb tests: drivers: adc: adc_api: boards: add sequence for nucleo f091rc
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
06842bc2e0 tests: drivers: adc: adc_api: boards: add sequence for nucleo f401re
Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Guillaume Gautier
0473cf5bb0 tests: drivers: adc: adc_api: boards: add sequence for nucleo g071rb
Add multiple channels in overlay to test the sequencer.
Change clock source to correctly pass the test.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-09-22 15:30:47 +02:00
Mulin Chao
68dd26574c boards: arm: npcx: add support for npcx4m8f_evb
Add support for npcx4m8f_evb board that is a development platform to
evaluate the Nuvoton NPCX4 embedded controller.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2023-09-22 09:23:06 +02:00
Pavlo Havrylyuk
166d89c69e tests: drivers: Added overlays to tests for 063_ble
Fixed pinout in adc overlays to align with board
Allowed adc driver sample
Added overlay for gpio_basic_api test support
Added overlay for i2c_api test support

Signed-off-by: Pavlo Havrylyuk <pavlo.havrylyuk@infineon.com>
2023-09-20 20:23:20 +01:00
YuLong Yao
7caaafd5f4 tests: drivers: adc: add esp32c3_luatos_core
add overlay and conf for esp32c3_luatos_core board

Signed-off-by: YuLong Yao <feilongphone@gmail.com>
2023-09-15 14:17:50 +02:00
Carlo Caione
e4a125b6a4 dt: Make zephyr,memory-attr a capabilities bitmask
This is the final step in making the `zephyr,memory-attr` property
actually useful.

The problem with the current implementation is that `zephyr,memory-attr`
is an enum type, this is making very difficult to use that to actually
describe the memory capabilities. The solution proposed in this PR is to
use the `zephyr,memory-attr` property as an OR-ed bitmask of memory
attributes.

With the change proposed in this PR it is possible in the DeviceTree to
mark the memory regions with a bitmask of attributes by using the
`zephyr,memory-attr` property. This property and the related memory
region can then be retrieved at run-time by leveraging a provided helper
library or the usual DT helpers.

The set of general attributes that can be specified in the property are
defined and explained in
`include/zephyr/dt-bindings/memory-attr/memory-attr.h` (the list can be
extended when needed).

For example, to mark a memory region in the DeviceTree as volatile,
non-cacheable, out-of-order:

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-attr = <( DT_MEM_VOLATILE |
			       DT_MEM_NON_CACHEABLE |
			       DT_MEM_OOO )>;
   };

The `zephyr,memory-attr` property can also be used to set
architecture-specific custom attributes that can be interpreted at run
time. This is leveraged, among other things, to create MPU regions out
of DeviceTree defined memory regions on ARM, for example:

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-region = "NOCACHE_REGION";
       zephyr,memory-attr = <( DT_ARM_MPU(ATTR_MPU_RAM_NOCACHE) )>;
   };

See `include/zephyr/dt-bindings/memory-attr/memory-attr-mpu.h` to see
how an architecture can define its own special memory attributes (in
this case ARM MPU).

The property can also be used to set custom software-specific
attributes. For example we can think of marking a memory region as
available to be used for memory allocation (not yet implemented):

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-attr = <( DT_MEM_NON_CACHEABLE |
			       DT_MEM_SW_ALLOCATABLE )>;
   };

Or maybe we can leverage the property to specify some alignment
requirements for the region:

   mem: memory@10000000 {
       compatible = "mmio-sram";
       reg = <0x10000000 0x1000>;
       zephyr,memory-attr = <( DT_MEM_CACHEABLE |
			       DT_MEM_SW_ALIGN(32) )>;
   };

The conventional and recommended way to deal and manage with memory
regions marked with attributes is by using the provided `mem-attr`
helper library by enabling `CONFIG_MEM_ATTR` (or by using the usual DT
helpers).

When this option is enabled the list of memory regions and their
attributes are compiled in a user-accessible array and a set of
functions is made available that can be used to query, probe and act on
regions and attributes, see `include/zephyr/mem_mgmt/mem_attr.h`

Note that the `zephyr,memory-attr` property is only a descriptive
property of the capabilities of the associated memory  region, but it
does not result in any actual setting for the memory to be set. The
user, code or subsystem willing to use this information to do some work
(for example creating an MPU region out of the property) must use either
the provided `mem-attr` library or the usual DeviceTree helpers to
perform the required work / setting.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-09-15 12:46:54 +02:00
Daniel DeGrasse
77998b2171 tests: drivers: adc: support sampling more than 2 channels with test
Support sampling more than 2 channels using the ADC API test. This
requires updates to the repeated samplings test, which samples using 2
channels even when more channels are defined by the ADC test overlay.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-09-12 17:22:35 +01:00
Eric Holmberg
5d6b5e99c2 tests: drivers: adc: adc_api: add esp32s3 support
Add testing support for ESP32-S3 ADC in single-sample mode.

Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-08-17 10:36:20 +02:00
Eric Holmberg
38203f9cb0 drivers: adc: esp32: return unsupported for unsupported options
To allow the ADC API unit test to skip tests for non-implemented
features, return -ENOTSUP.

Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-08-17 10:36:20 +02:00
Eric Holmberg
5cc2691189 tests: drivers: adc: adc_api: add skip for ENOTSUP
If the driver does not implement an optional feature, then skip the test
if -ENOTSUP is returned.

Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-08-17 10:36:20 +02:00
Diego Elio Pettenò
905652fc15 atsamd2x_xpro: follow best practices.
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in #61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
2023-08-16 15:00:25 +02:00
Julio Cesar
5e15e8cb48 boards: xtensa: Add support for YD-ESP32 board
Add `yd_esp32` board:

- Model name: YD-ESP32
- Manufacturer: VCC-GND® Studio
- Espressif module: ESP32-WROOM-32E

Signed-off-by: Julio Cesar <hi@jcsx.dev>
2023-08-15 11:15:39 +00:00
Daniel Leung
121b4d2d62 tests: drivers: rename shadow variables
Renames shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-08-10 08:14:12 +00:00
Diego Elio Pettenò
762a1f8b42 ev11l78a: initial import of the UPD301C Basic Sink board.
This board is a relatively inexpensive development kit for USB-PD
controllers, using an UPD301C controller.

This Zephyr config includes support for:

 * UART (present on he debug header of the board), tested with the
   hello_world sample application;
 * the one standalone LED (CAP_MIS), tested with the blinky sample
   application;
 * the rotary encoder (PDO_SEL), via ADC, tested with the adc sample
   application;
 * the current sense amplifier (I_SENSE), currently untested;
 * the SPI bus, connected internally in the UPD301C to the UPD350;
 * the I2C bus, exposed on the debug header, currently untested.

Note that the drivers.uart.async_api.rtt has to be disabled, as it is
for other m0 boards with no dma or it fails to build.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
2023-08-08 19:02:15 +00:00
Benjamin Perseghetti
109d91aaf8 board: Add NXP VMU RT1170 board support package
Adds support for the NXP VMU RT1170 board. This Vehicle
Management Unit based on the i.MX RT1176 brings a fantastic
combination of sensors and IO all on one board for development
of various systems. It is also the featured board for
CogniPilot's Cerebri - VMU autopilot software based on Zephyr.

Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2023-08-08 12:09:10 -05:00
Cong Nguyen Huu
5ea07017ca tests: drivers: adc: adc_api: enbale test for mr_canhubk3
Enable adc0 with 2 channels 22, 23 on standard group with
normal end of conversion callback. Channels correspond to
VREFL(0V), VREFH(3.3V).

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2023-07-28 08:55:38 -05:00
Marek Matej
3776402f40 boards: xtensa: esp32 board split
Remove virtual esp32 board and replace it with the
real word boards:

- esp32_devkitc_wroom
- esp32_devkitc_wrover (with PSRAM option)

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2023-07-25 18:12:33 +02:00
Carlo Caione
15e84cbfac dts: Move to 'zephyr,memory-attr'
Move to 'zephyr,memory-attr' and use the newly introduced helpers.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2023-07-25 11:22:10 +02:00
Nick Ward
371f0f2503 drivers: adc: use adc_is_ready_dt helper function
Update  `struct adc_dt_spec` use with adc_is_ready_dt()

Signed-off-by: Nick Ward <nix.ward@gmail.com>
2023-07-17 10:16:22 +00:00
Guillaume Gautier
aa826ce64d tests: drivers: adc: adc_api: add stm32wba overlay for adc test
Add Nucleo WBA52CG overlay for adc_api test

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-07-12 11:48:10 +02:00
Brett Witherspoon
3bb5062fae tests: drivers: adc: adc_dma: add nucleo_u575zi_q
Add the nucleo_u575zi_q board to the ADC DMA tests.

Signed-off-by: Brett Witherspoon <brett@witherspoon.engineering>
2023-07-11 09:44:37 +02:00
Alberto Escolar Piedras
d3633b58f1 tests ADC API: Add overlay for native_sim
Add DT overlay for native_sim.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-07-05 07:01:19 -04:00
Daniel DeGrasse
74ffb99a72 boards: arm: mixmrt1170_evkb: add support for ADC
Add support for ADC sample and API test on RT1170 EVKB.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-29 21:05:56 +02:00
Jason Yuan
570bcd3c83 test: adc: current sense amplifier
adds tests for the current sense amplifier binding macro and rescaling
function.

Signed-off-by: Jason Yuan <jasonyuan@google.com>
2023-06-24 18:54:33 +02:00
Jason Yuan
a79df5eed1 test: adc: current sense shunt
adds tests for the current sense shunt binding macro and rescaling
function.

Signed-off-by: Jason Yuan <jasonyuan@google.com>
2023-06-24 18:54:33 +02:00
Jason Yuan
40957389ff test: adc: voltage divider
adds tests for the voltage divider binding macro and rescaling function.

Signed-off-by: Jason Yuan <jasonyuan@google.com>
2023-06-24 18:54:33 +02:00
Guillaume Gautier
190b632161 tests: drivers: adc: adc_api: boards: add overlays for stm32 boards
Adds overlays for several STM32 boards to fix CI build failures.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2023-06-21 09:29:56 +02:00
Daniel DeGrasse
d5792abbcf tests: drivers: adc: adc_dma: increase sampling interval for MCUX ADC16
Increase hardware sampling interval to 30ms for MCUX ADC16. The ADC
callback in the repeated_samplings test takes roughly 27ms to execute,
so a sampling frequency of this interval still allows the ADC test to
verify the ADC is being sampled at a given interval, while avoiding the
pitfalls that result from a kernel timer shorter than the duration the
ADC callback takes to run.

Fixes #58467

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-02 18:49:22 -04:00
Bill Waters
61246e2592 driver: adc: infineon: Adding ADC driver support to cy8cproto_063_ble
- The boards\arm\cy8cproto_063_ble board now has ADC enabled
- This includes overlay files for the test app and sample app

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2023-05-19 20:22:51 -04:00
Sumit Batra
815b8fc664 board: Adds MIMXRT1062-FMURT6 board support package
Also enables all the usable CAN, Ethernet, I2C, PWM,

SPI, UARTs interfaces for this board

Signed-off-by: Sumit Batra <sumit.batra@nxp.com>
2023-05-18 14:08:06 -05:00
Dave Rensberger
b116f0a889 boards: Board definition for the Raspberry Pi Pico W.
Effort has been made to abstract the features that are common
to both the Pico and Pico W into a shared file when possible.
This commit does not include the addition of bluetooth or wifi
drivers for the W's Infineon module.

Signed-off-by: Dave Rensberger <davidr@beechwoods.com>
2023-05-12 10:04:03 +02:00
Daniel DeGrasse
77f8848f8e boards: arm: mimxrt1040_evk: enable ADC support
Enable ADC support for RT1040 EVK. Tested using samples/drivers/adc,
using channels 3 and 4 of ADC0.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-05-11 10:35:40 -05:00
Marc Desvaux
c5688ed3cf tests: drivers: adc: adc_dma: add nucleo_h743zi
add platform_allow nucleo_h743zi.
the twister test is now enable for tests/drivers/adc/adc_dma on board
nucleo_h743zi.
used on driver st_stm32_adc with CONFIG_ADC_STM32_DMA =y.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-05-11 10:04:54 +02:00
Gerard Marull-Paretas
93b63df762 samples, tests: convert string-based twister lists to YAML lists
Twister now supports using YAML lists for all fields that were written
as space-separated lists. Used twister_to_list.py script. Some artifacts
on string length are due to how ruamel dumps content.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-10 09:52:37 +02:00
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
Marin Jurjević
12ce5beacd tests: drivers: adc: add support for nucleo_g070rb
Add support for nucleo_g070rb board to adc_api test.

Signed-off-by: Marin Jurjević <marin.jurjevic@hotmail.com>
2023-01-26 10:08:33 +00:00
Hein Wessels
0b3338472a tests: drivers: adc: adc_api: add second channel to nucleo_h743zi
Adds a second channel to the nucleo_h743zi test
because it's now supported by the driver

Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
2023-01-23 09:59:46 +00:00
YuLong Yao
2017ed50bf test: adc: add unit test for gd32a503v_eval
add unit test for gd32a503v_eval

Signed-off-by: YuLong Yao <feilongphone@gmail.com>
2023-01-12 21:45:38 +01:00
Daniel DeGrasse
a3f2d2bbde tests: drivers: adc: add support for RT595 to ADC API test
Enable support for RT595 in ADC API testcase

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-01-08 19:48:54 +01:00
Peter Johanson
8a29ed9092 drivers: adc: Fix ADC tests for new RP2040 board.
Fix ADC tests with new SparkFun Pro Micro RP2040 board.

Signed-off-by: Peter Johanson <peter@peterjohanson.com>
2023-01-08 19:32:59 +01:00
Marek Matej
025c73908b tests: adc: esp32 api test
Update adc test to support ESP32 targets

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2022-12-23 23:45:05 +00:00
Andriy Gelman
83da95931a tests: adc_api: Add xmc45_relax_kit config
Adds xmc45_relax_kit configuration.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2022-12-20 14:17:23 +01:00
Embla Flatlandsmo
fb51823228 boards: arm: Add adafruit_itsybitsy_nrf52840 board
Adds support for the Adafruit ItsyBitsy nRF52840 Express.

This board ships with the UF2 bootloader, so the device has
been set up so that Zephyr applications are flashed the
same way that other (Adafruit) firmware is flashed with the
UF2 bootloader.

This has been tested locally, and the button, blinky and
led_apa102 samples run without problems.

Signed-off-by: Embla Flatlandsmo <embla.flatlandsmo@gmail.com>
2022-12-07 10:06:11 +00:00
Anas Nashif
ba7d730e9b tests/samples: use integration_plaforms in more tests/samples
integration_platforms help us control what get built/executed in CI and
for each PR submitted. They do not filter out platforms, instead they
just minimize the amount of builds/testing for a particular
tests/sample.
Tests still run on all supported platforms when not in integration mode.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-29 16:03:23 +01:00
Adrian Warecki
aac03280ec dma: dts: Rename of the dma_buf_alignment to dma-buf-addr-alignment
Renamed the dma-buf-alignment field to a more explicit
and descriptive name dma-buf-addr-alignment.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2022-11-23 15:36:31 -05:00
Stancu Florin
33b86d6945 tests: ADC API: add support for cc1352r* boards
Add ADC API tests for the TI CC1352R1 LaunchXL, CC2652R1 LaunchXL and
TI CC1352R SensorTag boards.

Signed-off-by: Stancu Florin <niflostancu@gmail.com>
2022-11-04 17:31:59 -04:00
Peter Johanson
29047f11ed drivers: adc: Fix ADC tests for new RP2040 board.
Fix ADC tests now that we have more than one RP2040 board.

Signed-off-by: Peter Johanson <peter@peterjohanson.com>
2022-11-03 18:15:38 +01:00
Ryan Erickson
46045e6df0 tests: ADC API: Add support for MG100 board
MG100 board added to ADC API tests.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2022-10-03 10:11:28 +02:00
Hake Huang
0d4ff38fa2 tests: adc-dma: fix the dma dest address check failure
force the dma destintion address 32 bit aligned

fixing: #49792

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2022-09-15 14:16:48 -05:00
Francois Ramu
5aedd860f5 tests: drivers: adc stm32wb and stm32l5 start on channel1
Start testing adc_api on channel 1
for stm32w55 nucleo and stm32l562 disco boards
since the VREFINT on channel 0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-09-14 09:30:43 +00:00
Michał Barnaś
dae8efa692 ztest: remove the obsolete NULL appended to zassert macros
This commit removes the usage of NULL parameter as message in
zassert_* macros after making it optional

Signed-off-by: Michał Barnaś <mb@semihalf.com>
2022-09-09 07:05:38 -04:00
TOKITA Hiroshi
32735c992a tests: drivers: adc: Add support for rpi_pico
Add support for rpi_pico board to adc_api test.

At this time, twister couldn't with rpi_pico board,
Test it built with west and checked the console output.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
2022-09-06 17:11:19 +02:00
Gerard Marull-Paretas
79e6b0e0f6 includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h>
As of today <zephyr/zephyr.h> is 100% equivalent to <zephyr/kernel.h>.
This patch proposes to then include <zephyr/kernel.h> instead of
<zephyr/zephyr.h> since it is more clear that you are including the
Kernel APIs and (probably) nothing else. <zephyr/zephyr.h> sounds like a
catch-all header that may be confusing. Most applications need to
include a bunch of other things to compile, e.g. driver headers or
subsystem headers like BT, logging, etc.

The idea of a catch-all header in Zephyr is probably not feasible
anyway. Reason is that Zephyr is not a library, like it could be for
example `libpython`. Zephyr provides many utilities nowadays: a kernel,
drivers, subsystems, etc and things will likely grow. A catch-all header
would be massive, difficult to keep up-to-date. It is also likely that
an application will only build a small subset. Note that subsystem-level
headers may use a catch-all approach to make things easier, though.

NOTE: This patch is **NOT** removing the header, just removing its usage
in-tree. I'd advocate for its deprecation (add a #warning on it), but I
understand many people will have concerns.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-09-05 16:31:47 +02:00
Gerard Marull-Paretas
a202341958 devices: constify device pointers initialized at compile time
Many device pointers are initialized at compile and never changed. This
means that the device pointer can be constified (immutable).

Automated using:

```
perl -i -pe 's/const struct device \*(?!const)(.*)= DEVICE/const struct
device *const $1= DEVICE/g' **/*.c
```

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-22 17:08:26 +02:00
Kumar Gala
7e8a312c6b adc: remove Kconfig.defconfig setting of ADC drivers
Now that ADC drivers are enabled based on devicetree
we need to remove any cases of them getting enabled by
Kconfig.defconfig* files as this can lead to errors.

Typically the Kconfig.defconfig* will blindly enable a
sensor and not respect the devicetree state of the ADC.
Additionally we can get problems with prj.conf/defconfig
getting incorrectly overridden.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-02 15:51:43 -05:00
Fabio Baltieri
def230187b test: fix more legacy #include paths
Add a bunch of missing "zephyr/" prefixes to #include statements in
various test and test framework files.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2022-08-02 16:41:41 +01:00
Hake Huang
ee40f97cc4 tests: adc: migrate adc to ztest new
move to ztest_new api for adc tests.
some naming changes as well

related: #47002

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2022-07-29 09:31:34 -05:00
Kumar Gala
b97a9ee21c tests: drivers: Remove label property from devicetree overlays
"label" properties are not required.  Remove them from tests.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-22 16:44:08 +00: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
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
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
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
Steffen Jahnke
185e723ccb boards: Add board config defines to adc test
The test_adc.c still have hardcoded information on a board basis,
that need to be added manually.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2022-06-28 15:51:55 +02:00
Nickolas Lapp
9a9aeae00b i.MX NXP Boards: Add support for RT1060_EVKB
This PR adds support for the RT1060_EVKB as a variant of the RT1060 EVK.
Blinky app tested locally on RT1060_EVKB.

Signed-off-by: Nickolas Lapp <nickolaslapp@gmail.com>
2022-06-05 14:16:43 +02:00
Brandon Satrom
168f4d1d18 boards: arm: swan_r5:add Swan board support
Add support and docs for the Blues Swan, an STM32L4R5-based board

Signed-off-by: Brandon Satrom <bsatrom+gh@gmail.com>
2022-06-05 14:14:46 +02:00
Michal morsisko
ddc4854d27 boards: Added E73-TBB board
This commit adds support for EBYTE E73-TBB.
This board features Nordic nRF52832 chip.
It was tested with several samples such as blinky and buttons.

Signed-off-by: Michal morsisko <morsisko@gmail.com>
2022-06-05 14:12:56 +02:00
Gerard Marull-Paretas
ade7ccb918 tests: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all tests to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 20:02:14 +02:00
Hake Huang
07d6adde51 driver: adc: fix build error for adc_dma
fsl_sim.h is not required as SDK upgrade

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2022-04-27 11:15:43 -05:00
Benjamin Björnsson
e9ab9990d4 boards: arm: arduino_nano_33_ble: Add support for sense version of board
This commit adds support for the Arduino Nano 33 BLE Sense board.

The DTS is separated into a common dtsi and one DTS for each version
of the board. The sensors with existing drivers: hts221, lps22hb and
apds9960 are added to the DTS of the Sense version.

A startup delay is added to the vdd_env node. This is done to give some
time for the sensors VDD/VCC to go high before the sensor drivers are
initialized.

The functionality was verified using the driver sample of each sensor.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-04-18 12:20:32 -05:00
Hu Zhenyu
cdcfc2926f tests: drivers: adc_api: Add configuration for mec172xevb_assy6906
Enable the tests/drivers/adc/adc_api/ test for mec172xevb_assy6906
on both west and twister

Signed-off-by: Hu Zhenyu <zhenyu.hu@intel.com>
2022-04-12 08:55:59 -07:00
Brian Bradley
5ae78fbca5 boards: add support for stm32f401_mini
Adds support for the stm32f401cc based stm32 mini f401 board.

Signed-off-by: Brian Bradley <brian.bradley.p@gmail.com>
2022-03-29 11:35:56 -05:00
Matthias Hauser
e565e67114 boards: Add Proteus-III board file
Add a new board file of the Proteus-III radio module

Signed-off-by: Matthias Hauser <Matthias.Hauser@we-online.de>
2022-03-23 18:50:09 +01:00