Skip to content

lopper: assists: gen_domain_dts: Retain xlnx,fclk node in Linux DT#787

Merged
zeddii merged 1 commit into
devicetree-org:masterfrom
arthokal:retain_fclk_node
Jul 16, 2026
Merged

lopper: assists: gen_domain_dts: Retain xlnx,fclk node in Linux DT#787
zeddii merged 1 commit into
devicetree-org:masterfrom
arthokal:retain_fclk_node

Conversation

@arthokal

Copy link
Copy Markdown
Contributor

In the static PL flow the PL description (amba_pl) is merged directly into the Linux device tree. There the fabric-clock node (compatible "xlnx,fclk", e.g. clocking0) is the only node that assigns and enables the PL reference clock. PL peripherals such as axi_gpio reference that clock via phandle but do not enable it themselves, so once "xlnx,fclk" is deleted nothing keeps the fabric clock running and Linux turns it off, causing AXI access to the PL peripheral to hang.

Drop "xlnx,fclk" from delete_pl_node_in_linux_dt so the fabric-clock node is preserved.

Example Lopper command:
LOPPER_DTC_FLAGS="-b 0 -@" ./lopper.py -O outdir -f --enhanced -i lop-a53-imux.dts system-top.dts cortexa53-linux.dts -- gen_domain_dts psu_cortexa53_0 linux_dt

In the static PL flow the PL description (amba_pl) is merged directly into
the Linux device tree. There the fabric-clock node (compatible
"xlnx,fclk", e.g. clocking0) is the only node that assigns and enables the
PL reference clock. PL peripherals such as axi_gpio reference that clock
via phandle but do not enable it themselves, so once "xlnx,fclk" is
deleted nothing keeps the fabric clock running and Linux turns it off,
causing AXI access to the PL peripheral to hang.

Drop "xlnx,fclk" from delete_pl_node_in_linux_dt so the fabric-clock node
is preserved.

Signed-off-by: Aravind Thokala <aravind.thokala@amd.com>
@arthokal

Copy link
Copy Markdown
Contributor Author

@onkarharsh ,
Please review.

@onkarharsh

Copy link
Copy Markdown
Contributor

Looks good to me.

@zeddii
zeddii merged commit 4b1ac26 into devicetree-org:master Jul 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants