linux/drivers/of/unittest-data
Frank Rowand a68238a19c of: overlay: test case of two fragments adding same node
Multiple overlay fragments adding or deleting the same node is not
supported.  An attempt to do so results in an incorrect devicetree.
The node name will be munged for the second add.

After adding this patch, the unittest messages will show:

   Duplicate name in motor-1, renamed to "controller#1"
   OF: overlay: of_overlay_apply() err=0
   ### dt-test ### of_overlay_fdt_apply() expected -22, ret=0, overlay_bad_add_dup_node
   ### dt-test ### FAIL of_unittest_overlay_high_level():2419 Adding overlay 'overlay_bad_add_dup_node' failed

   ...

   ### dt-test ### end of unittest - 210 passed, 1 failed

The incorrect (munged) node name "controller#1" can be seen in the
/proc filesystem:

   $ pwd
   /proc/device-tree/testcase-data-2/substation@100/motor-1
   $ ls
   compatible    controller    controller#1  name          phandle       spin
   $ ls controller
   power_bus
   $ ls controller#1
   power_bus_emergency

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
2018-11-08 22:11:51 -08:00
..
Makefile of: overlay: test case of two fragments adding same node 2018-11-08 22:11:51 -08:00
overlay.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_0.dts of: change overlay apply input data from unflattened to FDT 2018-03-04 00:29:24 -08:00
overlay_1.dts of: change overlay apply input data from unflattened to FDT 2018-03-04 00:29:24 -08:00
overlay_2.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_3.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_4.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_5.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_6.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_7.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_8.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_9.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_10.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_11.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_12.dts of: change overlay apply input data from unflattened to FDT 2018-03-04 00:29:24 -08:00
overlay_13.dts of: change overlay apply input data from unflattened to FDT 2018-03-04 00:29:24 -08:00
overlay_15.dts of/unittest: Fix I2C bus unit-address error 2018-09-19 15:10:06 -07:00
overlay_bad_add_dup_node.dts of: overlay: test case of two fragments adding same node 2018-11-08 22:11:51 -08:00
overlay_bad_phandle.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_bad_symbol.dts of: convert unittest overlay devicetree source to sugar syntax 2018-03-04 00:29:34 -08:00
overlay_base.dts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
testcases.dts DeviceTree fixes for 4.15: 2017-11-20 21:38:41 -10:00
tests-interrupts.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tests-match.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tests-overlay.dtsi of/unittest: Fix I2C bus unit-address error 2018-09-19 15:10:06 -07:00
tests-phandle.dtsi of: unittest: Add phandle remapping test 2018-02-12 08:37:59 -06:00
tests-platform.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00