Commit 9697a559 authored by Wang Long's avatar Wang Long Committed by Rob Herring

of/unittest: replace 'selftest' with 'unittest'

This patch just replace the string 'selftest' with 'unittest'
in OF unittest and data and binding file.

I have tested it successfully on ARM.
Signed-off-by: default avatarWang Long <long.wanglong@huawei.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent ff86dc54
1) OF selftest platform device 1) OF unittest platform device
** selftest ** unittest
Required properties: Required properties:
- compatible: must be "selftest" - compatible: must be "unittest"
All other properties are optional. All other properties are optional.
Example: Example:
selftest { unittest {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
}; };
2) OF selftest i2c adapter platform device 2) OF unittest i2c adapter platform device
** platform device unittest adapter ** platform device unittest adapter
Required properties: Required properties:
- compatible: must be selftest-i2c-bus - compatible: must be unittest-i2c-bus
Children nodes contain selftest i2c devices. Children nodes contain unittest i2c devices.
Example: Example:
selftest-i2c-bus { unittest-i2c-bus {
compatible = "selftest-i2c-bus"; compatible = "unittest-i2c-bus";
status = "okay"; status = "okay";
}; };
3) OF selftest i2c device 3) OF unittest i2c device
** I2C selftest device ** I2C unittest device
Required properties: Required properties:
- compatible: must be selftest-i2c-dev - compatible: must be unittest-i2c-dev
All other properties are optional All other properties are optional
Example: Example:
selftest-i2c-dev { unittest-i2c-dev {
compatible = "selftest-i2c-dev"; compatible = "unittest-i2c-dev";
status = "okay"; status = "okay";
}; };
4) OF selftest i2c mux device 4) OF unittest i2c mux device
** I2C selftest mux ** I2C unittest mux
Required properties: Required properties:
- compatible: must be selftest-i2c-mux - compatible: must be unittest-i2c-mux
Children nodes contain selftest i2c bus nodes per channel. Children nodes contain unittest i2c bus nodes per channel.
Example: Example:
selftest-i2c-mux { unittest-i2c-mux {
compatible = "selftest-i2c-mux"; compatible = "unittest-i2c-mux";
status = "okay"; status = "okay";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -64,7 +64,7 @@ Example: ...@@ -64,7 +64,7 @@ Example:
#size-cells = <0>; #size-cells = <0>;
i2c-dev { i2c-dev {
reg = <8>; reg = <8>;
compatible = "selftest-i2c-dev"; compatible = "unittest-i2c-dev";
status = "okay"; status = "okay";
}; };
}; };
......
...@@ -4,94 +4,94 @@ testcase-data { ...@@ -4,94 +4,94 @@ testcase-data {
overlay-node { overlay-node {
/* test bus */ /* test bus */
selftestbus: test-bus { unittestbus: test-bus {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
selftest100: test-selftest100 { unittest100: test-unittest100 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <100>; reg = <100>;
}; };
selftest101: test-selftest101 { unittest101: test-unittest101 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <101>; reg = <101>;
}; };
selftest0: test-selftest0 { unittest0: test-unittest0 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <0>; reg = <0>;
}; };
selftest1: test-selftest1 { unittest1: test-unittest1 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <1>; reg = <1>;
}; };
selftest2: test-selftest2 { unittest2: test-unittest2 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <2>; reg = <2>;
}; };
selftest3: test-selftest3 { unittest3: test-unittest3 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <3>; reg = <3>;
}; };
selftest5: test-selftest5 { unittest5: test-unittest5 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <5>; reg = <5>;
}; };
selftest6: test-selftest6 { unittest6: test-unittest6 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <6>; reg = <6>;
}; };
selftest7: test-selftest7 { unittest7: test-unittest7 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <7>; reg = <7>;
}; };
selftest8: test-selftest8 { unittest8: test-unittest8 {
compatible = "selftest"; compatible = "unittest";
status = "disabled"; status = "disabled";
reg = <8>; reg = <8>;
}; };
i2c-test-bus { i2c-test-bus {
compatible = "selftest-i2c-bus"; compatible = "unittest-i2c-bus";
status = "okay"; status = "okay";
reg = <50>; reg = <50>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest12 { test-unittest12 {
reg = <8>; reg = <8>;
compatible = "selftest-i2c-dev"; compatible = "unittest-i2c-dev";
status = "disabled"; status = "disabled";
}; };
test-selftest13 { test-unittest13 {
reg = <9>; reg = <9>;
compatible = "selftest-i2c-dev"; compatible = "unittest-i2c-dev";
status = "okay"; status = "okay";
}; };
test-selftest14 { test-unittest14 {
reg = <10>; reg = <10>;
compatible = "selftest-i2c-mux"; compatible = "unittest-i2c-mux";
status = "okay"; status = "okay";
#address-cells = <1>; #address-cells = <1>;
...@@ -104,7 +104,7 @@ i2c@0 { ...@@ -104,7 +104,7 @@ i2c@0 {
test-mux-dev { test-mux-dev {
reg = <32>; reg = <32>;
compatible = "selftest-i2c-dev"; compatible = "unittest-i2c-dev";
status = "okay"; status = "okay";
}; };
}; };
...@@ -116,7 +116,7 @@ test-mux-dev { ...@@ -116,7 +116,7 @@ test-mux-dev {
/* test enable using absolute target path */ /* test enable using absolute target path */
overlay0 { overlay0 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest0"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest0";
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -126,7 +126,7 @@ __overlay__ { ...@@ -126,7 +126,7 @@ __overlay__ {
/* test disable using absolute target path */ /* test disable using absolute target path */
overlay1 { overlay1 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest1"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest1";
__overlay__ { __overlay__ {
status = "disabled"; status = "disabled";
}; };
...@@ -136,7 +136,7 @@ __overlay__ { ...@@ -136,7 +136,7 @@ __overlay__ {
/* test enable using label */ /* test enable using label */
overlay2 { overlay2 {
fragment@0 { fragment@0 {
target = <&selftest2>; target = <&unittest2>;
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -146,7 +146,7 @@ __overlay__ { ...@@ -146,7 +146,7 @@ __overlay__ {
/* test disable using label */ /* test disable using label */
overlay3 { overlay3 {
fragment@0 { fragment@0 {
target = <&selftest3>; target = <&unittest3>;
__overlay__ { __overlay__ {
status = "disabled"; status = "disabled";
}; };
...@@ -156,15 +156,15 @@ __overlay__ { ...@@ -156,15 +156,15 @@ __overlay__ {
/* test insertion of a full node */ /* test insertion of a full node */
overlay4 { overlay4 {
fragment@0 { fragment@0 {
target = <&selftestbus>; target = <&unittestbus>;
__overlay__ { __overlay__ {
/* suppress DTC warning */ /* suppress DTC warning */
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest4 { test-unittest4 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <4>; reg = <4>;
}; };
...@@ -175,7 +175,7 @@ test-selftest4 { ...@@ -175,7 +175,7 @@ test-selftest4 {
/* test overlay apply revert */ /* test overlay apply revert */
overlay5 { overlay5 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest5"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest5";
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -185,7 +185,7 @@ __overlay__ { ...@@ -185,7 +185,7 @@ __overlay__ {
/* test overlays application and removal in sequence */ /* test overlays application and removal in sequence */
overlay6 { overlay6 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest6"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest6";
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -193,7 +193,7 @@ __overlay__ { ...@@ -193,7 +193,7 @@ __overlay__ {
}; };
overlay7 { overlay7 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest7"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest7";
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -203,7 +203,7 @@ __overlay__ { ...@@ -203,7 +203,7 @@ __overlay__ {
/* test overlays application and removal in bad sequence */ /* test overlays application and removal in bad sequence */
overlay8 { overlay8 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest8"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest8";
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -211,7 +211,7 @@ __overlay__ { ...@@ -211,7 +211,7 @@ __overlay__ {
}; };
overlay9 { overlay9 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/test-selftest8"; target-path = "/testcase-data/overlay-node/test-bus/test-unittest8";
__overlay__ { __overlay__ {
property-foo = "bar"; property-foo = "bar";
}; };
...@@ -227,16 +227,16 @@ __overlay__ { ...@@ -227,16 +227,16 @@ __overlay__ {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest10 { test-unittest10 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <10>; reg = <10>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest101 { test-unittest101 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <1>; reg = <1>;
}; };
...@@ -255,16 +255,16 @@ __overlay__ { ...@@ -255,16 +255,16 @@ __overlay__ {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest11 { test-unittest11 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <11>; reg = <11>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest111 { test-unittest111 {
compatible = "selftest"; compatible = "unittest";
status = "okay"; status = "okay";
reg = <1>; reg = <1>;
}; };
...@@ -277,7 +277,7 @@ test-selftest111 { ...@@ -277,7 +277,7 @@ test-selftest111 {
/* test enable using absolute target path (i2c) */ /* test enable using absolute target path (i2c) */
overlay12 { overlay12 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus/test-selftest12"; target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus/test-unittest12";
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
}; };
...@@ -287,7 +287,7 @@ __overlay__ { ...@@ -287,7 +287,7 @@ __overlay__ {
/* test disable using absolute target path (i2c) */ /* test disable using absolute target path (i2c) */
overlay13 { overlay13 {
fragment@0 { fragment@0 {
target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus/test-selftest13"; target-path = "/testcase-data/overlay-node/test-bus/i2c-test-bus/test-unittest13";
__overlay__ { __overlay__ {
status = "disabled"; status = "disabled";
}; };
...@@ -301,9 +301,9 @@ fragment@0 { ...@@ -301,9 +301,9 @@ fragment@0 {
__overlay__ { __overlay__ {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
test-selftest15 { test-unittest15 {
reg = <11>; reg = <11>;
compatible = "selftest-i2c-mux"; compatible = "unittest-i2c-mux";
status = "okay"; status = "okay";
#address-cells = <1>; #address-cells = <1>;
...@@ -316,7 +316,7 @@ i2c@0 { ...@@ -316,7 +316,7 @@ i2c@0 {
test-mux-dev { test-mux-dev {
reg = <32>; reg = <32>;
compatible = "selftest-i2c-dev"; compatible = "unittest-i2c-dev";
status = "okay"; status = "okay";
}; };
}; };
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment