RMII phy not supported on imx_4.1.15_1.2.0_ga kernel

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

RMII phy not supported on imx_4.1.15_1.2.0_ga kernel

1,198 Views
wenmingfeng
Contributor III

Hi 

I used the buildroot build freescale_imx6dl_sabresd_defconfig the kernel and uboot is used 4.1.15_1.2.0_ga.

I modified the enet to RMII pad as below

MX6_PAD_ENET_MDIO__ENET_MDIO | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_MDC__ENET_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_CRS_DV__ENET_RX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_REF_CLK__ENET_TX_CLK | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_TX_EN__ENET_TX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_RXD0__ENET_RX_DATA0 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_RXD1__ENET_RX_DATA1 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_TXD0__ENET_TX_DATA0 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_TXD1__ENET_TX_DATA1 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_GPIO_8__GPIO1_IO08 | MUX_PAD_CTRL(ENET_PAD_CTRL),
/* KSZ8863 PHY Reset */
MX6_PAD_GPIO_7__GPIO1_IO07 | MUX_PAD_CTRL(NO_PAD_CTRL),

 in uboot the mii info can detect the phy, 

=> mii info
PHY 0x01: OUI = 0x0885, Model = 0x03, Rev = 0x00, 100baseT, FDX
PHY 0x02: OUI = 0x0885, Model = 0x03, Rev = 0x00, 10baseT, HDX
PHY 0x03: OUI = 0x0885, Model = 0x03, Rev = 0x00, 100baseT, FDX

but in kernel,

buildroot login: root
# random: nonblocking pool is initialized
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

# ifconfig eth0 up
fec 2188000.ethernet eth0: no PHY, assuming direct connection to switch
libphy: PHY fixed-0:00 not found
fec 2188000.ethernet eth0: could not attach to PHY
ifconfig: SIOCSIFFLAGS: No such device
# uname -a
Linux buildroot 4.1.15 #8 SMP PREEMPT Fri Feb 10 13:29:38 PST 2017 armv7l GNU/Linux
#

In another thread I used 3.14.51_1.1.0 the kernel can detect the phy, but no ping send out.

please help,

thanks.

wenming

Labels (4)
0 Kudos
2 Replies

673 Views
igorpadykov
NXP Employee
NXP Employee

Hi wenming

seems special driver is needed, please check

imx6q use ksz8863rll switch 

http://www.microchip.com/SWLibraryWeb/producttc.aspx?product=KSZ8863%20Software%20Linux%203.3 

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

0 Kudos

673 Views
wenmingfeng
Contributor III

Hi Igor,

Thanks for response. I see there are KSZ9021/9031 in mach-imx6q.c. And ksz9021rn_phy_fixup, is it possible for me just add a fixup function to make it working?

Regards!

Wenming

0 Kudos