dtoc: Adjust Node to record its parent
authorSimon Glass <sjg@chromium.org>
Tue, 29 Aug 2017 20:15:47 +0000 (14:15 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Sep 2017 11:24:39 +0000 (05:24 -0600)
commit979ab02473e578b81ad8ef7c3a844b789b48c40d
tree39211826a1100083a9d5a1454f84811defc80128
parent93c94b889b3aa7e21e0f90f0c5a6dc7034b371aa
dtoc: Adjust Node to record its parent

We need to be able to search back up the tree for #address-cells and
 #size-cells. Record the parent of each node to make this easier.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
tools/dtoc/fdt.py