Feature request: Add a function to get the address and size cell values for a given node.
FDT is a bit weird~gray about this. I would have attempted a patch for what I'm asking but my Rust fu is still weak.
Bus hierarchy expressions are common using FDT. The spec says that the number of u32 words representing the size of the address cells and size cells for a given node are to be advertised as properties by the node. The idea is that this information is then used to interpret the node's reg property to get memory map info for the device represented by the node.
It seems it is legal for a node to not advertise address and size cell properties in which case these are to be furnished by the parent of the node in question or it's grand-parent upwards until a node advertising the properties is found.
What I need is a function that encapsulates all this logic. Given a node reference, the function should just return a vector of (base, size) tuples constructed by obtaining the address and size cells and interpreting the reg property.
For the moment, for Redox, I am making an assumption that the node in question always advertises address and size cells which is basically wrong but workable for the moment.
Let me know if you have any questions and thanks for this crate!