Devicetree: Difference between revisions

Knuxify (talk | contribs)
Knuxify (talk | contribs)
 
Line 17: Line 17:


The following is a very simple example DTS (device tree source):
The following is a very simple example DTS (device tree source):
{{note|For a full guide to DTS syntax, see [[/DTS syntax]].}}


<syntaxhighlight lang="dts" line>
<syntaxhighlight lang="dts" line>
Line 47: Line 45:
};
};
</syntaxhighlight>
</syntaxhighlight>
{{note|For a full guide to DTS syntax, see [[/DTS syntax]].}}


The devicetree acts like a map of the hardware; it describes where each component is in register space, and stores configuration values for them. It also describes components located on buses like I2C and SPI, and can carry some metadata about the board/device (like the RAM size/base address, model code or chassis type).
The devicetree acts like a map of the hardware; it describes where each component is in register space, and stores configuration values for them. It also describes components located on buses like I2C and SPI, and can carry some metadata about the board/device (like the RAM size/base address, model code or chassis type).