40f7f576c8
This patch makes a small start on libfdt functions which actually help to parse the contents of device trees, rather than purely manipulating the tree's structure. We add simple helpers to read and sanity check the #address-cells and #size-cells values for a given node. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
15 lines
188 B
Text
15 lines
188 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
compatible = "test_addresses";
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
identity-bus@0 {
|
|
};
|
|
|
|
simple-bus@1000000 {
|
|
#address-cells = <2>;
|
|
#size-cells = <1>;
|
|
};
|
|
};
|