Hello,
The VSC plugin is showing squiggles for SPI related nodes which are valid. (compile with no errors)
Here is an example:
Here is the error message
Thanks
Hello,
The VSC plugin is showing squiggles for SPI related nodes which are valid. (compile with no errors)
Here is an example:
Here is the error message
Thanks
The devicetree extension is a bit more strict than the compiler, since what you're trying to do is technically not allowed in the devicetree-language.
You need to add a compatible field for both the spi1 as well as the child node.
For spi1 you should add compatible = "nordic,nrf-spim". Our developer has created a PR regarding this https://github.com/zephyrproject-rtos/zephyr/pull/41102.
For the SPI child node, check out the possible compatibles in <ncs location>/zephyr/dts/bindings/sensor. For example:
Best regards,
Simon
> The devicetree extension is a bit more strict than the compiler, since what you're trying to is technically not allowed in the devicetree-language.
Simon, could you please provide some more details here? I maintain the zephyr devicetree tooling, and I don't see anything inherently wrong with the above example from a DT language perspective.
Hi Marti.
I got this information from an internal in Nordic. Maybe I misunderstood what he was saying. I'll talk to him tomorrow and clarify.
Hi Marti.
I got this information from an internal in Nordic. Maybe I misunderstood what he was saying. I'll talk to him tomorrow and clarify.