zephyr/scripts/dts/python-devicetree/tests
Martí Bolívar 22012894c0 dtlib: error out on duplicate node names
Attempts to define two nodes with the same name within a single set of
curly brackets should fail.

For example, this is invalid DTS according to dtc:

    / { foo {}; foo {}; };

By contrast, this is valid since the node named 'foo' appears twice in
two different sets of curly brackets:

    / { foo {}; };
    / { foo {}; };

Zephyr's dtlib currently does not error out on the invalid condition.

Now that Zephyr itself has been updated to not include such nodes (to
the best of my ability), we can fix this divergence from current dtc
behavior and add a regression test in dtlib.

Fixes: #49590
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-09-21 07:55:40 -07:00
..
test-bindings edtlib: allow const arrays 2022-08-25 18:11:27 -07:00
test-bindings-2
test-bindings-include
test-wrong-bindings
test_dtlib.py dtlib: error out on duplicate node names 2022-09-21 07:55:40 -07:00
test_edtlib.py dts: add primitive support for multi-bus in bindings 2022-09-09 17:42:33 -04:00
test-multidir.dts
test.dts