Hi Chenyin,
I already found the phy addr is 3, so after change reg value to <3>, phy attached to pfe2.
root@s32g274ardb2:~# ifconfig pfe2
pfe2 Link encap:Ethernet HWaddr 00:04:9F:BE:EF:02
inet addr:192.168.33.9 Bcast:192.168.33.255 Mask:255.255.255.0
inet6 addr: fe80::204:9fff:febe:ef02/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:6681 (6.5 KiB)
Memory:46000000-46ffffff
And the link was up (below is the result of "ethtool pfe2")
ethtool pfe2
Settings for pfe2:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
master-slave cfg: preferred slave
master-slave status: slave
Port: Twisted Pair
PHYAD: 3
Transceiver: external
MDI-X: Unknown
Link detected: yes
But I still have problem.
When I try to run ping command, there is Destination Host Unreachable problem.
From 192.168.33.9 icmp_seq=22 Destination Host Unreachable
From 192.168.33.9 icmp_seq=23 Destination Host Unreachable
From 192.168.33.9 icmp_seq=24 Destination Host Unreachable
When I check the RGMII line, the clock was 125MHz (because the link connected with 1Gbps).
But all other lines (TXC, Data line) are all '0'.
What do you think the problem?
Thanks,
Harry