Reputation: 1287
I have a doubt on the following scenario in device tree, could you please help.
We have a device node entry in the device tree and corresponding driver exists in the Kernel source, but actual device is not present on the board then what will happen? Will the driver build with the kernel source, if the driver builds then driver binding happens?
Thanks in advance.
Upvotes: 0
Views: 613
Reputation: 1627
If your device is actually not present in the board, and you want to keep the device node in the device tree structure. you should use status = "disabled"
in your device node. This property tells that device is not currently available. In future whenever your device is available you can make this status = "ok"
.
And yes driver will be built always, only bindings won't happen, as there is no corresponding device exists.
Upvotes: 1