1fbc92a34SKay SieversWhat:		/sys/class/tty/console/active
2fbc92a34SKay SieversDate:		Nov 2010
3fbc92a34SKay SieversContact:	Kay Sievers <kay.sievers@vrfy.org>
4fbc92a34SKay SieversDescription:
5fbc92a34SKay Sievers		 Shows the list of currently configured
65c0a2450SGreg Kroah-Hartman		 console devices, like 'tty1 ttyS0'.
7fbc92a34SKay Sievers		 The last entry in the file is the active
8fbc92a34SKay Sievers		 device connected to /dev/console.
9fbc92a34SKay Sievers		 The file supports poll() to detect virtual
10fbc92a34SKay Sievers		 console switches.
11fbc92a34SKay Sievers
12*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/tty<x>/active
13fbc92a34SKay SieversDate:		Nov 2010
14fbc92a34SKay SieversContact:	Kay Sievers <kay.sievers@vrfy.org>
15fbc92a34SKay SieversDescription:
16fbc92a34SKay Sievers		 Shows the currently active virtual console
17fbc92a34SKay Sievers		 device, like 'tty1'.
18fbc92a34SKay Sievers		 The file supports poll() to detect virtual
19fbc92a34SKay Sievers		 console switches.
206915c0e4STomas Hlavacek
21*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/uartclk
226915c0e4STomas HlavacekDate:		Sep 2012
236915c0e4STomas HlavacekContact:	Tomas Hlavacek <tmshlvck@gmail.com>
246915c0e4STomas HlavacekDescription:
256915c0e4STomas Hlavacek		 Shows the current uartclk value associated with the
266915c0e4STomas Hlavacek		 UART port in serial_core, that is bound to TTY like ttyS0.
276915c0e4STomas Hlavacek		 uartclk = 16 * baud_base
286915c0e4STomas Hlavacek
29373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
30373bac4cSAlan Cox		 sysfs rather than via ioctls.
31373bac4cSAlan Cox
32*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/type
33373bac4cSAlan CoxDate:		October 2012
34373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
35373bac4cSAlan CoxDescription:
36373bac4cSAlan Cox		 Shows the current tty type for this port.
37373bac4cSAlan Cox
38373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
39373bac4cSAlan Cox		 sysfs rather than via ioctls.
40373bac4cSAlan Cox
41*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/line
42373bac4cSAlan CoxDate:		October 2012
43373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
44373bac4cSAlan CoxDescription:
45373bac4cSAlan Cox		 Shows the current tty line number for this port.
46373bac4cSAlan Cox
47373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
48373bac4cSAlan Cox		 sysfs rather than via ioctls.
49373bac4cSAlan Cox
50*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/port
51373bac4cSAlan CoxDate:		October 2012
52373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
53373bac4cSAlan CoxDescription:
54373bac4cSAlan Cox		 Shows the current tty port I/O address for this port.
55373bac4cSAlan Cox
56373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
57373bac4cSAlan Cox		 sysfs rather than via ioctls.
58373bac4cSAlan Cox
59*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/irq
60373bac4cSAlan CoxDate:		October 2012
61373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
62373bac4cSAlan CoxDescription:
63373bac4cSAlan Cox		 Shows the current primary interrupt for this port.
64373bac4cSAlan Cox
65373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
66373bac4cSAlan Cox		 sysfs rather than via ioctls.
67373bac4cSAlan Cox
68*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/flags
69373bac4cSAlan CoxDate:		October 2012
70373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
71373bac4cSAlan CoxDescription:
72373bac4cSAlan Cox		 Show the tty port status flags for this port.
73373bac4cSAlan Cox
74373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
75373bac4cSAlan Cox		 sysfs rather than via ioctls.
76373bac4cSAlan Cox
77*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/xmit_fifo_size
78373bac4cSAlan CoxDate:		October 2012
79373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
80373bac4cSAlan CoxDescription:
81373bac4cSAlan Cox		 Show the transmit FIFO size for this port.
82373bac4cSAlan Cox
83373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
84373bac4cSAlan Cox		 sysfs rather than via ioctls.
85373bac4cSAlan Cox
86*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/close_delay
87373bac4cSAlan CoxDate:		October 2012
88373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
89373bac4cSAlan CoxDescription:
90373bac4cSAlan Cox		 Show the closing delay time for this port in ms.
91373bac4cSAlan Cox
92373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
93373bac4cSAlan Cox		 sysfs rather than via ioctls.
94373bac4cSAlan Cox
95*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/closing_wait
96373bac4cSAlan CoxDate:		October 2012
97373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
98373bac4cSAlan CoxDescription:
99373bac4cSAlan Cox		 Show the close wait time for this port in ms.
100373bac4cSAlan Cox
101373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
102373bac4cSAlan Cox		 sysfs rather than via ioctls.
103373bac4cSAlan Cox
104*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/custom_divisor
105373bac4cSAlan CoxDate:		October 2012
106373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
107373bac4cSAlan CoxDescription:
108373bac4cSAlan Cox		 Show the custom divisor if any that is set on this port.
109373bac4cSAlan Cox
110373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
111373bac4cSAlan Cox		 sysfs rather than via ioctls.
112373bac4cSAlan Cox
113*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/io_type
114373bac4cSAlan CoxDate:		October 2012
115373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
116373bac4cSAlan CoxDescription:
117373bac4cSAlan Cox		 Show the I/O type that is to be used with the iomem base
118373bac4cSAlan Cox		 address.
119373bac4cSAlan Cox
120373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
121373bac4cSAlan Cox		 sysfs rather than via ioctls.
122373bac4cSAlan Cox
123*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/iomem_base
124373bac4cSAlan CoxDate:		October 2012
125373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
126373bac4cSAlan CoxDescription:
127373bac4cSAlan Cox		 The I/O memory base for this port.
128373bac4cSAlan Cox
129373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
130373bac4cSAlan Cox		 sysfs rather than via ioctls.
131373bac4cSAlan Cox
132*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/iomem_reg_shift
133373bac4cSAlan CoxDate:		October 2012
134373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
135373bac4cSAlan CoxDescription:
136373bac4cSAlan Cox		 Show the register shift indicating the spacing to be used
137373bac4cSAlan Cox		 for accesses on this iomem address.
138373bac4cSAlan Cox
139373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
140373bac4cSAlan Cox		 sysfs rather than via ioctls.
141aef9a7bdSYoshihiro YUNOMAE
142*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/rx_trig_bytes
143aef9a7bdSYoshihiro YUNOMAEDate:		May 2014
144aef9a7bdSYoshihiro YUNOMAEContact:	Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
145aef9a7bdSYoshihiro YUNOMAEDescription:
146aef9a7bdSYoshihiro YUNOMAE		 Shows current RX interrupt trigger bytes or sets the
147aef9a7bdSYoshihiro YUNOMAE		 user specified value to change it for the FIFO buffer.
148aef9a7bdSYoshihiro YUNOMAE		 Users can show or set this value regardless of opening the
149aef9a7bdSYoshihiro YUNOMAE		 serial device file or not.
150aef9a7bdSYoshihiro YUNOMAE
151aef9a7bdSYoshihiro YUNOMAE		 The RX trigger can be set one of four kinds of values for UART
152aef9a7bdSYoshihiro YUNOMAE		 serials. When users input a meaning less value to this I/F,
153aef9a7bdSYoshihiro YUNOMAE		 the RX trigger is changed to the nearest lower value for the
154aef9a7bdSYoshihiro YUNOMAE		 device specification. For example, when user sets 7bytes on
155aef9a7bdSYoshihiro YUNOMAE		 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is
156aef9a7bdSYoshihiro YUNOMAE		 automatically changed to 4 bytes.
157a3cb39d2SAndy Shevchenko
158*05d2024aSMauro Carvalho ChehabWhat:		/sys/class/tty/ttyS<x>/console
159a3cb39d2SAndy ShevchenkoDate:		February 2020
160a3cb39d2SAndy ShevchenkoContact:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
161a3cb39d2SAndy ShevchenkoDescription:
162a3cb39d2SAndy Shevchenko		 Allows user to detach or attach back the given device as
163a3cb39d2SAndy Shevchenko		 kernel console. It shows and accepts a boolean variable.
164