of: unittest: Create overlay_common.dtsi and testcases_common.dtsi
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 10 Mar 2021 05:35:32 +0000 (11:05 +0530)
committerRob Herring <robh@kernel.org>
Tue, 23 Mar 2021 21:27:51 +0000 (15:27 -0600)
commitd92e2443221018a09535666ada3975d888b8ccfd
tree9b23b640bfe3ebfe6a10e64ddee234c37e47b791
parent15d16d6dadf6947ac7f9a686c615995c5a426ce2
of: unittest: Create overlay_common.dtsi and testcases_common.dtsi

In order to build-test the same unit-test files using fdtoverlay tool,
move the device nodes from the existing overlay_base.dts and
testcases_common.dts files to .dtsi counterparts. The .dts files now
include the new .dtsi files, resulting in exactly the same behavior as
earlier.

The .dtsi files can now be reused for compile time tests using
fdtoverlay (will be done by a later commit).

This is required because the base files passed to fdtoverlay tool
shouldn't be overlays themselves (i.e. shouldn't have the /plugin/;
tag).

Note that this commit also moves "testcase-device2" node to
testcases.dts from tests-interrupts.dtsi, as this node has a deliberate
error in it and is only relevant for runtime testing done with
unittest.c.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Tested-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/c3354a042ba34a03fd563061cbaa7fc96cb2d71a.1615354376.git.viresh.kumar@linaro.org
drivers/of/unittest-data/overlay_base.dts
drivers/of/unittest-data/overlay_common.dtsi [new file with mode: 0644]
drivers/of/unittest-data/testcases.dts
drivers/of/unittest-data/testcases_common.dtsi [new file with mode: 0644]
drivers/of/unittest-data/tests-interrupts.dtsi