dm: core: implement phandle ofnode_options helper
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 10 Nov 2024 11:50:24 +0000 (12:50 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2024 19:00:41 +0000 (13:00 -0600)
commitcab275c446d3a332890b2751e50636ecf38c1098
tree8a6286e07d60ca7e86b8352f17eb557cabe75a56
parent2c19bd15ea7a8e4c3b101fc34b6969719ae4a586
dm: core: implement phandle ofnode_options helper

Implement ofnode_options phandle helper to get an ofnode from a phandle
option in /options/u-boot.

This helper can be useful since new DT yaml usually require to link a
phandle of a node instead of referencing it by name or other indirect
way.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h