<?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: imx8m nano RMII mode configuration problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-nano-RMII-mode-configuration-problem/m-p/1951694#M228291</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You need modify setting in Uboot/board/freescale/imx8mn_evk/imx8mn_evk.c&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1726032893900.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298446iC023016F68EB5DBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1726032893900.png" alt="Zhiming_Liu_0-1726032893900.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 05:35:59 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2024-09-11T05:35:59Z</dc:date>
    <item>
      <title>imx8m nano RMII mode configuration problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-nano-RMII-mode-configuration-problem/m-p/1949493#M228168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to config imx8m nano ethernet interface into RMII mode. However I have met problem on ETH REF CLK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using an external 50MHz crystal to feed clock into imx8m nano as eth ref clk. &amp;nbsp;&lt;/P&gt;&lt;P&gt;My dts file looks as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;fec1 {
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_fec1_b&amp;gt;;
        phy-mode = "rmii";
	//phy-handle = &amp;lt;&amp;amp;ethphy0&amp;gt;;
        fsl,magic-packet;
        phy-reset-gpios = &amp;lt;&amp;amp;gpio4 22 GPIO_ACTIVE_LOW&amp;gt;;
        //phy-reset-duration = &amp;lt;25&amp;gt;;
        //phy-reset-post-delay = &amp;lt;100&amp;gt;;
	assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MN_SYS_PLL1_266M&amp;gt;,
				 &amp;lt;&amp;amp;clk IMX8MN_SYS_PLL2_100M&amp;gt;,
				 &amp;lt;&amp;amp;clk IMX8MN_SYS_PLL2_50M&amp;gt;,
				 &amp;lt;&amp;amp;clk IMX8MN_SYS_PLL2_50M&amp;gt;;
	assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;100000000&amp;gt;, &amp;lt;50000000&amp;gt;, &amp;lt;0&amp;gt;;
	status = "okay";

	fixed-link {
	    speed = &amp;lt;100&amp;gt;;
	    full-duplex;
	};

        /*mdio {
	    #address-cells = &amp;lt;1&amp;gt;;
	    #size-cells = &amp;lt;0&amp;gt;;

	    ethphy0: ethernet-phy@0 {
                compatible = "ethernet-phy-ieee802.3-c22";
                reg = &amp;lt;0&amp;gt;;
		max-speed = &amp;lt;100&amp;gt;;
	    };
        };*/
};

&amp;amp;iomuxc {

	pinctrl_fec1_b: fec1-bgrp {
		fsl,pins = &amp;lt;
			    MX8MN_IOMUXC_ENET_MDC_ENET1_MDC		0x03
			    MX8MN_IOMUXC_ENET_MDIO_ENET1_MDIO		0x23
			    MX8MN_IOMUXC_ENET_TD0_ENET1_RGMII_TD0	0x56
			    MX8MN_IOMUXC_ENET_TD1_ENET1_RGMII_TD1	0x56
			    MX8MN_IOMUXC_ENET_TD2_ENET1_TX_CLK		0x4000001f
			    MX8MN_IOMUXC_ENET_RD0_ENET1_RGMII_RD0	0x56 /* MODE0 */
			    MX8MN_IOMUXC_ENET_RD1_ENET1_RGMII_RD1	0x56 /* MODE1 */
			    MX8MN_IOMUXC_ENET_RXC_ENET1_RX_ER		0x110 /* PHYAD2 */
			    MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x56 /* CLK125_EN */
			    MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x56 /* LED_MODE */
		&amp;gt;;
	};

};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By this configuration I am expecting ENET_TD2 pad is muxed to be ref clk input. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to verify the pin config after boot the system up by reading pad registers value using mem tool. All looks right but the&amp;nbsp;&lt;SPAN&gt;IOMUXC_GPR_GPR1 register content.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to the chip reference manual, the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="inherit"&gt;GPR_ENET1_ TX_CLK_SEL bit of&amp;nbsp;&lt;/FONT&gt;this register is '0' by default, but now it reads "0x00002000", which means the ENET_TD2 pad been set to output of ref clk instead of input as I desired.&lt;/P&gt;&lt;P&gt;I did not change any other source code. So I am not sure why&amp;nbsp;&lt;SPAN&gt;IOMUXC_GPR_GPR1 value is not as expected. Is there any other thing may change the value of this reg?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please hint me if I missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Roland&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 08:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8m-nano-RMII-mode-configuration-problem/m-p/1949493#M228168</guid>
      <dc:creator>Rolandash</dc:creator>
      <dc:date>2024-09-08T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: imx8m nano RMII mode configuration problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8m-nano-RMII-mode-configuration-problem/m-p/1951694#M228291</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You need modify setting in Uboot/board/freescale/imx8mn_evk/imx8mn_evk.c&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1726032893900.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298446iC023016F68EB5DBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1726032893900.png" alt="Zhiming_Liu_0-1726032893900.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 05:35:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8m-nano-RMII-mode-configuration-problem/m-p/1951694#M228291</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-09-11T05:35:59Z</dc:date>
    </item>
  </channel>
</rss>

