I have a custom board where I am using a single Ethernet connection on ENET1 (fec1 in Linux). I am able to ping and transfer a file using TFTP in Uboot, but I am unable to get the link up in Linux. I have duplicate the iomux settings from Uboot to the dts file.
I have 2 questions:
1. How do I configure the IOMUX GPR1 register through the fec driver? I need to set bit 13=[1] since I am using an external crystal for TX_CLK.
2. Do I need to configure the PHY? I am using a Micrel PHY similar to iMX6UL EVK and need to write to PHY reg 0x1f for it to work in Uboot.
Log from linux:
fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.24.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
I managed to get it working by modifying mach-imx6sx.c in arch/arm/mach-imx.
Thank you for sharing your comments Heng.
Regards,
Carlos