* Matthijs van Duin matthijsvanduin@gmail.com [170327 08:55]:
On 27 March 2017 at 17:45, Tony Lindgren tony@atomide.com wrote:
My guess is that the alias names for Pyra should be something like this instead:
"sdio1", "sdio2", "micro-sd"
No, they need to be named specifically with a generic device class name ("mmc" in this case) + unique number. This is what allows them to be used by the of_alias_* API calls.
See e.g. uses of those calls by:
- drivers/i2c/i2c-core.c
- drivers/spi/spi.c
- drivers/tty/serial/8250/8250_of.c
(I based my mmc patch on the i2c core specifically.)
OK. And yet it seems completely undocumented, or at least the following page is useless for it:
http://elinux.org/Device_Tree_Usage#aliases_Node
Anyways, that still won't help end users are all, this only helps the people who have the TRM fnord instance numbering burnt into their brains :)
See the slot_name solution I just replied with. That too needs consideration where the slot names need to be something that will stay around as otherwise the rootfs can potentially break.
Regards,
Tony