Colibri iMX7 Fec2 config

hi ( i am not good at Enligsh )
i am not familar with new version linux ( my last linux is 2.6XX , no dts )

with Colibri iMX7 Dual 512MB, now i am designing a custom carriror board to support the second ethernet and use KSZ8041 PHY, and connect pins using toradex_pinout_desinger

what i wonder is what do i modify in u-boot and kernel ?
just dose it enough to modify a dts file , or modify sources

i found a sample dts in imx7sabresd board which has two network but in dts file, no phy interface is confgure ( RMII or RGMII) imx7sabresd use 1Gbit phy but KSZ8041 is 10/100baseT phy

i have no clue , any advice and hints are welcome

thanks in advance

Dear @hyoungki, thanks for reaching out.

Do you need the second Ethernet in U-Boot? Normally, you should be OK with only the primary Ethernet and then use the second Ethernet in Linux. So you should only need to support this in Linux, not U-Boot.

Supporting a second Ethernet in Linux should be very simple, specially if you are using an already supported PHY (so you don’t even need to add more drivers to the kernel): Add the appropiate iomux (pinmux) to the pins you are going to use and change them to RMII. Then create the second node with the needed parameters (you can check the original node for reference).

Here you have an example for Colibri VF61: linux-toradex.git - Linux kernel for Apalis and Colibri modules

(Note that &fec1 is the default that it is already defined in vf-colibri.dtsi, and here we also &fec0).

Hope this helps.

Kind regards,
Alvaro.

thank you i will check the file

Hi alvaro.tx

i read the example for Colibri VF61, and knew what to do
and it say " Add a device trees for the dual Ethernet Colibri Carrier Board" , but on toradex homepage ,i can’t find this Carrier Board , is the Carrier Board a customized board ?
if that board is a toradex product i just like to see the board and documents to double check my design

thank you

1 Like

Hi @hyoungki , that carrier board is just hypothetical and doesn’t exist: Is just for reference for customers to understand how they could add the second ethernet to their own device trees.

Kind regards,
Alvaro.

thanks a lot