Linux kernel Device Tree

Typically, <.dtsi> file contain definitions of SoC-level information.

The <.dts> file contains board-level information.

dt-inclusion-example.jpg

Terms

device-tree-terms.jpg

Commands

fdtget <.dtb> <node> <property>
fdtput -t <type> <.dtb> <node> <property> <value>
  • type
    • s=string, i=int, u=unsigned, x=hex
    • Optional modifier prefix: hh or b=byte, h=2 byte, l=4 byte (default)
dtc -I dts -O dtb <.dts> -o <.dtb>
dtc -I dtb -O dts <.dtb> -o <.dts>
tree /proc/device-tree