FILE
overlay_bad_add_dup_node.dtso
File preview with syntax highlighting.
linux-6.19.14/drivers/of/unittest-data/overlay_bad_add_dup_node.dtso
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 motor-1 { 17 controller { 18 power_bus = <0x1 0x2>; 19 }; 20 }; 21}; 22 23&spin_ctrl_1 { 24 controller { 25 power_bus_emergency = <0x101 0x102>; 26 }; 27};
~/
Read-only file preview.