[PATCH] of: support an enumerated-bus compatible value

Segher Boessenkool segher at kernel.crashing.org
Wed Jul 4 01:43:05 EST 2012


>> There is still no reason for the fake bus node to have a "compatible"
>> property though.  What could it possibly mean?  "This bus does not
>> exist at all but you access it in bla bla bla way"?  That just  
>> doesn't
>> make sense.  It doesn't exist, you do not access it, it has no
>> programming model, it has no "compatible" property.
>
> Well, as everyone keeps saying this seems to be a limitation of the
> current device tree rather than something that's actually sensible in
> and of itself.

But that is my point: it is *not* a limitation of the device tree,
the device tree can describe the hardware just fine without doing
some weird "compatible" property.  The limitation is in the current
Linux kernel code; _it_ should be fixed, don't add decorations to
the device tree to work around shortcomings in a single OS.  The
device tree describes the structure of the hardware, not the structure
of the device model in the OS.


Segher



More information about the devicetree-discuss mailing list