overlay_bad_add_dup_node.dts 510 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. /plugin/;
  4. /*
  5. * &electric_1/motor-1 and &spin_ctrl_1 are the same node:
  6. * /testcase-data-2/substation@100/motor-1
  7. *
  8. * Thus the new node "controller" in each fragment will
  9. * result in an attempt to add the same node twice.
  10. * This will result in an error and the overlay apply
  11. * will fail.
  12. */
  13. &electric_1 {
  14. motor-1 {
  15. controller {
  16. power_bus = < 0x1 0x2 >;
  17. };
  18. };
  19. };
  20. &spin_ctrl_1 {
  21. controller {
  22. power_bus_emergency = < 0x101 0x102 >;
  23. };
  24. };