A device tree is a tree data structure with nodes that tell you which devices are currently present in a system along with their configuration settings. Every node has property/value pairs that describe the attributes of the device being represented. Every node has exactly one parent but the root node has no parent.
The next code shows an example representation of a simple device tree that is nearly complete enough to boot a simple operating system, with the platform type, CPU, memory, and a single universal synchronous and asynchronous receiver-transmitter (UART) described with its clocks and interrupt lines. Device nodes are shown with properties and values inside each node.
The device tree syntax is quasi self-explanatory; however, we're going to explain it in detail in this paragraph by taking a look at the simple_platform.dts file from the GitHub...