-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Rob Herring
committed
May 13, 2014
1 parent
7d1cdc8
commit fb2caa5
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#include "tests-phandle.dtsi" | ||
#include "tests-interrupts.dtsi" | ||
#include "tests-match.dtsi" | ||
#include "tests-platform.dtsi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |