dm: core: Allow adding ofnode subnodes
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:02 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 20:07:58 +0000 (16:07 -0400)
commitffe90392497898ccd8000e695901853e192a9007
tree0331cda0c368be1cf676f0ea4e8c99e28125b8d0
parent5ecba3ba40cebd5e4340f6fd422683bde773689c
dm: core: Allow adding ofnode subnodes

Add this feature to the ofnode interface, supporting both livetree and
flattree. If the node exists it is returned, along with a -EEXIST error.
Update the functions it calls to handle this too.

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