Re: Device tree probe order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux