<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IMX6S Micrel KSZ8794 RGMII no network connectivity in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645805#M98569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;According to your schematic your MDC-MDIO connection between cpu and ethernet switch is crossed. Is it correct connection or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2020 17:05:21 GMT</pubDate>
    <dc:creator>emreertaş</dc:creator>
    <dc:date>2020-03-23T17:05:21Z</dc:date>
    <item>
      <title>IMX6S Micrel KSZ8794 RGMII no network connectivity</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645802#M98566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! My company is spinning it's own board with a&amp;nbsp;MCIMX6S6AVM08AC as it's main processor. &amp;nbsp;Currently we are in the board bring-up stage, and I am running into some serious problems getting any network traffic out of the Micrel chip, so I was hoping to get a confirmation on our setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to the KSZ8794 datasheet for reference:&amp;nbsp;&lt;A class="link-titled" href="http://ww1.microchip.com/downloads/en/DeviceDoc/00002134A.pdf" title="http://ww1.microchip.com/downloads/en/DeviceDoc/00002134A.pdf"&gt;http://ww1.microchip.com/downloads/en/DeviceDoc/00002134A.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is our layout, as you can see, GPIO_16 is not connected and ENET_REF_CLK is connected to a external 125Mhz oscillator running at 1.8 volts.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ethernetKSZ8794CNX.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5532i1DB4D05184C8D1B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ethernetKSZ8794CNX.jpg" alt="ethernetKSZ8794CNX.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the IMX6DQ6SDL hardware development guide pdf, page 12-7, figure 12.5, I am clearing GPR1[21] in the uboot file. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my current configuration for the Micrel in uboot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;#define ETH_PHY_RESET&lt;SPAN class=""&gt; &lt;/SPAN&gt;IMX_GPIO_NR(1, 25)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;static const iomux_v3_cfg_t enet_pads[] = {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_ENET_MDIO__ENET_MDIO, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_ENET_MDC__ENET_MDC , ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_TXC__RGMII_TXC, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_TD0__RGMII_TD0, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_TD1__RGMII_TD1, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_TD2__RGMII_TD2, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_TD3__RGMII_TD3, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_TX_CTL__RGMII_TX_CTL, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_ENET_REF_CLK__ENET_TX_CLK, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_RXC__RGMII_RXC, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_RD0__RGMII_RD0, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_RD1__RGMII_RD1, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_RD2__RGMII_RD2, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_RD3__RGMII_RD3, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NEW_PAD_CTRL(MX6_PAD_RGMII_RX_CTL__RGMII_RX_CTL, ENET_PAD_CTRL),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;static void setup_iomux_enet(void)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; imx_iomux_v3_setup_multiple_pads(enet_pads, ARRAY_SIZE(enet_pads));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; gpio_direction_output(ETH_PHY_RESET, 0);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; udelay(1000 * 10);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; gpio_set_value(ETH_PHY_RESET, 1);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; mdelay(100);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;static int setup_fec(void)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; /* Turn off GPR1[21] as per&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;page 12-7, figure 12.5 of the&amp;nbsp;IMX6DQ6SDL */&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; imx_iomux_set_gpr_register(1, 21, 1, 0);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; setup_iomux_enet();&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;int board_eth_init(bd_t *bis)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; setup_fec();&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; return cpu_eth_init(bis);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the drivers/net/phy/micrel.c file I have added the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;int ksz8794_config(struct phy_device *phydev)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; /* we are connected directly to the switch without dedicated PHY. */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phydev-&amp;gt;link = 1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phydev-&amp;gt;duplex = DUPLEX_FULL;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phydev-&amp;gt;speed = SPEED_1000;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; /* Default settings to register 0x0, page 137 or KSZ8794 TRM. */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_write(phydev, MDIO_DEVAD_NONE, 0x0, 0x3120);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;int ksz8794_startup(struct phy_device *phydev){&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned phy_ctl;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int ret;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ret = genphy_update_link(phydev);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; if (ret){&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ret;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;static struct phy_driver KSZ8794_driver = {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .name = "Micrel KSZ8794 Switch",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .uid = 0x221550,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .mask = 0xfffff0,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .features = PHY_GBIT_FEATURES,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .startup = &amp;amp;ksz8794_startup,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .shutdown = &amp;amp;genphy_shutdown,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; .config = &amp;amp;ksz8794_config,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;int phy_micrel_init(void)&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KSZ8794_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KSZ8794_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KSZ804_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KSZ8031_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KSZ8051_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KSZ8081_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; #ifdef CONFIG_PHY_MICREL_KSZ9021&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; phy_register(&amp;amp;ksz9021_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; #else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; phy_register(&amp;amp;KS8721_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; #endif&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;ksz9031_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;ksz8895_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; phy_register(&amp;amp;ksz886x_driver);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; color: #000000;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I boot uboot everything looks good!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;eth_init: fec_probe(bd, -1, 1) @ 02188000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mii_setspeed: mii_speed 0000001a&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mdio_read: Phy Address: 0x1 Register:0x2 Value:0x22&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mdio_read: Phy Address: 0x1 Register:0x3 Value:0x1550&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mii_setspeed: mii_speed 0000001a&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mdio_write: Phy Address: 0x1 Register:0x0 Value:0x8000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mdio_read: Phy Address: 0x1 Register:0x0 Value:0x0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;FEC connected to Micrel KSZ8794 Switch&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However; when I attempt to run dhcp I am unable to get a address:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;~]$ dhcp&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;eth_halt: wait for stop regs&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;eth_halt: done&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;Trying FEC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mii_setspeed: mii_speed 0000001a&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_open: fec_open(dev)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_mdio_read: Phy Address: 0x1 Register:0x1 Value:0x782c&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_open:Speed=1000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;BOOTP broadcast 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_send: status 0xc00 index 0 ret 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_recv: ievent 0xc000000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_recv: status 0x8000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;fec_recv: stop&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This repeats in a loop for several hundred lines until all 17 tries are finished.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, at this point, I am pretty much out of ideas. &amp;nbsp;I originally thought that perhap TskewT needed to be modified, however after scoping RGMII_TXC and RGMII_TD0 the data and clock seem to line up almost perfectly, well within spec I believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20160922_153322.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5590i6FC63469918FF568/image-size/large?v=v2&amp;amp;px=999" role="button" title="20160922_153322.jpg" alt="20160922_153322.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have connected our board to a dumb hub along with my PC and wireshark shows absolutely nothing when running DHCP from the uboot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point I have confirmed that both RXC and TXC output a 125Mhz clock, and I can talk to the Micrel, however I am still not able to get network traffic. &amp;nbsp;At this point I need the help of the community to assertain what on earth is going on, and ANY help would be &lt;STRONG&gt;GREATLY&lt;/STRONG&gt; appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does my uboot config look correct?&lt;/P&gt;&lt;P&gt;Does the Schematic look correct?&lt;/P&gt;&lt;P&gt;Do the scope measurements look correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 14:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645802#M98566</guid>
      <dc:creator>aduskett</dc:creator>
      <dc:date>2016-09-23T14:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6S Micrel KSZ8794 RGMII no network connectivity</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645803#M98567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most likely cause of the issue is that the Ethernet PHY and the RGMII port of the i.MX6 processor don't have the common reference clock, as it should be. The 125MHz RGMII reference clock should be either generated by an external reference clock source and provided to both the clock input of the PHY and the ENET_REF_CLK input of the processor, or generated by PHY and then connected to the ENET_REF_CLK input of the processor. So, you have to modify your schematic according to this requirement. Please use the schematic of the i.MX6 SABRE SD board as the reference.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 10:27:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645803#M98567</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2016-09-29T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6S Micrel KSZ8794 RGMII no network connectivity</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645804#M98568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Artur;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion! &amp;nbsp;As you can see on both the scope screenshot, and the schematic, we have a 125MHz oscillator already working and functioning properly with the ENET_REF_CLK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did however solve the problem if anybody is curious:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was that the drive strength was too strong on TXC. &amp;nbsp;Changing the DSE from 34ohm to 240ohm on MX6_PAD_RGMII_TXC__RGMII_TXC fixed the issue completely.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 12:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645804#M98568</guid>
      <dc:creator>aduskett</dc:creator>
      <dc:date>2016-09-29T12:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6S Micrel KSZ8794 RGMII no network connectivity</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645805#M98569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;According to your schematic your MDC-MDIO connection between cpu and ethernet switch is crossed. Is it correct connection or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645805#M98569</guid>
      <dc:creator>emreertaş</dc:creator>
      <dc:date>2020-03-23T17:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6S Micrel KSZ8794 RGMII no network connectivity</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645806#M98570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;scl/mdc was labelled as enet_mdio while sda/mdio was labelled enet_mdc.&amp;nbsp;They are wrong labels I guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 11:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6S-Micrel-KSZ8794-RGMII-no-network-connectivity/m-p/645806#M98570</guid>
      <dc:creator>emreertaş</dc:creator>
      <dc:date>2020-03-25T11:50:18Z</dc:date>
    </item>
  </channel>
</rss>

