From c42e282a4d849f930bcc8ed22e73d84e563ead03 Mon Sep 17 00:00:00 2001 From: Marko Sagadin Date: Tue, 11 Jul 2023 22:16:04 +0200 Subject: [PATCH] samples: drivers: uart: native tty: Add native_sim overlay Also include it in the twister tests. Signed-off-by: Marko Sagadin --- .../uart/native_tty/boards/native_sim.overlay | 15 +++++++++++++++ samples/drivers/uart/native_tty/sample.yaml | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 samples/drivers/uart/native_tty/boards/native_sim.overlay diff --git a/samples/drivers/uart/native_tty/boards/native_sim.overlay b/samples/drivers/uart/native_tty/boards/native_sim.overlay new file mode 100644 index 000000000000000..24f1bd95705bda3 --- /dev/null +++ b/samples/drivers/uart/native_tty/boards/native_sim.overlay @@ -0,0 +1,15 @@ +/ { + uart0: uart { + status = "okay"; + compatible = "zephyr,native-tty-uart"; + current-speed = <115200>; + serial-port = "/dev/ttyUSB0"; + }; + + uart2: uart2 { + status = "okay"; + compatible = "zephyr,native-tty-uart"; + current-speed = <115200>; + serial-port = "/dev/ttyUSB1"; + }; +}; diff --git a/samples/drivers/uart/native_tty/sample.yaml b/samples/drivers/uart/native_tty/sample.yaml index 92263aa8c426a5c..1e059d9ce3aab39 100644 --- a/samples/drivers/uart/native_tty/sample.yaml +++ b/samples/drivers/uart/native_tty/sample.yaml @@ -3,7 +3,9 @@ sample: tests: sample.drivers.uart.native_tty: build_only: true - platform_allow: native_posix + platform_allow: + - native_posix + - native_sim tags: - serial - uart