device_tree: Add support for aliases

For DT patching it can be useful to specify aliases instead of full
node/property paths which might be subject to change.

This changes adds the new function dt_find_node_by_alias() to retrieve
a DT node from an alias name and adds support for aliases to
dt_find_node_by_path().

BUG=b:113114217
TEST=see CL:Ib49c5e5577a0ca2a52fbb2dde2a25580397464ff
BRANCH=none

Change-Id: Ib3a24d67afc942c61470587a66e6ce6a3003b4f6
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1249703
2 files changed