162306a36Sopenharmony_ciWhat:		/sys/class/tty/console/active
262306a36Sopenharmony_ciDate:		Nov 2010
362306a36Sopenharmony_ciContact:	Kay Sievers <kay.sievers@vrfy.org>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		 Shows the list of currently configured
662306a36Sopenharmony_ci		 console devices, like 'tty1 ttyS0'.
762306a36Sopenharmony_ci		 The last entry in the file is the active
862306a36Sopenharmony_ci		 device connected to /dev/console.
962306a36Sopenharmony_ci		 The file supports poll() to detect virtual
1062306a36Sopenharmony_ci		 console switches.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciWhat:		/sys/class/tty/tty<x>/active
1362306a36Sopenharmony_ciDate:		Nov 2010
1462306a36Sopenharmony_ciContact:	Kay Sievers <kay.sievers@vrfy.org>
1562306a36Sopenharmony_ciDescription:
1662306a36Sopenharmony_ci		 Shows the currently active virtual console
1762306a36Sopenharmony_ci		 device, like 'tty1'.
1862306a36Sopenharmony_ci		 The file supports poll() to detect virtual
1962306a36Sopenharmony_ci		 console switches.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/uartclk
2262306a36Sopenharmony_ciDate:		Sep 2012
2362306a36Sopenharmony_ciContact:	Tomas Hlavacek <tmshlvck@gmail.com>
2462306a36Sopenharmony_ciDescription:
2562306a36Sopenharmony_ci		 Shows the current uartclk value associated with the
2662306a36Sopenharmony_ci		 UART port in serial_core, that is bound to TTY like ttyS0.
2762306a36Sopenharmony_ci		 uartclk = 16 * baud_base
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
3062306a36Sopenharmony_ci		 sysfs rather than via ioctls.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/type
3362306a36Sopenharmony_ciDate:		October 2012
3462306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
3562306a36Sopenharmony_ciDescription:
3662306a36Sopenharmony_ci		 Shows the current tty type for this port.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
3962306a36Sopenharmony_ci		 sysfs rather than via ioctls.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/line
4262306a36Sopenharmony_ciDate:		October 2012
4362306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
4462306a36Sopenharmony_ciDescription:
4562306a36Sopenharmony_ci		 Shows the current tty line number for this port.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
4862306a36Sopenharmony_ci		 sysfs rather than via ioctls.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/port
5162306a36Sopenharmony_ciDate:		October 2012
5262306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
5362306a36Sopenharmony_ciDescription:
5462306a36Sopenharmony_ci		 Shows the current tty port I/O address for this port.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
5762306a36Sopenharmony_ci		 sysfs rather than via ioctls.
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/irq
6062306a36Sopenharmony_ciDate:		October 2012
6162306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
6262306a36Sopenharmony_ciDescription:
6362306a36Sopenharmony_ci		 Shows the current primary interrupt for this port.
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
6662306a36Sopenharmony_ci		 sysfs rather than via ioctls.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/flags
6962306a36Sopenharmony_ciDate:		October 2012
7062306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
7162306a36Sopenharmony_ciDescription:
7262306a36Sopenharmony_ci		 Show the tty port status flags for this port.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
7562306a36Sopenharmony_ci		 sysfs rather than via ioctls.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/xmit_fifo_size
7862306a36Sopenharmony_ciDate:		October 2012
7962306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
8062306a36Sopenharmony_ciDescription:
8162306a36Sopenharmony_ci		 Show the transmit FIFO size for this port.
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
8462306a36Sopenharmony_ci		 sysfs rather than via ioctls.
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/close_delay
8762306a36Sopenharmony_ciDate:		October 2012
8862306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
8962306a36Sopenharmony_ciDescription:
9062306a36Sopenharmony_ci		 Show the closing delay time for this port in ms.
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
9362306a36Sopenharmony_ci		 sysfs rather than via ioctls.
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/closing_wait
9662306a36Sopenharmony_ciDate:		October 2012
9762306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
9862306a36Sopenharmony_ciDescription:
9962306a36Sopenharmony_ci		 Show the close wait time for this port in ms.
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
10262306a36Sopenharmony_ci		 sysfs rather than via ioctls.
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/custom_divisor
10562306a36Sopenharmony_ciDate:		October 2012
10662306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
10762306a36Sopenharmony_ciDescription:
10862306a36Sopenharmony_ci		 Show the custom divisor if any that is set on this port.
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
11162306a36Sopenharmony_ci		 sysfs rather than via ioctls.
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/io_type
11462306a36Sopenharmony_ciDate:		October 2012
11562306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
11662306a36Sopenharmony_ciDescription:
11762306a36Sopenharmony_ci		 Show the I/O type that is to be used with the iomem base
11862306a36Sopenharmony_ci		 address.
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
12162306a36Sopenharmony_ci		 sysfs rather than via ioctls.
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/iomem_base
12462306a36Sopenharmony_ciDate:		October 2012
12562306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
12662306a36Sopenharmony_ciDescription:
12762306a36Sopenharmony_ci		 The I/O memory base for this port.
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
13062306a36Sopenharmony_ci		 sysfs rather than via ioctls.
13162306a36Sopenharmony_ci
13262306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/iomem_reg_shift
13362306a36Sopenharmony_ciDate:		October 2012
13462306a36Sopenharmony_ciContact:	Alan Cox <alan@linux.intel.com>
13562306a36Sopenharmony_ciDescription:
13662306a36Sopenharmony_ci		 Show the register shift indicating the spacing to be used
13762306a36Sopenharmony_ci		 for accesses on this iomem address.
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ci		 These sysfs values expose the TIOCGSERIAL interface via
14062306a36Sopenharmony_ci		 sysfs rather than via ioctls.
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/rx_trig_bytes
14362306a36Sopenharmony_ciDate:		May 2014
14462306a36Sopenharmony_ciContact:	Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
14562306a36Sopenharmony_ciDescription:
14662306a36Sopenharmony_ci		 Shows current RX interrupt trigger bytes or sets the
14762306a36Sopenharmony_ci		 user specified value to change it for the FIFO buffer.
14862306a36Sopenharmony_ci		 Users can show or set this value regardless of opening the
14962306a36Sopenharmony_ci		 serial device file or not.
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ci		 The RX trigger can be set one of four kinds of values for UART
15262306a36Sopenharmony_ci		 serials. When users input a meaning less value to this I/F,
15362306a36Sopenharmony_ci		 the RX trigger is changed to the nearest lower value for the
15462306a36Sopenharmony_ci		 device specification. For example, when user sets 7bytes on
15562306a36Sopenharmony_ci		 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is
15662306a36Sopenharmony_ci		 automatically changed to 4 bytes.
15762306a36Sopenharmony_ci
15862306a36Sopenharmony_ciWhat:		/sys/class/tty/ttyS<x>/console
15962306a36Sopenharmony_ciDate:		February 2020
16062306a36Sopenharmony_ciContact:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
16162306a36Sopenharmony_ciDescription:
16262306a36Sopenharmony_ci		 Allows user to detach or attach back the given device as
16362306a36Sopenharmony_ci		 kernel console. It shows and accepts a boolean variable.
164