Skip to content

Conversation

ibirnbaum
Copy link
Member

@ibirnbaum ibirnbaum commented Sep 22, 2025

Remove the 'amba-ahb-dbus-width' DT parameter and obtain the matching value for the current target SoC at run-time during the device initialization. The matching value for the current SoC is available in the GEM register space's design_cfg5 register.

  • remove 'amba-ahb-dbus-width' from the 'xlnx,gem' binding
  • remove symbolic defines of valid values for use in the DT from the GEM's header file in include/dt-bindings
  • remove specification of the default value from all gem[0..3] declarations in the Zynq-7000 and ZynqMP SoC DTs
  • remove the corresponding field from the GEM driver's device config data struct
  • remove assertion-based check of DT parameter value validity from the GEM driver
  • obtain the matching value from the design_cfg5 register in eth_xlnx_gem_set_initial_nwcfg() in the GEM driver.

@venodela
Copy link
Contributor

This pull request looks good to me.

I verified it on the ZCU102 ZynqMP board, where dma_bus_width_def was correctly read from designcfg_debug5 reg and written to the nw_cfg register. Ethernet communication also worked as expected.

@HariniKatakamX @michalsimek @ibirnbaum

michalsimek
michalsimek previously approved these changes Oct 3, 2025
This parameter no longer needs to be configured at the SoC level in
the declarations of the GEM controller instances (used to require
different values for the Zynq-7000 and the ZynqMP) as the value matching
the current target SoC is now being read at run-time from a design
configuration register.

Signed-off-by: Immo Birnbaum <[email protected]>
Remove the obsolete DT parameter "amba-ahb-dbus-width" from all GEM
controller instance declarations for both the Zynq-7000 and the
ZynqMP.

The value matching the current target SoC is now being read at
run-time from a design configuration register

Signed-off-by: Immo Birnbaum <[email protected]>
…gister

Obtain the value for the AMBA AHB bus width (32 bit/64 bit/128 bit) from
the design_cfg5 register at init-time rather than specifying it in the
respective SoC's DT.

Signed-off-by: Immo Birnbaum <[email protected]>
Added the removal of the 'amba-ahb-dbus-width' devicetree property
from the binding of the Xilinx GEM Ethernet controller driver to the
current migration guide.

Signed-off-by: Immo Birnbaum <[email protected]>
Copy link

@jhedberg jhedberg merged commit 08ece7f into zephyrproject-rtos:main Oct 21, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants