Part Number: DP83825I
Tool/software:
Hi, I configured my device tree to look like this, and I'm using the dp83825I phy chip, but I'm getting this error
net eth0: could not connect to phy /soc@1c00000/mdio@224000/ethernet-phy@0
&mdio {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;
bus_freq = <2200000>;
status = "okay";
phy: ethernet-phy@0 {
compatible = "ti,dp83822";
reg = <0x0>; /* PHY address */
interrupt-parent = <&gpio>;
interrupts = <127 IRQ_TYPE_LEVEL_LOW>;
};
};
ð0 {
pinctrl-names = "default";
pinctrl-0 = <&rmii_pins>;
ti,davinci-rmii-en = /bits/ 8 <1>;
phy-mode = "rmii";
phy-handle = <&phy>;
status = "okay";
};
&pmx_core {
status = "okay";
rmii_pins: pinmux_rmii_pins {
pinctrl-single,bits = <
/*
* RMII_RXER, RMII_RXD_0, RMII_RXD_1
* RMII_TXEN, RMII_TXD_0, RMII_TXD_1
*/
0x38 0x88888800 0xffffff00
/*
* RMII_CRS, RMII_50MHZ_CLK
*/
0x3c 0x00000080 0x000000ff
>;
};
mdio_pins: pinmux_mdio_pins {
pinctrl-single,bits = <
/* MDIO_CLK, MDIO_D */
0x10 0x00000088 0x000000ff
>;
};
};
# ifconfig
lo Link encap:Local Loopback
inet addr:124.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5520 (5.3 KiB) TX bytes:5520 (5.3 KiB)
# dmesg | grep eth0
# [ 26.996342] random: crng init done
dmseg | grep mdio
-/bin/sh: dmseg: not found
# dmesg | grep mdio
<6>[ 1.496225] davinci_mdio davinci_mdio.0: davinci mdio revision 1.5, bus freq 2200000
<6>[ 1.504035] libphy: davinci_mdio.0: probed
# dmesg | grep phy
<6>[ 0.000000] Booting Linux on physical CPU 0x0
<6>[ 1.430878] libphy: Fixed MDIO Bus: probed
<6>[ 1.504035] libphy: davinci_mdio.0: probed
# dmesg

