Commit Graph

399 Commits

Author SHA1 Message Date
Michał Stasiak
e8dd83b43d drivers: serial: nrfx_uarte: enable cross domain pins for nRF54L15
UARTE20 and UARTE21 instances enable usage of pins on different
port, but require request for constant latency mode. Added
handling of such scenario in the driver. Added testcase
to cover it.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-07-25 17:03:11 +01:00
Thomas Stranger
ca77f31da0 tests: drivers: uart: uart_async_api: add nucleo_c092rc overlay
Add a overlay for the nucleo_c092 testing usart4 and dma
channels 6 and 7. These are all not available in smaller STM32C0 SoCs.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2025-07-25 08:14:53 -04:00
Sebastian Głąb
f0c143eace tests: drivers: uart: uart_pm: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after
nrf54l20pdk/nrf54l20/cpuxxx was renamed to
nrf54lm20dk/nrf54lm20a/cpuxxx.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-07-21 13:04:27 -04:00
Sebastian Głąb
8791fcf34d tests: drivers: uart: uart_mix_fifo_poll: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after
nrf54l20pdk/nrf54l20/cpuxxx was renamed to
nrf54lm20dk/nrf54lm20a/cpuxxx.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-07-21 13:04:27 -04:00
Sebastian Głąb
d05c971350 tests: drivers: uart: uart_errors: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after
nrf54l20pdk/nrf54l20/cpuxxx was renamed to
nrf54lm20dk/nrf54lm20a/cpuxxx.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-07-21 13:04:27 -04:00
Sebastian Głąb
207c662e11 tests: drivers: uart: uart_elementary: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after
nrf54l20pdk/nrf54l20/cpuxxx was renamed to
nrf54lm20dk/nrf54lm20a/cpuxxx.

Reorganize testcase.yaml to make it easier to maintain.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-07-21 13:04:27 -04:00
Sebastian Głąb
e5a9c35a99 tests: drivers: uart: uart_async_api: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after
nrf54l20pdk/nrf54l20/cpuxxx was renamed to
nrf54lm20dk/nrf54lm20a/cpuxxx.

Add test on fast instance uart00 on nrf54lm20dk.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-07-21 13:04:27 -04:00
Alberto Escolar Piedras
ebd69cac45 tests/drivers/uart/: Add overlays for the nrf54lm20bsim
This target can also run this tests, we just overlays including
the ones for the real boards.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-07-19 09:38:37 +02:00
Krzysztof Chruściński
3c9389650e Revert "drivers: serial: nrfx_uarte: Deprecate CONFIG_UART_x_NRF_HW_ASYNC"
This reverts commit 384e940c66.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-07-17 12:46:31 -10:00
Karol Lasończyk
061036f9e3 tests: samples: Extend support for nRF54LM20A
Extends support and adds new overlays.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-27 18:26:57 -05:00
Fabrice DJIATSA
7900f8d4ee tests: drivers: uart: async_api: update wba55cg clock frequency
With the current configuration, we encounter a user setting error
during the test with the log:
"Wrong number of bytes received, got: 2, expected: 3."

Workaround:
Increase the clock frequency to enable faster data transmission
and avoid user setting errors.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-26 11:13:30 +02:00
Fabrice DJIATSA
28c766b957 tests: drivers: uart_async_api: add tx buffer in nocache memory
Since nucleo_f746zg has NOCACHE_MEM defined
(related to test cases drivers.uart.async_api.nocache_mem
and drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg),
the TX buffer should be placed in a non-cacheable memory region
for the uart_async_var_buf_length testsuite to pass.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-26 11:13:30 +02:00
Khoa Nguyen
e6f9cd35bf tests: drivers: uart: Add support test uart_async for ek_ra8p1
Add support test uart_async_api for Renesas ek_ra8p1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khaoula Bidani
065900b11f tests: drivers: uart: async_api: add stm32u3 boards overlays
Add UART test overlays for Nucleo U385RG-Q board.
Remove non serial boot conf file since they are now unnecessary.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-06-25 10:50:08 +02:00
Jerzy Kasenberg
fea8ee47da tests: drivers: uart: async_api: Fix chain write
This fixes the case where uart_tx() called from tx callback
fill UART output fifo and immediately execute callback again.
This can happen when hardware does not have interrupt for
output FIFO empty and there is no non-blocking way to tell
that transfer finished.
For such case as soon as output FIFO is filled there is
interrupt that informs that more data can be transmitted.
For hardware with 32 byte fifo callback was seen to be
executed recursively 3 times.
That would not be a problem if chained_write_next_buf
was set BEFORE next call uart_tx().

Additionally semaphore max value is increased to 2
to accommodate such case.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg.xr@bp.renesas.com>
2025-06-24 20:07:23 -10:00
Yongxu Wang
774370a1d7 boards: nxp: imx95_evk_mimx9596_m7: add uart dma support
- verify in uart_async_api test case.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-06-24 20:02:35 -10:00
Bjarki Arge Andreasen
b41feb9abc drivers: serial: nrfx_uarte: assert clock control enabled
clock control is required for "fast instances" so assert clock
is enabled alongside PM DEVICE RUNTIME. Update UART tests to
reflect this requirenment.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-13 11:12:43 +02:00
Phuc Pham
6c15907b7a tests: drivers: serial: Add support for Renesas RZ/G2UL-SMARC
Enable serial driver tests for RZ/G2UL-SMARC

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-06-09 10:26:45 +01:00
Fabrice DJIATSA
4418b90c84 tests: drivers: uart: uart_async_api: update uart driver test
add stm32u083c_dk overlay file for driver test purpose.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-21 12:33:43 +02:00
Bindu S
ffc9cfb8f5 tests: drivers: uart: uart_async_api: Enabled tests for BTL-S
Enabled tests for intel_btl_s_crb platform.

Signed-off-by: Bindu S <bindu.s@intel.com>
2025-05-20 15:24:18 +02:00
Piotr Kosycarz
67eb03c52c tests: drivers: uart: uart_async_api: test short buffers
Extend testing with short buffers.
Try different lengths of transmitted data.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-05-15 22:14:08 +02:00
Krzysztof Chruściński
a87e6280aa tests: drivers: uart: Add test for async API using two instance
Add test which is using two independent UART devices. Validate behavior of
asynchronous API.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-02 10:37:30 +02:00
Abderrahmane JARMOUNI
6b4984a366 tests: drivers: uart_async_api: fix alignment size
We fix 2 issues:
First issue: __aligned attribute is in bytes
second issue: we should align depending on the platform

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-04-29 20:07:46 -04:00
Marek Matej
780bafab6a tests, samples: update esp32_devkitc board records
Update the tests using the esp32_devkitc_xxx entries.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-04-29 16:48:55 +02:00
Hake Huang
513e45f60d tests: drivers: uart: simplify setting for NXP platforms
simplify the test overlay for NXP platforms
also add check for read_ptr to avoid build warning

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-04-25 18:59:24 +02:00
Derek Snell
dd825203b5 boards: nxp: add mcx_n9xx_evk
Another board for the MCXN947 SOC, very similar to FRDM-MCXN947

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2025-04-25 11:04:08 +02:00
Greg Leach
2aff40b1b1 tests: Add BL54L15/L15u DVK support
Adds support for the BL54L15 and BL54L15u DVK boards.

Signed-off-by: Greg Leach <greg.leach@ezurio.com>
2025-04-23 15:02:20 +02:00
Neil Chen
bd22a4a394 boards: frdm_mcxa153: add uart support
- add uart support
- enable the uart_async_api test example

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-04-18 12:36:49 +02:00
Peter Wang
393c8d1378 boards: frdm_mcxa166, frdm_mcxa276: add uart support
1. add uart support
2. enable the uart_async_api test example

Signed-off-by: Peter Wang <chaoyi.wang@nxp.com>
2025-04-14 20:03:54 +02:00
Hake Huang
98458e2220 tests: uart: add extra_conf to disable CONFIG_USERSPACE
while disable USERSPACE we need set
CONFIG_TEST_ENABLE_USERSPACE=n

fixes: #82758

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2025-04-10 18:01:18 +02:00
Sebastian Głąb
3c34f88678 tests: drivers: uart: uart_elementary: Run test on nRF54L* FLPR
Add overlays required to run the test on:
- nrf54l09pdk/nrf54l09/cpuflpr,
- nrf54l20pdk/nrf54l20/cpuflpr.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-04-10 12:57:27 +02:00
Matthias Hauser
941a5489d3 dts: boards: we: add board Ophelia-IV
add new board Ophelia-IV

Signed-off-by: Matthias Hauser <matthias.hauser@we-online.de>
2025-04-03 13:16:05 +02:00
Krzysztof Chruściński
24c01a99c9 tests: drivers: uart: uart_pm: Disable device runtime PM
Explicitly disable device runtime PM since this test is expecting
it to be disabled and there are SoC now that turns on it by default.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-04-03 11:07:55 +02:00
Martin Hoff
cb9c27e7ad tests: driver: uart: add xg23_rb4210a board overlay
Add xg23_rb4210a board overlay to test asynchronous api with eusart
driver

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-04-02 13:04:19 +02:00
Nidhal BEN OTHMEN
a584534791 boards: st: nucleo_wba52cg: Remove the support of Nucleo WBA52CG board
Remove the support of the Nucleo WBA52CG board since it is NRND
(Not Recommended for New Design) and it is not supported anymore
in the STM32CubeWBA from version 1.1.0 (July 2023).

Signed-off-by: Nidhal BEN OTHMEN <nidhal.benothmen@st.com>
2025-03-26 21:55:39 +01:00
Krzysztof Chruściński
8d13b6b65b tests: drivers: uart: async_api: Align test to gcov
When CONFIG_COVERAGE is enabled then performance is degraded.
In that case higher baudrates shall be avoided because CPU may
not have enough time to handle UART interrupts. Limit baudrate
to 115200 when CONFIG_COVERAGE=y.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-24 09:58:57 +01:00
Lucas Tamborrino
c6f84d0ba2 boards: espressif: esp32c6: Add LP Core board support
Add ULP Coprocessor board support for C6.
This requires a change in the board qualifier depending on the build
target.
Update esp32c6 overlay and configuration files to the proper name.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2025-03-21 17:05:20 +01:00
Martin Hoff
eeb709927f tests: drivers: add overlay/testcase for silabs xg29_rb4412a board
Add some overlay files for the silabs xg29_rb4412a board to enable tests
on the board. Also add the platform to some testcase.yaml files.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-03-20 17:14:35 +01:00
Aksel Skauge Mellbye
b86d8c0030 tests: drivers: uart: Use EUSART0 as console on xg24_rb4187c
The UART test for USART needs to move the console to an EUSART instance
in order to free up USART0 for the test. Since EUSART1 is configured for
SPI use by the board DTS, use EUSART0 for console.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-13 07:22:11 +01:00
Furkan Akkiz
4d1740ac99 tests: drivers: uart: Enable uart_async_api test for MAX78002EVKIT
Enable uart_async_api test for MAX78002EVKIT board.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-03-12 19:01:40 +01:00
Alberto Escolar Piedras
cb53e40ff9 drivers uart_native_posix: rename to native_pty and support N instances
Rename the driver from uart_native_posix to uart_native_pty.
Including renaming the DTS compatible, and kconfig options, deprecating
the old ones.

And refactor the driver, generalizing it, so we can have any number of
instances.
Note that, unfortunately generalizing to N instances cannot be done
without a degree of backwards compatibility breakage: This driver was
born with all its configuration and selection of the instances based on
kconfig.
When the driver was made to use DT, it was done in a way that required
both DT and kconfig needing to manually coherently enable the 2nd UART.
This has now been fixed, which it means only DT is used to decide how
many instances are avaliable, and UART_NATIVE_POSIX_PORT_1_ENABLE is
just ignored.

Including:
* Deprecate UART_NATIVE_WAIT_PTS_READY_ENABLE: the options is always on
  now as it has no practical drawbacks.
* Deprecate UART_NATIVE_POSIX_PORT_1_ENABLE: DTS intanciation defines it
  being available now.
* Rename a few functions and in general shorten pseudo-tty/pseudo-
  terminal to PTY instead of PTTY.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-11 18:54:02 +01:00
Khoa Nguyen
47655aa236 tests: drivers: uart: Add support uart_async_api for RA2
Add support uart_async_api for Renesas ek_ra2l1, ek_ra2a1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-03-10 11:12:20 +01:00
S Swetha
c90694c0a8 tests: drivers: uart: Bug fix
This commit fixes the following
bug.Issue link:
https://github.com/zephyrproject-rtos/
zephyr/issues/86399.
Some users reported data access
violations due to the qualifier.
Removing static ensures proper memory
alignment and avoids potential
memory access issues.

Signed-off-by: S Swetha <s.swetha@intel.com>
2025-03-04 12:16:12 +00:00
S Swetha
6688f62f92 tests: drivers: uart: boards: Disable Userspace
This commit disables CONFIG_TEST_USERSPACE in
intel_rpl_s_crb.conf of uart_async_api
testcase.Enabling this config introduces
restrictions that interfere with cacheable
regions by blocking access and modifying
cache attributes.By disabling this
configuration, the following issues
are resolved:
-Cacheable region retain their attributes.
-Execution and data transactions work without
restrictions.
-System behavior align with expected
configuration in privileged mode.
-Some code primarily relying on non-cache
region continues to work.

This change is neccessary to ensure
cachebale memory regions function as intended
without interferance from user mode restrictions.

Signed-off-by: S Swetha <s.swetha@intel.com>
2025-02-25 15:23:34 +00:00
S Swetha
bf7f53d0cd tests: drivers: uart: Aligned buffers to 32 bytes
This commit aligns the buffers to 32 bytes in
uart_async_api testcases.This is because most
of the platform DMA operations are aligned to
32 bytes.This ensures proper memory alignment
for cache handling and avoid potential
unaligned access issues.

Signed-off-by: S Swetha <s.swetha@intel.com>
2025-02-25 15:23:34 +00: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
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
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
Guillaume Gautier
824bc6cfb5 tests: drivers: uart: async_api: add stm32n6 boards overlays
Add UART test overlays for Nucleo N657x0-Q and STM32N6570 DK boards.
Remove non serial boot conf file since they are now unnecessary.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-13 12:15:01 +01:00
Khoa Nguyen
fc43629c6f tests: drivers: uart: Add support uart_async_api for ek_ra4m1
Add support uart_async_api to run test app on ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00