I am using an i.MX9352 processor with an external LAN8720A PHY in RMII mode. The MAC provides the PHY clock. The EQOS node configuration is as follows:
&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>, <&pinctrl_eth_reset>;
phy-reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
phy-reset-duration = <200>;
phy-mode = "rmii";
phy-handle = <&eqosphy>;
assigned-clock-rates = <100000000>, <50000000>;
status = "okay";
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <2500000>;
eqosphy: ethernet-phy@0 {
reg = <0>;
compatible = "ethernet-phy-id0007.c0f0", "ethernet-phy-ieee802.3-c22";
smsc,disable-energy-detect;
};
};
};
I am encountering the following error messages:
[ 11.710219] imx-dwmac 428a0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 11.850774] imx-dwmac 428a0000.ethernet eth0: PHY [stmmac-1:00] driver [SMSC LAN8710/LAN8720] (irq=POLL)
[ 12.926002] imx-dwmac 428a0000.ethernet: Failed to reset the dma
[ 12.941794] imx-dwmac 428a0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 12.972873] imx-dwmac 428a0000.ethernet eth0: __stmmac_open: Hw setup failed
[ 14.256004] imx-dwmac 428a0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 14.800607] imx-dwmac 428a0000.ethernet eth0: PHY [stmmac-1:00] driver [SMSC LAN8710/LAN8720] (irq=POLL)
[ 15.966649] imx-dwmac 428a0000.ethernet: Failed to reset the dma
[ 16.006020] imx-dwmac 428a0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 16.108057] imx-dwmac 428a0000.ethernet eth0: __stmmac_open: Hw setup failed
How can I resolve this issue?
Hello,
Please refer 4.2 ENET_QOS interface configuration to check your dts setting and use the sw patch about DMA reset issue.
https://www.nxp.com/webapp/Download?colCode=AN14149
Best Regards,
Zhiming