<?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>i.MX ProcessorsのトピックiMX8QM - Ethernet TX Clock problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Ethernet-TX-Clock-problem/m-p/1437091#M188828</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I'm working with iMX8QM, u-boot&amp;nbsp;2020.04-imx_v2020.04_5.4.47_2.2.0. I'm trying to configure the RGMII 100Mbps Ethernet. PHY is Marvell 88q2110.&lt;/P&gt;&lt;P&gt;The ethernet reference clock should be :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 25MHz when using 100Mbps Ethernet&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 125MHz when using 1Gbps Ethernet&lt;/P&gt;&lt;P&gt;From the datasheet below the RGMII operates at 125MHz.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingrid_0-1648731162475.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175508iC46B075A128A2287/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingrid_0-1648731162475.png" alt="Ingrid_0-1648731162475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since I'm using 100Mbps ethernet I would like to use 25Mhz as the ethernet reference clock.&lt;BR /&gt;Currently when pinging the board from my computer, the activity led blinks on the iMX8 board but I get no response.&lt;/P&gt;&lt;P&gt;Here are my questions:&lt;BR /&gt;1 - Does the reference clock automatically switch when 100Mbps of 1Gbps is detected?&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1a - If yes, is it connecting 25MHz on&amp;nbsp;RGMII_TXC using&amp;nbsp;CONN_ENET0_REFCLK_125M_25M?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingrid_1-1648731919930.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175509iC66178D121595E16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingrid_1-1648731919930.png" alt="Ingrid_1-1648731919930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1b - If not, how can I configure RGMII_TXC to use 25MHz?&lt;/P&gt;&lt;P&gt;At the moment I'm unable to check the clock due to the board being in a box but I will be able to scope that next week.&lt;/P&gt;&lt;P&gt;Here is what I have configured in my .dts&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;fec1 {
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_fec1&amp;gt;;
	phy-mode = "rgmii-rxid";
	phy-handle = &amp;lt;&amp;amp;ethphy0&amp;gt;;
	fsl,magic-packet;
	fsl,rgmii_txc_dly;
	status = "okay";
	local-mac-address = [00 a8 44 1f 1f 10];
	mdio {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;0&amp;gt;;

		ethphy0: ethernet-phy@4 {
			compatible = "ethernet-phy-id002b.0980", "ethernet-phy-ieee802.3-c45";
			reg = &amp;lt;4&amp;gt;;
			max-speed = &amp;lt;100&amp;gt;;
		};
	};
};

pinctrl_fec1: fec1grp {
			fsl,pins = &amp;lt;
				SC_P_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB_PAD	0x000014a0
				SC_P_ENET0_MDC_CONN_ENET0_MDC			0x06000020
				SC_P_ENET0_MDIO_CONN_ENET0_MDIO			0x06000020

				SC_P_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC	0x00000061

				SC_P_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL	0x00000061
				SC_P_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0	0x00000061
				SC_P_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1	0x00000061
				SC_P_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2	0x00000061
				SC_P_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3	0x00000061
				SC_P_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC	0x00000061
				SC_P_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL	0x00000061
				SC_P_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0	0x00000061
				SC_P_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1	0x00000061
				SC_P_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2	0x00000021
				SC_P_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3	0x00000061
			&amp;gt;;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried forcing the 25MHz by adding&amp;nbsp;the following in the fec1 node&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8QM_ENET0_ROOT_DIV&amp;gt;, &amp;lt;&amp;amp;clk IMX8QM_ENET0_REF_DIV&amp;gt;;
assigned-clock-rates = &amp;lt;25000000&amp;gt;, &amp;lt;25000000&amp;gt;;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;When I check clk dump I have the following. Also not sure why ENET0_RGMII_DIV is 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingrid_2-1648734049288.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175511iE462581C842FE2F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingrid_2-1648734049288.png" alt="Ingrid_2-1648734049288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Ingrid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 13:44:15 GMT</pubDate>
    <dc:creator>sig0912</dc:creator>
    <dc:date>2022-03-31T13:44:15Z</dc:date>
    <item>
      <title>iMX8QM - Ethernet TX Clock problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Ethernet-TX-Clock-problem/m-p/1437091#M188828</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I'm working with iMX8QM, u-boot&amp;nbsp;2020.04-imx_v2020.04_5.4.47_2.2.0. I'm trying to configure the RGMII 100Mbps Ethernet. PHY is Marvell 88q2110.&lt;/P&gt;&lt;P&gt;The ethernet reference clock should be :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 25MHz when using 100Mbps Ethernet&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 125MHz when using 1Gbps Ethernet&lt;/P&gt;&lt;P&gt;From the datasheet below the RGMII operates at 125MHz.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingrid_0-1648731162475.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175508iC46B075A128A2287/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingrid_0-1648731162475.png" alt="Ingrid_0-1648731162475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since I'm using 100Mbps ethernet I would like to use 25Mhz as the ethernet reference clock.&lt;BR /&gt;Currently when pinging the board from my computer, the activity led blinks on the iMX8 board but I get no response.&lt;/P&gt;&lt;P&gt;Here are my questions:&lt;BR /&gt;1 - Does the reference clock automatically switch when 100Mbps of 1Gbps is detected?&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1a - If yes, is it connecting 25MHz on&amp;nbsp;RGMII_TXC using&amp;nbsp;CONN_ENET0_REFCLK_125M_25M?&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingrid_1-1648731919930.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175509iC66178D121595E16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingrid_1-1648731919930.png" alt="Ingrid_1-1648731919930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1b - If not, how can I configure RGMII_TXC to use 25MHz?&lt;/P&gt;&lt;P&gt;At the moment I'm unable to check the clock due to the board being in a box but I will be able to scope that next week.&lt;/P&gt;&lt;P&gt;Here is what I have configured in my .dts&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;fec1 {
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_fec1&amp;gt;;
	phy-mode = "rgmii-rxid";
	phy-handle = &amp;lt;&amp;amp;ethphy0&amp;gt;;
	fsl,magic-packet;
	fsl,rgmii_txc_dly;
	status = "okay";
	local-mac-address = [00 a8 44 1f 1f 10];
	mdio {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;0&amp;gt;;

		ethphy0: ethernet-phy@4 {
			compatible = "ethernet-phy-id002b.0980", "ethernet-phy-ieee802.3-c45";
			reg = &amp;lt;4&amp;gt;;
			max-speed = &amp;lt;100&amp;gt;;
		};
	};
};

pinctrl_fec1: fec1grp {
			fsl,pins = &amp;lt;
				SC_P_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB_PAD	0x000014a0
				SC_P_ENET0_MDC_CONN_ENET0_MDC			0x06000020
				SC_P_ENET0_MDIO_CONN_ENET0_MDIO			0x06000020

				SC_P_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC	0x00000061

				SC_P_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL	0x00000061
				SC_P_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0	0x00000061
				SC_P_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1	0x00000061
				SC_P_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2	0x00000061
				SC_P_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3	0x00000061
				SC_P_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC	0x00000061
				SC_P_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL	0x00000061
				SC_P_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0	0x00000061
				SC_P_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1	0x00000061
				SC_P_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2	0x00000021
				SC_P_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3	0x00000061
			&amp;gt;;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried forcing the 25MHz by adding&amp;nbsp;the following in the fec1 node&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8QM_ENET0_ROOT_DIV&amp;gt;, &amp;lt;&amp;amp;clk IMX8QM_ENET0_REF_DIV&amp;gt;;
assigned-clock-rates = &amp;lt;25000000&amp;gt;, &amp;lt;25000000&amp;gt;;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;When I check clk dump I have the following. Also not sure why ENET0_RGMII_DIV is 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingrid_2-1648734049288.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175511iE462581C842FE2F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingrid_2-1648734049288.png" alt="Ingrid_2-1648734049288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Ingrid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 13:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8QM-Ethernet-TX-Clock-problem/m-p/1437091#M188828</guid>
      <dc:creator>sig0912</dc:creator>
      <dc:date>2022-03-31T13:44:15Z</dc:date>
    </item>
  </channel>
</rss>

