encyclopegia.org

Devicetree

In computing, a devicetree (also written device tree) is a data structure describing the hardware components of a particular computer so that the operating system's kernel can use and manage those components, including the CPUs or SoC, the memory, the storage, the buses and the integrated peripherals. The devicetree originated as part of the Open Firmware project for SPARC-based and PowerPC-based computers, withdrawn in 2005. In 2016, a stand-alone Devicetree specification was developed by simplifying and modernizing the old specifications. Its target has switched to smaller systems and embedded systems, but is still used with some server-class systems (for instance, those described by the Power Architecture Platform Reference). Personal computers with the x86 architecture generally do not use device trees, relying instead on various auto configuration protocols (e.g. ACPI) to discover hardware. Systems which use device trees usually pass a static device tree (perhaps stored in EEPROM, or stored in NAND device like eUFS) to the operating system, but can also generate a device tree in the early stages of booting. As an example, Das U-Boot and kexec can pass a device tree when launching a new operating system.…

In computing, a devicetree (also written device tree) is a data structure describing the hardware components of a particular computer so that the operating system's kernel can use and manage those components, including the CPUs or SoC, the memory, the storage, the buses and the integrated peripherals. The devicetree originated as part of the Open Firmware project for SPARC-based and PowerPC-based computers, withdrawn in 2005. In 2016, a stand-alone Devicetree specification was developed by simplifying and modernizing the old specifications. Its target has switched to smaller systems and embedded systems, but is still used with some server-class systems (for instance, those described by the Power Architecture Platform Reference). Personal computers with the x86 architecture generally do not use device trees, relying instead on various auto configuration protocols (e.g. ACPI) to discover hardware. Systems which use device trees usually pass a static device tree (perhaps stored in EEPROM, or stored in NAND device like eUFS) to the operating system, but can also generate a device tree in the early stages of booting. As an example, Das U-Boot and kexec can pass a device tree when launching a new operating system. On systems with a boot loader that does not support device trees, a static device tree may be installed along with the operating system; the Linux kernel supports this approach. The Devicetree specification is currently managed by a community named devicetree.org, which is associated with, among others, Linaro and Arm. ==Formats== A device tree can hold any kind of data as internally it is a tree of named nodes and properties. Nodes contain properties and child nodes, while properties are name–value pairs. Node and property names are by convention ASCII. Values are byte strings of any length (with no data type label in the binary format). Modern device trees are authored in a textual format (Devicetree Source file, .dts ). A compiler (DTC) is used to convert it into the binary format (device tree binary/blob, .dtb ) used by operating systems. The dtb is also known as the flattened device tree (FDT). Device tree source files can include other files, referred to as device tree source includes. The FDT largely follows the original Open Firmware specification, though without the runtime components of Open Firmware. /dts-v1/; / { soc { flash_controller: flash-controller@4001e000 { reg = ; flash0: flash@0 { label = "SOC_FLASH"; erase-block = ; }; }; }; }; In the example above, the line /dts-v1/; signifies version 1 of the DTS syntax. The tree has four nodes: / (root node), soc (stands for "system on a chip"), flash-controller@4001e000 and flash@0 (instance of flash which uses the flash controller). Besides these node names, the latter two nodes have labels flash_controller and flash0 respectively. The latter two nodes have properties, which represent name/value pairs. Property label has string type, property erase-block has integer type and property reg is an array of integers (32-bit unsigned values). Property values can refer to other nodes in the devicetree by their phandles. Phandle for a node with label flash0 would be written as &flash0 . Phandles are also 32-bit values. Parts of the node names after the "at" sign ( @ ) are unit addresses. Unit addresses specify a node's resource address in the address space of its parent node. The above tree could be compiled by the standard DTC compiler to binary DTB format or assembly. In Zephyr RTOS, however, DTS files are compiled into C header files (.h), which are then used by the build system to compile code for a specific board. ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Devicetree." encyclopegia.org, 2026, https://encyclopegia.org/wiki/devicetree. Accessed 24 November 2026.

Chicago

"Devicetree." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/devicetree.

APA

encyclopegia.org. (2026). Devicetree. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/devicetree

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377909997 · 0.5 · snapshot enwiki-001377909997

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.