From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: OF_DYNAMIC usage Date: Fri, 06 Jul 2012 18:10:19 +1000 Message-ID: <1341562219.6330.57.camel@pasglop> References: <4FF586D1.2050407@monstr.eu> <4FF594AD.6000401@gmail.com> <1341521210.6330.16.camel@pasglop> <4FF67F96.1040902@monstr.eu> <1341555562.6330.51.camel@pasglop> <4FF68ADE.3060609@monstr.eu> <1341558520.6330.54.camel@pasglop> <4FF69B83.3000400@monstr.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FF69B83.3000400-pSz03upnqPeHXe+LvDLADg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.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 whose content is in * remove: remove node 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 > >