All of lore.kernel.org
 help / color / mirror / Atom feed
* "compatible" and "model" properties in .dts for ARC boards
@ 2015-11-05 18:50 Alexey Brodkin
  2015-11-06  4:45   ` Vineet Gupta
  0 siblings, 1 reply; 9+ messages in thread
From: Alexey Brodkin @ 2015-11-05 18:50 UTC (permalink / raw)
  To: linux-snps-arc

Hi Vineet,

During OpenWRT upsreaming process one interesting topic was raised.
See in the middle of https://lists.openwrt.org/pipermail/openwrt-devel/2015-November/036959.html

In Device Tree descriptions for our boards we don't use "model" property
even though it is a required one as specified by ePAPR, see
http://free-electrons.com/~thomas/pub/Power_ePAPR_APPROVED_v1.0.pdf,
page 39 "Table 3-1 Root node properties".

Instead we put 2 items in "compatible" property.

For example:
------------------->8----------------
compatible = "snps,axs101", "snps,arc-sdp";
------------------->8----------------
here: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arc/boot/dts/axs101.dts#n16

And from ePAPR standpoint it makes sense to split contents of that "compatible"
property in 2:
------------------->8----------------
compatible = "snps,arc-sdp";
model = "snps,axs101";
------------------->8----------------

But I do see problems with implementation of that thing.
Today we have a luxury of selection of AXS init functionality
based on that compatible value and if "snps,axs101" goes in
"model" then we'll need to add some more code in
arch/arc/plat-axs10x/axs10x.c that reads "model" value with
of_get_property() and then compare to "axs10{1|3}".

Any thoughts?

-Alexey

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-11-17 12:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 18:50 "compatible" and "model" properties in .dts for ARC boards Alexey Brodkin
2015-11-06  4:45 ` Vineet Gupta
2015-11-06  4:45   ` Vineet Gupta
2015-11-06  8:59   ` Arnd Bergmann
2015-11-06  8:59     ` Arnd Bergmann
2015-11-06 10:57     ` Jonas Gorski
2015-11-06 10:57       ` Jonas Gorski
2015-11-17 12:18       ` Vineet Gupta
2015-11-17 12:18         ` Vineet Gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.