Skip to content

Commit 17199df

Browse files
tmlindgregkh
authored andcommitted
Documentation: kernel-parameters: Add DEVNAME:0.0 format for serial ports
Document the console option for DEVNAME:0.0 style addressing for serial ports. Suggested-by: Sebastian Reichel <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 12c91ce commit 17199df

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,25 @@
788788
Documentation/networking/netconsole.rst for an
789789
alternative.
790790

791+
<DEVNAME>:<n>.<n>[,options]
792+
Use the specified serial port on the serial core bus.
793+
The addressing uses DEVNAME of the physical serial port
794+
device, followed by the serial core controller instance,
795+
and the serial port instance. The options are the same
796+
as documented for the ttyS addressing above.
797+
798+
The mapping of the serial ports to the tty instances
799+
can be viewed with:
800+
801+
$ ls -d /sys/bus/serial-base/devices/*:*.*/tty/*
802+
/sys/bus/serial-base/devices/00:04:0.0/tty/ttyS0
803+
804+
In the above example, the console can be addressed with
805+
console=00:04:0.0. Note that a console addressed this
806+
way will only get added when the related device driver
807+
is ready. The use of an earlycon parameter in addition to
808+
the console may be desired for console output early on.
809+
791810
uart[8250],io,<addr>[,options]
792811
uart[8250],mmio,<addr>[,options]
793812
uart[8250],mmio16,<addr>[,options]

0 commit comments

Comments
 (0)