<?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: Working with both MII and RGMII on iMX6 Solo X in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839806#M128821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/MichaelV"&gt;MichaelV&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood the misunderstanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I said "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Using SMI interface" while actually I meatn "Using MIIM interface"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 11:18:46 GMT</pubDate>
    <dc:creator>alessandromaggi</dc:creator>
    <dc:date>2019-02-14T11:18:46Z</dc:date>
    <item>
      <title>Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839802#M128817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;in our system we've connected an iMX6 Solo X to a Microchip&amp;nbsp;KSZ8873FLLI switch using an MII interface at 100mbps.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;For doing this, starting from the Sabre demo schematics, we've modified ENET1 connections to implement the MII physical layer.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;ENET2 has been configured&amp;nbsp;in RGMII mode and connected to a 100-FX&amp;nbsp;PHY.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;Actually, after the card power-on&amp;nbsp;ENET2 is always working, while ENET1 sometimes is not.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;Comparing TXD waveform to ENET2_TX_CLK, we've seen that the phase between data&amp;nbsp; and clock seems to change after each power-on.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;Using SMI interface, we've verified that the KSZ8873 is always configured in a proper way.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;Our main doubt is whether clock tree&amp;nbsp;configuration is correct or not.&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;The clock tree is depicted in the attached block diagram.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;ENET2_REF_CLK is used for providing the&amp;nbsp;system clock to PHY and switch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Referring to register&amp;nbsp;&lt;SPAN&gt;IOMUXC_GPR_GPR1, our configuration is the following:&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;ENET1_CLK_SEL = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;ENET2_CLK_SEL = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;ENET1_TX_CLK_DIR = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;ENET2_TX_ CLK_DIR = 0&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;SPAN&gt;IOMUXC_SW_MUX_CTL_PAD_ENET2_RX_CLK is set to ALT1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0; margin-bottom: 0;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is this a correct setup for working with ENET1 in MII mode and ENET2 in RGMII mode?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 15:49:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839802#M128817</guid>
      <dc:creator>alessandromaggi</dc:creator>
      <dc:date>2018-10-09T15:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839803#M128818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make me able to accurately study the case, please provide the exact shematic of external connections of the ENET1 and ENET2 interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Artur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839803#M128818</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2018-10-30T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839804#M128819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/alessandromaggi"&gt;alessandromaggi&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said: "Using SMI interface, we've verified that the KSZ8873 is always configured in a proper way."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you convince the ENET module to issue a read with OP set to 00? Can you share the code you used to issue a read from the KSZ8873 using SMI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we see and understand from the iMX6 RMs, the ENET module always treats an operation with OP set to 00 as a write operation, but for an SMI read, OP needs to be 00. We can't seem to read any register from the KSZ8873 using SMI because of this ENET module restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm super interested to see how you managed to convince the ENET module to do an SMI read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope you are willing to help us out here!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:49:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839804#M128819</guid>
      <dc:creator>MichaelV</dc:creator>
      <dc:date>2019-02-12T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839805#M128820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I'm not sure I understand your question properly since I am a very beginner on IMX architecture)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added my own ioctl to the kernel driver (freescale/fec_main.c) and inside it I simply call a mdiobus_read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I created a very simple program to issue the ioctl on the interface connected to the&amp;nbsp;KSZ8873, and get the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing special as you see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 10:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839805#M128820</guid>
      <dc:creator>alessandromaggi</dc:creator>
      <dc:date>2019-02-14T10:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839806#M128821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/MichaelV"&gt;MichaelV&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood the misunderstanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I said "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Using SMI interface" while actually I meatn "Using MIIM interface"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839806#M128821</guid>
      <dc:creator>alessandromaggi</dc:creator>
      <dc:date>2019-02-14T11:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839807#M128822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/alessandromaggi"&gt;alessandromaggi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means you are only able to access&amp;nbsp;the standard 16-bit PHY registers, and you are&amp;nbsp;NOT able to access&amp;nbsp;any of the internal 8-bit registers (global, port and advanced control registers, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you are not using SMI, how did you even configure the KSZ8873? Through a NAND tree?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the iMX6 cannot generate a read with OP set to 00 (which is required for SMI). The iMX6 is able to generate a WRITE for SMI, just not a READ, or at least I haven't found a way yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when you said you were able to verify correct configuration of the KSZ8873 by&amp;nbsp;verifying all register contents over SMI, I had some hope...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839807#M128822</guid>
      <dc:creator>MichaelV</dc:creator>
      <dc:date>2019-02-14T20:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Working with both MII and RGMII on iMX6 Solo X</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839808#M128823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I didn't mean to generate false hopes    I confirm I can only access the 16 bits standard registers. I've tried hard to access the internal 8 bits but I couldn't manage. I'm only able to check standard registers and everything is fine there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application I don't need a special configuration, so I didn't do anything special, hardware connection, select fixed-phy in dts and the switch was up and running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW I solved my issue: it was related to an improprer clock initialization in the IMX registers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 08:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Working-with-both-MII-and-RGMII-on-iMX6-Solo-X/m-p/839808#M128823</guid>
      <dc:creator>alessandromaggi</dc:creator>
      <dc:date>2019-02-15T08:34:39Z</dc:date>
    </item>
  </channel>
</rss>

