lkml.org 
[lkml]   [2015]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 2/2] ARM: dts: zynq: Add linux,stdout-path and stdout-path
On Wed, Feb 11, 2015 at 12:29:02PM +0000, Michal Simek wrote:
> parallella - Use reference instead of hardcoded path
> (linux,stdout-path)
>
> stdout-path is used by bootloader to identify console.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> U-Boot driver model requires stdout-path.
> ---
> arch/arm/boot/dts/zynq-parallella.dts | 3 ++-
> arch/arm/boot/dts/zynq-zc702.dts | 2 ++
> arch/arm/boot/dts/zynq-zc706.dts | 2 ++
> arch/arm/boot/dts/zynq-zed.dts | 2 ++
> arch/arm/boot/dts/zynq-zybo.dts | 2 ++
> 5 files changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/zynq-parallella.dts b/arch/arm/boot/dts/zynq-parallella.dts
> index 6a5f51daa708..45228a427006 100644
> --- a/arch/arm/boot/dts/zynq-parallella.dts
> +++ b/arch/arm/boot/dts/zynq-parallella.dts
> @@ -35,7 +35,8 @@
>
> chosen {
> bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait";
> - linux,stdout-path = "/amba/serial@e0001000";
> + linux,stdout-path = &uart1;
> + stdout-path = &uart1;

Given that you added aliases in the last patch, you can use that to
refer to the serial:

stdout-path - "serial0:115200n8";

With or without the alias you can encode the UART configuration here
too:

stdout-path = "/amba/serial@e0001000:115200n8"

Which makes the expected configuration explicit without relying on the
Linux-specific bootargs.

Is there any reason to keep linux,stdout-path?

Thanks,
Mark.

\
 
 \ /
  Last update: 2015-02-11 14:21    [W:0.069 / U:2.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site