1. Concept
The Linux device tree is a file used to describe hardware and some of the boot instructions, passed to the kernel by bootloader,
The kernel parses this file and uses different parameters for the hardware.
For example, two development boards are just different memory capacity, then only need to modify the memory capacity in the device tree description,
Without having to recompile the kernel.
There are several files related to the device tree:
DTS (device tree source)
The. dts file, which is a text file in ASCII string form, is directly modified by the developer.
For ARM architectures, these files are located in the: Arch/arm/boot/dts directory.
DTSI (device tree source include)
. dtsi files that are included with the. dts file. Moreover. DTSi files may also contain the. dtsi file. It's a good idea to include a header file with C + +.
This file contains many configurations that are common to many devices.
DTB (Device tree blob)
By using the tool to compile the DTS file into a. dtb binary file, bootloader passes this file to the kernel, so that the kernel resolves quickly.
2. Rules
ZYNQ Base-->linux Device tree