diff --git a/configs/sim/touchscreen/defconfig b/configs/sim/touchscreen/defconfig
index 448cee74793fee84f9848914fae542b51fd93824..350502ef20246c52b38348d70ebe15458caf5155 100644
--- a/configs/sim/touchscreen/defconfig
+++ b/configs/sim/touchscreen/defconfig
@@ -551,10 +551,16 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 # CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH - The path to the touchscreen
 #   device.  This must be consistent with CONFIG_EXAMPLES_TOUCHSCREEN_MINOR.
 #   Default: "/dev/input0"
+# CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES - If CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN
+#   is defined, then the number of samples is provided on the command line
+#   and this value is ignored.  Otherwise, this number of samples is
+#   collected and the program terminates.  Default:  Samples are collected
+#   indefinitely.
 #
 CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=n
 CONFIG_EXAMPLES_TOUCHSCREEN_MINOR=0
 CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH="/dev/input0"
+CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES=25
 
 #
 # Additional examples/touchscreen needed only for the simulated target