<?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: How to output 50MHz on a pin of imx7d constantly in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754930#M117454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN&gt;Cheng&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to rebuild all sources anew from scratch, also&lt;/P&gt;&lt;P&gt;what bsp used in the case, one can try nxp release&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.9.11_1.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.9.11_1.0.0_ga"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also one can try to test in L4.1.15 kernel&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>Wed, 13 Jun 2018 10:20:04 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-06-13T10:20:04Z</dc:date>
    <item>
      <title>How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754925#M117449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;iMX7D enet2 is configured as rmii to lan8720a(phy) in my customer board. With following dts and code change, I can see the 50Mhz on the pin only for very short time, and then disabled when kernel booting finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DTS:&lt;/P&gt;&lt;P&gt;pinctrl_enet2: enet2grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX7D_PAD_EPDC_SDCE2__ENET2_RGMII_TD0 0x73&lt;BR /&gt; MX7D_PAD_EPDC_SDCE3__ENET2_RGMII_TD1 0x73&lt;BR /&gt; MX7D_PAD_EPDC_GDRL__ENET2_RGMII_TX_CTL 0x73 /* TX_EN */&lt;BR /&gt; MX7D_PAD_EPDC_SDCLK__ENET2_RGMII_RD0 0x73&lt;BR /&gt; MX7D_PAD_EPDC_SDLE__ENET2_RGMII_RD1 0x73&lt;BR /&gt; MX7D_PAD_EPDC_SDCE0__ENET2_RGMII_RX_CTL 0x73 /* CRS_DV */&lt;BR /&gt; MX7D_PAD_EPDC_BDR0__CCM_ENET_REF_CLK2 0x73 /* output REF_CLK (50MHz) */&lt;BR /&gt; /* not used in LAN8720A */&lt;BR /&gt; /*MX7D_PAD_EPDC_SDCE1__ENET2_RX_ER 0x73*/ /* RX_ER */ &lt;BR /&gt; &amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;fec2 {&lt;BR /&gt; compatible = "fsl,imx7d-fec", "fsl,imx6sx-fec";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_enet2&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX7D_ENET2_IPG_ROOT_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET_AXI_ROOT_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET2_TIME_ROOT_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_PLL_ENET_MAIN_50M_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET2_REF_ROOT_CLK&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "ahb", "ptp", "enet_clk_ref", "enet_out";&lt;BR /&gt; assigned-clocks = &amp;lt;&amp;amp;clks IMX7D_ENET2_TIME_ROOT_SRC&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET2_TIME_ROOT_CLK&amp;gt;;&lt;BR /&gt; assigned-clock-parents = &amp;lt;&amp;amp;clks IMX7D_PLL_ENET_MAIN_100M_CLK&amp;gt;;&lt;BR /&gt; assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;100000000&amp;gt;;&lt;BR /&gt; mac-address = [ d0 9b 05 00 10 20 ]; /* temp mac id */&lt;BR /&gt; phy-mode = "rmii";&lt;BR /&gt; phy-handle = &amp;lt;&amp;amp;ethphy1&amp;gt;;&lt;BR /&gt; fsl,magic-packet;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clk-imx7d.c code changed as follows:&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * init enet clock source:&lt;BR /&gt; * AXI clock source is 250Mhz&lt;BR /&gt; * Phy refrence clock is 25Mhz&lt;BR /&gt; * 1588 time clock source is 100Mhz&lt;BR /&gt; */&lt;BR /&gt; imx_clk_set_parent(clks[IMX7D_ENET_AXI_ROOT_SRC], clks[IMX7D_PLL_ENET_MAIN_250M_CLK]);&lt;BR /&gt; imx_clk_set_rate(clks[IMX7D_ENET_AXI_ROOT_CLK], 267000000);&lt;BR /&gt; imx_clk_set_parent(clks[IMX7D_ENET_PHY_REF_ROOT_SRC], clks[IMX7D_PLL_ENET_MAIN_25M_CLK]);&lt;BR /&gt; &lt;BR /&gt;+ /* clock mux has to be put to the 50Mhz */&lt;BR /&gt;+ imx_clk_set_parent(clks[IMX7D_ENET2_REF_ROOT_SRC], clks[IMX7D_PLL_ENET_MAIN_50M_CLK]);&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;/* set pcie root's parent clk source */&lt;BR /&gt; imx_clk_set_parent(clks[IMX7D_PCIE_CTRL_ROOT_SRC], clks[IMX7D_PLL_ENET_MAIN_250M_CLK]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;changes in mach-imx7d.c are referenced that of toradex:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;static void __init imx7d_enet_clk_sel(void)
{
 struct device_node *np;
 struct clk *enet_out_clk;
 struct regmap *gpr;

 np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-fec");
 if (!np) {
 pr_warn("%s: failed to find fec node\n", __func__);
 return;
 }

 enet_out_clk = of_clk_get_by_name(np, "enet_out");

 gpr = syscon_regmap_lookup_by_compatible("fsl,imx7d-iomuxc-gpr");

 if (!IS_ERR(gpr)) {
 if (IS_ERR(enet_out_clk)) {
 pr_info("%s: failed to get enet_out clock, assuming ext. clock source\n", __func__);
 /* use external clock for PHY */
 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK);
 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_CLK_DIR_MASK, 0);
 } else {
 pr_info("%s: found enet_out clock, assuming internal clock source\n", __func__);
 /* use internal clock generation and output it to PHY */
 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK, 0);
 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_CLK_DIR_MASK, IMX7D_GPR1_ENET_CLK_DIR_MASK);
 clk_put(enet_out_clk);

 }
 } else {
 pr_err("failed to find fsl,imx7d-iomux-gpr regmap\n");
 }
 of_node_put(np);
}

&lt;/PRE&gt;&lt;P&gt;The kernel is from yocto, it's 4.9.11.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The changes should be OK as 50Mhz can be seen during booting, but I can not figure out the cause which stops outputing the clock. Thanks for all helps in adavnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Cheng Shi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 03:23:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754925#M117449</guid>
      <dc:creator>x10</dc:creator>
      <dc:date>2018-06-06T03:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754926#M117450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheng&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can set&amp;nbsp; IMX7D_GPR1_ENET_CLK_DIR to 1, as described in&lt;/P&gt;&lt;P&gt;sect.8.2.4.2 GPR1 General Purpose Register (IOMUXC_GPR_GPR1)&lt;/P&gt;&lt;P&gt;i.MX7D Reference Manual:&lt;/P&gt;&lt;P&gt;1 ENET_TX_CLK output driver is enabled when configured for ALT1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.nxp.com/files/32bit/doc/ref_manual/IMX7DRM.pdf"&gt;http://cache.nxp.com/files/32bit/doc/ref_manual/IMX7DRM.pdf&lt;/A&gt;&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>Wed, 06 Jun 2018 06:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754926#M117450</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-06T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754927#M117451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hi, Igor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks for reply. The&amp;nbsp;ENET2_TX_CLK_SEL set to 0, and&amp;nbsp;ENET2_CLK_DIR set to 1 with following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt; regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK, 0);&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt; regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_CLK_DIR_MASK, IMX7D_GPR1_ENET_CLK_DIR_MASK);&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;in mach-imx7d.c. On pin &lt;SPAN style="color: #51626f;"&gt;MX7D_PAD_EPDC_BDR0, a 50MHz clock can be seen on oscilloscope. 
&lt;/SPAN&gt;With further tesing, I'm sure the problem is that &lt;SPAN style="color: #ff0000;"&gt;fec2 can not send out tx data, as TX_EN is always low&lt;/SPAN&gt;. The phy lan8720a&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;can be set in normal link state, and rx data is on chip's pins. As result eth1 is invalid, and be shutdown by system, which cause &lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;the 50Mhz clock is disabled as well. I have double checked 3.3V power supply to NVCC_EPDC1 and NVCC_EPDC2 is okay,&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;and some gpio pins from the same group are work fine.&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;In my design, fec1 is in rgmii, which works fine, and fec2 is in rmii.&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;BR&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Cheng Shi&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 03:22:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754927#M117451</guid>
      <dc:creator>x10</dc:creator>
      <dc:date>2018-06-07T03:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754928#M117452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheng&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check assigned clocks, below example&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/435273"&gt;RMII interface on the IMX7&lt;/A&gt;&amp;nbsp;&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, 07 Jun 2018 10:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754928#M117452</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-07T10:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754929#M117453</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;I have changed assigned-clocks to&amp;nbsp;IMX7D_PLL_ENET_MAIN_50M_CLK, no luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wonder how to know that the ENET2_REF_CLK is applied to fec2 controller, as&amp;nbsp;&lt;SPAN&gt;ENET2_REF_CLK&amp;nbsp;is not listed in Table11-2 in RM, which is a table of enet clocks. The ENET2_REF_CLK may not be applied to fec2 properly, so that TX_EN can not been clocked out on its pin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheng Shi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 06:37:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754929#M117453</guid>
      <dc:creator>x10</dc:creator>
      <dc:date>2018-06-13T06:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754930#M117454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN&gt;Cheng&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to rebuild all sources anew from scratch, also&lt;/P&gt;&lt;P&gt;what bsp used in the case, one can try nxp release&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.9.11_1.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.9.11_1.0.0_ga"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also one can try to test in L4.1.15 kernel&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>Wed, 13 Jun 2018 10:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754930#M117454</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-13T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754931#M117455</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;The kernel I'm using is 4.9.11_1.0.0 already. I will&amp;nbsp;try imx_4.9.11_2.0.0_ga later.&lt;/P&gt;&lt;P&gt;I haven't found&amp;nbsp;the IMX7D_ENET2_REF_ROOT_CLK clk instance in clk-imx7d.c, but the clock is used in fec driver code. confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Cheng Shi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 07:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754931#M117455</guid>
      <dc:creator>x10</dc:creator>
      <dc:date>2018-06-20T07:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754932#M117456</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;The fec2 in my board is got work with following config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;fec2 {&lt;BR /&gt; compatible = "fsl,imx7d-fec", "fsl,imx6sx-fec";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_enet2&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX7D_ENET2_IPG_ROOT_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET_AXI_ROOT_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET2_TIME_ROOT_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_PLL_ENET_MAIN_50M_CLK&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET2_REF_ROOT_CLK&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "ahb", "ptp", "enet_clk_ref", "no_enet_out";&lt;BR /&gt; assigned-clocks = &amp;lt;&amp;amp;clks IMX7D_ENET2_TIME_ROOT_SRC&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX7D_ENET2_TIME_ROOT_CLK&amp;gt;;&lt;BR /&gt; assigned-clock-parents = &amp;lt;&amp;amp;clks IMX7D_PLL_ENET_MAIN_100M_CLK&amp;gt;;&lt;BR /&gt; assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;100000000&amp;gt;;&lt;BR /&gt; local-mac-address = [ d0 9b 05 00 10 20 ]; /* temp mac id */&lt;BR /&gt; phy-mode = "rmii";&lt;BR /&gt; phy-handle = &amp;lt;&amp;amp;ethphy1&amp;gt;;&lt;BR /&gt; fsl,magic-packet;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_enet2: enet2grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX7D_PAD_EPDC_SDCE2__ENET2_RGMII_TD0 0x73&lt;BR /&gt; MX7D_PAD_EPDC_SDCE3__ENET2_RGMII_TD1 0x73&lt;BR /&gt; MX7D_PAD_EPDC_GDRL__ENET2_RGMII_TX_CTL 0x73 /* TX_EN */&lt;BR /&gt; MX7D_PAD_EPDC_SDCLK__ENET2_RGMII_RD0 0x73&lt;BR /&gt; MX7D_PAD_EPDC_SDLE__ENET2_RGMII_RD1 0x73&lt;BR /&gt; MX7D_PAD_EPDC_SDCE0__ENET2_RGMII_RX_CTL 0x73 /* CRS_DV */&lt;BR /&gt; MX7D_PAD_EPDC_SDCE1__ENET2_RX_ER 0x73 /* RX_ER */ &lt;BR /&gt; MX7D_PAD_EPDC_BDR0__CCM_ENET_REF_CLK2 0x40000073 /* PAD_EPDC_BDR0_ALT3 =&amp;gt; CCM_ENET_REF_CLK2: 50MHz input */&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENET_PHY_REF_CLK is used as 50MHz clock source with update in clk-imx7d.c as follows:&lt;/P&gt;&lt;P&gt;imx_clk_set_parent(clks[IMX7D_ENET_PHY_REF_ROOT_SRC], clks[IMX7D_PLL_ENET_MAIN_50M_CLK]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ENET_PHY_REF_CLK is connected to both CCM_ENET_REF_CLK2 and external phy's CLKIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Cheng Shi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 07:41:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754932#M117456</guid>
      <dc:creator>x10</dc:creator>
      <dc:date>2018-06-21T07:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to output 50MHz on a pin of imx7d constantly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754933#M117457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to change "no_enet_out" with "enet_out"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 08:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-output-50MHz-on-a-pin-of-imx7d-constantly/m-p/754933#M117457</guid>
      <dc:creator>emintolgasivri</dc:creator>
      <dc:date>2018-11-20T08:06:55Z</dc:date>
    </item>
  </channel>
</rss>

