Skip to content

Commit 86b5ebb

Browse files
bentheredonethatzeddii
authored andcommitted
lopper: gen_domain_dts: zephyr: consolidate mailbox setup
Do mailbox prune and modification xlnx_remove_unsupported_nodes only Signed-off-by: Ben Levinsky <[email protected]>
1 parent c0dcedc commit 86b5ebb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lopper/assists/gen_domain_dts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,6 @@ def xlnx_generate_zephyr_domain_dts_arm(tgt_node, sdt, options, machine):
510510
sdt.tree.delete(node)
511511

512512
if node.propval("compatible") != ['']:
513-
if node.propval("compatible") == ['xlnx,versal-ipi-dest-mailbox']:
514-
node.name = f"child@{hex(node.propval('reg')[1])[2:]}"
515513
if node.propval('xlnx,ip-name') != ['']:
516514
val = node.propval('xlnx,ip-name', list)[0]
517515
if "r52" in machine and (val == "psx_rcpu_gic" or val == "rcpu_gic"):
@@ -625,6 +623,7 @@ def xlnx_remove_unsupported_nodes(tgt_node, sdt):
625623
node["compatible"].value = ["xlnx,mbox-versal-ipi-mailbox"]
626624
elif "xlnx,versal-ipi-dest-mailbox" in node["compatible"].value:
627625
node["compatible"].value = ["xlnx,mbox-versal-ipi-dest-mailbox"]
626+
node.name = f"child@{hex(node.propval('reg')[1])[2:]}"
628627
# PS-IIC
629628
if "cdns,i2c-r1p14" in node["compatible"].value:
630629
node["compatible"].value = ["cdns,i2c"]

0 commit comments

Comments
 (0)