Tool/software: Linux
Hello.
We are make TDA2Px custom board and have a Ethernet problem.
Our custom board ethernet Link is not up, but ethernet phy(DP83867) is founded.
* TDA2Px EVM phy
PHY 0x02: OUI = 0x80028, Model = 0x23, Rev = 0x01, 1000baseT, FDX
PHY 0x03: OUI = 0x80028, Model = 0x23, Rev = 0x01, 10baseT, HDX
* TDA2Px Custom Board phy
PHY 0x00: OUI = 0x80028, Model = 0x23, Rev = 0x01, 10baseT, FDX
Q1: can we change 10baseT --> 1000baseT ?
we are using 1 ethernet phy (DP83867) and ethernet phy addr is changed compare to EVM ( 2 --> 0 )
We cannot read TDA2PX EVM Board Information EEPROM, because our custom board not have eeprom.
we are not hard copying MAC address because auto Mac address generation code is exist.
modify Linux device tree setting
1. dra7.dtsi
--> delete : ethernet1 = &cpsw_emac1
--> change : mac ethernet@48484000 slave 2 --> 1
--> delete : cpsw_emac1: slave@48480300
2. dra76-evm.dts
--> delete : dual_emac at mac
--> delete: dp83867_1: ethernet-phy@3
--> change: dp83867_0: ethernet-phy@2 --> @0
* EVM link up LOG
root@dra7xx-evm:~# ifconfig eth0 down
[ 32.001203] cpsw 48484000.ethernet eth0: Link is Down
root@dra7xx-evm:~# ifconfig eth0 up
[ 37.385059] net eth0: initializing cpsw version 1.15 (0)
[ 37.446415] net eth0: phy found : id is : 0x2000a231
[ 37.455575] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@dra7xx-evm:~# [ 40.010070] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 40.017990] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
* Custom Board link up LOG
root@dra7xx-evm:~# ifconfig eth0 down
root@dra7xx-evm:~# ifconfig eth0 up
[ 31.977771] net eth0: initializing cpsw version 1.15 (0)
[ 31.983114] net eth0: initialized cpsw ale version 1.4
[ 31.988431] net eth0: ALE Table size 1024
[ 32.043712] net eth0: phy found : id is : 0x2000a231
[ 32.054588] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@dra7xx-evm:~#