IMX6SX FEC1 configuration for Linux

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

IMX6SX FEC1 configuration for Linux

1,078 Views
hengyewlim
Contributor III

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

Labels (1)
2 Replies

619 Views
hengyewlim
Contributor III

I managed to get it working by modifying mach-imx6sx.c in arch/arm/mach-imx.

619 Views
Carlos_Musich
NXP Employee
NXP Employee

Thank you for sharing your comments Heng.

Regards,

Carlos

0 Kudos