Ethernet optical port not transmitting packets

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Ethernet optical port not transmitting packets

534件の閲覧回数
nagurvalisayyad
Contributor I

Hi,

    We are using 88E1512 Ethernet PHY in our custom LS1046A board. The Ethernet PHY is used in RGMII(processor side) to copper/fiber/SGMII(media side) auto detect mode. We are having copper interface on MDI lines and optical interface on SGMII lines. The copper interface is working properly, but we are having issue with the optical interface. With the optical interface, we could able to receive the data in the processor, but the processor is not transmitting any data. This is verified with the ifconfig fm1-mac3 command. The number of packets and the bytes received is showing same as packets and bytes sent from the PC/analyzer.

To further debug, we have fixed the rate to 1G in PC/analyzer and in processor using the command "ethtool -s fm1-mac3 autoneg off speed 1000 duplex full", still the same behaviour.

The same behaviour with the fm1-mac4 port also.

Could you please help us in resolving the issue.

Thanks--

Nagurvali Sayyad.

0 件の賞賛
返信
3 返答(返信)

513件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

fm1-mac3/fm1-mac4 are RGMII port, should be connected to 88E1512 Ethernet PHY.

1. Please ask the PHY manufacture to provide PHY driver for Linux Kernel.

2. In Linux dts file arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts, please do the following modification.

&fman0 {
ethernet@e4000 {
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii-id";
};

ethernet@e6000 {
phy-handle = <&rgmii_phy2>;
phy-connection-type = "rgmii-id";
};

 

...


mdio@fc000 {
rgmii_phy1: ethernet-phy@1 {
reg = <0x1>;//please modify the PHY address with the real PHY address on your custom board.
};

rgmii_phy2: ethernet-phy@2 {
reg = <0x2>;//please modify the PHY address with the real PHY address on your custom board.
};

 

0 件の賞賛
返信

498件の閲覧回数
nagurvalisayyad
Contributor I

Hi Yipingwang,

      Thanks for the reply. Already our dts file is having the changes suggested by you. Please find the below info.

ethernet@e4000 {
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii-rxid";
phy-mode = "rgmii-rxid";
fixed-link {                     
speed = <1000>;                     
full-duplex;                 
};
};
 
ethernet@e6000 {
phy-handle = <&rgmii_phy2>;
phy-connection-type = "rgmii-rxid";
phy-mode = "rgmii-rxid";
fixed-link {                   
speed = <1000>;                     
full-duplex;                 
};
 
};
 
mdio@fc000 {
rgmii_phy1: ethernet-phy@1 {
compatible = "marvell,88E1510";
phy-mode = "rgmii-id";
reg = <0x1>;
};
 
rgmii_phy2: ethernet-phy@0 {
phy-mode = "rgmii-rxid";
reg = <0x0>;
};
 
The electrical ports works fine but issue is with the optical port only. In optical port, we could able to receive the data, but transmission is not working.
 
Please help us in resolving the issue.
 
Thanks--
Nagurvali Sayyad.
0 件の賞賛
返信

476件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

For the port integrating PHY, please don't use "fixed-link".

Please use the following dts definition.

ethernet@e4000 {
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii-id";
};

ethernet@e6000 {
phy-handle = <&rgmii_phy2>;
phy-connection-type = "rgmii-id";
};

0 件の賞賛
返信