[PATCH v2 3/3] common: Add fdt network helper functions