AnsweredAssumed Answered

Not able to use eth0 interface with iMX6ULL & LAN8710 PHY

Question asked by Biju Nair on Oct 18, 2018
Latest reply on Oct 30, 2018 by Mingyang Liu

Hi,

 

We have designed a new board based on iMX6ULL and use LAN8710 as PHY. The following is my .dts file. We will be using RMII mode here. We are using all the lines here, except one change. We are NOT using RX_ER line in the design. I see that this is not mandatory for RMII mode. Can some of the experts clarify this ?

 

Regards, Biju

 

 

/*        DTS File */

 

&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <&ethphy0>;
local-mac-address = [00 04 9F 01 1B B9];
phy-reset-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
phy-reset-duration = <1>;
status = "okay";
};

&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <&ethphy1>;
status = "okay";

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

ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};

ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};


&iomuxc {
imx6ul-ddr3-arm2 {

pinctrl_enet1: enet1grp {
fsl,pins = <
MX6UL_PAD_LCD_DATA14__GPIO3_IO19 0x1b0b0

MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0x1b0b0
MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0

MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
>;
};

Outcomes