Hello Ari Savolainen,
The .dsi generally contain SoC-level definitions.
To generate a .dtb (binary) file, so basically compiling, you would need to initialize the toolchain and then use:
make ARCH=arm dtbs
The device tree files, including the source files (.dts) are located in the case of our Yocto BSP on:
<BSP_DIR>/<BUILD_DIR>/tmp/work/<MACHINE>-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/ach/arm/boot/dts
The following very informative document may also be of help.
https://community.freescale.com/docs/DOC-329664
I hope this information helps!