Commit graph

16700 commits

Author SHA1 Message Date
Evgenii Kosenko
0b2fbf9903 bluetooth: tester: btp: fixes ext adv selection
Disabling extended advertising, CONFIG_BT_EXT_ADV, fails to compile cause
references not guarded ext_adv variable when tester_gap_create_adv_instance
is called. Fixes by taking in use IS_ENABLED as preferred way of guarding
Kconfig option. It enables compiling guarded code to get warning/errors and
not to link if not used.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2025-02-18 18:37:59 +01:00
Evgenii Kosenko
bf7dfc5e8d bluetooth: tester: btp: refactors privacy selection
Takes in use IS_ENABLED as preferred way of guarding Kconfig option for
enabling privacy, CONFIG_BT_PRIVACY. It enables compiling guarded code get
warning/errors and not link it if not used.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2025-02-18 18:37:59 +01:00
Evgenii Kosenko
fed5561130 bluetooth: tester: btp: refactors OOB legacy selection
Takes in use IS_ENABLED as preferred way of guarding Kconfig option for
forcing OOB legacy, CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY. It enables
compiling guarded code get warning/errors and not link it if not used. If
def macro is left in btp_handler structure to reduce code size when the
config is not present.

Signed-off-by: Evgenii Kosenko <Evgenii.Kosenko@silabs.com>
2025-02-18 18:37:59 +01:00
Emil Gydesen
bfbdf52853 tests: Bluetooth: Audio: Open backchannel to self
In order to use the device IDs send sending to a specific device,
e.g. backchannel_sync_send(3), then we need to open all backchannels
including the one to ourself, otherwise the ID and count will be
off by one.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-18 09:57:34 +01:00
Benjamin Cabé
9a0631d018 tests: drivers: adc: fix overlay filenames for nucleo_n657x0_q_sb board
This was causing adc_api test to fail due to overlay
not being applied.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-17 16:48:43 +01:00
Piotr Krzyzanowski
6d8eb184b7 tests: drivers: uart: add 54l15 fast uart
Add the fast uart instance of 54l15 for testing

Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
2025-02-17 14:03:27 +01:00
Alberto Escolar Piedras
dc87bb0f68 tests/bsim UART: Let's connect the nrf54L UART00 in loopback too
A test is going to use this UART also, so we'll need it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-17 14:03:27 +01:00
Aleksandr Khromykh
059e86f426 tests: Bluetooth: Mesh: restore tinycrypt mesh bsim
Commit restores ble mesh bsim tests with tinycrypt.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-02-17 10:22:23 +01:00
Corey Wharton
f6d0e7d97c tests: drivers: regulator: add api test for count/list current_limit APIs
Adds missing fake methods to regulator_fake and corresponding API tests.

Signed-off-by: Corey Wharton <xodus7@cwharton.com>
2025-02-17 08:09:48 +01:00
Aleksandr Khromykh
6a9802e818 tests: Bluetooth: Mesh: remove key id distribution
Commit removes centralized PSA key ID distribution
in mesh bsim tests since secure storage is
instantiated on every simulated device.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-02-17 08:09:28 +01:00
Sreeram Tatapudi
d339b96132 tests: drivers: uart: uart_async_api: Add the missing overlay file
Add the overlay file to enable the DMA driver to fix the
compilation error

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2025-02-14 21:04:29 +01:00
Mert Ekren
0311f8bea9 tests: drivers: sdhc: Add MAX32666fthr to disk performance test
Add MAX32666fthr sdhc to tests/drivers/disk/disk_performance

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
2025-02-14 20:20:03 +01:00
Emil Gydesen
907261b619 Bluetooth: BAP: Remove GATT_CACHING req for unicast server
The unicast server does not need GATT caching and it was likely
incorrectly added earlier as a dependency.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-14 19:15:57 +00:00
Carles Cufi
08a6630a35 tests: nrf: Fix SPDX license tags
Both files are released by Nordic under the Apache v2.0 license, correct
the SPDX tags accordingly.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-02-14 20:15:34 +01:00
Guillaume Gautier
29f6bcc76f tests: drivers: spi: spi_loopback: add stm32n6 boards overlays
Add SPI loopback test overlays for Nucleo N657x0-Q and STM32N6570 DK
boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 19:15:09 +00:00
Sebastian Głąb
8f39cea705 tests: drivers: pwm: Remove overlay for nRF54L20pdk
All needed configuration was moved to the board definition.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-02-14 19:13:11 +00:00
Robin Kastberg
9ab06ec667 toolchain: iar: Add experimental IAR support
This adds experimental support for the IAR toolchain.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
2025-02-14 19:12:44 +00:00
Thao Luong
e44a7684d0 tests: drivers: uart: Add dts node for ek_ra4l1
Add dts node for ek_ra4l1 run on uart_async_api

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
5a2ee87291 tests: drivers: i2c: Add config and dts node for ek_ra4l1
Add config and dts node for ek_ra4l1 run on i2c_api

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
48c46179e7 tests: drivers: pwm: Add dts nodes for ek_ra4l1
Add dts nodes for ek_ra4l1 run on pwm_loopback

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
cf9aa0fdd3 tests: drivers: adc: Add dts nodes for ek_ra4l1
Add dts nodes for ek_ra4l1 run on adc_accuracy_test and adc_api

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Thao Luong
b0b1394ff7 tests: drivers: spi: Add configs and dts node for ek_ra4l1
Add configs and dts node for ek_ra4l1 run on spi_loopback

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-02-14 17:15:43 +01:00
Emil Gydesen
b9c1ef910a tests: Bluetooth: BAP: Add deregister of services for unicast server
Adds a deinit step that tests the unicast server callbacks,
unicast server and pacs unregister.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-14 17:05:32 +01:00
Emil Gydesen
f54991b7dd samples: Bluetooth: Broadcast sink: Refactor audio RX path
Refactor everything related to RX in the sample.
The existing code will moved to new files with more specific
functionality, so that each file will become cleaner and use
fewer #ifdefs.

The USB part will be refactored a bit to follow the design used
by the LE audio shell, to make it easier to maintain both in
a similar way.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-14 17:03:51 +01:00
Dominik Kilian
0e4efdb2a6 tests: ipc_service: Test restarting session in different scenarios
This commit adds a test that checks if disconnecting
and restarting the IPC session works correctly. The
test is also focused on the "unbound" callback.

Signed-off-by: Dominik Kilian <Dominik.Kilian@nordicsemi.no>
Co-authored-by: Radoslaw Koppel <radoslaw.koppel@nordicsemi.no>
2025-02-14 13:34:49 +01:00
Guillaume Gautier
5155cb673f tests: drivers: adc: adc_api: boards: add overlays for stm32n6 boards
Add dts and conf overlay for nucleo_n657x0 and stm32n6570_dk boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 10:48:35 +01:00
Guillaume Gautier
ed673d5e88 tests: drivers: adc: adc_api: src: change data size for stm32n6
STM32N6 needs to have a buffer of 32-bit data instead of 16-bit.
Adds a Kconfig to select whether the test shall use a 32-bit buffer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 10:48:35 +01:00
Steffen Jahnke
16c4b6a51a tests: Add necessary configurations for PAN B511 EVB
Running tests for PAN B511 evaluation board needs additional
configuartion.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2025-02-14 10:47:54 +01:00
Guillaume Gautier
c0164e4afe tests: drivers: i2c: target_api: add stm32n6 overlays
Add overlays for STM32N657X0-DK and Nucleo N657X0 boards.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-14 10:43:44 +01:00
Wilfried Chauveau
c0139fad06 drivers: gpio: mmio32: update gpio_mmio32 to behave like other divers
The current implementation requires SoCs/Boards to manualy instantiate
the preripherals and initilize them.

The change lets Zephyr rely on the device tree setup to instantiate &
initialize the relevant gpio peripheral.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
2025-02-14 10:42:02 +01:00
Utsav Munendra
66c43a8f77 tests: portability: cmsis: Add tests for CMSIS-RTOSv2 static cb
Every CMSIS-RTOSv2 now supports static allocation
control blocks. Add tests for this.

Signed-off-by: Utsav Munendra <utsavm@meta.com>
2025-02-14 03:13:35 +01:00
Utsav Munendra
137c7cb149 tests: portability: cmsis: Run clang-format on CMSIS-RTOSv2 tests
clang-format -i tests/subsys/portability/cmsis_rtos_v2/src/*.c

Signed-off-by: Utsav Munendra <utsavm@meta.com>
2025-02-14 03:13:35 +01:00
Benjamin Cabé
8d253b78a1 tests: show thread_metric Kconfig menu first
Put the thread_metric Kconfig menu first in the Kconfig "homepage", like
other samples and tests typically do as this makes it easier to quickly
get to the relevant options in menuconfig.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-14 03:04:35 +01:00
Marcin Lyda
f370d38363 drivers: rtc: Add Maxim DS1337 RTC driver
This PR adds support for Maxim Integrated
DS1337 RTC chip.

Supported functionalities:
* Alarm interrupt (both alarms trigger INTA pin)
* Time setting/reading
* Both alarms setting/reading
* SQW frequency configuration

Tested on nRF52833-DK using rtc_api test set.

Signed-off-by: Marcin Lyda <elektromarcin@gmail.com>
2025-02-14 03:03:56 +01:00
Camille BAUD
637686695c sensor: Introduce Phosense XBR818 Driver
This Introduces a driver for the i2c interface of Phosense XBR818.
XBR818 is a 10.525Ghz Radar chip with builtin detection algorithm.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-02-14 03:03:22 +01:00
Sylvain Chouleur
4454734d12 scripts: code_relocate: support section filter
One might want to select the symbols to be relocated inside a file or
a library. To do this, one can use the FILTER argument of
zephyr_code_relocate which must contain a regular expression of the
section names to be selected for relocation.

The test_function_in_sram2 test case in
`tests/application_development/code_relocation` has been updated to
verify that only one function `function_in_sram()` is relocated to ram
and that the function `function_not_relocated()` is not being relocated
when using relocation filter.

Signed-off-by: Sylvain Chouleur <sylvain.chouleur@gmail.com>
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2025-02-14 03:02:56 +01:00
Ryan McClelland
ed9c6d84a9 tests: drivers: build_all: add build for i3c_dw
The Synopsys I3C has no in-tree board with it to built with. This
adds a test build-only for the cadence i3c peripheral attaching
with the qemu_cortex_m3 board as that appears to be generic
enough.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-02-14 03:02:43 +01:00
Furkan Akkiz
d256a90a54 tests: drivers: dma: Enable dma driver tests for max32662evkit board
Enable 'chan_blen_transfer' and 'loop_transfer' tests for MAX32662EVKIT.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-02-14 00:47:03 +01:00
Mert Ekren
540b3543f4 tests: drivers: dma: Add MAX32666FTHR
Enable DMA test for MAX32666FTHR board for tests chan_blen_transfer and
loop transfer

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-02-14 00:47:03 +01:00
Furkan Akkiz
0399d892e9 tests: drivers: dma: Enable dma driver tests for max32666evkit board
Enable dma driver tests for MAX32666EVKIT

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-02-14 00:47:03 +01:00
Adam Kondraciuk
85282d604c tests: kernel: gen_isr_table: Fix kernel test for nRF FLPR target
Fix kernel `gen_isr_table` test for nRF FLPR target similairly
to PPR target.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-02-14 00:46:35 +01:00
Emanuele Di Santo
5c2c354f73 tests: kernel: gen_isr_table: update test for nRF91x1 devices
Limit the number of IRQ for all series nRF91 devices,
including nRF9161 and nRF9151.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
2025-02-14 00:46:19 +01:00
Andrej Butok
95b74e2b97 boards: mimxrt1170_evk: switch the default revision to B
Switches the default revision of mimxrt1170_evk from A to B.
Customers can only purchase MIMXRT1170-EVKB.
Revision "A" is obsolete and unavailable.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-14 00:46:02 +01:00
Lucien Zhao
7ac0496741 tests: driver: adc: support adc_api case for mimxrt700_evk
support lpadc0 channel0/1 on cm33_cpu0/1 cores
test passed on adc_api case

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-02-14 00:45:15 +01:00
Tomi Fontanilles
0c368e85b1 secure_storage: add a global registry header file for PSA key IDs
We need to make sure that within Zephyr different users of the PSA APIs
don't interfere with each other because of using the same numerical IDs
for persistent assets.

This takes care of the PSA key IDs when using persistent keys through
the PSA Crypto API.
See the comments in `<zephyr/psa/key_ids.h>` for more information.

This removes the recently-introduced Kconfig options that allowed changing
the base IDs subsystems were using for their persistent keys.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-02-13 20:22:09 +01:00
Gerard Marull-Paretas
71d663dafc tests: kernel: gen_isr_table: exclude nrf9280pdk/nrf9280/cpuppr
First, SoC is not supported, but when I tried to add it, build results
in RAM overflow of ~10K. Excluding the platform for now, so CI is happy.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2025-02-13 20:21:51 +01:00
Guillaume Gautier
5415e8e4a6 tests: drivers: can: add stm32n6 boards overlays
Add CAN test overlays for Nucleo N657x0-Q and STM32N6570 DK boards.
Userspace needs to be disabled for the tests to pass.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-13 20:11:30 +01:00
Luca Burelli
fe29c40a93 llext: add inspection API test suite
This patch adds a test suite for the inspection API. The test checks
that the symbols exported by the 'inspect_ext' extension are correctly
mapped inside their corresponding regions and sections.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-02-13 16:43:29 +01:00
Wilfried Chauveau
caafe23891 arch: arm: cortex_m: Apply clang-format on cortex_m related code
This commit updates cortex_m related code to align it with the rules from
.clang-format. This is done to simplify future changes in these files as
we are about to implement use_switch support.

Some rules conflict with checkpatch and therefore some small part of the
code locally disable clang-format.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
2025-02-13 16:42:48 +01:00
Jonathon Penix
0bb7849aec tests: gen_isr_table: filter *arm_mainline test on *_M_MAINLINE config
Since it was added, `arch.interrupt.gen_isr_table_local.arm_mainline`
filters on `CONFIG_ARMV6_M_ARMV8_M_BASELINE`. I'm not entirely sure whether
this was intentional, but this seems odd to me given a) the naming of the
test b) that the `platform_allow` is `qemu_cortex_m3` and c) that the
`arch.interrupt.gen_isr_table.arm_mainline` test it inherits part of its
config from filters on `CONFIG_ARMV7_M_ARMV8_M_MAINLINE`.

The current filtering setup also means that a command like
`west twister -c -T tests/kernel/gen_isr_table/` currently filters out all
of the `*gen_isr_table_local*` tests which was a surprise to me when
testing locally (no tests broke for a change I made as they were
all filtered out).

Assuming this is undesireable, change the filter to check against
`CONFIG_ARMV7_M_ARMV8_M_MAINLINE` to make it possible to run the tests
on the expected platform without needing to work around the filter.

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
2025-02-13 16:42:08 +01:00