A DeviceTree file just gave away the Raspberry Pi Zero 3W's secrets
Raspberry Pi didn't issue a press release for the Pi Zero 3W — it published a DeviceTree file, and that was enough. As Hackaday's Arya Voronova points out, the file describes the board's hardware in enough detail to confirm the BCM2711 (the Pi 4's CPU), PCIe support, an onboard power button, an extra power LED, and an eMMC option. It's a tidy reminder that in the ARM world, the hardware's own description is often the first — and most candid — spec sheet you'll get.
A DeviceTree file is, at heart, a data structure that tells the kernel what hardware exists. It names the CPU, the memory layout, which buses are present, and the peripherals hanging off them, along with the drivers that should claim each. For many boards it's the difference between a modern Linux kernel booting cleanly and not booting at all.
To understand why device trees exist, it helps to know what they replaced. x86 PCs have spent decades self-describing: ACPI tables and PCI enumeration let an OS discover hardware by asking the machine. ARM systems-on-chip have no such mechanism — an SoC's peripherals sit at fixed memory addresses and can't be interrogated. For years the Linux kernel handled this with "board files," hardcoded C describing every board, and the result was a maintenance nightmare of hundreds of near-duplicate files bloating the kernel. The device tree moves that description out of the kernel into a separate blob the bootloader hands over, so the same kernel image can support thousands of boards.
The format itself has a modest vocabulary. Source lives in .dts files (with .dtsi for shared includes), compiled by the dtc tool into a binary .dtb blob. The result is a tree of nodes — CPUs, memory, buses, devices — each carrying properties like compatible, reg, and interrupts. The compatible string is the load-bearing part: it's how the kernel matches a node to a driver, a tiny handshake between a board's description and the code that knows how to drive it.
Here's the part I find genuinely clever: a device tree is essentially a machine-readable teardown. Because the Linux kernel is GPL-licensed and boards must ship with the trees that boot them, hardware vendors end up publishing precise descriptions of their silicon whether they want to or not. That's why the Pi Zero 3W's features leaked through a tree rather than a datasheet — the description is mandatory, public, and granular. Reading a tree "between the lines" is a real reverse-engineering skill, and it's a refreshing inversion of the usual secrecy around hardware specs.
The format has another trick worth knowing: overlays. A .dtbo fragment can be layered onto a base tree at boot, adding or reconfiguring nodes on the fly. This is the mechanism behind Raspberry Pi's HAT ecosystem — the dtoverlay= lines in config.txt that enable a display, an audio board, or a sensor. It's what turns a fixed SoC description into something extensible, and a big part of why the Pi has stayed so friendly to tinkerers.
Device trees have also quietly outgrown ARM. RISC-V adopted the same mechanism, and it now shows up across phones, routers, ARM laptops, and the single-board computers on makers' desks. A format born to solve one architecture's pain has become a general-purpose way to describe hardware, which says something about how well the design fit the problem.
For a hacker, the practical payoff is concrete. Find a neglected single-board computer and a device tree is often the only thing standing between it and a modern OS. Write an overlay and you can enable hardware the vendor never bothered to expose. None of it requires a datasheet; the description is already there, waiting to be read.
The Pi Zero 3W "leak" is really just the system working as intended. The hardware description that makes Linux boot is the same document that told us what the board is — and that openness is quietly one of the most underrated things about the ARM-and-Linux world.
For the format itself, the DeviceTree specification is the canonical reference, and the kernel's own devicetree usage-model documentation explains the design philosophy behind it. Raspberry Pi's config.txt documentation covers overlays in practice, and the original write-up that started all this is Hackaday's DeviceTree For Hackers: Intro.
Comments
In my day you learned a board's specs from the silkscreen, not a text file. Now a leaked DeviceTree entry counts as a press release. Common sense is dead.
Leave a Comment