Device Tree
!assets/Pasted image 20241108115912.png
Standard Properties
compatible
The compatible property value consists of one or more strings that define the specific programming model for the device. This list of strings should be used by a client program for device driver selection. The property value consists of a concatenated list of null terminated strings, from most specific to most general. They allow a device to express its compatibility with a family of similar devices, potentially allowing a single device driver to match against several devices.
The recommended format is "manufacturer,model"
, where manufacturer
is a string describing the name of the manufacturer (such as a stock ticker symbol), and model
specifies the model number.
status
- “okay”: Indicates the device is operational
- “disabled”: Indicates that the device is not presently operational, but it might become operational in the future (for example, something is not plugged in, or switched off)
- “reserved”, “fail”, “fail-sss” are also used when needed
address-cells and size-cells
The address-cells and size-cells properties may be used in any device node that has children in the devicetree hierarchy and describes how child device nodes should be addressed.
DTB Structure
!assets/Devicetree .dtb Structure.webp