Skip to content

how to get devicetree label inside kconfig #26188

Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nashif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #26188 on September 11, 2020 17:38.