Device tree compilation and changing in boot folder

Hi,
I am having some issues in altering the device tree and generating the new OS. So, in order to enable spidev2.0 in my Colibri iMX7d emmc 1GB, I thought of trying to change the device tree binary file in the boot folder by

ums 0 mmc 0

So, my question is

  1. Will it work if I change device tree binary file in the boot folder from uboot by ums 0 mmc 0?
  2. If so, how to create a device tree binary file if I have .dts and .dtsi files from yocto?

I tried with compiling device tree file to device tree binary with the command,

dtc -I dts -O dtb -o imx7-colibri-eval-v3.dtsi imx7-colibri-eval-v3.dtsi

But i got the below errors,

Error: imx7-colibri-eval-v3.dtsi:43.1-2 syntax error
FATAL ERROR: Unable to parse input tree

Regards,
Nishanth

Hi Nishanth

  1. Will it work if I change device tree binary file in the boot folder from uboot by ums 0 mmc 0?

Yes, this will work.

  1. If so, how to create a device tree binary file if I have .dts and .dtsi files from yocto?

Either you do a patch in Yocto sources and compile the devicetree or the easier way to compile the devicetree using kernel sources as explained here.

Best regards,
Jaski