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
> 
> 


_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to