dm: core: Add a function to find any device from device tree