Preparing a device tree