dtree is a library that provides an API to access /proc/device-tree from userspace in embedded Linux.