I am at a lost as to what device tree files to modify and which files control what. There seems to be at least two device tree source files.
One is in \packages\firmware\u-boot\arch\arm\dts I am assuming that this one only affects U-Boot itself. I added my new file there. However, it was never used until I added it to the defconfig file AND added an entry to the Makefile.
The second one is in \packages\linux\linux\arch\arm64\boot\dts. I am assuming that I can put mine in the "freescale" folder and it will get used for Linux only?
My second problem is I do not know the syntax of what the device tree files are supposed to contain. For the U-Boot device tree, I need to be able to boot from Ethernet. So the SFP+ module in the cage has to be available from U-Boot. I saw an example in the ls1046ardb device tree for Linux of syntax to identify that SFP+ device. However, it is not a simple as "copy and paste" since when I add that to the U-Boot device tree then it will not compile.
Where can I find documentation as to syntax of adding entries to these device trees? How do I find out that parameters for each device need to be included? Is that parameter information in the header of the driver?
Thanks.