

#size-cells: The size part of the reg property. #address-cells: Property indicate how many cells (i.e 32 bits values) are needed to form the base address part in the reg property. Values always given with the most-specific first, to least-specific last. } Devicetree Properties compatible: The top-level compatible property typically defines a compatible string for the board, and then for the SoC. Under the root node typically consists ofģ) Chosen can have configuration data like the kernel parameters string and the location of an initrd imageĥ) Nodes which define the buses informationĬompatible = "arm,cortexa53", "arm,armv8" Ĭompatible = "arm,gic-400", "arm,cortex-a15-gic" Root node is the parent for all the nodes. Based on the driver it can have child nodes or parent node.For example a device connected by SPI bus will have SPI bus controller as its parent node and that device will be one of the child node of spi node. Linux uses the DT basically for platform identification, run-time configuration like bootargs and the device node population.Įach driver or a module in the device tree is defined by the node and all its properties are defined under that node. This describes the hardware which is readable by an operating system like Linux so that it doesn't need to hard code details of the machine. Device tree or simply called DT is a data structure that describes the hardware.
