Adding 2nd Ethernet interface

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

Adding 2nd Ethernet interface

3,391 Views
Riba
Contributor I

We are trying to add 2nd Ethernet MAC interface to Toradex Verdin iMX8MP. Our custom carrier board has only one External Ethernet port (ETH_1) , and we are trying to configure 2nd ethernet controller (ETH_2). Our device-tree for fec node:

here is fec node:
/* Verdin ETH_2_RGMII */
&fec {
fsl,magic-packet;
//phy-handle = <&ethphy1>;
phy-mode = "rgmii-id";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&pinctrl_fec>;
pinctrl-1 = <&pinctrl_fec_sleep>;
phy-supply = <&reg_ext_rgmii>;

mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@Addr {
compatible = "ethernet-phy-ieee802.3-c22";
interrupt-parent = <&gpio4>;
interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
phy-is-integrated;
micrel,led-mode = <0>;
reg = <Addr>;
};
};

we are getting following error:

[ 1.965324] 002: fec 30be0000.ethernet eth0: no PHY, assuming direct connection to switch mdio_bus_id = 303085963
[ 1.965345] 002: libphy: PHY fixed-0:00 not found
[ 1.965349] 002: fec 30be0000.ethernet eth0: could not attach to PHY

};

We are using linux BSP: Linux version 5.4.129-rt61-5.4.0-devel+git.022cb949c6ec 

Has anyone seen this issue before? How have you resolved it? 

Thanks

0 Kudos
Reply
6 Replies

3,365 Views
Riba
Contributor I

Thanks JoanXie for your response. Could you kindly look at into following device-tree changes to configure 2nd Ethernet on imx8mp as a MAC to another MAC interface.

&fec {
fsl,magic-packet;
// phy-mode = "rgmii-id";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&pinctrl_fec>;
pinctrl-1 = <&pinctrl_fec_sleep>;

fixed-link {
speed = <1000>;
full-duplex;
pause;
};

mdio {
#address-cells = <1>;
#size-cells = <0>;
};
};

Any input greatly appreciated.

Thanks

 

0 Kudos
Reply

3,381 Views
joanxie
NXP TechSupport
NXP TechSupport

this is not nxp imx8mp board, I suggest that you can contact the third party company to support this, for nxp bsp, supports second ethernet port in the dts as default, maybe you can refer to that

"https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk.d...

and in the dtsi file define as below

ehernet0 = &fec;
ethernet1 = &eqos;

 

0 Kudos
Reply

3,357 Views
Riba
Contributor I

Thanks for your reply. Yes, we resolved this issue, no longer help needed.

0 Kudos
Reply

3,178 Views
Samhitha_Kashyap
Contributor III

Hello Riba,

We are facing a similar issue, can you please share the changes in the device tree, that was required to configure the second ethernet interface.

Thanks & Regards,

Samhitha

0 Kudos
Reply

3,170 Views
Riba
Contributor I

Hi Samhitha:

We modified device-tree per below, we are successfully communicating with 2nd Ethernet configured as MAC interface:

/* Verdin ETH_2_RGMII */
&fec {
fsl,magic-packet;
phy-mode = "rgmii-id";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&pinctrl_fec>;
pinctrl-1 = <&pinctrl_fec_sleep>;
//phy-supply = <&reg_module_eth2phy>;
status = "okay";

fixed-link {
speed = <1000>;
full-duplex;
pause;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
};
};

Best of luck.

0 Kudos
Reply

3,159 Views
Samhitha_Kashyap
Contributor III

Hi Riba,

Thanks for the response and sharing the device tree changes.

Best Regards,

Samhitha Kashyap

0 Kudos
Reply