AnsweredAssumed Answered

i.MX6SX and network

Question asked by mc maddie on Sep 18, 2017
Latest reply on Sep 21, 2017 by mc maddie

Hi,

We have new i.MX6SX based custom HW. Everything else seems to be working ok, but I'm having hard time getting Ethernet working.

 

I'm running Linux 4.1.38 built using Yocto 2.2. We have LAN8720 PHY - chip. Linux is able to see the eth0 device and when the Ethernet link is up/down, but no data comes/goes ie. if I set static IP ping doesn't go through either way.

 

Here is the device tree how I configure here the pins and device

 

pinctrl_enet1: enet1grp {
fsl,pins = <
MX6SX_PAD_ENET1_MDC__ENET1_MDC 0x1b0d9
MX6SX_PAD_ENET1_MDIO__ENET1_MDIO 0x1b0d9
MX6SX_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x1b0d9

MX6SX_PAD_RGMII1_RD0__ENET1_RX_DATA_0 0x1b0d9
MX6SX_PAD_RGMII1_RD1__ENET1_RX_DATA_1 0x1b0d9
MX6SX_PAD_RGMII1_RXC__ENET1_RX_ER 0x1b0d9
MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x1b0d9
MX6SX_PAD_RGMII1_TD0__ENET1_TX_DATA_0 0x1b0d9
MX6SX_PAD_RGMII1_TD1__ENET1_TX_DATA_1 0x1b0d9
MX6SX_PAD_RGMII1_TX_CTL__ENET1_TX_EN 0x1b0d9
>;
};

 

&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rgmii";
phy-id = <0>;
status = "okay";
};


HW guy has measured the signals and said that they looked good so I'm assuming that pin config is 'close enough' for it to work.

 

I'm running out of ideas what could be wrong. Do I need to config driver/phy now differently since we only are using half the data lines in RGMII - bus? Wasn't able to find info about that.

Outcomes