xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-tty (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/class/tty/console/active
2*4882a593SmuzhiyunDate:		Nov 2010
3*4882a593SmuzhiyunContact:	Kay Sievers <kay.sievers@vrfy.org>
4*4882a593SmuzhiyunDescription:
5*4882a593Smuzhiyun		 Shows the list of currently configured
6*4882a593Smuzhiyun		 console devices, like 'tty1 ttyS0'.
7*4882a593Smuzhiyun		 The last entry in the file is the active
8*4882a593Smuzhiyun		 device connected to /dev/console.
9*4882a593Smuzhiyun		 The file supports poll() to detect virtual
10*4882a593Smuzhiyun		 console switches.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunWhat:		/sys/class/tty/tty0/active
13*4882a593SmuzhiyunDate:		Nov 2010
14*4882a593SmuzhiyunContact:	Kay Sievers <kay.sievers@vrfy.org>
15*4882a593SmuzhiyunDescription:
16*4882a593Smuzhiyun		 Shows the currently active virtual console
17*4882a593Smuzhiyun		 device, like 'tty1'.
18*4882a593Smuzhiyun		 The file supports poll() to detect virtual
19*4882a593Smuzhiyun		 console switches.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/uartclk
22*4882a593SmuzhiyunDate:		Sep 2012
23*4882a593SmuzhiyunContact:	Tomas Hlavacek <tmshlvck@gmail.com>
24*4882a593SmuzhiyunDescription:
25*4882a593Smuzhiyun		 Shows the current uartclk value associated with the
26*4882a593Smuzhiyun		 UART port in serial_core, that is bound to TTY like ttyS0.
27*4882a593Smuzhiyun		 uartclk = 16 * baud_base
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
30*4882a593Smuzhiyun		 sysfs rather than via ioctls.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/type
33*4882a593SmuzhiyunDate:		October 2012
34*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
35*4882a593SmuzhiyunDescription:
36*4882a593Smuzhiyun		 Shows the current tty type for this port.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
39*4882a593Smuzhiyun		 sysfs rather than via ioctls.
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/line
42*4882a593SmuzhiyunDate:		October 2012
43*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
44*4882a593SmuzhiyunDescription:
45*4882a593Smuzhiyun		 Shows the current tty line number for this port.
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
48*4882a593Smuzhiyun		 sysfs rather than via ioctls.
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/port
51*4882a593SmuzhiyunDate:		October 2012
52*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
53*4882a593SmuzhiyunDescription:
54*4882a593Smuzhiyun		 Shows the current tty port I/O address for this port.
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
57*4882a593Smuzhiyun		 sysfs rather than via ioctls.
58*4882a593Smuzhiyun
59*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/irq
60*4882a593SmuzhiyunDate:		October 2012
61*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
62*4882a593SmuzhiyunDescription:
63*4882a593Smuzhiyun		 Shows the current primary interrupt for this port.
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
66*4882a593Smuzhiyun		 sysfs rather than via ioctls.
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/flags
69*4882a593SmuzhiyunDate:		October 2012
70*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
71*4882a593SmuzhiyunDescription:
72*4882a593Smuzhiyun		 Show the tty port status flags for this port.
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
75*4882a593Smuzhiyun		 sysfs rather than via ioctls.
76*4882a593Smuzhiyun
77*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/xmit_fifo_size
78*4882a593SmuzhiyunDate:		October 2012
79*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
80*4882a593SmuzhiyunDescription:
81*4882a593Smuzhiyun		 Show the transmit FIFO size for this port.
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
84*4882a593Smuzhiyun		 sysfs rather than via ioctls.
85*4882a593Smuzhiyun
86*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/close_delay
87*4882a593SmuzhiyunDate:		October 2012
88*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
89*4882a593SmuzhiyunDescription:
90*4882a593Smuzhiyun		 Show the closing delay time for this port in ms.
91*4882a593Smuzhiyun
92*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
93*4882a593Smuzhiyun		 sysfs rather than via ioctls.
94*4882a593Smuzhiyun
95*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/closing_wait
96*4882a593SmuzhiyunDate:		October 2012
97*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
98*4882a593SmuzhiyunDescription:
99*4882a593Smuzhiyun		 Show the close wait time for this port in ms.
100*4882a593Smuzhiyun
101*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
102*4882a593Smuzhiyun		 sysfs rather than via ioctls.
103*4882a593Smuzhiyun
104*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/custom_divisor
105*4882a593SmuzhiyunDate:		October 2012
106*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
107*4882a593SmuzhiyunDescription:
108*4882a593Smuzhiyun		 Show the custom divisor if any that is set on this port.
109*4882a593Smuzhiyun
110*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
111*4882a593Smuzhiyun		 sysfs rather than via ioctls.
112*4882a593Smuzhiyun
113*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/io_type
114*4882a593SmuzhiyunDate:		October 2012
115*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
116*4882a593SmuzhiyunDescription:
117*4882a593Smuzhiyun		 Show the I/O type that is to be used with the iomem base
118*4882a593Smuzhiyun		 address.
119*4882a593Smuzhiyun
120*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
121*4882a593Smuzhiyun		 sysfs rather than via ioctls.
122*4882a593Smuzhiyun
123*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/iomem_base
124*4882a593SmuzhiyunDate:		October 2012
125*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
126*4882a593SmuzhiyunDescription:
127*4882a593Smuzhiyun		 The I/O memory base for this port.
128*4882a593Smuzhiyun
129*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
130*4882a593Smuzhiyun		 sysfs rather than via ioctls.
131*4882a593Smuzhiyun
132*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/iomem_reg_shift
133*4882a593SmuzhiyunDate:		October 2012
134*4882a593SmuzhiyunContact:	Alan Cox <alan@linux.intel.com>
135*4882a593SmuzhiyunDescription:
136*4882a593Smuzhiyun		 Show the register shift indicating the spacing to be used
137*4882a593Smuzhiyun		 for accesses on this iomem address.
138*4882a593Smuzhiyun
139*4882a593Smuzhiyun		 These sysfs values expose the TIOCGSERIAL interface via
140*4882a593Smuzhiyun		 sysfs rather than via ioctls.
141*4882a593Smuzhiyun
142*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/rx_trig_bytes
143*4882a593SmuzhiyunDate:		May 2014
144*4882a593SmuzhiyunContact:	Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
145*4882a593SmuzhiyunDescription:
146*4882a593Smuzhiyun		 Shows current RX interrupt trigger bytes or sets the
147*4882a593Smuzhiyun		 user specified value to change it for the FIFO buffer.
148*4882a593Smuzhiyun		 Users can show or set this value regardless of opening the
149*4882a593Smuzhiyun		 serial device file or not.
150*4882a593Smuzhiyun
151*4882a593Smuzhiyun		 The RX trigger can be set one of four kinds of values for UART
152*4882a593Smuzhiyun		 serials. When users input a meaning less value to this I/F,
153*4882a593Smuzhiyun		 the RX trigger is changed to the nearest lower value for the
154*4882a593Smuzhiyun		 device specification. For example, when user sets 7bytes on
155*4882a593Smuzhiyun		 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is
156*4882a593Smuzhiyun		 automatically changed to 4 bytes.
157*4882a593Smuzhiyun
158*4882a593SmuzhiyunWhat:		/sys/class/tty/ttyS0/console
159*4882a593SmuzhiyunDate:		February 2020
160*4882a593SmuzhiyunContact:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
161*4882a593SmuzhiyunDescription:
162*4882a593Smuzhiyun		 Allows user to detach or attach back the given device as
163*4882a593Smuzhiyun		 kernel console. It shows and accepts a boolean variable.
164