Home > other >  The address in the Device Tree - cell and size - cells is what meaning?
The address in the Device Tree - cell and size - cells is what meaning?

Time:09-25

Each great spirit:

kernel driver arm device treesDevice address according to the several properties to control:

Reg
# address - cells
# size - cells

Address in which who can tell me, the Device Tree - cell and size - cells is what meaning, document saw a few not read, pretty good, I confused for a long time, 55555555555

CodePudding user response:

Me too, the building Lord, you understand now?? Understand to I also share with bai!!!!! I saw several times, stare blankly is don't understand what the situation is

CodePudding user response:

# address - cells said several cell said address, # size - cells said several cell said length
Such as:
M25p80 @ {0
# address - cells=& lt; 1>
# size - cells=& lt; 1 & gt;;

Partition @ {0
Label="u - the boot";
Reg=& lt; 0 0 x0 x3000 & gt;
The read - only;
}
, the partition of reg 0 x0 said a cell that is offset, 0 x3000 said length of a cell that is
}

CodePudding user response:

Well, learn,,,,

CodePudding user response:

Described in the second floor in I don't think is right or is one-sided,
Address - cells is said that this node, the mount of the child nodes of the equipment is absolutely the number of the number of the starting address,
Size - cells is said that this node, the mount of the child nodes of the length of the equipment to take up the number of the number of,
Continue to the second floor of example:
M25p80 @ {0
# address - cells=& lt; 1>
# size - cells=& lt; 1 & gt;;

Partition @ {0
Label="u - the boot";
Reg=& lt; 0 0 x0 x3000 & gt;
The read - only;
}
We can see the address of the parent node m25p80 - cells to fill in 1, i.e., mount in the starting address of the child nodes of the parent node only one;
Size - cells also to fill in 1, which is mounted under the parent the child nodes of the footprint of the length and only need a description,

Finally, we see is
Reg=& lt; 0 0 x3000 & gt;;
0 is the child node is absolutely the starting address, number 1.
0 x3000 is child node takes up the length, the number 1.
As above.

CodePudding user response:

Reg said after face node is few paragraphs, described, that is, there are several addresses
  • Related