[PATCH v3 0/2] dm: core: Add size operations on device tree references

chenguanqiao chenguanqiao at kuaishou.com
Mon Apr 12 08:51:10 CEST 2021


From: Chen Guanqiao <chenguanqiao at kuaishou.com>

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 v3:
- Add return error for ofnode_get_size

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 | 11 +++++++++++
 include/dm/ofnode.h   | 10 ++++++++++
 include/fdtdec.h      |  5 +++--
 test/dm/ofnode.c      | 31 +++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+), 2 deletions(-)

--
2.27.0



More information about the U-Boot mailing list