All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path
@ 2023-03-15 21:56 Tony Dinh
  2023-03-15 21:58 ` Pali Rohár
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Dinh @ 2023-03-15 21:56 UTC (permalink / raw)
  To: Stefan Roese, Pali Roh�r, Michael Walle, U-Boot Mailing List
  Cc: Tom Rini, Simon Glass, Tony Dinh, Peng Fan

The mainline Pogo V4 DTS uses a stdout-path format that is not
recognizable by u-boot. Change it to a commonly used format.

Note that this patch removes the previous workaround for this board
as discussed here:
https://lists.denx.de/pipermail/u-boot/2023-February/508936.html

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
---

 arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
index f9e127234c..9bb97c6b6b 100644
--- a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
+++ b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
@@ -1,7 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2023 Tony Dinh <mibodhi@gmail.com>
- */
-&uart0 {
-	u-boot,dm-pre-reloc;
+*/
+
+/ {
+	chosen {
+		stdout-path = &uart0;
+	};
 };
-- 
2.30.2


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

* Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path
  2023-03-15 21:56 [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path Tony Dinh
@ 2023-03-15 21:58 ` Pali Rohár
  2023-03-15 23:11   ` Tony Dinh
  0 siblings, 1 reply; 5+ messages in thread
From: Pali Rohár @ 2023-03-15 21:58 UTC (permalink / raw)
  To: Tony Dinh
  Cc: Stefan Roese, Michael Walle, U-Boot Mailing List, Tom Rini,
	Simon Glass, Peng Fan

On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote:
> The mainline Pogo V4 DTS uses a stdout-path format that is not
> recognizable by u-boot. Change it to a commonly used format.

Cannot we teach u-boot to understand also currently used format?

> Note that this patch removes the previous workaround for this board
> as discussed here:
> https://lists.denx.de/pipermail/u-boot/2023-February/508936.html
> 
> Signed-off-by: Tony Dinh <mibodhi@gmail.com>
> ---
> 
>  arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> index f9e127234c..9bb97c6b6b 100644
> --- a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> +++ b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> @@ -1,7 +1,10 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /*
>   * Copyright (C) 2023 Tony Dinh <mibodhi@gmail.com>
> - */
> -&uart0 {
> -	u-boot,dm-pre-reloc;
> +*/
> +
> +/ {
> +	chosen {
> +		stdout-path = &uart0;
> +	};
>  };
> -- 
> 2.30.2
> 

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

* Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path
  2023-03-15 21:58 ` Pali Rohár
@ 2023-03-15 23:11   ` Tony Dinh
  2023-03-16 18:15     ` Tom Rini
  2023-03-16 18:25     ` Pali Rohár
  0 siblings, 2 replies; 5+ messages in thread
From: Tony Dinh @ 2023-03-15 23:11 UTC (permalink / raw)
  To: Pali Rohár
  Cc: Stefan Roese, Michael Walle, U-Boot Mailing List, Tom Rini,
	Simon Glass, Peng Fan

Hi Pali,

On Wed, Mar 15, 2023 at 2:58 PM Pali Rohár <pali@kernel.org> wrote:
>
> On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote:
> > The mainline Pogo V4 DTS uses a stdout-path format that is not
> > recognizable by u-boot. Change it to a commonly used format.
>
> Cannot we teach u-boot to understand also currently used format?

I assume it is good to document the fact that perhaps using
dm-pre-reloc tag (and later boot-phase tag) will overcome many odd
properties format in Linux DTS. We said dm-pre-reloc is a workaround,
but IMHO the tags are really good for u-boot, since u-boot is a
multi-phase boot loader. If a device like UART is needed in a certain
phase, we should say so.

Also at the moment, modifying the serial-uclass.c is something more
than I can chew. If I must do it myself, it will be a while. If
anybody wants to give it a try, please do so.

Thanks,
Tony

> > Note that this patch removes the previous workaround for this board
> > as discussed here:
> > https://lists.denx.de/pipermail/u-boot/2023-February/508936.html
> >
> > Signed-off-by: Tony Dinh <mibodhi@gmail.com>
> > ---
> >
> >  arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 9 ++++++---
> >  1 file changed, 6 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> > index f9e127234c..9bb97c6b6b 100644
> > --- a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> > +++ b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> > @@ -1,7 +1,10 @@
> >  // SPDX-License-Identifier: GPL-2.0+
> >  /*
> >   * Copyright (C) 2023 Tony Dinh <mibodhi@gmail.com>
> > - */
> > -&uart0 {
> > -     u-boot,dm-pre-reloc;
> > +*/
> > +
> > +/ {
> > +     chosen {
> > +             stdout-path = &uart0;
> > +     };
> >  };
> > --
> > 2.30.2
> >

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

* Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path
  2023-03-15 23:11   ` Tony Dinh
@ 2023-03-16 18:15     ` Tom Rini
  2023-03-16 18:25     ` Pali Rohár
  1 sibling, 0 replies; 5+ messages in thread
From: Tom Rini @ 2023-03-16 18:15 UTC (permalink / raw)
  To: Tony Dinh
  Cc: Pali Rohár, Stefan Roese, Michael Walle,
	U-Boot Mailing List, Simon Glass, Peng Fan

[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]

On Wed, Mar 15, 2023 at 04:11:27PM -0700, Tony Dinh wrote:
> Hi Pali,
> 
> On Wed, Mar 15, 2023 at 2:58 PM Pali Rohár <pali@kernel.org> wrote:
> >
> > On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote:
> > > The mainline Pogo V4 DTS uses a stdout-path format that is not
> > > recognizable by u-boot. Change it to a commonly used format.
> >
> > Cannot we teach u-boot to understand also currently used format?
> 
> I assume it is good to document the fact that perhaps using
> dm-pre-reloc tag (and later boot-phase tag) will overcome many odd
> properties format in Linux DTS. We said dm-pre-reloc is a workaround,
> but IMHO the tags are really good for u-boot, since u-boot is a
> multi-phase boot loader. If a device like UART is needed in a certain
> phase, we should say so.
> 
> Also at the moment, modifying the serial-uclass.c is something more
> than I can chew. If I must do it myself, it will be a while. If
> anybody wants to give it a try, please do so.

Note that the boot phase tags are now upstream, so those dts changes can
also go upstream now.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path
  2023-03-15 23:11   ` Tony Dinh
  2023-03-16 18:15     ` Tom Rini
@ 2023-03-16 18:25     ` Pali Rohár
  1 sibling, 0 replies; 5+ messages in thread
From: Pali Rohár @ 2023-03-16 18:25 UTC (permalink / raw)
  To: Simon Glass, Tony Dinh
  Cc: Stefan Roese, Michael Walle, U-Boot Mailing List, Tom Rini, Peng Fan

On Wednesday 15 March 2023 16:11:27 Tony Dinh wrote:
> Hi Pali,
> 
> On Wed, Mar 15, 2023 at 2:58 PM Pali Rohár <pali@kernel.org> wrote:
> >
> > On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote:
> > > The mainline Pogo V4 DTS uses a stdout-path format that is not
> > > recognizable by u-boot. Change it to a commonly used format.
> >
> > Cannot we teach u-boot to understand also currently used format?
> 
> I assume it is good to document the fact that perhaps using
> dm-pre-reloc tag (and later boot-phase tag) will overcome many odd
> properties format in Linux DTS. We said dm-pre-reloc is a workaround,
> but IMHO the tags are really good for u-boot, since u-boot is a
> multi-phase boot loader. If a device like UART is needed in a certain
> phase, we should say so.
> 
> Also at the moment, modifying the serial-uclass.c is something more
> than I can chew. If I must do it myself, it will be a while. If
> anybody wants to give it a try, please do so.

Simon could help there?

> Thanks,
> Tony
> 
> > > Note that this patch removes the previous workaround for this board
> > > as discussed here:
> > > https://lists.denx.de/pipermail/u-boot/2023-February/508936.html
> > >
> > > Signed-off-by: Tony Dinh <mibodhi@gmail.com>
> > > ---
> > >
> > >  arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 9 ++++++---
> > >  1 file changed, 6 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> > > index f9e127234c..9bb97c6b6b 100644
> > > --- a/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> > > +++ b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
> > > @@ -1,7 +1,10 @@
> > >  // SPDX-License-Identifier: GPL-2.0+
> > >  /*
> > >   * Copyright (C) 2023 Tony Dinh <mibodhi@gmail.com>
> > > - */
> > > -&uart0 {
> > > -     u-boot,dm-pre-reloc;
> > > +*/
> > > +
> > > +/ {
> > > +     chosen {
> > > +             stdout-path = &uart0;
> > > +     };
> > >  };
> > > --
> > > 2.30.2
> > >

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

end of thread, other threads:[~2023-03-16 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 21:56 [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path Tony Dinh
2023-03-15 21:58 ` Pali Rohár
2023-03-15 23:11   ` Tony Dinh
2023-03-16 18:15     ` Tom Rini
2023-03-16 18:25     ` Pali Rohár

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.