<?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 Linux-4.1.15 : problem with LAN8720A in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626752#M95118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue related to the LAN8720A ethernet phy and linux freescale kernel 4.1.15.&lt;/P&gt;&lt;P&gt;The problem is that the ethernet link never goes up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a vanilla kernel (version 4.1.37 available on kernel.org), and it works with this version.&lt;/P&gt;&lt;P&gt;I used the same kernel configuration (imx_v6_v7_defconfig), as well as the same DTS file (at least the parts related to the ethernet configuration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then went ahead and copied all the source files in the drivers/net/ethernet/freescale directory from the 4.1.37 vanilla kernel to the 4.1.15 freescale kernel. It compiled OK, but it didn't change anything (ethernet link still doesn't go up).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how the network stack works in Linux, so I don't know what other parts of the kernel are involved in this bug.&lt;/P&gt;&lt;P&gt;Also I have read this thread from the NXP community :&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;&lt;/P&gt;&lt;P&gt;But it didn't help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open to every hint / suggestion&lt;/P&gt;&lt;P&gt;Thank you for reading me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 14:54:18 GMT</pubDate>
    <dc:creator>aebischerquenti</dc:creator>
    <dc:date>2017-01-18T14:54:18Z</dc:date>
    <item>
      <title>Linux-4.1.15 : problem with LAN8720A</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626752#M95118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue related to the LAN8720A ethernet phy and linux freescale kernel 4.1.15.&lt;/P&gt;&lt;P&gt;The problem is that the ethernet link never goes up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a vanilla kernel (version 4.1.37 available on kernel.org), and it works with this version.&lt;/P&gt;&lt;P&gt;I used the same kernel configuration (imx_v6_v7_defconfig), as well as the same DTS file (at least the parts related to the ethernet configuration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then went ahead and copied all the source files in the drivers/net/ethernet/freescale directory from the 4.1.37 vanilla kernel to the 4.1.15 freescale kernel. It compiled OK, but it didn't change anything (ethernet link still doesn't go up).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how the network stack works in Linux, so I don't know what other parts of the kernel are involved in this bug.&lt;/P&gt;&lt;P&gt;Also I have read this thread from the NXP community :&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;&lt;/P&gt;&lt;P&gt;But it didn't help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open to every hint / suggestion&lt;/P&gt;&lt;P&gt;Thank you for reading me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626752#M95118</guid>
      <dc:creator>aebischerquenti</dc:creator>
      <dc:date>2017-01-18T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Linux-4.1.15 : problem with LAN8720A</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626753#M95119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quentin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;had you replaced&amp;nbsp; #define CONFIG_PHY_MICREL&amp;nbsp; with&amp;nbsp; #define CONFIG_PHY_SMSC &lt;BR /&gt;in uboot/include/configs/mx6ul_14x14_evk.h&lt;/P&gt;&lt;P&gt;also are you observing lan8720 signals on oscilloscope (like clocks, data..)&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, 19 Jan 2017 23:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626753#M95119</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-01-19T23:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Linux-4.1.15 : problem with LAN8720A</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626754#M95120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't replaced #define CONFIG_PHY_MICREL with&amp;nbsp; #define CONFIG_PHY_SMSC in uboot as you said, but I don't know why it would change anything since the I assumed the kernel reconfigures the phy from scratch no ? Also I am running uboot-2015 just for info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't observed the lan8720 signals with an oscilloscope yet, because it is working with the 4.1.37 vanilla kernel and I thought I could just find out what are the differences between this kernel and the 4.1.15 freescale kernel and make it work. I will look at the signals if I can't find a software solution soon.&lt;/P&gt;&lt;P&gt;Also I will try ethtool to see if it prints out useful infos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626754#M95120</guid>
      <dc:creator>aebischerquenti</dc:creator>
      <dc:date>2017-01-20T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linux-4.1.15 : problem with LAN8720A</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626755#M95121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quentin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kernel L4.1.37 is not officially supported by nxp, please try ones described on link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/i.mx-6-series-software-and-development-tool-resources:IMX6_SW"&gt;http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/i.mx-6-series-software-and-development-tool-resources:IMX6_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recommended to start ethernet bringup on uboot as it is easier to debug.&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>Fri, 20 Jan 2017 23:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626755#M95121</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-01-20T23:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Linux-4.1.15 : problem with LAN8720A</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626756#M95122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I solved the issue ; after looking at the clock signal, I found out it was running at 125 MHz instead of 50 MHz.&lt;BR /&gt;In the file arch/arm/mach-imx/clk-imx6q.c, the clock is forced at 125 MHz with this line : &amp;nbsp;&amp;nbsp;&amp;nbsp;clk_set_rate(clk[IMX6QDL_CLK_ENET_REF], 125000000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commenting this line solved the issue. I'm not sure why it is set in the first place, it's not present in vanilla kernel only in freescale kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 08:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-4-1-15-problem-with-LAN8720A/m-p/626756#M95122</guid>
      <dc:creator>aebischerquenti</dc:creator>
      <dc:date>2017-05-03T08:23:42Z</dc:date>
    </item>
  </channel>
</rss>

