AnsweredAssumed Answered

Ethernet not working in imx6ull Linux 4.14.98_ga_2.0.0 release

Question asked by Pankaj Joshi on Sep 24, 2019
Latest reply on Sep 25, 2019 by Pankaj Joshi

Hi ,

I have enabled ethernet in my custon imx6ull based board using 4.9.11 imx linux kernel and the ethernet was working fine.  Below are the dtb changes

 


&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <&ethphy0>;
status = "okay";
//phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
//phy-reset-duration = <1>;

mdio {
#address-cells = <1>;
#size-cells = <0>;

ethphy0: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
clocks = <&clks IMX6UL_CLK_ENET_REF>;
clocknames = "rmii-ref";
};
};
};

 


pinctrl_enet1: enet1grp {
fsl,pins = <
MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x120b0
MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x120b0
MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x120b0
MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x120b0
MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x120b0
MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x120b0
MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x120b0
MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14 0x120b0
MX6UL_PAD_ENET2_RX_DATA0__ENET1_MDIO 0x120b0
MX6UL_PAD_ENET2_RX_DATA1__ENET1_MDC 0x120b0
MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15 0x120b0
>;
};

 

But now when i port these changes to imx 4.14.98 kernel, i get error in probing like below:

 

fec 2188000.ethernet: fec clock (0) too fast to get right mii speed
fec: probe of 2188000.ethernet failed with error -22

 

Please help. igorpadykov Kunal Kotecha

 

Thanks,

Pankaj Joshi

Outcomes