Currently, there is only an interface for obtaining address from node, and if you want to get the size, you need to traverse the node.
So I added the function to get the size ,and added related test case. Changes for v2: - Add a test to test/dm/ofnode.c Chen Guanqiao (2): dm: core: Add size operations on device tree references test: dm: add test item for ofnode_get_addr() and ofnode_get_size() drivers/core/ofnode.c | 9 +++++++++ include/dm/ofnode.h | 10 ++++++++++ test/dm/ofnode.c | 24 ++++++++++++++++++++++++ 3 files changed, 43 insertions(+) -- 2.25.1