LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2] riscv: dts: microchip: mpfs-icicle: Fix serial console
@ 2021-08-26 13:19 Geert Uytterhoeven
2021-08-31 11:26 ` Conor.Dooley
2021-09-11 6:58 ` Palmer Dabbelt
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2021-08-26 13:19 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Atish Patra
Cc: Bin Meng, linux-riscv, linux-kernel, Geert Uytterhoeven, Bin Meng
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: 0fa6107eca4186ad ("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>
---
v2:
- Add Reviewed-by,
- Rebase on top of 417166ddec020c4e ("riscv: dts: microchip: Add
ethernet0 to the aliases node"), as requested by Bin.
---
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
index baea7d204639a185..b254c60589a1cc8b 100644
--- a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
+++ b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
@@ -16,10 +16,14 @@ / {
aliases {
ethernet0 = &emac1;
+ serial0 = &serial0;
+ serial1 = &serial1;
+ serial2 = &serial2;
+ serial3 = &serial3;
};
chosen {
- stdout-path = &serial0;
+ stdout-path = "serial0:115200n8";
};
cpus {
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] riscv: dts: microchip: mpfs-icicle: Fix serial console
2021-08-26 13:19 [PATCH v2] riscv: dts: microchip: mpfs-icicle: Fix serial console Geert Uytterhoeven
@ 2021-08-31 11:26 ` Conor.Dooley
2021-09-11 6:58 ` Palmer Dabbelt
1 sibling, 0 replies; 3+ messages in thread
From: Conor.Dooley @ 2021-08-31 11:26 UTC (permalink / raw)
To: geert, paul.walmsley, palmer, aou, atish.patra
Cc: bin.meng, linux-riscv, linux-kernel, bmeng.cn
On 26/08/2021 14:19, Geert Uytterhoeven wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> 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: 0fa6107eca4186ad ("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>
> ---
> v2:
> - Add Reviewed-by,
> - Rebase on top of 417166ddec020c4e ("riscv: dts: microchip: Add
> ethernet0 to the aliases node"), as requested by Bin.
> ---
> arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
> index baea7d204639a185..b254c60589a1cc8b 100644
> --- a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
> +++ b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
> @@ -16,10 +16,14 @@ / {
>
> aliases {
> ethernet0 = &emac1;
> + serial0 = &serial0;
> + serial1 = &serial1;
> + serial2 = &serial2;
> + serial3 = &serial3;
> };
>
> chosen {
> - stdout-path = &serial0;
> + stdout-path = "serial0:115200n8";
> };
>
> cpus {
> --
> 2.25.1
Looks good, we've switched to using this ourselves.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] riscv: dts: microchip: mpfs-icicle: Fix serial console
2021-08-26 13:19 [PATCH v2] riscv: dts: microchip: mpfs-icicle: Fix serial console Geert Uytterhoeven
2021-08-31 11:26 ` Conor.Dooley
@ 2021-09-11 6:58 ` Palmer Dabbelt
1 sibling, 0 replies; 3+ messages in thread
From: Palmer Dabbelt @ 2021-09-11 6:58 UTC (permalink / raw)
To: geert
Cc: Paul Walmsley, aou, Atish Patra, bin.meng, linux-riscv,
linux-kernel, geert, bmeng.cn
On Thu, 26 Aug 2021 06:19:39 PDT (-0700), geert@linux-m68k.org wrote:
> 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: 0fa6107eca4186ad ("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>
> ---
> v2:
> - Add Reviewed-by,
> - Rebase on top of 417166ddec020c4e ("riscv: dts: microchip: Add
> ethernet0 to the aliases node"), as requested by Bin.
> ---
> arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
> index baea7d204639a185..b254c60589a1cc8b 100644
> --- a/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
> +++ b/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
> @@ -16,10 +16,14 @@ / {
>
> aliases {
> ethernet0 = &emac1;
> + serial0 = &serial0;
> + serial1 = &serial1;
> + serial2 = &serial2;
> + serial3 = &serial3;
> };
>
> chosen {
> - stdout-path = &serial0;
> + stdout-path = "serial0:115200n8";
> };
>
> cpus {
Thanks, this is on for-next (there's no fixes right now, it's still 5.15
for me).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-11 6:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 13:19 [PATCH v2] riscv: dts: microchip: mpfs-icicle: Fix serial console Geert Uytterhoeven
2021-08-31 11:26 ` Conor.Dooley
2021-09-11 6:58 ` Palmer Dabbelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).