Tool/software:
Dear TI
I'm bring-up the custom board which use RMII interface between MAC and PHY.
We are using external 50MHz clock for RMII. the schematic is like below
The TX works correctly, but it can not receive any packet.
(When I send ping to PC, PC receives ARP request and send ARP reply. But custom board can not receive any packet)
In PC
15:35:03.580316 ARP, Request who-has jace-IdeaCentre-Mini-01IRH8 tell 192.168.250.100, length 46
0x0000: 0001 0800 0604 0001 0425 e8b1 3dc1 c0a8 .........%..=...
0x0010: fa64 0000 0000 0000 c0a8 fa0b 0000 0000 .d..............
0x0020: 0000 0000 0000 0000 0000 0000 0000 ..............
15:35:03.580322 ARP, Reply jace-IdeaCentre-Mini-01IRH8 is-at c8:4d:44:23:fe:e0 (oui Unknown), length 28
0x0000: 0001 0800 0604 0002 c84d 4423 fee0 c0a8 .........MD#....
0x0010: fa0b 0425 e8b1 3dc1 c0a8 fa64 ...%..=....d
In custom board( '0' recevied packet )
eth0 Link encap:Ethernet HWaddr 04:25:E8:B1:3D:C1
inet addr:192.168.250.100 Bcast:192.168.250.255 Mask:255.255.255.0
inet6 addr: fe80::625:e8ff:feb1:3dc1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:547 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:23682 (23.1 KiB)
When we check RMII1_RXD0 / RMII1_RXD1 via osiloscope , there are some signals but RX packet count is '0' in linux.
Could you check below device tree for RMII and give some advice ?
main_rmii1_pins_default: main_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_INPUT, 1) /* (AE20) RGMII1_TD0.RMII1_TXD0 */ AM62X_IOPAD(0x0138, PIN_INPUT, 1) /* (AD20) RGMII1_TD1.RMII1_TXD1 */ AM62X_IOPAD(0x012c, PIN_INPUT, 1) /* (AD19) RGMII1_TX_CTL.RMII1_TX_EN */ >; } &cpsw_port1 { status = "okay"; phy-mode = "rmii"; phy-handle = <&lan8710>; }; &cpsw3g_mdio { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_mdio0_pins_default>; ... lan8710: ethernet-phy@0 { status = "okay"; reg = <0x00>; max-speed = <100>; smsc,disable-energy-detect; };
BR
Jace