I am using p2041 and vsc8514 phy
in uboot i can ping successfully using fm1-gb4(rgmii) interface
but when i try in kernel ,it doesn't pings
other interfaces are working fine in uboot and kernel
I have found that phy is not getting configured in case of fm1-gb4
below log is for fm1-gb4
root@p2041rdb:~# ifconfig fm1-gb4 down
root@p2041rdb:~# ifconfig fm1-gb4 up
mdio bus Freescale PowerQUICC MII Bus
RGMII_reg22 = 0
RGMII_reg22 = 0, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x13 = 0, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x18 = 0, err = 0
RGMII_Init 0x12 = 0, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x12 = 0, err = 0
RGMII_Init 0x1f = 0
err = 0
Autonseg 0x00 = 1140
err = 0
phyaddr 5 phyid 459986
below log is for fm1-gb3
root@p2041rdb:~# ifconfig fm1-gb3 down
root@p2041rdb:~# ifconfig fm1-gb3 up
mdio bus Freescale PowerQUICC MII Bus
RGMII_reg22 = 3200
RGMII_reg22 = 3200, err = 0
RGMII_Init 0x1f = 10, err = 0
RGMII_Init 0x13 = 800f, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x18 = 2041, err = 0
RGMII_Init 0x12 = a8, err = 0
RGMII_Init 0x1f = 0
err = 0
Autonseg 0x00 = 1140
err = 0
phyaddr 4 phyid 459986
As we can see clearly fm1-gb3 interface phy registers are initialized but in case of fm1-gb4 all values are 0
what should i change in dts file or kernel to make it work
Thanks and Regards
Hello sameerarvikar,
Please check whether you have specified phy address correctly for fm1-gb4 in the dts file.
Please refer to the following example.
enet4: ethernet@e8000 {
tbi-handle = <&tbi4>;
phy-handle = <&phy_rgmii_0>;
phy-connection-type = "rgmii";
};
mdio0: mdio@e1120 {
tbi0: tbi-phy@8 {
reg = <0x8>;
device_type = "tbi-phy";
};
phy_rgmii_0: ethernet-phy@0 {
reg = <0x0>;
};
phy_rgmii_1: ethernet-phy@1 {
reg = <0x1>;
};
phy_sgmii_2: ethernet-phy@2 {
reg = <0x2>;
};
under u-boot
=> mdio list
FSL_MDIO0:
0 - Vitesse VSC8641 <--> FM1@DTSEC5
1 - Vitesse VSC8641 <--> FM1@DTSEC4
2 - Vitesse VSC8221 <--> FM1@DTSEC1
3 - Vitesse VSC8221 <--> FM1@DTSEC2
4 - Vitesse VSC8221 <--> FM1@DTSEC3
FM_TGEC_MDIO:
If your problem persists, please provide your Linux Kernel boot up log and dts file.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------