A property’s value is a run of bytes, and the blob does not say what kind. The Devicetree Specification fixes the kind for the names it defines, and the explorer shows a property of one of those names as that kind. The table below is the list the explorer uses, put together from the Specification’s chapters 2, 3 and 4; the descriptions are in our own words. These are the value types:
- string: text ended by a zero byte; stringlist: several of them one after the other.
- u32 and u64: one big-endian number of 4 or 8 bytes; a few properties are either, and the property’s own length says which.
- phandle: a u32 that names a node, the number in that node’s
phandleproperty. - empty: no bytes; the property’s presence is the value.
- prop-encoded-array: a list of cells (u32 words) grouped as the property’s rules say.
Cells, reg and ranges
An address and a size are made of 32-bit cells. How many cells they take is set by the parent node’s
#address-cells and #size-cells (not inherited from further up; if absent, 2 and 1). So the
reg of a node is a list of (address, size) groups of that many cells each, and when the parent’s
#size-cells is 0 (the children of /cpus) there is no size. ranges is a list of
(child address, parent address, length): the child address uses this node’s #address-cells, the parent
address the parent’s, and the length this node’s #size-cells. An empty ranges means the two
address spaces are the same. The viewer cuts the values this way and says when the length does not divide into whole groups.
The names
| Name | Value | What it is |
|---|---|---|
#address-cells | u32 | Cells a child’s address takes in its reg. Default 2. |
#size-cells | u32 | Cells a child’s size takes in its reg. Default 1. |
#interrupt-cells | u32 | Cells one interrupt specifier takes, for the devices this interrupt controller serves. |
reg | cells | (address, size) groups in the parent’s address space; no size when the parent’s #size-cells is 0. In /memory, the memory ranges; initial-mapped-area there is a u64 effective address, a u64 physical address and a u32 size. virtual-reg is a u32 or u64 effective address of the first reg address. |
ranges, dma-ranges | cells, or empty | Address translation between a bus and its parent, as above; dma-ranges for the addresses a device uses for DMA. |
compatible | stringlist | The devices or platforms the node is compatible with, most specific first. A bus that the OS may treat as a simple bus lists "simple-bus". |
model | string | The manufacturer’s model of the board or device. |
phandle | u32 | The number other nodes use to point to this node. Unique in the tree. The viewer shows a phandle with the path of the node that has it, and lists all of them in a table. |
status | string | "okay", "disabled", "reserved", "fail" or "fail-sss". For a CPU: "okay" is running and "disabled" is quiescent. |
name | string | The node’s name. The Specification deprecates it. |
device_type | string | The class of the device: "cpu" or "memory"; deprecated otherwise. |
interrupt-parent | phandle | The node that receives the device’s interrupts. |
interrupts | cells | The device’s interrupt specifiers, #interrupt-cells cells each, taken from the interrupt parent. The viewer finds the parent through the nearest interrupt-parent, else the parent node, walking up to a node that has #interrupt-cells (our reading of the usual rule; the Specification’s summary states the interrupt-parent and parent rule only). If it cannot find the cell count it shows the cells ungrouped and says so. |
interrupt-controller | empty | Marks a node as an interrupt controller. |
interrupt-map | cells | Entries of (child unit address, child specifier, interrupt parent phandle, parent unit address, parent specifier). Each parent’s own cell counts say how long its part is; #address-cells of an interrupt parent that has none is taken as 0. |
dma-coherent, dma-noncoherent | empty | On an architecture that is non-coherent for I/O by default, dma-coherent says the device can do coherent DMA; on one that is coherent by default, dma-noncoherent says it cannot. Neither applies where the architecture has only one kind. |
interrupts-extended | cells | Like interrupts, for a device wired to several interrupt controllers: each specifier is preceded by the phandle of its interrupt parent (<&pic 0xA 8>, <&gic 0xda>). It excludes interrupts; if both are present interrupts-extended wins. |
interrupt-map-mask | cells | A bit mask ANDed with the incoming (unit address, interrupt specifier) before it is looked up in interrupt-map. |
bootargs | string | The command line the boot program passes to the operating system, in /chosen. Can be empty. |
stdout-path, stdin-path, linux,stdout-path | string | The path or /aliases name of the console device in /chosen. A colon ends the path (serial0:115200n8); what follows is parameters. linux,stdout-path is the deprecated old name. |
every property of /aliases | string | The name is an alias; the value is the full path of a node. |
clock-frequency, timebase-frequency, bus-frequency | u32 or u64 | A frequency in Hz (a CPU’s clock, its timebase; for a serial device the input of its baud generator). bus-frequency on a CPU is deprecated. |
enable-method, cpu-release-addr | stringlist, u64 | How a disabled CPU is started ("spin-table"), and the physical address of the spin-table entry that releases it. |
next-level-cache, cache-level, cache-size, cache-sets, cache-block-size, cache-line-size, i-cache-*, d-cache-*, tlb-*, cache-unified, tlb-split, power-isa-version, power-isa-*, mmu-type, cache-op-block-size, reservation-granule-size | phandle, u32, string or empty | The CPU node’s cache and TLB properties: sizes and counts are u32, next-level-cache a phandle, cache-unified, tlb-split and the power-isa-* category flags are empty. |
current-speed, reg-shift | u32 | Serial devices: the speed in bits per second, and the byte spacing of the registers (an offset is shifted left by it; default 0). |
local-mac-address, mac-address, max-frame-size, max-speed, address-bits, phy-handle, phy-connection-type | bytes, u32, phandle, string | Network devices: the assigned and last used MAC address (shown as bytes), the largest frame, the fastest speed in Mbit/s, the width of an address (default 48), the PHY’s node and how it is joined to the device. |
label | string | A description of the device for people. |
Memory properties
From the Specification’s chapter 3 (raw text read). /memory takes device_type = "memory", reg,
the optional initial-mapped-area and hotpluggable (empty: a hint that the memory may be removed later).
A child of /reserved-memory has either reg (a static region) or size (a dynamic one, with optional
alignment and alloc-ranges); if both are present, reg wins. size and alignment take as many
cells as the parent’s #size-cells; alloc-ranges is (address, length) pairs like reg. compatible may hold
"shared-dma-pool" (a shared pool of DMA buffers) or a vendor string. no-map (empty) forbids a virtual mapping of the region,
reusable (empty) lets the OS use it while the owning driver can reclaim it; the two exclude each other. The Specification’s Linux note adds
linux,cma-default and linux,dma-default (empty). A device points at such a region with memory-region
(phandle and specifier pairs) and memory-region-names (one string for each). In /chosen, bootsource is a string: the
full path of the device the BootROM loaded the first stage from; and when stdin-path is absent, stdout-path is taken as the input device too.
Nexus nodes
A nexus node has a #<specifier>-cells (u32; the specifier is gpio, clock, reset and so on) and may
have <specifier>-map (rows of child specifier, parent phandle, parent specifier; the child specifier is as long as this node’s
#<specifier>-cells, the parent specifier as long as the parent’s), <specifier>-map-mask (ANDed with the child specifier before the lookup; all
bits set when absent) and <specifier>-map-pass-thru (matching bits of the child specifier are copied to the parent specifier; none set when absent).
The viewer shows #…-cells as a u32 and the -map-mask and -map-pass-thru values as cells; a -map is shown with the
side-by-side readings, not split into rows.
Names, paths and values
Specification chapter 2 (raw text). A node name is node-name@unit-address; the node name is 1 to 31 characters from
0-9 a-z A-Z , . _ + -, starts with a letter and should describe the class of device; the unit address uses the same characters and must match the
first address of reg, and is left out when there is no reg. A node name without a unit address must differ from every property name at the same
level. The root has no name. A path is the node names from the root joined with / (/cpus/cpu@1); an ambiguous path has undefined behaviour.
A property name is 1 to 31 characters from 0-9 a-z A-Z , . _ + ? # -; non-standard names should carry a unique prefix of the defining organisation
(fsl,, ibm,, linux,). The viewer does not check these name rules.
Overlay properties
Inside an overlay, target (a phandle) and target-path (a string), the properties of __fixups__
and __local_fixups__ and the paths in __symbols__ have their own types. They are described on the
overlays page and come from the dtc project, not from the Specification.
Properties of the common bindings
The Specification leaves the properties of devices to bindings. The viewer carries a small table (explorer/formats/dtb/bindings.js) of the best-known ones, each with the
binding file it was read from (raw text of the Linux kernel tree, Documentation/devicetree/bindings/…, or of the dt-schema repository, dtschema/schemas/…,
which holds the common schemas); the Binding column of the Properties and Nodes tables and the note of a property name that file. The type is the one the schema gives; the
meanings are in our words. The table covers:
| Binding file | Properties |
|---|---|
dt-schema clock/clock.yaml | #clock-cells, clocks, clock-names, clock-output-names, clock-indices, clock-ranges, assigned-clocks, assigned-clock-parents, assigned-clock-rates, protected-clocks (the Linux file clock/clock-bindings.txt only says the schema moved there) |
dt-schema gpio/gpio.yaml, gpio/gpio-consumer.yaml | #gpio-cells, gpio-controller, gpio-line-names, ngpios, gpio-reserved-ranges, gpio-ranges, gpios and every name ending in -gpios or -gpio (the schema’s pattern, which excludes names ending in ,nr-gpios) |
dt-schema pinctrl/pinctrl-consumer.yaml | pinctrl-0, pinctrl-1 and so on (phandles), pinctrl-names |
dt-schema reset/reset.yaml | #reset-cells, resets, reset-names |
dt-schema interrupts.yaml, interrupt-controller.yaml | interrupt-names, wakeup-parent (the other interrupt properties are in the Specification) |
Linux regulator/regulator.yaml | regulator-name, regulator-min-microvolt, regulator-max-microvolt, regulator-min-microamp, regulator-max-microamp, regulator-always-on, regulator-boot-on, regulator-allow-bypass, regulator-allow-set-load, regulator-ramp-delay, regulator-enable-ramp-delay, regulator-initial-mode, regulator-coupled-with, and every *-supply (a phandle) |
Linux serial/serial.yaml | uart-has-rtscts, and in a serial@… node rx-tx-swap, cts-rts-swap, rx-threshold, tx-threshold |
dt-schema i2c/i2c-controller.yaml | i2c-scl-rising-time-ns, i2c-scl-falling-time-ns, i2c-sda-falling-time-ns, and in an i2c node multi-master, single-master, scl-gpios, sda-gpios |
Linux spi/spi-controller.yaml | in a spi node: cs-gpios, num-cs, spi-slave |
Linux mmc/mmc-controller-common.yaml | mmc-pwrseq, and in an mmc@… node bus-width, non-removable, broken-cd, cd-gpios |
Linux usb/usb.yaml, usb/usb-hcd.yaml | in a usb@… node: phys, phy-names, usb-phy, maximum-speed, tpl-support (the schema gives phys, phy-names and maximum-speed no type: their values keep the readings) |
Linux net/ethernet-controller.yaml | in an ethernet node: phy-mode, rx-fifo-depth, tx-fifo-depth, managed (phy-handle, phy-connection-type, local-mac-address, mac-address and max-speed are in the Specification’s list) |
Linux thermal/thermal-zones.yaml, thermal/thermal-sensor.yaml | #thermal-sensor-cells, and in a zone under /thermal-zones: thermal-sensors, polling-delay |
Properties that other kinds of node use for other things (bus-width on a display, phy-mode on a USB port) are labelled only in the kind of node the schema is about, told by the
node name its $nodename pattern allows: an MMC controller written as mmcnr@… is not recognised. A list of phandles and specifiers (clocks, gpios) is split
using the #…-cells of the provider node each phandle names; when the provider is not found, has no such property or the list is cut short, the rest is shown as plain cells, with a note. The
Nodes table names the binding of the node types /cpus, /chosen, /memory nodes, interrupt controllers, I2C, SPI, MMC, serial, USB and Ethernet controllers and PHYs,
and /thermal-zones, by node name. What a binding says about a particular compatible string (a vendor’s own properties) is not looked up: those properties are listed under
Not described in the viewer. Aliases (/aliases) and the /cpus node’s children are described by the Specification above, not by a binding file in the Linux tree.
Any other name
A property whose name is in neither this table nor the table of bindings above has no type that the file or the Specification gives. The viewer does not decide:
it shows the bytes with three readings side by side, as a string list (when the value ends in a zero byte), as 32-bit cells
(when the length is a multiple of 4) and as hexadecimal bytes. The options bar can instead show every such property in one
reading, chosen by the user. Vendor and device properties (dmas, power-domains, reg-names, anything with a vendor
prefix such as brcm,) belong to bindings that are not in the table and are shown this way.