I am trying to enable a second Ethernet interface on a Toradex i.MX8QXP (https://www.toradex.com/computer-on-modules/colibri-arm-family/nxp-imx-8x) SOM. I have never done this before and posted to the Toradex forum for help https://community.toradex.com/t/enable-eth2-interface/19230. I haven't had much luck since and I'm posting here. I've attached my current dts file. I am using the TorizonCore OS (Yocto built embedded Linux image produced by Toradex). I am just trying to apply it as an overlay for now to test it and plan on moving it into the Yocto build later. I've used the Config Tools for i.MX tool to get the pinmux values.
Is something set incorrectly? Am I missing an entry for this device tree entry? Let me know of any additional information needed.
iMX8X
pls refer to the link as below, The default ENET2 is TJA1100
I'm not familiar with yours, but for nxp default bsp, you can refer to that, the bsp has been moved here
Looking at imx8qxp-enet2-tja1100.dtsi it looks like fec1 is being disabled. My understanding is that is the default ethernet interface. If that is the case we do not want to disable it and be able to use both ethernet interfaces.
Is my understanding correct about fec1?
The design isn't using a tja1100. It uses a LAN8710A transceiver. Would the same approach still work just changing the tja1100 specific lines, like line 37? How were the pinmux values (0x06000020) calculated?
yes, you are correct, I don't have specific dts settings for LAN8710A, should be work change the line, you can try it, for the pinmux settings you can refer to the document as below: