dtoc: Fix properties with a single zero-arg phandle
[oweals/u-boot.git] / tools / dtoc / test_dtoc.py
index 20fea522c4fdbe89f85fd07cf9bb4f56e095a336..11cac3fc7afa1388faba2dfe5648558dc2aa4f5e 100644 (file)
@@ -323,6 +323,16 @@ U_BOOT_DEVICE(phandle_source) = {
 \t.platdata_size\t= sizeof(dtv_phandle_source),
 };
 
+static struct dtd_source dtv_phandle_source2 = {
+\t.clocks\t\t\t= {
+\t\t\t{&dtv_phandle_target, {}},},
+};
+U_BOOT_DEVICE(phandle_source2) = {
+\t.name\t\t= "source",
+\t.platdata\t= &dtv_phandle_source2,
+\t.platdata_size\t= sizeof(dtv_phandle_source2),
+};
+
 ''', data)
 
     def test_aliases(self):