diff mbox series

[v1,3/3] tty: documentation: abi: add ttyvs null modem driver sysfs nodes

Message ID 7d7c949890c4bdb12ecc9f8b15a5c0a69b7604a8.1578235515.git.gupt21@gmail.com
State New
Headers show
Series [v1,1/3] dt-bindings: ttyvs: document serial null modem driver dt bindings | expand

Commit Message

rishi gupta Jan. 6, 2020, 7:21 a.m. UTC
The ttyvs driver exposes sysfs files to emulate various serial
port events. This commit document these files.

Signed-off-by: Rishi Gupta <gupt21@gmail.com>
---
 .../ABI/testing/sysfs-devices-virtual-tty_ttyvs        | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-virtual-tty_ttyvs
diff mbox series

Patch

diff --git a/Documentation/ABI/testing/sysfs-devices-virtual-tty_ttyvs b/Documentation/ABI/testing/sysfs-devices-virtual-tty_ttyvs
new file mode 100644
index 0000000..69b04e0
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-virtual-tty_ttyvs
@@ -0,0 +1,18 @@ 
+What:		/sys/devices/virtual/tty/ttyvsN/event
+Date:		January 2020
+Contact:	Rishi Gupta <gupt21@gmail.com>
+KernelVersion:	5.5
+Description:
+		The ttyvs driver will emulate serial port event; parity error,
+		framing error, overrun error, asserting or de-asserting break
+		conditions and ring indication when user space application
+		writes an event code on this sysfs file.
+
+What:		/sys/devices/virtual/tty/ttyvsN/faultycable
+Date:		January 2020
+Contact:	Rishi Gupta <gupt21@gmail.com>
+KernelVersion:	5.5
+Description:
+		The ttyvs driver will emulate as if the cable is faulty; i.e.
+		data sent will not be received when user space application
+		writes 1 on this file. Write 0 to disable this emulation.