aboutsummaryrefslogtreecommitdiff
path: root/tests/type-preservation.dts
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-07-27 12:30:23 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2021-10-11 16:20:53 +1100
commit37fd700685da9001643d1b1f63ad4332e1148b04 (patch)
tree0e8b8ed54420ee63007ca996392967a2a65499d6 /tests/type-preservation.dts
parente33ce1d6a8c7e54e3ad12cff33690b6da0aee1dc (diff)
downloaddtc-37fd700685da9001643d1b1f63ad4332e1148b04.zip
dtc-37fd700685da9001643d1b1f63ad4332e1148b04.tar.gz
dtc-37fd700685da9001643d1b1f63ad4332e1148b04.tar.bz2
treesource: Maintain phandle label/path on output
The dts output will just output phandle integer values, but often the necessary markers are present with path or label references. Improve the output and maintain phandle label or path references when present in dts output. Signed-off-by: Rob Herring <robh@kernel.org> Message-Id: <20210727183023.3212077-6-robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/type-preservation.dts')
-rw-r--r--tests/type-preservation.dts3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/type-preservation.dts b/tests/type-preservation.dts
index 3e380ba..921ea21 100644
--- a/tests/type-preservation.dts
+++ b/tests/type-preservation.dts
@@ -16,9 +16,12 @@
int64 = /bits/ 64 <0x200000000>;
int64-array = /bits/ 64 <0x100000000 0x00> int64_array_label_end:;
a-string-with-nulls = "foo\0bar", "baz";
+ a-phandle = <&subsub1>;
+ a-phandle-with-args = <&subsub1 0x00 0x01>, <&subsub1 0x02 0x03>;
subsub1: subsubnode {
compatible = "subsubnode1", "subsubnode";
+ phandle = <0x01>;
subsubsub1: subsubsubnode {
compatible = "subsubsubnode1", <0x1234>, valuea: valueb: "subsubsubnode";