Skip to content

lopper: gen_domain_dts: fix MBV32 NUM_IRQS calculation and export it in board_Kconfig.defconfigLopper kconfig changes - #794

Merged
zeddii merged 2 commits into
devicetree-org:masterfrom
dbingi-amd:lopper-kconfig-changes
Jul 29, 2026
Merged

lopper: gen_domain_dts: fix MBV32 NUM_IRQS calculation and export it in board_Kconfig.defconfigLopper kconfig changes#794
zeddii merged 2 commits into
devicetree-org:masterfrom
dbingi-amd:lopper-kconfig-changes

Conversation

@dbingi-amd

Copy link
Copy Markdown
Contributor

This PR fixes the amba_pl peripheral loop so num_intr = 32 applies only to IOModule IPs (elif val == "iomodule") instead of very non-axi_intc peripheral, preserving design-specific AXI INTC interrupt counts, and extends generate_board_kconfig_defconfig() to write NUM_IRQS into board_Kconfig.defconfig alongside ISA extensions so design specific interrupt configuration is available at the board level

The bare else branch reset num_intr to 32 for every non-axi_intc PL
peripheral, overwriting the design-specific AXI INTC count. Limit the
fixed value of 32 to iomodule IP nodes only.

Signed-off-by: Bingi Dinesh kumar <dineshkumar.bingi@amd.com>
@dbingi-amd

Copy link
Copy Markdown
Contributor Author

Hi @kedareswararao,

Please review the changes.

@kedareswararao kedareswararao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than unrelated changes rest looks fine please fix those

Comment thread lopper/assists/gen_domain_dts.py Outdated
''' Parse isa string and generate Kconfig.soc
and Kconfig.defconfig based on that
'''
and Kconfig.defconfig based on that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unrelated change has been removed

Comment thread lopper/assists/gen_domain_dts.py Outdated
soc_defconfig_file = os.path.join(sdt.outdir, "Kconfig.defconfig")
defconfig_kconfig = open(soc_defconfig_file, 'a')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unrelated change has been removed

…g.defconfig

Export design-specific NUM_IRQS from board_Kconfig.defconfig based on
the interrupt controller configuration in the SDT (AXI INTC or IOModule).
This addresses the gap where board_Kconfig.defconfig contained only ISA
extensions while NUM_IRQS remained in SoC Kconfig.defconfig.

Signed-off-by: Bingi Dinesh kumar <dineshkumar.bingi@amd.com>
@dbingi-amd
dbingi-amd force-pushed the lopper-kconfig-changes branch from e904331 to 716ca25 Compare July 28, 2026 13:39
@zeddii
zeddii merged commit d386a1f into devicetree-org:master Jul 29, 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