summaryrefslogtreecommitdiff
path: root/tools/dtoc/test
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-01-11 16:10:18 -0700
committerSimon Glass <[email protected]>2023-01-18 14:55:41 -0700
commit8f5afe21aed8b8ed4d75678a4e8972e7d8a23a6b (patch)
treea28c83d09df5ad37e1cbcddb65daa21dbada467c /tools/dtoc/test
parentc1157860c5e9ca45e41859e013ed83919e7397f0 (diff)
dtoc: Add a way to read a phandle with params
Add a function to read a phandle and associated name and offset. This is useful for binman. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/dtoc/test')
-rw-r--r--tools/dtoc/test/dtoc_test_phandle.dts1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/dtoc/test/dtoc_test_phandle.dts b/tools/dtoc/test/dtoc_test_phandle.dts
index a71acffc698..d9aa433503d 100644
--- a/tools/dtoc/test/dtoc_test_phandle.dts
+++ b/tools/dtoc/test/dtoc_test_phandle.dts
@@ -32,6 +32,7 @@
u-boot,dm-pre-reloc;
compatible = "source";
clocks = <&phandle &phandle_1 11 &phandle_2 12 13 &phandle>;
+ phandle-name-offset = <&phandle_2>, "fred", <123>;
};
phandle-source2 {