From: Stephen Boyd <stephen.boyd@linaro.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: devicetree-compiler@vger.kernel.org,
Frank Rowand <frowand.list@gmail.com>,
Pantelis Antoniou <pantelis.antoniou@konsulko.com>,
Rob Herring <robh+dt@kernel.org>, Mark Brown <broonie@kernel.org>,
Grant Likely <grant.likely@secretlab.ca>,
Mark Rutland <mark.rutland@arm.com>,
mporter@konsulko.com, Koen Kooi <koen@dominion.thruhere.net>,
Guenter Roeck <linux@roeck-us.net>,
marex@denx.de, Wolfram Sang <wsa@the-dreams.de>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org
Subject: [RFC/PATCH 0/4] New style overlay and /expansion/ support
Date: Mon, 30 Jan 2017 16:02:55 -0800 [thread overview]
Message-ID: <20170131000259.28576-1-stephen.boyd@linaro.org> (raw)
This series revives the new style of overlay syntax that never got
merged. David said he wanted to handle it outside of the parse
phase[1], and he proposed a patch to move overlay application to the
livetree phase. I've applied that patch and reworked Pantelis' last
two patches for the new style "syntactic sugar" on top[2].
In addition, I've included the new /expansion/ keyword support for
overlays that don't reference any labels that are outside of the
input file. The new expansion keyword just transforms the unresolved
references into strings that go into a new 'target-alias' property
instead of the 'target' property. This is in line with what David
has proposed on the mailing list a few months ago[3].
RFC part: The current syntax requires a root node or overlays are rejected.
Making the root node optional would require some non-trivial rework of the
grammar to support it. This means the proposed 'new style' syntax doesn't
work without the root node.
[1] https://lkml.kernel.org/r/20161125041124.GB12287@umbus.fritz.box
[2] https://lkml.kernel.org/r/1481114903-8197-7-git-send-email-pantelis.antoniou@konsulko.com
[3] https://lkml.kernel.org/r/20160718142037.GS16769@voom.fritz.box
David Gibson (1):
Start moving overlay handling from parser into dtc core
Pantelis Antoniou (1):
tests: Add a test for overlays syntactic sugar
Stephen Boyd (2):
dtc: Add syntactic sugar version of overlays
dtc: Add /expansion/ support
checks.c | 2 +-
dtc-lexer.l | 6 +++
dtc-parser.y | 68 +++++++++++++++++-----------------
dtc.c | 16 +++++++-
dtc.h | 20 +++++++++-
flattree.c | 2 +-
fstree.c | 2 +-
livetree.c | 80 +++++++++++++++++++++++++++++++++++++++-
tests/overlay_overlay_simple.dts | 3 ++
tests/run_tests.sh | 6 +++
10 files changed, 163 insertions(+), 42 deletions(-)
--
2.10.0.297.gf6727b0
next reply other threads:[~2017-01-31 0:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 0:02 Stephen Boyd [this message]
2017-01-31 0:02 ` [RFC/PATCH 1/4] Start moving overlay handling from parser into dtc core Stephen Boyd
2017-01-31 0:02 ` [RFC/PATCH 2/4] dtc: Add syntactic sugar version of overlays Stephen Boyd
[not found] ` <20170131000259.28576-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-01-31 0:02 ` [RFC/PATCH 3/4] tests: Add a test for overlays syntactic sugar Stephen Boyd
2017-01-31 0:02 ` [RFC/PATCH 4/4] dtc: Add /expansion/ support Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170131000259.28576-1-stephen.boyd@linaro.org \
--to=stephen.boyd@linaro.org \
--cc=broonie@kernel.org \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree-compiler@vger.kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=koen@dominion.thruhere.net \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=marex@denx.de \
--cc=mark.rutland@arm.com \
--cc=mporter@konsulko.com \
--cc=pantelis.antoniou@konsulko.com \
--cc=robh+dt@kernel.org \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).