diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2014-12-19 13:34:34 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2015-01-23 14:10:07 +0100 |
commit | 6b1271de3723a7957c7cc6a7f36ea114f557e730 (patch) | |
tree | 7a3ebbd46b197ca193d47182d87bc1831e5c7ed5 /drivers/of/unittest-data/tests-overlay.dtsi | |
parent | of/platform: Handle of_populate drivers in notifier (diff) | |
download | linux-6b1271de3723a7957c7cc6a7f36ea114f557e730.tar.xz linux-6b1271de3723a7957c7cc6a7f36ea114f557e730.zip |
of/unittest: Overlays with sub-devices tests
Introduce selftests for overlays using sub-devices present
in children nodes.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/unittest-data/tests-overlay.dtsi')
-rw-r--r-- | drivers/of/unittest-data/tests-overlay.dtsi | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/drivers/of/unittest-data/tests-overlay.dtsi b/drivers/of/unittest-data/tests-overlay.dtsi index 75976da22b2e..a2b687d5f324 100644 --- a/drivers/of/unittest-data/tests-overlay.dtsi +++ b/drivers/of/unittest-data/tests-overlay.dtsi @@ -176,5 +176,60 @@ }; }; + overlay10 { + fragment@0 { + target-path = "/testcase-data/overlay-node/test-bus"; + __overlay__ { + + /* suppress DTC warning */ + #address-cells = <1>; + #size-cells = <0>; + + test-selftest10 { + compatible = "selftest"; + status = "okay"; + reg = <10>; + + #address-cells = <1>; + #size-cells = <0>; + + test-selftest101 { + compatible = "selftest"; + status = "okay"; + reg = <1>; + }; + + }; + }; + }; + }; + + overlay11 { + fragment@0 { + target-path = "/testcase-data/overlay-node/test-bus"; + __overlay__ { + + /* suppress DTC warning */ + #address-cells = <1>; + #size-cells = <0>; + + test-selftest11 { + compatible = "selftest"; + status = "okay"; + reg = <11>; + + #address-cells = <1>; + #size-cells = <0>; + + test-selftest111 { + compatible = "selftest"; + status = "okay"; + reg = <1>; + }; + + }; + }; + }; + }; }; }; |