Transcription of Introduction to Device Trees - NXP
{{id}} {{{paragraph}}}
1 IntroductionA Device tree is a tree structure used to describe the physicalhardware in a system. Each node in the tree describes thecharacteristics of the Device being represented. The purpose ofthe Device tree is to describe Device information in a systemthat cannot necessarily be dynamically detected or discoveredby a client program. For example, a PCI host may be able toprobe and detect attached devices; and so a Device tree nodedescribing PCI devices may not be required. However, adevice node is required to describe the PCI host bridge in thesystem, if that cannot be detected by the advent of the Device tree , the kernel containeddevice specific code. A small change, such as the modificationof an I2C peripheral s address would force a recompilation ofthe kernel image to be boot loader (for example, U-Boot) would load a singlebinary, the kernel image, and execute to Device Trees , several attempts were made to reducecomplexity and pass small amounts of information to thekernel.
With device trees, the kernel itself no longer needs specific code for each version of hardware. Instead, the code is located in a separate binary: the device tree blob. This enables us to target different hardware with the same kernel image by simply changing the much simpler, and much smaller, device tree binary.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}