• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » Phy GigaEthernet to replace AR8031 with KSZ9021 (micrel)
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Phy GigaEthernet to replace AR8031 with KSZ9021 (micrel)

Phy GigaEthernet to replace AR8031 with KSZ9021 (micrel)

This question is answered
Keldy
Posted by Keldy
on Apr 16 2012 10:51 AM
Expert1780 points

Hi,

I'm using AM335x MPU, i'm planing to use micrel KSZ9021RL gigabit PHY on AM335x.

is the ethernet device drive from AM335x EVM SDK is generic?

Thanks

Keldy

sdk AM335x PSP CPSW Ethernet
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Mugunthan V N
    Posted by Mugunthan V N
    on Apr 19 2012 06:32 AM
    Intellectual2610 points

    Keldy

    Ethernet driver is generic and doesn't depend on PHY. If the phy has no errata, then generic phy driver in the linux should work fine.

    with regards

    Mugunthan V N

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 19 2012 20:29 PM
    Expert1780 points

    Hi Mugunthan,

    the ethernet driver is generic in the linux, How about in u-boot ?

    Thanks & Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mugunthan V N
    Posted by Mugunthan V N
    on Apr 23 2012 22:45 PM
    Intellectual2610 points

    Keldy

    U-Boot CPSW driver is also generic.

    with regards

    Mugunthan V N

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 24 2012 00:09 AM
    Expert1780 points

    Hi Mugunthan,

    After I replace AR8031 phy with micrel KSZ9021RL phy,

    in u-boot, when i enter "dhcp",

    u-boot#dhcp

    link up on port 1, speed 100, full duplex

    BOOTP broadcast 1

    BOOTP broadcast 2

    BOOTP broadcast 3

    BOOTP broadcast 4

    .....until BOOTP broadcast 10 then repeat again

    seen like the ethernet can't work properly and can't get IP address.

    Why this will happen?

    Do i need to change something in u-boot code, like the phy device id, phyaddr or others thing else?

    Thanks & Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mugunthan V N
    Posted by Mugunthan V N
    on Apr 24 2012 07:18 AM
    Intellectual2610 points

    Keldy

    U-Boot Supports only EMAC 0 by default. From the logs it shows that Ethernet is connected to EMAC 1.

    Did you ported U-Boot to support EMAC 1 from the Porting guide Wiki.

    http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#CPSW_EMAC_1_bringup_in_uboot

    If you have two eEthernet pinned out, can you try connecting with EMAC0.

    with regards

    Mugunthan V N

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 24 2012 08:20 AM
    Expert1780 points

    Hi Mugunthan,

    The Micrel KSZ9021RL phy is connected to EMAC 0.

    i think in u-boot,  the EMAC 0  refer as port 1, EMAC 1 refer as port 2. same as i2c0 refer as i2c-1.

    Thanks & Regards

    Keldy 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 24 2012 22:21 PM
    Expert1780 points

    Hi,

    I'm using AM335x MPU, that have only one EMAC and two port, port 1 and port 2. The micrel KSZ9021RL phy was connected to the port 1.

    Port 1 previously connected to Atheros AR8031 phy which is working properly, when i change to micrel KSZ9021RL phy, the ethernet not working anymore.

    Any idea?

    Thanks & Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mugunthan V N
    Posted by Mugunthan V N
    on Apr 25 2012 01:38 AM
    Intellectual2610 points

    Keldy

    Can you confirm the connection in the Schematics, Because in U-Boot port 1 is referenced to EMAC 1 and not EMAC 0.

    Also check if RGMII internal delay is taken care.

    with regards

    Mugunthan V N

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 25 2012 04:07 AM
    Expert1780 points

    Hi Mugunthan,

    here is my connection,

    RGMII interface:

    Am335x Pin connect to Micrel PHY KSZ9021RL
    GMII1_TXCLK GTX_CLK
    GMII1_TXD0 TXD0
    GMII1_TXD1 TXD1
    GMII1_TXD2 TXD2
    GMII1_TXD3 TXD3
    GMII1_TXEN TXEN
    GMII1_RXCLK RX_CLK
    GMII1_RXD0 RXD0
    GMII1_RXD1 RXD1
    GMII1_RXD2 RXD2
    GMII1_RXD3 RXD3
    GMII1_RXDV RX_DV
    GMII1_MDIO_CLK MDC
    GMII1_MDIO_DATA MDIO

    For your info, I'm using AM335x EVM board and sdk. 

    How to check the internal delay?

    Thanks & Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steve Kipisz
    Posted by Steve Kipisz
    on Apr 25 2012 06:52 AM
    Expert3965 points

    Look at the gmii_sel register at 0x44e10650. Bits 1:0 select the mode for port1 (rgmii = 10) and bit 4 selects the internal delay. See the Control Module chapter of the TRM.

    Steve K.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 25 2012 09:05 AM
    Expert1780 points

    Hi,

    will the internal delay cause my micrel KSZ9021RL phy fail working?

    how to verify the RGMII interface is working?

    is it the micrel phy not compatible with AM335x ?

    Thanks & Regards

    Keldy 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mugunthan V N
    Posted by Mugunthan V N
    on Apr 26 2012 07:47 AM
    Intellectual2610 points

    Keldy

    In U-Boot EMAC 0 is attached to Port 0 in software, but it is showing Port 1is connected.

    Can you check the phy address is populated in the devices structure properly. You can look for phy_id in the following location

    board/ti/am335x/evm.c:struct cpsw_slave_data cpsw_slaves[] - phy_id

    with regards

    Mugunthan V N

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 26 2012 21:13 PM
    Expert1780 points

    Hi,

    What do you mean check the phy address is populated in the devices structure properly ?

    do you mean to use the mdio line to access the register in ethernet phy, and get the phy address?

    Thanks & Regards

    Keldy 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Keldy
    Posted by Keldy
    on Apr 27 2012 04:07 AM
    Expert1780 points

    Hi, after i change my phy addr to 0x00, now link up on port 0.

    in u-boot, when i type "dhcp":

    U-boot#dhcp

    link up on port 0, speed 100, full duplex

    BOOTP broadcast 1

    BOOTP broadcast 2

    ......until BOOTP broadcast 10 and repeat again

    seem like the micrel phy still not working properly. Any idea?

    Thanks & Regards

    Keldy

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mugunthan V N
    Posted by Mugunthan V N
    on Apr 27 2012 12:38 PM
    Intellectual2610 points

    Keldy

    Can you disable the RGMII internal delay by enabling the bits in gmii_sel

    with regards

    Mugunthan V N

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
123
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use