<?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: LAN8720A and imx6ul in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610426#M92101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check uboot lan8720 init codes on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389902"&gt;i.MX6UL ENET1 (with LAN8720A PHY) working in Uboot but not in Linux&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 23 Mar 2017 07:10:07 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-03-23T07:10:07Z</dc:date>
    <item>
      <title>LAN8720A and imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610425#M92100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13.44px;"&gt;I configured a LAN8720 phy with imx6UL custom board and it is working fine in kernel but in u-boot it is showing following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13.44px;"&gt;Net: FEC MXC: board_eth_init:failed&lt;BR /&gt;Board Net Initialization Failed&lt;BR /&gt;No ethernet found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13.44px;"&gt;&lt;STRONG&gt;I did following configuration in u-boot:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 13.44px;"&gt;&lt;STRONG&gt;imx6ulevk.c&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13.44px;"&gt;#define ENET_PAD_CTRL ( PAD_CTL_SRE_SLOW | PAD_CTL_SPEED_MED | \&lt;BR /&gt; PAD_CTL_HYS | PAD_CTL_PUS_100K_UP | \&lt;BR /&gt;PAD_CTL_DSE_40ohm )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13.44px;"&gt;#define ENET_CLK_PAD_CTRL ( PAD_CTL_SRE_FAST | PAD_CTL_DSE_40ohm | \&lt;BR /&gt;PAD_CTL_SPEED_MED | \&lt;BR /&gt;PAD_CTL_PUS_100K_UP | PAD_CTL_HYS )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 13.44px;"&gt;static iomux_v3_cfg_t const fec1_pads[] = {&lt;BR /&gt; MX6_PAD_ENET2_RX_DATA0__ENET1_MDIO | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET2_RX_DATA1__ENET1_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_TX_DATA0__ENET1_TDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_TX_DATA1__ENET1_TDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_TX_EN__ENET1_TX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 | MUX_PAD_CTRL(ENET_CLK_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_RX_DATA0__ENET1_RDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_RX_DATA1__ENET1_RDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_RX_ER__ENET1_RX_ER | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_ENET1_RX_EN__ENET1_RX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_SNVS_TAMPER6__GPIO5_IO06 | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt; MX6_PAD_SNVS_TAMPER5__GPIO5_IO05 | MUX_PAD_CTRL(ENET_PAD_CTRL),&lt;BR /&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;static void setup_iomux_fec(int fec_id){&lt;BR /&gt; if (fec_id == 0){ &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;imx_iomux_v3_setup_multiple_pads(fec1_pads,ARRAY_SIZE(fec1_pads));&lt;BR /&gt;}&lt;BR /&gt; else&lt;BR /&gt; printf("Warning: FEC ID 2 is NOT supported on J2 Board\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int board_eth_init(bd_t *bis){&lt;BR /&gt; struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;&lt;BR /&gt; int reg,ret;&lt;/P&gt;&lt;P&gt;setup_iomux_fec(0);&lt;BR /&gt; gpio_direction_output(IMX_GPIO_NR(5, 6) , 0);&lt;BR /&gt; &lt;BR /&gt; reg = readl(&amp;amp;iomuxc_regs-&amp;gt;gpr[1]);&lt;BR /&gt; reg |= IOMUXC_GPR1_ENET_CLK_SEL_MASK;&lt;BR /&gt; writel(reg, &amp;amp;iomuxc_regs-&amp;gt;gpr[1]);&lt;BR /&gt; &lt;BR /&gt; ret = enable_fec_anatop_clock(0, ENET_50MHZ);&lt;BR /&gt; if (ret)&lt;BR /&gt; return ret;&lt;/P&gt;&lt;P&gt;enable_enet_clk(1);&lt;/P&gt;&lt;P&gt;mdelay(30);&lt;BR /&gt; gpio_set_value(IMX_GPIO_NR(5, 6), 1);&lt;BR /&gt; &lt;BR /&gt; ret = cpu_eth_init(bis);&lt;BR /&gt; if (ret)&lt;BR /&gt; printf("FEC MXC: %s:failed\n", __func__);&lt;/P&gt;&lt;P&gt;return ret;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int board_phy_config(struct phy_device *phydev){&lt;BR /&gt;if (phydev-&amp;gt;drv-&amp;gt;config)&lt;BR /&gt; phydev-&amp;gt;drv-&amp;gt;config(phydev);&lt;/P&gt;&lt;P&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;imx6ulevk.h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#define CONFIG_FEC_MXC&lt;BR /&gt;#define CONFIG_MII&lt;BR /&gt;#define CONFIG_FEC_ENET_DEV 0&lt;/P&gt;&lt;P&gt;#if (CONFIG_FEC_ENET_DEV == 0)&lt;BR /&gt;#define IMX_FEC_BASE ENET_BASE_ADDR&lt;BR /&gt;#define CONFIG_FEC_MXC_PHYADDR 0x2&lt;BR /&gt;#define CONFIG_FEC_XCV_TYPE RMII&lt;BR /&gt;#endif&lt;BR /&gt;#define CONFIG_ETHPRIME "FEC"&lt;/P&gt;&lt;P&gt;#define CONFIG_PHYLIB&lt;BR /&gt;#define CONFIG_PHY_SMSC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 04:56:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610425#M92100</guid>
      <dc:creator>tanvi_desai</dc:creator>
      <dc:date>2017-03-23T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: LAN8720A and imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610426#M92101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check uboot lan8720 init codes on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389902"&gt;i.MX6UL ENET1 (with LAN8720A PHY) working in Uboot but not in Linux&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 23 Mar 2017 07:10:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610426#M92101</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-03-23T07:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: LAN8720A and imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610427#M92102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that but still it was giving following error:&lt;/P&gt;&lt;P&gt;Net: FEC0 MXC: board_eth_init:failed&lt;BR /&gt;No ethernet found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanvi &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 09:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610427#M92102</guid>
      <dc:creator>tanvi_desai</dc:creator>
      <dc:date>2017-03-23T09:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: LAN8720A and imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610428#M92103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you check with oscilloscope if there is clock and data signals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 09:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/LAN8720A-and-imx6ul/m-p/610428#M92103</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-03-23T09:49:21Z</dc:date>
    </item>
  </channel>
</rss>

