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