tests: drivers: uart: uart_basic_api: add configuration for frdm_ke17z512
Add uart configuration for UART driver, add frdm_ke17z512_uart.overlay and update testcase.yml to support UART testing. There are LPUART and UART IPs in frdm_ke17z512 platforms, so add additional shell tests as UART, the shell instructions can be entered on the UART console window. Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
parent
7b72c6f2d9
commit
bdaeab3537
2 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2024 NXP
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,shell-uart = &uart1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/* This configuration is to test "UART" driver
|
||||||
|
* UART1_RX_PTC16(J4->10)
|
||||||
|
* UART1_TX_PTC17(J4->12)
|
||||||
|
*/
|
||||||
|
|
||||||
|
&uart1 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-0 = <&uart1_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
current-speed = <115200>;
|
||||||
|
};
|
|
@ -47,3 +47,13 @@ tests:
|
||||||
filter: CONFIG_UART_CONSOLE
|
filter: CONFIG_UART_CONSOLE
|
||||||
depends_on: usb_device
|
depends_on: usb_device
|
||||||
harness: keyboard
|
harness: keyboard
|
||||||
|
drivers.uart.basic_api.shell_ke17z9_uart:
|
||||||
|
tags:
|
||||||
|
- drivers
|
||||||
|
- uart
|
||||||
|
filter: CONFIG_UART_CONSOLE
|
||||||
|
harness: keyboard
|
||||||
|
platform_allow: frdm_ke17z512
|
||||||
|
extra_args:
|
||||||
|
- CONF_FILE=prj_shell.conf
|
||||||
|
- DTC_OVERLAY_FILE="boards/frdm_ke17z512_uart.overlay"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue