Part Number: AM4377
The AM4377 uses the RMII interface to connect to the DP83848 and connects to the computer via a network cable (the network card is the Intel(R) PRO/1000 MT Dual Port Server Adapter).
See the accessories for hardware pin settings.
Pinmux settings:
static struct module_pin_mux rmii2_pin_mux[] = {
{OFFSET(gpmc_a0), MODE(3)| SLEWCTRL}, /* RMII2_TXEN:*/
{OFFSET(gpmc_a4), MODE(3)| SLEWCTRL}, /* RMII2_TXD1:*/
{OFFSET(gpmc_a5), MODE(3)| SLEWCTRL}, /* RMII2_TXD0:*/
{OFFSET(gpmc_a10), MODE(3) | SLEWCTRL | RXACTIVE}, /* RMII2_RXD1:*/
{OFFSET(gpmc_a11), MODE(3) | SLEWCTRL | RXACTIVE}, /* RMII2_RXD0:*/
{OFFSET(gpmc_wait0), MODE(3) | PULLUP_EN | RXACTIVE}, /* RMII2_CRS_DV:*/
{OFFSET(gpmc_wpn), MODE(3) | SLEWCTRL | RXACTIVE}, /* RMII2_RXER:*/
{OFFSET(mii1_col), MODE(1) | RXACTIVE}, /* RMII2_refclk:*/
{-1},mastermodule_c.pdf
};
At initialization, phy is only configured for auto-negotiation enable, others are default values. The mac of the 4377 is configured in RMII mode, and the clock is configured as "chip pin". After the mode is started, the link and auto-negotiation are normal and can be pinged.
[1] However, after the network cable is unplugged and plugged in, the sending direction is unreachable. The transmission interrupt is not increased. The tx_D0/D1 and tx_en pins are low, and the external clock is 50M ok. The current post-plugging process is to reconfigure an auto-negotiation and write Bit12 of the ctrl register, but the re-execution auto-negotiation should write bit12 or bit9 of the ctrl register?
12:AUTO-NEGOTIATION Strap, RW Auto-Negotiation Enable:
9:RESTART 0, RW/SC Restart Auto-Negotiation:
[2] When the board is connected to the computer of the windows system, the network cable is unplugged and cannot be sent. The result of replacing multiple computers is the same.However, when the board is connected to the computer of the linux system, the connection can be restored, and the two boards are directly connected, it can also be restored to normal (the board uses linux system). The difference is that the ARP packets sent by the computer received after plugging in the Internet cable are about 10 packets, but it will receive dozens of interrupts/packages when connected with Windows. I want to know if it is a hardware or software problem?
Is there a problem with the configuration of phy or mac? Which directions should I check?
Thank you!
