fdt: Add function to get a config string from device tree