Skip to content
systemcoding.dev

Tag

device tree

7 posts

Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, Raspberry Pi and Debian logos.
Embedded Linux

Describe an I2C Sensor in a Device Tree Node

Add a TMP102 temperature sensor to an I2C bus in a device tree with compatible, reg and status, then check that Linux bound the driver and exposes a reading.

6 min read
Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Debian logos.
Embedded Linux

Compile and Decompile Device Trees With dtc

Use dtc to compile a .dts into a .dtb, turn a .dtb back into readable source and read the warnings it prints. The flags that matter, with exact commands.

6 min read
Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Debian logos.
Embedded LinuxGuide

The Complete Guide to Linux Device Trees

Learn the device tree language, how Linux uses it, and how to write, build, layer, validate and debug a board description from a blank file to a bound driver.

27 min read