Skip to content

drivers: ethernet: xlnx_gem: switch integrated MDIO/PHY support over to Zephyr's framework #87313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions boards/qemu/cortex_a9/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ if NETWORKING
config NET_L2_ETHERNET
default y

config MDIO
Copy link
Member

Choose a reason for hiding this comment

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

maybe add select MDIO if DT_HAS_XLNX_GEM_MDIO_ENABLED to menuconfig ETH_XLNX_GEM in drivers/ethernet/Kconfig.xlnx_gem instead. could also be a imply instead of a select

default y

config NET_TX_STACK_SIZE
default 8192

Expand Down
12 changes: 11 additions & 1 deletion boards/qemu/cortex_a9/qemu_cortex_a9.dts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@

&gem0 {
status = "okay";
phy-handle = <&gem0_phy>;
clock-frequency = <1000000000>;
mdc-divider = <XLNX_GEM_MDC_DIVIDER_224>;
local-mac-address = [00 00 00 01 02 03];
};

&gem0_mdio {
status = "okay";

gem0_phy: phy@1 {
compatible = "marvell,88e1xxx";
reg = <1>;
status = "okay";
};
};
6 changes: 1 addition & 5 deletions drivers/ethernet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ zephyr_library_sources_ifdef(CONFIG_ETH_GECKO
phy_gecko.c
)

zephyr_library_sources_ifdef(CONFIG_ETH_XLNX_GEM
eth_xlnx_gem.c
phy_xlnx_gem.c
)

zephyr_library_sources_ifdef(CONFIG_ETH_XLNX_GEM eth_xlnx_gem.c)
zephyr_library_sources_ifdef(CONFIG_ETH_DWMAC eth_dwmac.c)
zephyr_library_sources_ifdef(CONFIG_ETH_DWMAC_STM32H7X eth_dwmac_stm32h7x.c)
zephyr_library_sources_ifdef(CONFIG_ETH_DWMAC_MMU eth_dwmac_mmu.c)
Expand Down
Loading