summaryrefslogtreecommitdiff
path: root/tools/dtoc/dtoc_test_phandle.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-06 10:27:31 -0600
committerSimon Glass <sjg@chromium.org>2018-07-09 09:11:00 -0600
commit760b7170c5e44c771397eaf57b7197b621373809 (patch)
treee2d18563610f0059aab03a3c63cceccf468c2407 /tools/dtoc/dtoc_test_phandle.dts
parentb9066ffc136afd2e46e8d033c4edce98f5557afc (diff)
downloadu-boot-760b7170c5e44c771397eaf57b7197b621373809.tar.gz
dtoc: Fix properties with a single zero-arg phandle
At present a property with a single phandle looks like an integer value to dtoc. Correct this by adjusting it in the phandle-processing code. Add a test for this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/dtoc_test_phandle.dts')
-rw-r--r--tools/dtoc/dtoc_test_phandle.dts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/dtoc/dtoc_test_phandle.dts b/tools/dtoc/dtoc_test_phandle.dts
index 91dfec5c63..a71acffc69 100644
--- a/tools/dtoc/dtoc_test_phandle.dts
+++ b/tools/dtoc/dtoc_test_phandle.dts
@@ -33,4 +33,10 @@
compatible = "source";
clocks = <&phandle &phandle_1 11 &phandle_2 12 13 &phandle>;
};
+
+ phandle-source2 {
+ u-boot,dm-pre-reloc;
+ compatible = "source";
+ clocks = <&phandle>;
+ };
};