summaryrefslogtreecommitdiff
path: root/drivers/of/testcase-data/tests-platform.dtsi
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-05-13 19:07:54 +0400
committerRob Herring <robh@kernel.org>2014-05-13 23:11:11 +0400
commitfb2caa50fbacd21719a90dd66b617ce3cb4fd6d7 (patch)
tree4a4766604759d418b75c8567cf8f0fdeaa85b59d /drivers/of/testcase-data/tests-platform.dtsi
parent7d1cdc89c54d2cb8157cf1f36fc65e8583d26484 (diff)
downloadlinux-fb2caa50fbacd21719a90dd66b617ce3cb4fd6d7.tar.xz
of/selftest: add testcase for nodes with same name and address
Add a test case for nodes which have the same name and same non-translatable unit address. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Grant Likely <grant.likely@linaro.org> Reviewed-by: Frank Rowand <frank.rowand@sonymobile.com>
Diffstat (limited to 'drivers/of/testcase-data/tests-platform.dtsi')
-rw-r--r--drivers/of/testcase-data/tests-platform.dtsi35
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/of/testcase-data/tests-platform.dtsi b/drivers/of/testcase-data/tests-platform.dtsi
new file mode 100644
index 000000000000..eb20eeb2b062
--- /dev/null
+++ b/drivers/of/testcase-data/tests-platform.dtsi
@@ -0,0 +1,35 @@
+
+/ {
+ testcase-data {
+ platform-tests {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ test-device@0 {
+ compatible = "test-device";
+ reg = <0x0>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dev@100 {
+ compatible = "test-sub-device";
+ reg = <0x100>;
+ };
+ };
+
+ test-device@1 {
+ compatible = "test-device";
+ reg = <0x1>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dev@100 {
+ compatible = "test-sub-device";
+ reg = <0x100>;
+ };
+ };
+ };
+ };
+};