dm: core: Complete phandle implementation using the other FDT
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:27 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:43 +0000 (22:43 -0400)
commit5e96925ba5b934105a9c63f050b824f24a6dfb3d
treeaec2be17ce4278246bdf92af15f5eefc060628dc
parent92291652b5741647919770c29cae8a2aac56b2bf
dm: core: Complete phandle implementation using the other FDT

We need to be able to look up phandles in any FDT, not just the control
FDT. Use the 'other' FDT to test this, with a helper function which gets
this as an oftree that can then we used as needed.

Add a few more tests and some comments at the top of the file, to explain
what is going on.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/test/ut.h
test/dm/ofnode.c