From: Sascha Hauer <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Pantelis Antoniou
<panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] dtc: Dynamic symbols & fixup support (v2)
Date: Tue, 5 Nov 2013 09:02:12 +0100 [thread overview]
Message-ID: <20131105080212.GD24559@pengutronix.de> (raw)
In-Reply-To: <53AA440E-7F33-4AC1-9323-7D109D4B5852-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
On Mon, Nov 04, 2013 at 04:58:38PM +0200, Pantelis Antoniou wrote:
> Hi Sascha,
>
> On Nov 4, 2013, at 4:53 PM, Sascha Hauer wrote:
>
> > Hi Pantelis,
> >
> > Thank you for working on this again. I would really appreciate seeing
> > this upstream.
> >
>
> Don't mention it. Let's try to make it happen then.
>
> > On Mon, Nov 04, 2013 at 04:36:13PM +0200, Pantelis Antoniou wrote:
> >> +Notice that all the nodes that had a label have been recorded, and that
> >> +phandles have been generated for them.
> >> +
> >> +This blob can be used to boot the board normally, the __symbols__ node will
> >> +be safely ignored both by the bootloader and the kernel (the only loss will
> >> +be a few bytes of memory and disk space).
> >> +
> >> +3.b) The Device Tree fragments must be compiled with the same option but they
> >> +must also have a tag (/plugin/) that allows undefined references to labels
> >> +that are not present at compilation time to be recorded so that the runtime
> >> +loader can fix them.
> >> +
> >> +So the bar peripheral's DTS format would be of the form:
> >> +
> >> +/plugin/; /* allow undefined label references and record them */
> >> +/ {
> >> + .... /* various properties for loader use; i.e. part id etc. */
> >> + fragment@0 {
> >> + target = <&ocp>;
> >> + __overlay__ {
> >> + /* bar peripheral */
> >> + bar {
> >> + compatible = "corp,bar";
> >> + ... /* various properties and child nodes */
> >> + }
> >> + };
> >> + };
> >> +};
> >
> > When last looking at this patch I created the attached follow up. What
> > I didn't like about this patch is that we currently have to write dts
> > files explicitely as overlays. With the attached patch the above could
> > be written as:
> >
> > &ocp: {
> > compatible = "corp,bar";
> > };
> >
> > This is easier to write and more important a dts snippet could be either
> > compiled into a dtb or used as an overlay.
> >
>
> I see your point.
>
> In my use case I always needed some out-of-band properties for the loader/manager
> to track. Let me test your and see if it doesn't break my use-cases.
You mean for unloading an overlay afterwards?
>
> If it's fine, then I have no objections in including it.
Thanks.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-11-05 8:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 14:36 [PATCH] dtc: Dynamic symbols & fixup support (v2) Pantelis Antoniou
[not found] ` <1383575773-7296-1-git-send-email-panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-11-04 14:53 ` Sascha Hauer
[not found] ` <20131104145342.GW24559-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-11-04 14:58 ` Pantelis Antoniou
[not found] ` <53AA440E-7F33-4AC1-9323-7D109D4B5852-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-11-05 8:02 ` Sascha Hauer [this message]
2013-11-04 21:17 ` Dinh Nguyen
2013-11-05 7:46 ` Sascha Hauer
[not found] ` <CADhT+wcgs2cQv23+K7EooZaA0KK7Lk8zY-KAPc50xUdm5BFRZw@mail.gmail.com>
[not found] ` <CADhT+wcgs2cQv23+K7EooZaA0KK7Lk8zY-KAPc50xUdm5BFRZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-05 7:49 ` Pantelis Antoniou
[not found] ` <CADhT+wdJfrRMDjm+jb_+_uuy8sPRd1B0F5mNVgOL2DmyHTMrYw@mail.gmail.com>
[not found] ` <CADhT+wdJfrRMDjm+jb_+_uuy8sPRd1B0F5mNVgOL2DmyHTMrYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-08 7:03 ` Pantelis Antoniou
[not found] <1383073266-12017-1-git-send-email-panto@antoniou-consulting.com>
[not found] ` <1383073266-12017-1-git-send-email-panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-11-11 17:56 ` Grant Likely
[not found] ` <20131111175604.ECF33C4233A-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-12 10:20 ` Pantelis Antoniou
[not found] ` < DABC2A65-BC07-4481-B80C-A62777BD8732@antoniou-consulting.com>
[not found] ` <DABC2A65-BC07-4481-B80C-A62777BD8732-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-11-15 7:01 ` Grant Likely
[not found] ` <20131115070131.78139C40785-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-16 17:47 ` Pantelis Antoniou
[not found] ` < 20131115070131.78139C40785@trevor.secretlab.ca>
[not found] ` < 972758FF-44EC-4C32-BE13-4E3E8361D063@antoniou-consulting.com>
[not found] ` <972758FF-44EC-4C32-BE13-4E3E8361D063-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org>
2013-11-17 22:16 ` Grant Likely
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=20131105080212.GD24559@pengutronix.de \
--to=s.hauer-bicnvbalz9megne8c9+irq@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org \
/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).