I have a couple of nodes in the device tree, without compatible string. In the board file, I want to add compatible string to one of these node, based on certain conditions. Can i do it ? Is there any example for the same ?
Asked
Active
Viewed 362 times
0
-
Why would you want to do this? – tangrs Jan 13 '15 at 05:47
-
@Trickmaster If you are using a recent kernel, take a look at of_changeset_apply(). It allows dynamic, programmatic changes to the device tree. – Peter L. Jan 13 '15 at 21:20
-
@Peter L. I am using kernel 3.10 – Trickmaster Jan 18 '15 at 06:55
-
@Trickmaster Take a look at the latest kernel and see if that new support for dynamic device tree changes can work for you. They specifically added this because of FPGA changes at run time, but still may be similar to your situation. – Peter L. Jan 19 '15 at 01:45