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 = <ðphy1>;
phy-mode = "rgmii-id";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&pinctrl_fec>;
pinctrl-1 = <&pinctrl_fec_sleep>;
phy-supply = <®_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
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
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
and in the dtsi file define as below
ehernet0 = &fec;
ethernet1 = &eqos;
Thanks for your reply. Yes, we resolved this issue, no longer help needed.
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
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 = <®_module_eth2phy>;
status = "okay";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
};
};
Best of luck.
Hi Riba,
Thanks for the response and sharing the device tree changes.
Best Regards,
Samhitha Kashyap