Convert device tree