-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DT_NODE_HAS_PROP not working with certain compatible #85173
Comments
@iuliana-prodan maybe that's because "mmio-sram" compatible doesn't have a "ranges" property!? |
I've looked for
and with this, when compiling the code from bug description it finds the
I've looked for Am I missing something? |
@iuliana-prodan turns out zephyr/include/zephyr/devicetree.h Line 1901 in ead3a01
|
Ranges is indeed special and I am guessing this is about #84170? There seems to be some confusion about THanks! |
@mbolivar I've read the specs and it doesn't say anywhere we shouldn't use |
I thought I had a solution for this in #58858. It turns out to be incomplete, but it's the reason why The simplest fix would be to add |
Describe the bug
DT_NODE_HAS_PROP fails when looking for
ranges
property and usingcompatible = "mmio-sram";
To Reproduce
A simple way to reproduce it is using the patch below:
When compiling
hello_world
sample for 8ulp, using command:west build -p -b imx8ulp_evk//adsp -s samples/hello_world/
, I'm getting only:IF I comment the
compatible = "mmio-sram";
fromtest2
node I'm getting both errors (theranges
is found in both nodes):Expected behavior
If the property is in the node
DT_NODE_HAS_PROP
should return true or document this if it's the expected behavior.Environment (please complete the following information):
Additional context
This was found while working on: #84168
The text was updated successfully, but these errors were encountered: