2018-08-08 09:12:08

by Simon Goldschmidt

[permalink] [raw]
Subject: [PATCH] ARM: dts: socfpga: use stdout-path for chosen node

Use stdout-path dts property for kernel console.

There were two socfpga boards left not using stdout-path:
socrates and vining. Make sure they match the other boards.

Signed-off-by: Simon Goldschmidt <[email protected]>
---
arch/arm/boot/dts/socfpga_cyclone5_socrates.dts | 3 ++-
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
index 53bf99eef66d..6f5255a7d192 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
@@ -22,7 +22,8 @@
compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";

chosen {
- bootargs = "console=ttyS0,115200";
+ bootargs = "earlyprintk";
+ stdout-path = "serial0:115200n8";
};

memory@0 {
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
index f50b19447de6..e61efe16e79c 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
@@ -54,7 +54,8 @@
compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";

chosen {
- bootargs = "console=ttyS0,115200";
+ bootargs = "earlyprintk";
+ stdout-path = "serial0:115200n8";
};

memory@0 {
--
2.17.1



2018-08-08 11:34:01

by Marek Vasut

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: socfpga: use stdout-path for chosen node

On 08/08/2018 11:09 AM, Simon Goldschmidt wrote:
> Use stdout-path dts property for kernel console.
>
> There were two socfpga boards left not using stdout-path:
> socrates and vining. Make sure they match the other boards.
>
> Signed-off-by: Simon Goldschmidt <[email protected]>
> ---
> arch/arm/boot/dts/socfpga_cyclone5_socrates.dts | 3 ++-
> arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> index 53bf99eef66d..6f5255a7d192 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> @@ -22,7 +22,8 @@
> compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
>
> chosen {
> - bootargs = "console=ttyS0,115200";
> + bootargs = "earlyprintk";
> + stdout-path = "serial0:115200n8";
> };
>
> memory@0 {
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> index f50b19447de6..e61efe16e79c 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> @@ -54,7 +54,8 @@
> compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
>
> chosen {
> - bootargs = "console=ttyS0,115200";
> + bootargs = "earlyprintk";

Why this earlyprintk ?

> + stdout-path = "serial0:115200n8";
> };
>
> memory@0 {
>


--
Best regards,
Marek Vasut

2018-08-08 12:04:34

by Simon Goldschmidt

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: socfpga: use stdout-path for chosen node

On Wed, Aug 8, 2018 at 1:32 PM Marek Vasut <[email protected]> wrote:
>
> On 08/08/2018 11:09 AM, Simon Goldschmidt wrote:
> > Use stdout-path dts property for kernel console.
> >
> > There were two socfpga boards left not using stdout-path:
> > socrates and vining. Make sure they match the other boards.
> >
> > Signed-off-by: Simon Goldschmidt <[email protected]>
> > ---
> > arch/arm/boot/dts/socfpga_cyclone5_socrates.dts | 3 ++-
> > arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 3 ++-
> > 2 files changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> > index 53bf99eef66d..6f5255a7d192 100644
> > --- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> > +++ b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> > @@ -22,7 +22,8 @@
> > compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
> >
> > chosen {
> > - bootargs = "console=ttyS0,115200";
> > + bootargs = "earlyprintk";
> > + stdout-path = "serial0:115200n8";
> > };
> >
> > memory@0 {
> > diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> > index f50b19447de6..e61efe16e79c 100644
> > --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> > +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> > @@ -54,7 +54,8 @@
> > compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
> >
> > chosen {
> > - bootargs = "console=ttyS0,115200";
> > + bootargs = "earlyprintk";
>
> Why this earlyprintk ?

The reason is Dinh added that to all socfpga boards in his commit [1]
and I wanted the remaining two boards to be the same.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts?h=v4.17.13&id=efc1985c8f79ee8259d19a9b6e3df6a07d063669

Best Regards,
Simon

>
> > + stdout-path = "serial0:115200n8";
> > };
> >
> > memory@0 {
> >
>
>
> --
> Best regards,
> Marek Vasut

2018-08-08 12:12:17

by Marek Vasut

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: socfpga: use stdout-path for chosen node

On 08/08/2018 02:02 PM, Simon Goldschmidt wrote:
> On Wed, Aug 8, 2018 at 1:32 PM Marek Vasut <[email protected]> wrote:
>>
>> On 08/08/2018 11:09 AM, Simon Goldschmidt wrote:
>>> Use stdout-path dts property for kernel console.
>>>
>>> There were two socfpga boards left not using stdout-path:
>>> socrates and vining. Make sure they match the other boards.
>>>
>>> Signed-off-by: Simon Goldschmidt <[email protected]>
>>> ---
>>> arch/arm/boot/dts/socfpga_cyclone5_socrates.dts | 3 ++-
>>> arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 3 ++-
>>> 2 files changed, 4 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
>>> index 53bf99eef66d..6f5255a7d192 100644
>>> --- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
>>> +++ b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
>>> @@ -22,7 +22,8 @@
>>> compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
>>>
>>> chosen {
>>> - bootargs = "console=ttyS0,115200";
>>> + bootargs = "earlyprintk";
>>> + stdout-path = "serial0:115200n8";
>>> };
>>>
>>> memory@0 {
>>> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
>>> index f50b19447de6..e61efe16e79c 100644
>>> --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
>>> +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
>>> @@ -54,7 +54,8 @@
>>> compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
>>>
>>> chosen {
>>> - bootargs = "console=ttyS0,115200";
>>> + bootargs = "earlyprintk";
>>
>> Why this earlyprintk ?
>
> The reason is Dinh added that to all socfpga boards in his commit [1]
> and I wanted the remaining two boards to be the same.

Isn't earlyprintk mostly a debugging aid ?

--
Best regards,
Marek Vasut

2018-08-15 15:11:19

by Dinh Nguyen

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: socfpga: use stdout-path for chosen node



On 08/08/2018 04:09 AM, Simon Goldschmidt wrote:
> Use stdout-path dts property for kernel console.
>
> There were two socfpga boards left not using stdout-path:
> socrates and vining. Make sure they match the other boards.
>
> Signed-off-by: Simon Goldschmidt <[email protected]>
> ---
> arch/arm/boot/dts/socfpga_cyclone5_socrates.dts | 3 ++-
> arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)

Applied!

Thanks,
Dinh

2018-09-05 07:56:28

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: socfpga: use stdout-path for chosen node

On Wed, Aug 8, 2018 at 2:11 PM Marek Vasut <[email protected]> wrote:
> On 08/08/2018 02:02 PM, Simon Goldschmidt wrote:
> > On Wed, Aug 8, 2018 at 1:32 PM Marek Vasut <[email protected]> wrote:
> >> On 08/08/2018 11:09 AM, Simon Goldschmidt wrote:
> >>> Use stdout-path dts property for kernel console.
> >>>
> >>> There were two socfpga boards left not using stdout-path:
> >>> socrates and vining. Make sure they match the other boards.
> >>>
> >>> Signed-off-by: Simon Goldschmidt <[email protected]>
> >>> ---
> >>> arch/arm/boot/dts/socfpga_cyclone5_socrates.dts | 3 ++-
> >>> arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts | 3 ++-
> >>> 2 files changed, 4 insertions(+), 2 deletions(-)
> >>>
> >>> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> >>> index 53bf99eef66d..6f5255a7d192 100644
> >>> --- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> >>> +++ b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
> >>> @@ -22,7 +22,8 @@
> >>> compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
> >>>
> >>> chosen {
> >>> - bootargs = "console=ttyS0,115200";
> >>> + bootargs = "earlyprintk";
> >>> + stdout-path = "serial0:115200n8";
> >>> };
> >>>
> >>> memory@0 {
> >>> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> >>> index f50b19447de6..e61efe16e79c 100644
> >>> --- a/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> >>> +++ b/arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
> >>> @@ -54,7 +54,8 @@
> >>> compatible = "samtec,vining", "altr,socfpga-cyclone5", "altr,socfpga";
> >>>
> >>> chosen {
> >>> - bootargs = "console=ttyS0,115200";
> >>> + bootargs = "earlyprintk";
> >>
> >> Why this earlyprintk ?
> >
> > The reason is Dinh added that to all socfpga boards in his commit [1]
> > and I wanted the remaining two boards to be the same.
>
> Isn't earlyprintk mostly a debugging aid ?

Indeed.

And the modern way is "earlycon", not "earlyprintk".

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds