summaryrefslogtreecommitdiffstats
path: root/drivers/of/unittest-data/tests-phandle.dtsi
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2014-11-04 13:24:45 +0000
committerGrant Likely <grant.likely@linaro.org>2014-11-04 16:43:07 +0000
commit19fd74879a32fb10357e0cda9c8050f01bb3eeb8 (patch)
treedaa661511b4a8c9f4e7a6d87f18429850c903fa2 /drivers/of/unittest-data/tests-phandle.dtsi
parent851da976dc1d72becc03e144b38c4efab9e7b361 (diff)
downloadlinux-19fd74879a32fb10357e0cda9c8050f01bb3eeb8.tar.bz2
of/unittest: Rename selftest.c to unittest.c
This is unit testing code. It should use that name because it makes more sense than 'selftest'. Rename the files to match and rename the config variable. Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/unittest-data/tests-phandle.dtsi')
-rw-r--r--drivers/of/unittest-data/tests-phandle.dtsi48
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/of/unittest-data/tests-phandle.dtsi b/drivers/of/unittest-data/tests-phandle.dtsi
new file mode 100644
index 000000000000..5b1527e8a7fb
--- /dev/null
+++ b/drivers/of/unittest-data/tests-phandle.dtsi
@@ -0,0 +1,48 @@
+
+/ {
+ aliases {
+ testcase-alias = &testcase;
+ };
+
+ testcase: testcase-data {
+ security-password = "password";
+ duplicate-name = "duplicate";
+ duplicate-name { };
+ phandle-tests {
+ provider0: provider0 {
+ #phandle-cells = <0>;
+ };
+
+ provider1: provider1 {
+ #phandle-cells = <1>;
+ };
+
+ provider2: provider2 {
+ #phandle-cells = <2>;
+ };
+
+ provider3: provider3 {
+ #phandle-cells = <3>;
+ };
+
+ consumer-a {
+ phandle-list = <&provider1 1>,
+ <&provider2 2 0>,
+ <0>,
+ <&provider3 4 4 3>,
+ <&provider2 5 100>,
+ <&provider0>,
+ <&provider1 7>;
+ phandle-list-names = "first", "second", "third";
+
+ phandle-list-bad-phandle = <12345678 0 0>;
+ phandle-list-bad-args = <&provider2 1 0>,
+ <&provider3 0>;
+ empty-property;
+ string-property = "foobar";
+ unterminated-string = [40 41 42 43];
+ unterminated-string-list = "first", "second", [40 41 42 43];
+ };
+ };
+ };
+};