Example1

/ {
    #address-cells = <0x1>; //在 root node下使用1个u32来代表address, root node use 1 u32 to present address. 
    #size-cells = <0x0>; // 在root node下使用0个u32来代表size, root node have 0 to present address length.
    ...
    ...
    memory {        // memory device
        ...
        reg = <0x90000000>;
            // 0x90000000是存取memory的address // 0x90000000 is a u32 address, no address length 
        ...
    };
    ...
    ...
}

Example2

/ {
    #address-cells = <0x1>; //在root node下使用1个u32来代表address。// address format is one u32 
    #size-cells = <0x1>; //在root node下使用1个u32来代表size。 // the address is one u32 length.
    ...
    ...
    memory { // memory device
        ...
        reg = <0x90000000 0x800000>;
            // 0x90000000 是存取 memory 的 address //0x90000000
            // 0x800000 是 memory 的 size。
        ...
    };
    ...
    ...
}

Example3

/ {
    #address-cells = <0x2>; // 在root node下使用2个u32来代表address。
    #size-cells = <0x1>; // 在root node下使用1个u32来代表size。
    ...
    ...
    memory { // memory device
        ...
        reg = <0x90000000 00000000 0x800000>;
            // 0x90000000 00000000 是存取memory的address
            // 0x800000 是memory的size。
        ...
    };
    ...
    ...
}

 


Example4

/ {
    #address-cells = <0x2>; // 在root node下使用2个u32来代表address。
    #size-cells = <0x2>; // 在root node下使用2个u32来代表size。
    ...
    ...
    memory { // memory device
        ...
        reg = <0x90000000 00000000 0x800000 00000000>;
            // 0x90000000 00000000 是存取memory的address
            // 0x800000 00000000 是memory的size。
        ...
    };
    ...
    ...
}
reference:https://www.cnblogs.com/youchihwang/p/7050846.html
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 horace papa 的頭像
    horace papa

    Horace papa's life

    horace papa 發表在 痞客邦 留言(0) 人氣()