devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Overlay syntactic sugar clarification
@ 2018-01-09  5:36 Kyle Evans
       [not found] ` <CACNAnaFASS-1dC4Vp7JbwEjtF0vbAxOP248AtPabPLhZ_MHVoQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Evans @ 2018-01-09  5:36 UTC (permalink / raw)
  To: David Gibson; +Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

Hello!

I see the syntactic sugar patch was merged in late September this
year. I have some resulting questions:

1.) Are there plans to deprecate the handcrafted fragment syntax? I
find it somewhat useful for hacking things into /soc (via target-path)
for development since this node is often not labelled, so it's
probably a good idea to ask this up front. =)

2.) Is it expected and/or OK that the output/behavior of this dtc(1)
gets kind of funky when combining handcrafted fragments with these
generated fragments?

"funky" ranges from outright errors to silently merging a handcrafted
fragment into a generated fragment in a way that yields an overlay
that you're definitely not expecting. If this isn't a supported
use-case, then I suppose this is OK.

I ask because I recently implemented this syntax into our BSDL dtc,
and naturally in my work I had it generate fragments for these nodes,
merge them all into one /, and renumber any handcrafted fragments
based on their position and the "fragment delta" (highest generated
auto-fragment at that point).

The reasoning being that there's likely no good way to merge a manual
fragment with one of these auto-fragments, and with our implementation
is was almost easier to do this than it is to just discard the
handcrafted if we start out with the sugary versions.

Thanks,

Kyle Evans

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

end of thread, other threads:[~2018-01-10  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09  5:36 Overlay syntactic sugar clarification Kyle Evans
     [not found] ` <CACNAnaFASS-1dC4Vp7JbwEjtF0vbAxOP248AtPabPLhZ_MHVoQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-09 16:50   ` Kyle Evans
2018-01-10  8:43   ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).