public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Detlev Casanova <detlev.casanova@collabora.com>
Cc: u-boot@lists.denx.de, Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>
Subject: Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices
Date: Fri, 2 Dec 2022 15:08:45 -0500	[thread overview]
Message-ID: <20221202200845.GL3787616@bill-the-cat> (raw)
In-Reply-To: <5883089.lOV4Wx5bFT@falcon9>

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

On Fri, Dec 02, 2022 at 02:06:26PM -0500, Detlev Casanova wrote:
> On Friday, November 11, 2022 10:35:56 A.M. EST Tom Rini wrote:
> > On Fri, Nov 11, 2022 at 10:28:43AM -0500, Detlev Casanova wrote:
> > > On Thursday, October 27, 2022 2:30:51 P.M. EST Tom Rini wrote:
> > > > On Thu, Oct 27, 2022 at 11:22:52AM -0400, Detlev Casanova wrote:
> > > > > In commit d0399a46e7cda63c07e3eb8558bef84cfb068028, the device tree
> > > > > was
> > > > > synchronized from linux and the aliases were dropped.
> > > > > 
> > > > > They need to be kept so that the mmc cards are in the right order.
> > > > > Without the aliases, u-boot reports:
> > > > > MMC:   FSL_SDHC: 2, FSL_SDHC: 3
> > > > > 
> > > > > With the aliases, u-boot reports:
> > > > > MMC:   FSL_SDHC: 0, FSL_SDHC: 1
> > > > > 
> > > > > Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
> > > > > ---
> > > > > 
> > > > >  arch/arm/dts/imx6qdl-sabrelite.dtsi | 7 +++++++
> > > > >  1 file changed, 7 insertions(+)
> > > > > 
> > > > > diff --git a/arch/arm/dts/imx6qdl-sabrelite.dtsi
> > > > > b/arch/arm/dts/imx6qdl-sabrelite.dtsi index 22f8e2783c..6564e3b82c
> > > > > 100644
> > > > > --- a/arch/arm/dts/imx6qdl-sabrelite.dtsi
> > > > > +++ b/arch/arm/dts/imx6qdl-sabrelite.dtsi
> > > > > @@ -10,6 +10,13 @@
> > > > > 
> > > > >  #include <dt-bindings/input/input.h>
> > > > >  
> > > > >  / {
> > > > > 
> > > > > +	aliases {
> > > > > +		mmc0 = &usdhc3;
> > > > > +		mmc1 = &usdhc4;
> > > > > +		pwm_lcd = &pwm1;
> > > > > +		pwm_lvds = &pwm4;
> > > > > +	};
> > > > > +
> > > > > 
> > > > >  	chosen {
> > > > >  	
> > > > >  		stdout-path = &uart2;
> > > > >  	
> > > > >  	};
> > > > 
> > > > This really belongs in the upstream dts file so they aren't lost again
> > > > and again.
> > > 
> > > Forwaded to upstream kernel:
> > > https://lore.kernel.org/lkml/20221028141811.101122-1-detlev.casanova@coll
> > > abora.com/[1]
> > > 
> > > Would it make sense to still add this one in u-boot before the devices
> > > trees are copied again ?
> > Yes, it would make sense to pick it up now to fix the regression here.
> > Thanks for pushing it upstream!
> 
> Upstream linux won't apply it as they want to keep the already established order in linux (the 
> SD card has to stay at mmc2). See https://lore.kernel.org/all/a13c2e92-cfa6-04fd-c32a-c4d444894660@pengutronix.de/[1]
> 
> I guess we will have to adapt u-boot environment when these dts are synced again.
> 
> Detlev.
> 
> 
> --------
> [1] https://lore.kernel.org/all/a13c2e92-cfa6-04fd-c32a-c4d444894660@pengutronix.de/

Not being overly familiar with the board in question in production (it
was quite a long back when I last was involved in a design based on one
of these), I don't know which order got more widespread real life usage,
so, OK, we'll defer to what upstream kernel has now as indeed following
the data sheet for order is reasonable. Whatever migrations need to be
done to match this should be started on sooner rather than later I would
suggest.

-- 
Tom

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

  reply	other threads:[~2022-12-02 20:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-27 15:22 [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices Detlev Casanova
2022-10-27 18:30 ` Tom Rini
2022-11-11 15:28   ` Detlev Casanova
2022-11-11 15:35     ` Tom Rini
2022-12-02 19:06       ` Detlev Casanova
2022-12-02 20:08         ` Tom Rini [this message]
2022-12-02 23:20         ` Fabio Estevam
2022-12-02 23:36           ` Tom Rini
2022-12-03 12:23             ` Fabio Estevam
2022-12-05 14:24               ` Detlev Casanova
2022-12-05 15:37               ` Tom Rini
2022-12-05 17:33                 ` Fabio Estevam
2022-12-07 19:53                   ` Detlev Casanova
2022-12-07 20:01                     ` Tom Rini
2022-12-07 20:03                   ` Tom Rini
2022-12-07 20:08                     ` Detlev Casanova
2022-12-07 20:32                       ` Tom Rini
2022-12-08 13:35                   ` Michael Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221202200845.GL3787616@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=detlev.casanova@collabora.com \
    --cc=festevam@gmail.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox