IMX6ULL & IMX6SOLO, use internal ENET clock (no oscillator)

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

IMX6ULL & IMX6SOLO, use internal ENET clock (no oscillator)

1,435 Views
guillaume_costa
Contributor I

Hi everyone,

I have a custom hardware with i.MX6 Solo CPU and one with IMX6ULL CPU. I would like to use the internal ENET clock and connect it to a LAN8740 pin clock (50 Mhz) (without oscillator). I have already read that it was possible by using the general purpose register and setting the ENET1_CLK_SEL clock to 0. (In the IMX6ULRM.pdf reference manual). But technically I don't know how to set this configuration.

My question is : where this configuration need to be made in the device tree ? Can you give me an example of configuration (dtsi,dts) where the setting is made.

Any help would be appreciated.

Best Regards,

Labels (2)
0 Kudos
Reply
3 Replies

1,430 Views
igorpadykov
NXP Employee
NXP Employee

Hi guillaume_costa

 

one can look at enet clock configuration in uboot function setup_fec()

https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx6ullevk/mx6ullevk.c?h=im...

 

Best regards
igor

0 Kudos
Reply

1,401 Views
guillaume_costa
Contributor I

Hi,

Thank you, it's okay with the u-boot part, but i'm still figthing with the kernel part.

I still can't use ifconfig to set an IP address.

I have the following logs during the Kernel start :

" 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

SIOCSIFFLAGS: No such device"

 

Do you have any idea, device tree configuration ? Kernel option ? I already tried a lot of options...

Best regards
Guillaume

0 Kudos
Reply

983 Views
filip_kubicz
Contributor II

Hi! Were you able to find the solution for Linux kernel?

0 Kudos
Reply