summaryrefslogtreecommitdiffstats
path: root/drivers/of/unittest-data/overlay.dts
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2017-07-19 18:25:20 +0200
committerRob Herring <robh@kernel.org>2017-07-20 16:36:13 +0200
commit60a0004cc9d66193ad9f1443315f52ec1086e25e (patch)
tree4131f8e868c2c20efd96e3e30ba9684b3073afe3 /drivers/of/unittest-data/overlay.dts
parentof: Convert to using %pOF instead of full_name (diff)
downloadlinux-60a0004cc9d66193ad9f1443315f52ec1086e25e.tar.xz
linux-60a0004cc9d66193ad9f1443315f52ec1086e25e.zip
of: overlay: add overlay unittest data for node names and symbols
Add nodes and properties to overlay_base and overlay dts files to test for - incorrect existing node name detection when overlay node name has a unit-address - adding overlay __symbols__ properties to live tree when an overlay is added to the live tree The following console messages will appear near the end of unittest until the code errors are corrected: OF: Duplicate name in fairway-1, renamed to "ride@100#1" ### dt-test ### FAIL of_unittest_overlay_high_level():2296 Adding overlay 'overlay_bad_symbol' failed ### dt-test ### end of unittest - 190 passed, 1 failed Signed-off-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/unittest-data/overlay.dts')
-rw-r--r--drivers/of/unittest-data/overlay.dts25
1 files changed, 24 insertions, 1 deletions
diff --git a/drivers/of/unittest-data/overlay.dts b/drivers/of/unittest-data/overlay.dts
index 6cd7e6a0c13e..60abf5b55cae 100644
--- a/drivers/of/unittest-data/overlay.dts
+++ b/drivers/of/unittest-data/overlay.dts
@@ -25,7 +25,22 @@
#size-cells = <1>;
status = "ok";
- ride@200 {
+ ride@100 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ track@30 {
+ incline-up = < 48 32 16 >;
+ };
+
+ track@40 {
+ incline-up = < 47 31 15 >;
+ };
+ };
+
+ ride_200: ride@200 {
+ #address-cells = <1>;
+ #size-cells = <1>;
compatible = "ot,ferris-wheel";
reg = < 0x00000200 0x100 >;
hvac-provider = < &hvac_2 >;
@@ -36,6 +51,14 @@
spin-rph = < 30 >;
gondolas = < 16 >;
gondola-capacity = < 6 >;
+
+ ride_200_left: track@10 {
+ reg = < 0x00000010 0x10 >;
+ };
+
+ ride_200_right: track@20 {
+ reg = < 0x00000020 0x10 >;
+ };
};
};
};