Skip to content

Conversation

@mathieuchopstm
Copy link
Contributor

The DT_COMPAT_<...> macro variables are generated for every compatible found in bindings: document them as existing and recommend using them in various Kconfig documentation pages.

@pdgendt
Copy link
Contributor

pdgendt commented Dec 8, 2025

Related to #100193

@kartben
Copy link
Contributor

kartben commented Dec 8, 2025

This probably overlaps with #100193

@mathieuchopstm
Copy link
Contributor Author

mathieuchopstm commented Dec 8, 2025

Related to #100193

Yes in the sense that the assertions are not valid in (certain!) Kconfig.defconfig files unless it gets merged, but no as these macros already work otherwise (there are already users in tree too).

JarmouniA
JarmouniA previously approved these changes Dec 8, 2025
depending on the automatically created ``DT_HAS_<node>_ENABLED`` symbol.

* When building complex expressions based on devicetree node compatibles,
use the automatically defined :samp:`DT_COMPAT_{VND,DEVICE}` instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use the automatically defined :samp:`DT_COMPAT_{VND,DEVICE}` instead
use the automatically defined :samp:`DT_COMPAT_{VND_DEVICE}` instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch - fixed.

The DT_COMPAT_<...> macro variables are generated for every compatible
found in bindings: document them as existing and recommend using them
in various Kconfig documentation pages.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
@nordicjm nordicjm requested a review from JarmouniA December 9, 2025 12:03
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants