Device Tree: Adding Alias for GPIO Controller Node causes DTC Warning #89268
-
Not sure if this is a bug or I am doing something wrong. Whenever I add an alias for a GPIO controller node:
I get the following warning from the device tree compiler:
I have no idea where the number 19 is coming from. I can use the alias in my code just fine so I can probably ignore the warning. I would still like to understand where it comes from though and I do not like having warnings in my compile output as it can confuse other people who are working on the project. Thanks for any suggestions! Edit: I found another occurrence of this issue on the Nordic forums: https://devzone.nordicsemi.com/f/nordic-q-a/113004/warning-gpios_property-during-build-of-slm-shell-sample The size (in my case 19) seems to be derived from the length of the node path which does not sound useful to me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Properties xxx-gpio and xxx-gpios have a special meaning ( ie. defines GPIOs ). Consider renaming your property
You need to change your code accordingly when accessing the alias. |
Beta Was this translation helpful? Give feedback.
Properties xxx-gpio and xxx-gpios have a special meaning ( ie. defines GPIOs ). Consider renaming your property
my-gpio
tomygpio
(without dash) for instance, and see if that helps:You need to change your code accordingly when accessing the alias.