Hi Thinh,
actually you don´t have to change a .mk to .dts. It is necessary to go to your build directory in <Kernel_source>/arch/arm/boot/dts and here you will find all the dtb sources (.dts and .dtsi). Here you can place your new .dts file (E.g. myfile.dts) and make your new .dtb with following istruction
cd <Kernel_source>
make myfile.dtb
And then you will find your dtb file in <Kernel_source>/arch/arm/boot/dts/myfile.dtb
Another way to build it is using the dtc directly.
cd <Kernel_source>/scripts/dtc
dtc -I dts -O dtb -o <output_folder>/myfile.dtb ../../arch/arm/boot/dts/myfile.dts
You can find an example that shows how to develop a custom device tree here: Basic Device Tree for the Udoo Board
Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------