[PATCH v2 32/45] dm: core: Add an ofnode function to obtain the flat tree