zephyr/scripts/dts/python-devicetree/src/devicetree
Ioannis Damigos 871afee41c edtlib: fix _raw_unit_addr() function
The '_raw_unit_addr()' function was incorrectly written a long time ago.
It tries to look up and use the '#address-cells' of the node containing
the 'interrupts' property itself, instead of using the '#address-cells' of
the interrupt controller's node (or its parent).

As a result, the mapping is successful only if the '#address-cells' value
is the same in both the node and the interrupt controller, all other cases
lead to random errors being generated by the 'gen_defines.py' script.

Also, the function was trying to use the '#address-cells' value as a
little-endian one, which led to unpredictable results as well.
This problem has been fixed too.

Fixes #77890, and probably #78020

Signed-off-by: Andrey VOLKOV <andrey.volkov@munic.io>
Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-06-27 10:57:38 +02:00
..
__init__.py
_private.py
dtlib.py scripts: dts: dtlib: preserve order of properties in DTS output 2025-06-05 15:18:40 -05:00
edtlib.py edtlib: fix _raw_unit_addr() function 2025-06-27 10:57:38 +02:00
grutils.py