IMX8MP RGMII Connection with No PHY

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

IMX8MP RGMII Connection with No PHY

975 Views
RyanMKB
Contributor I

Hi,

I'm trying to setup an ethernet RGMII connection to a switch without using a PHY. Based on other posts I've configured my device tree as follows:

&fec {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_fec>, <&pinctrl_fec_phy>;
	phy-mode = "rgmii";
	status = "okay";

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

};

	pinctrl_fec: fecgrp {
		fsl,pins = <MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC		0x40000044>,
			   <MX8MP_IOMUXC_SAI1_RXD3__ENET1_MDIO		0x40000044>,
			   <MX8MP_IOMUXC_SAI1_RXD4__ENET1_RGMII_RD0	0x90>,
			   <MX8MP_IOMUXC_SAI1_RXD5__ENET1_RGMII_RD1	0x90>,
			   <MX8MP_IOMUXC_SAI1_RXD6__ENET1_RGMII_RD2	0x90>,
			   <MX8MP_IOMUXC_SAI1_RXD7__ENET1_RGMII_RD3	0x90>,
			   <MX8MP_IOMUXC_SAI1_TXC__ENET1_RGMII_RXC	0x90>,
			   <MX8MP_IOMUXC_SAI1_TXFS__ENET1_RGMII_RX_CTL	0x90>,
			   <MX8MP_IOMUXC_SAI1_TXD0__ENET1_RGMII_TD0	0x12>,
			   <MX8MP_IOMUXC_SAI1_TXD1__ENET1_RGMII_TD1	0x12>,
			   <MX8MP_IOMUXC_SAI1_TXD2__ENET1_RGMII_TD2	0x12>,
			   <MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3	0x12>,
			   <MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL	0x12>,
			   <MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC	0x14>;
	};

	pinctrl_fec_phy: fecphygrp {
		fsl,pins = <MX8MP_IOMUXC_SAI1_RXFS__GPIO4_IO00		0x100>,
			   <MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01		0x1c0>;
	};

 ethtool shows Link detected: yes, and ifconfig shows that an ip address was assigned. However I am unable to ping to or from the board. Can you confirm if the pins are set correctly for this use case? Thanks.

Tags (1)
0 Kudos
Reply
3 Replies

840 Views
joanxie
NXP TechSupport
NXP TechSupport

for RGMII, the current bsp supports this as default, you can refer to that

https://github.com/nxp-imx/linux-imx/blob/lf-6.12.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L39...

0 Kudos
Reply

929 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the enclosed file, which is very useful for your case

0 Kudos
Reply

906 Views
RyanMKB
Contributor I

Thank you for your reply, I have looked at that document already which helped me get this far. However, I still need further assistance in getting things working.

0 Kudos
Reply