devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
To: monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: OF_DYNAMIC usage
Date: Fri, 06 Jul 2012 18:10:19 +1000	[thread overview]
Message-ID: <1341562219.6330.57.camel@pasglop> (raw)
In-Reply-To: <4FF69B83.3000400-pSz03upnqPeHXe+LvDLADg@public.gmane.org>

On Fri, 2012-07-06 at 10:02 +0200, Michal Simek wrote:

> ok. How that FDT blob segment should look like?
> It can't be just one node because it also requires path where it is connected.
> 
> It means at least the part like below for injecting.

No, my idea was to pass 3 arguments:

 - action (enum)
 - path (string)
 - segment (blob)

action would be typically add/remove

 * add: add node under <path> whose content is in <segment>

 * remove: remove node <path> and all children

(or we could require children removal to be done explicitly).

Cheers,
Ben.

> /dts-v1/;
> / {
> 	#address-cells = <1>;
> 	#size-cells = <1>;
> 	compatible = "xlnx,microblaze";
> 
> 	mb_plb: plb@0 {
> 		#address-cells = <1>;
> 		#size-cells = <1>;
> 		compatible = "xlnx,plb-v46-1.00.a", "simple-bus";
> 		DIP_Switches_4Bit: gpio@81440000 {
> 			#gpio-cells = <2>;
> 			compatible = "xlnx,xps-gpio-1.00.a";
> 			gpio-controller ;
> 			reg = < 0x81440000 0x10000 >;
> 			/* ... */
> 		} ;
> 	} ;
> };
> 
> Not sure if this can be used for removing. I mean if you want to remove node
> if make sense to pass the whole node.
> 
> 
> Thanks,
> Michal
> 
> 

  parent reply	other threads:[~2012-07-06  8:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 12:21 OF_DYNAMIC usage Michal Simek
     [not found] ` <4FF586D1.2050407-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2012-07-05 13:20   ` Rob Herring
     [not found]     ` <4FF594AD.6000401-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-07-05 20:46       ` Benjamin Herrenschmidt
2012-07-06  6:03         ` Michal Simek
     [not found]           ` <4FF67F96.1040902-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2012-07-06  6:19             ` Benjamin Herrenschmidt
2012-07-06  6:51               ` Michal Simek
     [not found]                 ` <4FF68ADE.3060609-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2012-07-06  7:08                   ` Benjamin Herrenschmidt
2012-07-06  8:02                     ` Michal Simek
     [not found]                       ` <4FF69B83.3000400-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2012-07-06  8:10                         ` Benjamin Herrenschmidt [this message]
2012-07-06  8:18                           ` Michal Simek
2012-07-06 17:57                           ` Stephen Neuendorffer
2012-07-06  5:41       ` Michal Simek

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=1341562219.6330.57.camel@pasglop \
    --to=benh-xvmvhmargas8u2djnn8i7kb+6bgklq7r@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=monstr-pSz03upnqPeHXe+LvDLADg@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).