Part Number: AM623
Other Parts Discussed in Thread: DP83848K
In our project we are using processor AM6231AKGGHHALW and ethernet phy DP83848KSQ/NOPB.
We are facing a etheret problme sometimes with some boards. During the problem u-boot will give this error message
In this time Reading phy register with u-boot mii command giving ffff result
And in linux
root@user1- :/sys/devices/platform/bus@f0000/8000000.ethernet/net/eth0# cat carrier
cat: read error: Invalid argument
And it is showing
Configuring network interfaces... RTNETLINK answers: No such device
Some board the issue is permanant. and in some board it is comming after 3 time reboot or 5 time reboot and it is very random nature. some time it is working.
the device tree and schematic added below (u-boot side)
main_mdio1_pins_default: main-mdio1-default-pins {
pinctrl-single,pins = <
AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24/V17) MDIO0_MDC */
AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22/U16) MDIO0_MDIO */
>;
};
rmii1_pins_default: rmii1-default-pins {
pinctrl-single,pins = <
AM62X_IOPAD(0x0130, PIN_INPUT, 1) /* (AE19) RGMII1_TXC.RMII1_CRS_DV */
AM62X_IOPAD(0x0148, PIN_INPUT, 1) /* (AD17) RGMII1_RXC.RMII1_REF_CLK */
AM62X_IOPAD(0x014c, PIN_INPUT, 1) /* (AB17) RGMII1_RD0.RMII1_RXD0 */
AM62X_IOPAD(0x0150, PIN_INPUT, 1) /* (AC17) RGMII1_RD1.RMII1_RXD1 */
AM62X_IOPAD(0x0144, PIN_INPUT, 1) /* (AE17) RGMII1_RX_CTL.RMII1_RX_ER */
AM62X_IOPAD(0x0134, PIN_OUTPUT, 1) /* (AE20) RGMII1_TD0.RMII1_TXD0 */
AM62X_IOPAD(0x0138, PIN_OUTPUT, 1) /* (AD20) RGMII1_TD1.RMII1_TXD1 */
AM62X_IOPAD(0x012c, PIN_OUTPUT, 1) /* (AD19) RGMII1_TX_CTL.RMII1_TX_EN */
AM62X_IOPAD(0x0178, PIN_OUTPUT, 7) /* (AC20) GPIO1_0 */
AM62X_IOPAD(0x01f0, PIN_OUTPUT, 5) /* (A18) EXT_REFCLK1.CLKOUT0 */
>;
};
&cpsw3g {
pinctrl-names = "default";
pinctrl-0 = <&rmii1_pins_default>;
assigned-clocks = <&k3_clks 157 20>;
assigned-clock-parents = <&k3_clks 157 21>;
};
&cpsw_port1 {
phy-mode = "rmii";
phy-handle = <&cpsw3g_phy1>;
};
&cpsw_port2 {
status = "disabled";
};
&cpsw3g_mdio {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_mdio1_pins_default>;
cpsw3g_phy0: ethernet-phy@0 {
status = "disabled";
};
cpsw3g_phy1: ethernet-phy@1 {
reg = <1>;
ti,rx-internal-delay = <0>;
ti,tx-internal-delay = <0>;
reset-gpios = <&main_gpio1 0 GPIO_ACTIVE_LOW>;
reset-assert-us = <25>;
reset-deassert-us = <60000>;
};
};
We have two type of boards development and production version and in developemnt board we didt face issue much but it frequently showing in production version of the board
Is this issue is related to following MDIO errdata




