mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Renaud Barbier <Renaud.Barbier@ametek.com>
To: Sascha Hauer <sha@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: RE: Device tree probe order
Date: Thu, 16 Nov 2023 09:23:29 +0000	[thread overview]
Message-ID: <BL0PR07MB5665A554A87D4AB3027B268CECB0A@BL0PR07MB5665.namprd07.prod.outlook.com> (raw)
In-Reply-To: <20231116075610.GI3359458@pengutronix.de>

Thanks.
 I had found that swapping the device driver registration made the QSPI probe first.  Changing DSPI to be registered by device_initall and QSPI by coredevice_initcall does what I am expected. 
I will look at the method you offered.

> -----Original Message-----
> From: Sascha Hauer <sha@pengutronix.de>
> Sent: Thursday, November 16, 2023 7:56 AM
> To: Renaud Barbier <Renaud.Barbier@ametek.com>
> Cc: Barebox List <barebox@lists.infradead.org>
> Subject: Re: Device tree probe order
> 
> ***NOTICE*** This came from an external source. Use caution when replying,
> clicking links, or opening attachments.
> 
> Hi Renauld,
> 
> On Wed, Nov 15, 2023 at 04:47:03PM +0000, Renaud Barbier wrote:
> > We have a board based on the LS1026A with a boot SPI NOR on the QSPI
> > controller and FRAM on the DSPI controller.  Currently, the DSPI is
> > being probed first and got the device node /dev/m25p0. The boot SPI
> > get /dev/m25p1.
> >
> > I would like the  QSPI NOR to be assigned to /dev/m25p0 and the FRAM
> > to /dev/m25p1.
> >
> > Is it possible to change the probing order or the device node
> > assignment?
> 
> You can create aliases in the device tree for both flashes, see
> drivers/mtd/devices/m25p80.c:258:
> 
>         if (dev->of_node)
>                 flash_name = of_alias_get(dev->of_node);
> 
> Sascha
> 
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       |
> https://urldefense.com/v3/__http://www.pengutronix.de/__;!!HKOSU0g!BN8zz
> nbk0b3uelLqUvSN2rw8QCvPlzwneze_sHvn80jabgpUMpW6mKUMPR5ix-
> ZYthtB_DT_P_RRp4-IpE3s$   |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      reply	other threads:[~2023-11-16  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-15 16:47 Renaud Barbier
2023-11-16  7:56 ` Sascha Hauer
2023-11-16  9:23   ` Renaud Barbier [this message]

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=BL0PR07MB5665A554A87D4AB3027B268CECB0A@BL0PR07MB5665.namprd07.prod.outlook.com \
    --to=renaud.barbier@ametek.com \
    --cc=barebox@lists.infradead.org \
    --cc=sha@pengutronix.de \
    /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