of/address: Add of_property_read_reg() helper
authorRob Herring <robh@kernel.org>
Tue, 28 Mar 2023 20:16:00 +0000 (15:16 -0500)
committerRob Herring <robh@kernel.org>
Thu, 13 Apr 2023 22:46:35 +0000 (17:46 -0500)
commitff61bacd77f258bd2ed145efb69e5449b115d4fe
tree66a4d268d0aa376f86b6fe023be2568a63319b72
parentb50c788a56964a900ebcc817c8a5ad35ddad87b6
of/address: Add of_property_read_reg() helper

Add a helper, of_property_read_reg(), to read "reg" entries untranslated
address and size. This function is intended mainly for cases with an
untranslatable "reg" address (i.e. not MMIO). There's also a few
translatable cases such as address cells containing a bus chip-select
number.

Link: https://lore.kernel.org/r/20230328-dt-address-helpers-v1-5-e2456c3e77ab@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c
drivers/of/unittest.c
include/linux/of_address.h