fdt_node_depth
int fdt_node_depth(const void *fdt, int nodeoffset);
int nodedepth = fdt_node_depth(fdt, nodeoffset);