This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

66AK2H06: DP83867 Ethernet PHY

Part Number: 66AK2H06

Hello Team,

Our customer trying to implement interfacing of K2H(EVMK2H) and TI's DP83867.
There are Marvell's PHY on development board, but the customers wants to use TI's DP83867 in their project.
But they faced the problem, logs are below:

U-Boot 2017.01-00360-gc9e4a40-dirty (Mar 02 2018 - 18:23:22 +0300)

 
CPU: 66AK2Hx SR2.0

Model: Texas Instruments Keystone 2 Kepler/Hawking EVM
I2C:   ready
DRAM:  DDR3A Speed will be configured for 1333 Operation.
Detected SO-DIMM [SQR-SD3T-2G1333SED]
DDR3 speed 1333
DRAM: 2 GiB (includes reported below)

Clear entire DDR3 memory to enable ECC
2 GiB
NAND:  512 MiB
*** Warning - bad CRC, using default environment

Net:   Register TI DP83867 driver
TI DP83867 config: phydev->addr:0
dp83867_of_init: io_impedance:-22, rx_id_delay:8, tx_id_delay:10, fifo_depth:1
dp83867_config: Restart the PHY val:0 DP83867_CTRL
dp83867_config: interface SGMII
dp83867_config: cfg2:10695 MII_DP83867_CFG2
genphy_config_advert: adv = 481, MII_ADVERTISE
genphy_config_advert: bmsr = 31049, MII_BMSR
genphy_config_advert: adv = 768, MII_CTRL1000
genphy_config_aneg: ctl = 4416, MII_BMCR
dp83867_config: STRAP_STS1 val:2048
dp83867_config: STRAP_STS2 val:258
dp83867_config: ANAR val:481
dp83867_config: ANLPAR val:0
dp83867_config: STS1 val:0
dp83867_config: PHYCR val:22592
dp83867_config: PHYSTS val:4098

Warning: netcp@2000000 using MAC address from ROM
eth0: netcp@2000000
Hit any key to stop autoboot:  0
=> ping 192.168.1.1

netcp@2000000 Waiting for SGMII auto negotiation to complete......... TIMEOUT !
genphy_startup
genphy_update_link: mii_reg = 31085, MII_BMSR
*** ERROR: `ipaddr' not set
ping failed; host 192.168.1.1 is not alive
=>

Could you help us please to undersand what is the problem here?

DP83867 connects through SGMII0

=> ping 192.168.1.1

netcp@2000000 keystone_sgmii_config: port:0, interface:1
netcp@2000000 Read status from 0x02090114 val 0x38

netcp@2000000 Waiting for SGMII auto negotiation to complete......... TIMEOUT !


Thank you in advance!

Ilya

  • HI Ilya,

    Have you modified the config file (u-boot/include/configs/ti_armv7_keystone2.h), especially the bellow part:
    /* Network Configuration */
    #define CONFIG_PHYLIB
    #define CONFIG_PHY_MARVELL
    #define CONFIG_MII
    #define CONFIG_BOOTP_DEFAULT
    #define CONFIG_BOOTP_DNS
    #define CONFIG_BOOTP_DNS2
    #define CONFIG_BOOTP_SEND_HOSTNAME
    #define CONFIG_NET_RETRY_COUNT 32
    #define CONFIG_SYS_SGMII_REFCLK_MHZ 312
    #define CONFIG_SYS_SGMII_LINERATE_MHZ 1250
    #define CONFIG_SYS_SGMII_RATESCALE 2

    As you can see www.ti.com/.../universalsearch.tsp the DP83867 is a TI PHY, so you need to change CONFIG_PHY_MARVELL to CONFIG_PHY_TI.

    Best Regards,
    Yordan