'Devicetree - how are "ranges" mmapped to device nodes?

Let's say we have this example devicetree:

enter image description here

I just want to know what mechanism ranges uses so that it gets properly mapped to the device nodes (ethernet@0,0, i2c@1,0, flash@2,0).

Does it use:

  • "child's domain address" (red) or
  • "order of appearance" (violet)

to properly figure out mapping?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source