Hello,
I try to create and use my own device tree node.
For that I created a very basic yaml file:
compatible: "bat-measurement"
properties:
channel1:
type: int
required: true
which I use in by dts file as:
/ {
batmeasure {
compatible = "bat-measurement";
channel1 = <4>;
};
};
Compiling this leads to no error. In devicetree-unfixed.h I found the node batmeasure. But I would expect to find there also something for channel1, which is not the case.
Even changing my dts file to a combination that should not work, doesn't lead to a compiler error (required parameter is not there).
/ {
batmeasure {
compatible = "bat-measurement";
newValue = <5>;
};
};
Where is my mistake?
Erwin