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

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                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2023-11-16  7:57 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 [this message]
2023-11-16  9:23   ` Renaud Barbier

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=20231116075610.GI3359458@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=Renaud.Barbier@ametek.com \
    --cc=barebox@lists.infradead.org \
    /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