Hello manolo ruiz,
ranges(child-bus-address, parent-bus-address, length)
It provides a means of defining a mapping or translation between the physical address space of the bus (the child address space) and the physical address space of the bus node’s parent (the parent address space).
The child-bus-address is a physical address within the child bus’ address space.
The parent-bus-address is a physical address within the parent bus’ address space.
In the above PCIe device tree definition, the child PCIe at offset 0x0 is from parent PCIe at 0xffe09000, the child PCIe memory space at 0x0_a0000000 maps to the parent PCIe memory space at 0x0_a0000000, the size is 0x20000000. The child PCIe I/O space address at 0x0 maps the parent PCIe I/O space address at 0x0, the size is 0x100000.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------