UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor tps_hans
Visitor
777 Views
Registered: ‎04-15-2018

zynqPS dual ethernet share mdio not work

Hello everyone,

 

I used zynq7020 PS setting dual ethernet share mdio at petalinux 2017.4.

eth0 was work, but eth1 can't.

 

Below is my petalinux device tree setting.

 

/ {
chosen {
stdout-path = "serial0:115200n8";
};
aliases {
ethernet0 = &gem0;
ethernet1 = &gem1;

serial0 = &uart1;
serial1 = &uart0;
};

mdio {
compatible = "cdns,macb-mdio";
reg = <0xe000b000 0x1000>;
clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>;
clock-names = "pclk", "hclk", "tx_clk";
#address-cells = <1>;
#size-cells = <0>;
phy0:phy@0{
compatible = "marvell";
device_type = "ethernet-phy";
reg = <0>;
};
phy1:phy@3 {
compatible = "marvell";
device_type = "ethernet-phy";
reg = <3>;
};
};

};

&gem0{
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
status = "okay";
};
&gem1{
local-mac-address = [00 0a 35 00 c0 38];
phy-handle = <&phy1>;
phy-mode = "rgmii-id";
status = "okay";
};

 

Below is  console show system eth1 init fail

 

U-Boot 2017.01 (Jun 08 2018 - 13:08:05 +0800)

Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 480 MiB
MMC: Card did not respond to voltage select!
sdhci@e0101000 - probe failed: -95
Card did not respond to voltage select!

SF: Detected s25fl128s_64k with page size 256 Bytes, erase size 64 KiB, total 16 MiB
In: serial
Out: serial
Err: serial
Net: ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id
eth0: ethernet@e000b000ZYNQ GEM: e000c000, phyaddr 1, interface rgmii-id
PHY is not detected
GEM PHY init failed

 

I was change device tree phy1 reg value, but it was still not work.

 

Does anyone have idea at PS dual ethernet share mdio at petalinux 2017.4?

thanks.

0 Kudos
1 Reply
Moderator
Moderator
732 Views
Registered: ‎12-04-2016

Re: zynqPS dual ethernet share mdio not work

Hi

 

Try applying the patch from the below answer record, that enable MDIO support for a single MAC managing multiple PHYs

https://www.xilinx.com/support/answers/69132.html

 

 

Best Regards

Shabbir