I'm still not sure why that compatible is needed. Also I'd need to
change
the label which might break user space apps looking for that specific
name.
Also, our board might have u-boot/spl or u-boot/spl/bl31/bl32, right now
that's something which depends on an u-boot configuration variable,
which
then enables or disables binman nodes in the -u-boot.dtsi. So in linux
we only have that "bootloader" partition, but there might be either
u-boot+spl or u-boot+spl+bl31+bl32.
Honestly, I'm really not sure this should go into a device tree.
I think we might be getting a bit ahead of ourselves here. I thought
that the decision was that the label should indicate the contents.
If you have multiple things in a partition then it would become a
'section' in Binman's terminology. Either the label programmatically
describes what is inside or it doesn't. We can't have it both ways.
What do you suggest?
At present it seems you have the image described in two places - one
is the binman node and the other is the partitions node. I would like
to unify these.
What does user space do with the partition labels?
>> What if a board uses eMMC to store the firmware binaries? Will that
>> then
>> be a subnode to the eMMC device?
>
> I thought there was a way to link the partition nodes and the device
> using a property, without having the partition info as a subnode of
> the device. But I may have imagined it as I cannot find it now. So
> yes, it will be a subnode of the eMMC device.
Not sure if that will fly.
I can't find it anyway. There is somelike like that in
simple-framebuffer with the 'display' property.
Regards,
SImon