tests: uart_async_api: add nxp,loopback mode to boards with LPUART

add nxp,loopback mode to boards with LPUART. This will enable testing
the UART async api without a physical loopback connection.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-04-19 18:19:32 -05:00 committed by Carles Cufí
commit fee7de48d3
14 changed files with 35 additions and 9 deletions

View file

@ -3,4 +3,5 @@
&lpuart0 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -9,4 +9,5 @@
&lpuart4 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -9,4 +9,5 @@
&lpuart2 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -9,4 +9,5 @@
&lpuart3 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -9,4 +9,5 @@
&lpuart3 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -9,4 +9,5 @@
&lpuart3 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -0,0 +1,7 @@
/* SPDX-License-Identifier: Apache-2.0 */
&lpuart2 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -1,3 +0,0 @@
CONFIG_OCRAM_NOCACHE=y
# Custom MPU regions for noncacheable SRAM do not support userspace
CONFIG_TEST_USERSPACE=n

View file

@ -2,11 +2,12 @@
/ {
chosen {
zephyr,sram = &ocram;
zephyr,sram = &dtcm;
};
};
&lpuart2 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -0,0 +1,7 @@
/* SPDX-License-Identifier: Apache-2.0 */
&lpuart2 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -1,3 +0,0 @@
CONFIG_OCRAM_NOCACHE=y
# Custom MPU regions for noncacheable SRAM do not support userspace
CONFIG_TEST_USERSPACE=n

View file

@ -2,11 +2,12 @@
/ {
chosen {
zephyr,sram = &ocram;
zephyr,sram = &dtcm;
};
};
&lpuart2 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -0,0 +1,7 @@
/* SPDX-License-Identifier: Apache-2.0 */
&lpuart2 {
status = "okay";
current-speed = <115200>;
nxp,loopback;
};

View file

@ -52,8 +52,11 @@
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(lpuart0))
#elif defined(CONFIG_BOARD_MIMXRT1020_EVK) || \
defined(CONFIG_BOARD_MIMXRT1024_EVK) || \
defined(CONFIG_BOARD_MIMXRT1160_EVK_CM4) || \
defined(CONFIG_BOARD_MIMXRT1170_EVK_CM4) || \
defined(CONFIG_BOARD_MIMXRT1160_EVK_CM7) || \
defined(CONFIG_BOARD_MIMXRT1170_EVK_CM7)
defined(CONFIG_BOARD_MIMXRT1170_EVK_CM7) || \
defined(CONFIG_BOARD_TWR_KE18F)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(lpuart2))
#elif defined(CONFIG_BOARD_MIMXRT1050_EVK) || \
defined(CONFIG_BOARD_MIMXRT1060_EVK) || \