I am trying to figure out how to reserve memory in device tree. (this is 
based on an example by TI: Dts 
<https://git.ti.com/apps/tida01555/blobs/master/dts/am335x-boneblack-pruadc.dts>
 and 
compile instructions section 3.1.2.4 
<http://www.ti.com/lit/ug/tidudn4/tidudn4.pdf>)
Here is is my dts file:

/dts-v1/;

/ {
    reserved-memory {
        #address-cells = <1>;
        #size-cells = <1>;
        ranges;

        pruadc_reserved: pruadc_reserved@0x9ffc0000 {
          reg = <0x9ffc0000 0x00010000>;
          no-map;
          status = "okay";
        };
      };
};

However, when I compile I get the following warnings:
src/arm/MEM.dtbo: Warning (ranges_format): /reserved-memory has empty 
"ranges" property but its #address-cells (1) differs from / (2)
src/arm/MEM.dtbo: Warning (avoid_default_addr_size): Relying on default 
#address-cells value for /reserved-memory
src/arm/MEM.dtbo: Warning (avoid_default_addr_size): Relying on default 
#size-cells value for /reserved-memory

Other combinations of address-cells/size-cells give reg format warnings.

Any suggestions would be much appreciated.

Thanks
Gaurav

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/5f5b80fb-fa91-44f2-b9a5-496c8c5abfdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to