how to get devicetree label inside kconfig #26188
-
previously i used dt_str_val now it is changed and i unable to find any way ,please help me to do it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there, there is no longer a general purpose way to do this but can you say more about your use case? If you're looking for a label property, I assume it's because the goal is to pass it to https://docs.zephyrproject.org/latest/guides/dts/howtos.html If that's not the use case, perhaps we're missing some features; any information would be useful. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi there, there is no longer a general purpose way to do this but can you say more about your use case?
If you're looking for a label property, I assume it's because the goal is to pass it to
device_get_binding()
ultimately, and the reason to put it into Kconfig is to be able to override it. In that case, I would suggest getting the struct device from the devicetree node directly, and using devicetree overlays to override it as necessary. This is the recommended way within upstream Zephyr going forward:https://docs.zephyrproject.org/latest/guides/dts/howtos.html
If that's not the use case, perhaps we're missing some features; any information would be useful. Thanks.