Skip to content

dtlib get_node does not follow dts spec #103643

@kylebonnici

Description

@kylebonnici

Describe the bug

get_node("/interrupt-map-bitops-test/node@70000000e") should be equal to get_node("/interrupt-map-bitops-test/node@70000000E") this bug created the issue #103638

Looking at dtlib is seams that is also does not consider this case from the spec https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#path-names as address can also be omitted if path is unambiguous

e.g.

/ {
foo@10 {};
}

both paths -> /foo and /foo@10 should work. looking at scripts/dts/python-devicetree/src/devicetree/dtlib.py the fill name in full with address is always used and this is not correct.

Regression

  • This is a regression.

Steps to reproduce

See #103638

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions