How to attach Ethernet PHY other than Generic PHY

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to attach Ethernet PHY other than Generic PHY

4,309 Views
shree97
Contributor II

Hello all,

          I am trying to bring the ethernet Interface up on our custom board(i-MX6 solo)  which is based on sabresd schematics.But we are using different Ethernet PHY (LAN 8740A) from SMSC .I added the driver as built-in in the kernel.The PHY address we configured is 000.When I boot the kernel logs regarding Ethernet are as follows:

Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1)

IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

done.

Starting Dropbear SSH server: libphy: 2188000.ethernet:00 - Link is Up - 10/Half

IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

dropbear.

fec 2188000.ethernet eth0: Graceful transmit stop did not complete!

libphy: 2188000.ethernet:00 - Link is Down

The pad settings and the node for ethernet are as follows:

&fec {

    pinctrl-names = "default";

    pinctrl-0 = <&pinctrl_enet>;

    phy-mode = "mii";

    phy-reset-gpios = <&gpio7 12 0>;

    //phy-supply = <&reg_fec_supply>;

    phy-handle = <&ethphy>;

    fsl,magic-packet;

    status = "okay";

         mdio {

            #address-cells = <1>;

            #size-cells = <0>;

                       ethphy: ethernet-phy@0 {

            compatible = "smsc,lan8740";

             device_type = "ethernet-phy";

            reg = <0>;

        };

    };

pinctrl_enet: enetgrp {

            fsl,pins = <

                MX6QDL_PAD_ENET_MDIO__ENET_MDIO        0x1b0b0

                MX6QDL_PAD_ENET_MDC__ENET_MDC        0x1b0b0

                MX6QDL_PAD_RGMII_TXC__RGMII_TXC        0x1b0b0

                MX6QDL_PAD_RGMII_TD0__RGMII_TD0        0x1b0b0

                MX6QDL_PAD_RGMII_TD1__RGMII_TD1        0x1b0b0

                MX6QDL_PAD_RGMII_TD2__RGMII_TD2        0x1b0b0

                MX6QDL_PAD_RGMII_TD3__RGMII_TD3        0x1b0b0

                MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL    0x1b0b0

                MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK    0x1b0b0

                MX6QDL_PAD_RGMII_RXC__RGMII_RXC        0x1b0b0

                MX6QDL_PAD_RGMII_RD0__RGMII_RD0        0x1b0b0

                MX6QDL_PAD_RGMII_RD1__RGMII_RD1        0x1b0b0

                MX6QDL_PAD_RGMII_RD2__RGMII_RD2        0x1b0b0

                MX6QDL_PAD_RGMII_RD3__RGMII_RD3        0x1b0b0

                MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL    0x1b0b0

            >;

        };

But the Problem is that SMSC PHY is not getting attached and I am unable to bring the Ethernet up.

So if anyone have suggestions to solve this issue then Please share it

Labels (3)
0 Kudos
2 Replies

1,505 Views
igorpadykov
NXP Employee
NXP Employee

Hi shree97

please try RMII patches provided on

https://community.freescale.com/thread/313741

https://community.freescale.com/message/346089#346089

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,505 Views
shree97
Contributor II

Are these patches are applicable for 3.14.28 kernel?

0 Kudos