[PATCH 15/21] dm: core: Add an ofnode function to obtain the flat tree