summaryrefslogtreecommitdiff
path: root/tests/addresses.dts
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2014-05-11 13:13:46 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2014-05-12 16:01:09 +1000
commit40f7f576c8e7df395ed25f0f3df61fac85f1adf9 (patch)
tree9aecbaaf8684d04f31294248c2b63b59cc4dd34b /tests/addresses.dts
parentf240527e54021f82d70d8a09035e575f864c1fbd (diff)
downloaddevice-tree-compiler-40f7f576c8e7df395ed25f0f3df61fac85f1adf9.tar.gz
libfdt: Add helpers to read #address-cells and #size-cells
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>
Diffstat (limited to 'tests/addresses.dts')
-rw-r--r--tests/addresses.dts15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/addresses.dts b/tests/addresses.dts
new file mode 100644
index 0000000..a2faaf5
--- /dev/null
+++ b/tests/addresses.dts
@@ -0,0 +1,15 @@
+/dts-v1/;
+
+/ {
+ compatible = "test_addresses";
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ identity-bus@0 {
+ };
+
+ simple-bus@1000000 {
+ #address-cells = <2>;
+ #size-cells = <1>;
+ };
+};