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