Skip to content

lopper: assists: xlnx_overlay_pl_dt: Handle "segmented" config in FPGA node creation#775

Open
arthokal wants to merge 1 commit into
devicetree-org:masterfrom
arthokal:overlay_fix_segmented_config
Open

lopper: assists: xlnx_overlay_pl_dt: Handle "segmented" config in FPGA node creation#775
arthokal wants to merge 1 commit into
devicetree-org:masterfrom
arthokal:overlay_fix_segmented_config

Conversation

@arthokal

Copy link
Copy Markdown
Contributor

Root Cause:
The "segmented" config was accepted by validate_and_parse_options() but had no branch in create_fpga_node(), so the default /amba_pl extraction path fell into the else and exited with "Invalid configuration: segmented" failing overlay generation for segmented designs

Fix:
The legacy xlnx_overlay_dt assist treated "segmented" the same as "full": it retained the firmware-name property and emitted the overlay normally. Restore that behavior by handling "segmented" alongside "full" in create_fpga_node(), so the FPGA node keeps firmware-name for all platforms.

The AFI/clocking placement in move_nodes_to_fpga() already keys off config != "external-fpga-config", so segmented is handled there without change.

Docstrings and comments are updated to list segmented among the valid configs.

…A node creation

The "segmented" config was accepted by validate_and_parse_options() but
had no branch in create_fpga_node(), so the default /amba_pl extraction path
fell into the else and exited with "Invalid configuration: segmented"
failing overlay generation for segmented designs

The legacy xlnx_overlay_dt assist treated "segmented" the same as "full":
it retained the firmware-name property and emitted the overlay normally.
Restore that behavior by handling "segmented" alongside "full" in
create_fpga_node(), so the FPGA node keeps firmware-name for all platforms.

The AFI/clocking placement in move_nodes_to_fpga() already keys off
config != "external-fpga-config", so segmented is handled there without
change.

Docstrings and comments are updated to list segmented among the valid
configs.

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

Copy link
Copy Markdown
Contributor Author

Hi @onkarharsh ,
Please review.

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.

1 participant