diff options
author | Frank Rowand <frank.rowand@sony.com> | 2017-04-25 17:09:54 -0700 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-04-27 17:26:06 -0500 |
commit | 81d0848fc8d2058c4cc645d971435c889869433b (patch) | |
tree | 1ef1792b3934365e5b1fe9fb2d92c4c4ca061cd8 /drivers/of/unittest-data/overlay_bad_phandle.dts | |
parent | 331f741679564720a49ccf355012e1a8a45686ec (diff) | |
download | lwn-81d0848fc8d2058c4cc645d971435c889869433b.tar.gz lwn-81d0848fc8d2058c4cc645d971435c889869433b.zip |
of: Add unit tests for applying overlays
Existing overlay unit tests examine individual pieces of the overlay
code. The new tests target the entire process of applying an overlay.
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/unittest-data/overlay_bad_phandle.dts')
-rw-r--r-- | drivers/of/unittest-data/overlay_bad_phandle.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/of/unittest-data/overlay_bad_phandle.dts b/drivers/of/unittest-data/overlay_bad_phandle.dts new file mode 100644 index 000000000000..270ee885a623 --- /dev/null +++ b/drivers/of/unittest-data/overlay_bad_phandle.dts @@ -0,0 +1,20 @@ +/dts-v1/; +/plugin/; + +/ { + + fragment@0 { + target = <&electric_1>; + + __overlay__ { + + // This label should cause an error when the overlay + // is applied. There is already a phandle value + // in the base tree for motor-1. + spin_ctrl_1_conflict: motor-1 { + accelerate = < 3 >; + decelerate = < 5 >; + }; + }; + }; +}; |