linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] riscv: dts: HiFive Unleashed: add default chosen/stdout-path
@ 2019-10-09 19:42 Paul Walmsley
  2019-10-09 22:57 ` Atish Patra
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Walmsley @ 2019-10-09 19:42 UTC (permalink / raw)
  To: linux-riscv; +Cc: linux-kernel, devicetree


Add a default "stdout-path" to the kernel DTS file, as is present in many 
of the board DTS files elsewhere in the kernel tree. With this line 
present, earlyconsole can be enabled by simply passing "earlycon" on the 
kernel command line.  No specific device details are necessary, since the 
kernel will use the stdout-path as the default.

Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
---
Tested on a HiFive Unleashed using BBL.

 arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
index 104d334511cd..88cfcb96bf23 100644
--- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
@@ -13,6 +13,7 @@
 	compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000";
 
 	chosen {
+		stdout-path = "serial0";
 	};
 
 	cpus {
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] riscv: dts: HiFive Unleashed: add default chosen/stdout-path
  2019-10-09 19:42 [PATCH] riscv: dts: HiFive Unleashed: add default chosen/stdout-path Paul Walmsley
@ 2019-10-09 22:57 ` Atish Patra
  0 siblings, 0 replies; 2+ messages in thread
From: Atish Patra @ 2019-10-09 22:57 UTC (permalink / raw)
  To: paul.walmsley, linux-riscv; +Cc: devicetree, linux-kernel

On Wed, 2019-10-09 at 12:42 -0700, Paul Walmsley wrote:
> Add a default "stdout-path" to the kernel DTS file, as is present in
> many 
> of the board DTS files elsewhere in the kernel tree. With this line 
> present, earlyconsole can be enabled by simply passing "earlycon" on
> the 
> kernel command line.  No specific device details are necessary, since
> the 
> kernel will use the stdout-path as the default.
> 
> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
> ---
> Tested on a HiFive Unleashed using BBL.
> 
>  arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> index 104d334511cd..88cfcb96bf23 100644
> --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> @@ -13,6 +13,7 @@
>  	compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-
> c000";
>  
>  	chosen {
> +		stdout-path = "serial0";
>  	};
>  
>  	cpus {

Tested on a HiFive Unleashed using OpenSBI + U-Boot + Linux boot flow.

Once this patch is merged, we can remove stdout-path fix in OpenSBI for
unleashed platform as well.

Reviewed-by: Atish Patra <atish.patra@wdc.com>


-- 
Regards,
Atish

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-09 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 19:42 [PATCH] riscv: dts: HiFive Unleashed: add default chosen/stdout-path Paul Walmsley
2019-10-09 22:57 ` Atish Patra

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).