Re: Labels removed from Device Tree

Bolivar, Marti

For a node:

foo: my-node... {
label = "bar";

You may use device_get_binding("bar") or

The DT_NODELABEL(foo) part may be changed for an arbitrary devicetree
node identifier.

Please refer here for more details about node identifiers:

and here for more on DEVICE_DT_GET:

My apologies if my corporate email server mangles the above links.


On Mon, Aug 01 2022, Bernd via lists zephyrproject org Weiberg wrote:
the commit dts: arm: st: Remove label property from devicetrees
has broken my code.
I used device_get_binding() with the string to the device label in the dts file.
What is the correct approach in this case?

Join to automatically receive all group messages.