Android IMX8MP FEC Ethernet - DP83867 PHY - STMMAC failed to reset dma

cancel
Showing results for 
Search instead for 
Did you mean: 

Android IMX8MP FEC Ethernet - DP83867 PHY - STMMAC failed to reset dma

162 Views
VeeraH
Contributor I

Hi,

We have DP83867 connected over fec, added the following device tree configuration.

&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
//phy-supply = <&dp83867_2v5>;
phy-handle = <&dp83867_0>;
fsl,magic-packet;
status = "okay";

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

dp83867_0: ethernet-phy@1 {
/* RGMII-1 */
compatible = "ethernet-phy-id2000.a231";

reg = <1>;

interrupt-parent = <&gpio4>;
interrupts = IRQ_TYPE_EDGE_FALLING>;
reset-gpio = <&gpio4 4 GPIO_ACTIVE_LOW>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;

ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
};
};
};

Enabled the CONFIG_DP83867_PHY in config, Ethernet phy device got detected and eth0 interface got created.
When i try to make eth0 up, getting the following error.

# ifconfig eth0 192.168.1.23 up
[ 870.796157][ T2016] imx-dwmac 30bf0000.ethernet eth0: PHY [stmmac-1:00] driver [TI DP83867] (irq=203)
[ 871.020393][ T386] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400000 fc=4000000 cc=32 chg=a
[ 871.816341][ T2016] imx-dwmac 30bf0000.ethernet: Failed to reset the dma
[ 871.823083][ T2016] imx-dwmac 30bf0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 871.832498][ T2016] imx-dwmac 30bf0000.ethernet eth0: stmmac_open: Hw setup failed
ifconfig: ioctl 8914: Connection timed out

Please share your inputs

Thanks

Veera.H

Tags (1)
0 Kudos
1 Reply

145 Views
Dhruvit
NXP Employee
NXP Employee
Hi,
I have shared additional details over email.

Best Regards,
Dhruvit.
0 Kudos