Commit Graph

2334 Commits

Author SHA1 Message Date
Mykola Kvach 1de9794e12 boards: arm64: add Renesas H3ULCB CA57 board support
Add basic functionality for supporting h3ulcb board:
  * add documentation for h3ulcb board;
  * add pinctrl dtsi for scif driver;
  * add dts, yaml and configuration files.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
2023-07-11 11:17:41 +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
Bill Waters 541482ff20 driver: i2c: infineon: Adding XMC4 I2C driver
- This includes the driver, test app, and sample app
- Only the boards\arm\xmc47_relax_kit board is supported for now

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2023-07-11 09:43:19 +02:00
Eric Holmberg 4f88b831e7 boards: xiao_esp32s3: update CAN support
Add CAN to supported list and update documentation.

Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-07-10 15:13:52 +02:00
Eric Holmberg e408d0ea06 boards: esp32s3_devkitm: update CAN support
Add CAN to supported list and update documentation.

Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-07-10 15:13:52 +02:00
Eric Holmberg 1b919bbc28 tests: drivers: can: api: add virtual CAN TX <-> RX Jumper
Remove the need for the can_transceiver fixture by assigning the CAN TX
and CAN RX lines to the same GPIO pin to allow for testing without a
transceiver or physical jumper.

Signed-off-by: Eric Holmberg <eric.holmberg@northriversystems.co.nz>
2023-07-10 15:13:52 +02:00
Alberto Escolar Piedras ed27a4fa3d tests flash simulator: Enable for native_sim
Add overlays for the native_sim boards, and
change test filters so they also run for these.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-07-10 09:50:56 +02:00
Aaron Massey e1401fcf5e emul: Add SBS Gauge emulator backend_api
In order to support easier setup of test scenarios with fuel gauge
emulators, we should expose an API that can change internal emulator state.

Add a minimal fuel gauge emulator backend API for setting the charging
current and voltage with a sample implementation in the emul_sbs_gauge with
an associated driver test.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-07-07 09:22:20 +02:00
Benjamin Perseghetti da95a407bf drivers: sensor: ina23x: calculate cal at compile.
Calculate the calibration value at compile for ina23x.
Maximizes the precision of the calcualtion value by
using 64bit math at compile, allows for removal
of rshunt config option.

Code cleaned up with clang-format.

Co-authored-by: Trent Piepho <tpiepho@gmail.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2023-07-07 09:21:23 +02:00
Benjamin Perseghetti 5336e7fd14 drivers: sensor: ina23x: Use micro-ohms for rshunt
Changes rshunt-milliohms to rshunt-micro-ohms allowing for current
sensing of greater than 16.4A (1mOhm resistor). This is commonly
set to 100 uOhm for VMU/FMU boards/applications.

Co-authored-by: James Goppert <james.goppert@gmail.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2023-07-07 09:21:23 +02:00
Alberto Escolar Piedras 488396b8af test gpio_get_direction: Enable for nrf52_bsim
Add needed overlay so the test case run.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-07-07 09:21:06 +02:00
Alberto Escolar Piedras 081c4647cd test gpio_basic_api: Enable for nrf52_bsim
Add DT and kconfig overlays for the nrf52_bsim so this test can be run
in this board too.
This simulated board supports short-circuiting pins
either programmatically or thru configuration files,
but it does not support a pull in an input being able to drag
a non driven output, so we need to skip the pull test.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-07-07 09:21:06 +02:00
Alberto Escolar Piedras 970ba8294a tests gpio_hogs: Enable for nrf52_bsim
Add an overlay for the nrf52_bsim so this test can be run
in this board.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-07-07 09:21:06 +02:00
Alberto Escolar Piedras b83941db90 test gpio_basic_api: Add option to skip pulls test
Some boards configuration may not support the pulls test
even if the underlaying SOC driver does support the feature.
Add the option to skip that test.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-07-07 09:21:06 +02:00
Manuel Arguelles 7319ba11f7 boards: arm: mr_canhubk3: add support for GPIO
Add GPIO support for mr_canhubk3 board and enable GPIO tests.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2023-07-06 14:19:23 -05: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
Jerzy Kasenberg d58b315165 tests: drivers: counter: basic_api: add overlay for da1469x_dk_pro
Overlay adds 4 timers for testing and selects various frequencies
to select high speed (DIVN) and low-speed (LP-CLK) as sources.
Different  prescalers are applied for different timers to
test wider range of conditions.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
2023-07-05 13:00:50 +02:00
Henrik Brix Andersen f3cafe7559 tests: drivers: can: api: do not quote overlay file name
Remove quotes from DTC_OVERLAY_FILE as they break the build.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-07-04 11:10:35 +00:00
Emilio Benavente 28b6c36fc5 tests: drivers: dma: Added channel chaining support to mimxrt1050
Added test case support for the mimxrt1050_evk

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2023-07-04 09:29:39 +02:00
Moritz Fischer 28ed7f057d drivers: clock_control: Add clock_fixed_rate driver
Add fixed-clock clock control driver. This is a first step towards
making fixed-clocks a first-class citizen in the clock control
framework.

Since the change is hidden behind a Kconfig enable this is opt-in
for now.

Signed-off-by: Moritz Fischer <moritzf@google.com>
2023-07-03 12:49:27 +02:00
Najumon Ba b3d78de656 arch: x86: updated acpi config macro
renamed x86 CONFIG_ACPI config macro to CONFIG_x86_ACPI.

Signed-off-by: Najumon Ba <najumon.ba@intel.com>
2023-06-30 17:53:01 +03:00
Daniel DeGrasse 2ef5eb9772 boards: arm: mimxrt1170_evkb: add support for SPI
Add support for SPI on RT1170 EVKB, verified using SPI loopback sample.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-29 21:05:56 +02:00
Daniel DeGrasse 903cfc8f15 boards: arm : mimxrt1170_evkb: add support for I2C
Add support for I2C on RT1170 EVKB, verified using I2C target API test.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-29 21:05:56 +02:00
Daniel DeGrasse 968ba5190d boards: arm: mimxrt1170_evkb: add support for DMA test
Enable DMA test for RT1170 EVKB

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2023-06-29 21:05:56 +02: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
Kevin Wang 5876cc53d4 tests: drivers: watchdog: wdt_basic_api:
1. Add atcwdt200 options for WDT_NODE in testcase.
2. Add the board overlay file in wdt sample to specify
   the watchdog0 alias

Signed-off-by: Kevin Wang <kevinwang821020@google.com>
2023-06-29 10:13:05 +00:00
Marc Desvaux abc5f4cad2 tests: drivers: i2c: i2c_target_api add nucleo_f746zg
Adds necessary overlay nucleo_f746zg in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-27 16:38:43 +00:00
Marc Desvaux bcc737dc2c tests: drivers: i2c: i2c_target_api add nucleo_f746zg
Adds nucleo_f746zg in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-27 16:38:43 +00:00
Marc Desvaux c96b78663c tests: drivers: i2c: i2c_target_api add nucleo_l073rg
Adds necessary overlay nucleo_l073rg in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-27 16:38:16 +00:00
Marc Desvaux 74d0ea0eb6 tests: drivers: i2c: i2c_target_api add nucleo_l073rg
Adds nucleo_l073rg in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-27 16:38:16 +00:00
Fabio Baltieri 3681268662 tests: build_all: input: add an entry for xpt2046
Build the xpt2046 driver with the input build_all. Fix a typo while at
it.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-06-27 12:17:06 +00:00
Marc Desvaux 0a71da1e3f tests: drivers: i2c: i2c_target_api add nucleo_wl55jc
Adds necessary overlay nucleo_wl55jc in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-27 12:11:29 +00:00
Marc Desvaux c7c6ce4d13 tests: drivers: i2c: i2c_target_api add nucleo_wl55jc
Adds nucleo_wl55jc in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-27 12:11:29 +00:00
Manojkumar Subramaniam 1a28c79ff1 tests: drivers: build_all: gpio: add efinix_sapphire
Build only test for efinix_sapphire gpio driver.

Signed-off-by: Manojkumar Subramaniam <manoj@electrolance.com>
2023-06-27 12:09:57 +00: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
Jaroslaw Stelter 225e8c09ac mm_drv: tlb: Fix driver tests
Previous fix https://github.com/zephyrproject-rtos/zephyr/pull/58891
introduced failure in driver tests suite. This patch corrects the error
and reverts max_mapped_page field definition.
Adds max_mapped_pages stats reset after unmaping of unused memory.

Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
2023-06-22 17:23:56 -04:00
Fabio Baltieri 80a986f438 tests: add an input build_all test
Add an input build_all test with a bunch of input driver, move the
ft5336 one out of sensors as well.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-06-22 07:01:07 -04:00
Lucas Tamborrino ea949d0399 tests: drivers: uart: async: esp32c3: use internal loopback
Use internal loopback for esp32c3 board, avoiding the use of
external wiring.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-06-22 08:13:36 +00:00
Lucas Tamborrino e562c980ae tests: drivers: spi: spi_loopback: esp32xx: Use internal loopback
Use internal loopback for esp32xx boards, avoiding the use of
external wiring.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2023-06-22 08:13:36 +00:00
Christopher Friedt d4ea1c920b tests: drivers: rtc: add a y2k test
Ensure that the RTC is capable of transitioning from
Dec 31, 1999 to Jan 1, 2000.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-06-21 08:20:45 -04:00
cyliang tw 0fd564ef7f drivers: gpio: support for Nuvoton numaker series GPIO
Add Nuvoton numaker series GPIO support, including interrupt mode and
also integrate clock control.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2023-06-21 09:26:00 +00: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
Adrian Warecki 1a4bc7580b adsp: Rename cpu clock related functions
The word cpu was added to the names of functions, structs, types
and definitions to disambiguate the names and make room in the namespace
for soc clock control functions.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2023-06-20 14:19:13 -04:00
Jaroslaw Stelter faadbc42ee mm_drv: tlb: Fix mapped page in bank calculation
The initial implementation was broken during improvements.
There was incorrect assumption that all pages are unmapped at
initials state. In reality at the beginning whole memory is
powered on, so we should mark all pages as mapped. Later in
initialization code unused pages are unmapped and if after this
some banks become empty (all pages unmapped), the power is
switched off.

Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
2023-06-20 14:00:59 -04:00
Marc Desvaux eecf1ed84b tests: drivers: i2c: i2c_target_api add nucleo_f429zi
Adds necessary overlay nucleo_f429zi in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-20 09:26:43 +02:00
Marc Desvaux 427f5ef1ee tests: drivers: i2c: i2c_target_api add nucleo_f429zi
Adds nucleo_f429zi in i2c_target_api test case
to enables the board.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-20 09:26:43 +02:00
Marc Desvaux beaa5e98a6 tests: i2c: i2c_slave_api add comment for nucleo_f091rc
Adds comment for overlays for nucleo_f091rc in i2c_slave_api test case.

Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
2023-06-20 09:26:43 +02:00
Jonas Remmert e396f69afd tests: driver: build_all: add lp5569 to tests
Add LED controller driver to list of tests.

Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
2023-06-19 09:17:52 +01:00