0001 What: /sys/class/tty/console/active
0002 Date: Nov 2010
0003 Contact: Kay Sievers <kay.sievers@vrfy.org>
0004 Description:
0005 Shows the list of currently configured
0006 console devices, like 'tty1 ttyS0'.
0007 The last entry in the file is the active
0008 device connected to /dev/console.
0009 The file supports poll() to detect virtual
0010 console switches.
0011
0012 What: /sys/class/tty/tty<x>/active
0013 Date: Nov 2010
0014 Contact: Kay Sievers <kay.sievers@vrfy.org>
0015 Description:
0016 Shows the currently active virtual console
0017 device, like 'tty1'.
0018 The file supports poll() to detect virtual
0019 console switches.
0020
0021 What: /sys/class/tty/ttyS<x>/uartclk
0022 Date: Sep 2012
0023 Contact: Tomas Hlavacek <tmshlvck@gmail.com>
0024 Description:
0025 Shows the current uartclk value associated with the
0026 UART port in serial_core, that is bound to TTY like ttyS0.
0027 uartclk = 16 * baud_base
0028
0029 These sysfs values expose the TIOCGSERIAL interface via
0030 sysfs rather than via ioctls.
0031
0032 What: /sys/class/tty/ttyS<x>/type
0033 Date: October 2012
0034 Contact: Alan Cox <alan@linux.intel.com>
0035 Description:
0036 Shows the current tty type for this port.
0037
0038 These sysfs values expose the TIOCGSERIAL interface via
0039 sysfs rather than via ioctls.
0040
0041 What: /sys/class/tty/ttyS<x>/line
0042 Date: October 2012
0043 Contact: Alan Cox <alan@linux.intel.com>
0044 Description:
0045 Shows the current tty line number for this port.
0046
0047 These sysfs values expose the TIOCGSERIAL interface via
0048 sysfs rather than via ioctls.
0049
0050 What: /sys/class/tty/ttyS<x>/port
0051 Date: October 2012
0052 Contact: Alan Cox <alan@linux.intel.com>
0053 Description:
0054 Shows the current tty port I/O address for this port.
0055
0056 These sysfs values expose the TIOCGSERIAL interface via
0057 sysfs rather than via ioctls.
0058
0059 What: /sys/class/tty/ttyS<x>/irq
0060 Date: October 2012
0061 Contact: Alan Cox <alan@linux.intel.com>
0062 Description:
0063 Shows the current primary interrupt for this port.
0064
0065 These sysfs values expose the TIOCGSERIAL interface via
0066 sysfs rather than via ioctls.
0067
0068 What: /sys/class/tty/ttyS<x>/flags
0069 Date: October 2012
0070 Contact: Alan Cox <alan@linux.intel.com>
0071 Description:
0072 Show the tty port status flags for this port.
0073
0074 These sysfs values expose the TIOCGSERIAL interface via
0075 sysfs rather than via ioctls.
0076
0077 What: /sys/class/tty/ttyS<x>/xmit_fifo_size
0078 Date: October 2012
0079 Contact: Alan Cox <alan@linux.intel.com>
0080 Description:
0081 Show the transmit FIFO size for this port.
0082
0083 These sysfs values expose the TIOCGSERIAL interface via
0084 sysfs rather than via ioctls.
0085
0086 What: /sys/class/tty/ttyS<x>/close_delay
0087 Date: October 2012
0088 Contact: Alan Cox <alan@linux.intel.com>
0089 Description:
0090 Show the closing delay time for this port in ms.
0091
0092 These sysfs values expose the TIOCGSERIAL interface via
0093 sysfs rather than via ioctls.
0094
0095 What: /sys/class/tty/ttyS<x>/closing_wait
0096 Date: October 2012
0097 Contact: Alan Cox <alan@linux.intel.com>
0098 Description:
0099 Show the close wait time for this port in ms.
0100
0101 These sysfs values expose the TIOCGSERIAL interface via
0102 sysfs rather than via ioctls.
0103
0104 What: /sys/class/tty/ttyS<x>/custom_divisor
0105 Date: October 2012
0106 Contact: Alan Cox <alan@linux.intel.com>
0107 Description:
0108 Show the custom divisor if any that is set on this port.
0109
0110 These sysfs values expose the TIOCGSERIAL interface via
0111 sysfs rather than via ioctls.
0112
0113 What: /sys/class/tty/ttyS<x>/io_type
0114 Date: October 2012
0115 Contact: Alan Cox <alan@linux.intel.com>
0116 Description:
0117 Show the I/O type that is to be used with the iomem base
0118 address.
0119
0120 These sysfs values expose the TIOCGSERIAL interface via
0121 sysfs rather than via ioctls.
0122
0123 What: /sys/class/tty/ttyS<x>/iomem_base
0124 Date: October 2012
0125 Contact: Alan Cox <alan@linux.intel.com>
0126 Description:
0127 The I/O memory base for this port.
0128
0129 These sysfs values expose the TIOCGSERIAL interface via
0130 sysfs rather than via ioctls.
0131
0132 What: /sys/class/tty/ttyS<x>/iomem_reg_shift
0133 Date: October 2012
0134 Contact: Alan Cox <alan@linux.intel.com>
0135 Description:
0136 Show the register shift indicating the spacing to be used
0137 for accesses on this iomem address.
0138
0139 These sysfs values expose the TIOCGSERIAL interface via
0140 sysfs rather than via ioctls.
0141
0142 What: /sys/class/tty/ttyS<x>/rx_trig_bytes
0143 Date: May 2014
0144 Contact: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
0145 Description:
0146 Shows current RX interrupt trigger bytes or sets the
0147 user specified value to change it for the FIFO buffer.
0148 Users can show or set this value regardless of opening the
0149 serial device file or not.
0150
0151 The RX trigger can be set one of four kinds of values for UART
0152 serials. When users input a meaning less value to this I/F,
0153 the RX trigger is changed to the nearest lower value for the
0154 device specification. For example, when user sets 7bytes on
0155 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is
0156 automatically changed to 4 bytes.
0157
0158 What: /sys/class/tty/ttyS<x>/console
0159 Date: February 2020
0160 Contact: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
0161 Description:
0162 Allows user to detach or attach back the given device as
0163 kernel console. It shows and accepts a boolean variable.