Skip to content

Commit

Permalink
riscv: dts: microchip: mpfs-icicle: Fix serial console
Browse files Browse the repository at this point in the history
[ Upstream commit cbba178 ]

Currently, nothing is output on the serial console, unless
"console=ttyS0,115200n8" or "earlycon" are appended to the kernel
command line.  Enable automatic console selection using
chosen/stdout-path by adding a proper alias, and configure the expected
serial rate.

While at it, add aliases for the other three serial ports, which are
provided on the same micro-USB connector as the first one.

Fixes: 0fa6107 ("RISC-V: Initial DTS for Microchip ICICLE board")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
geertu authored and gregkh committed Sep 26, 2021
1 parent f8d2c2c commit 4d74704
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
Expand Up @@ -16,10 +16,14 @@

aliases {
ethernet0 = &emac1;
serial0 = &serial0;
serial1 = &serial1;
serial2 = &serial2;
serial3 = &serial3;
};

chosen {
stdout-path = &serial0;
stdout-path = "serial0:115200n8";
};

cpus {
Expand Down

0 comments on commit 4d74704

Please sign in to comment.