cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Scholar
Scholar
289 Views
Registered: ‎05-31-2012

Multiple phy on mdio uboot problem

Jump to solution

Hi, i succesfully run kernel with multiple phy on mdio (4 in my case), using the recommendation of the macb wiki page ethernet is working (even if i can't put all the interfaces in the same subnet don't know why)

I can't ping in uboot anyway, but i can read the mdio registers of all the phy.

What should i do?

In the device tree, the mdio is inside the ethernet controller that is connected to the mdio lines.

i haven't applied any patches, Vivado 2019.2

0 Kudos
1 Solution

Accepted Solutions
Scholar
Scholar
134 Views
Registered: ‎05-31-2012

Re: Multiple phy on mdio uboot problem

Jump to solution

after struggling i found this AR# 72620 and now i can use 1 eth port, the others don't work

View solution in original post

0 Kudos
4 Replies
Highlighted
Scholar
Scholar
207 Views
Registered: ‎05-31-2012

Re: Multiple phy on mdio uboot problem

Jump to solution

there is still need for a patch?

0 Kudos
Highlighted
Scholar
Scholar
185 Views
Registered: ‎05-31-2012

Re: Multiple phy on mdio uboot problem

Jump to solution

Actually the device tree looks like this and it works in linux but not in u boot

&gem0 {
phy-handle = <&phy0>;
mdio {
		
	#address-cells = <1>;
	#size-cells = <0>;	
		
		phy0:phy@0 {
			device_type = "ethernet-phy";
			reg = <0>;
		};
		phy1:phy@1 {
			device_type = "ethernet-phy";
			reg = <1>;
		};
		phy2:phy@2 {
			device_type = "ethernet-phy";
			reg = <2>;
		};		
		phy3:phy@3 {
			device_type = "ethernet-phy";
			reg = <3>;
		};
	};

phy0 {
        reg = <0x0>;
    };

phy1 {
        reg = <0x1>;
    };

phy2 {
        reg = <0x2>;
    };

phy3 {
        reg = <0x3>;
    };

};

&gem1 {
phy-handle = <&phy1>;

};

&gem2 {
phy-handle = <&phy2>;

};

&gem3 {
phy-handle = <&phy3>;

};

What should i do to integrate/modificate to have 1 ethernet in u boot?

0 Kudos
Scholar
Scholar
135 Views
Registered: ‎05-31-2012

Re: Multiple phy on mdio uboot problem

Jump to solution

after struggling i found this AR# 72620 and now i can use 1 eth port, the others don't work

View solution in original post

0 Kudos
Highlighted
Newbie
Newbie
44 Views
Registered: ‎03-30-2020

Re: Multiple phy on mdio uboot problem

Jump to solution

Is there a patch available to the uboot-xilinx-v2019.1 or uboot-xilinx-v2019.2 to support an Ethernet PHY connected on GEM3 (SGMII3) while MDIO for this PHY is connected with GEM1?

&gem1 {
 phy-mode = "sgmii";
 status = "okay";
 xlnx,ptp-enet-clock = <0x0>;
 phys = <&lane3 PHY_TYPE_SGMII 3 1 125000000>;
 is-internal-pcspma;
 mdio {
  phy9: phy@9 {
   reg = <0x9>;
  };
 };
};

&gem3 {
 phy-mode = "sgmii";
 status = "okay";
 xlnx,ptp-enet-clock = <0x0>;
 phys = <&lane3 PHY_TYPE_SGMII 3 1 125000000>;
 local-mac-address = [0a ff 00 00 00 99];
 phy-handle = <&phy9>;
 is-internal-pcspma;
 xlnx,has-mdio = <0x0>;
};
 
Above works from Linux Kernel but It seems uboot expects MDIO on the same GEM and the data path? 
ZynqMP> mdio list
eth0:
eth1:
9 - Generic PHY <--> ethernet@ff0e0000
ZynqMP>
 
I appreciate a response for this problem.
0 Kudos