<?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: S32K358 - GMAC Clock Configuration in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184375#M53435</link>
    <description>&lt;P&gt;There is no PHY in my setup. It's MAC-MAC connection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sathishkumar_sunmugavel_0-1760258913178.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360382i3D022D8CA9324A73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathishkumar_sunmugavel_0-1760258913178.png" alt="sathishkumar_sunmugavel_0-1760258913178.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. In that case, Do I need to consider this&amp;nbsp;PHY_INTF_SEL signal input to GMAC module?&lt;BR /&gt;2. Can I use&amp;nbsp;PLL_AUX_CLK with 125MHz for both&amp;nbsp;CLK_TX_I and&amp;nbsp;CLK_RX_I?&lt;BR /&gt;3. CLK_TX_I and&amp;nbsp;CLK_RX_I are connected by internal muxing, and PTB3 should be configured as output from GMAC for RGMII TX_CLK and PTC16 should be configured as input to GMAC RGMII RX_CLK. Is this understanding, correct?&lt;/P&gt;</description>
    <pubDate>Sun, 12 Oct 2025 08:55:31 GMT</pubDate>
    <dc:creator>sathishkumar_sunmugavel</dc:creator>
    <dc:date>2025-10-12T08:55:31Z</dc:date>
    <item>
      <title>S32K358 - GMAC Clock Configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184368#M53434</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;I have a few questions regarding the GMAC clocking configuration.&lt;/P&gt;&lt;P&gt;In my setup, &lt;STRONG&gt;PTB3&lt;/STRONG&gt; is configured as an &lt;STRONG&gt;output pin&lt;/STRONG&gt; for &lt;STRONG&gt;RGMII_TXCLK&lt;/STRONG&gt;, and &lt;STRONG&gt;PTC16&lt;/STRONG&gt; is configured as an &lt;STRONG&gt;input pin&lt;/STRONG&gt; for &lt;STRONG&gt;RGMII_RXCLK&lt;/STRONG&gt;. This configuration is confirmed from the attached Excel sheet.&lt;/P&gt;&lt;P&gt;According to the pin descriptions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;PTB3&lt;/STRONG&gt; can function as either an &lt;STRONG&gt;input or output&lt;/STRONG&gt; for &lt;STRONG&gt;GMAC0_MII_RMII_RGMII_TX_CLK&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &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="sathishkumar_sunmugavel_0-1760251864899.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360377i3A61F8898F5380B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathishkumar_sunmugavel_0-1760251864899.png" alt="sathishkumar_sunmugavel_0-1760251864899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;PTC16&lt;/STRONG&gt; can function as an &lt;STRONG&gt;input&lt;/STRONG&gt; for &lt;STRONG&gt;GMAC0_MII_RGMII_RX_CLK&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &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="sathishkumar_sunmugavel_1-1760251936647.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360378i1E01BB4DDC027BCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathishkumar_sunmugavel_1-1760251936647.png" alt="sathishkumar_sunmugavel_1-1760251936647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using the &lt;STRONG&gt;RGMII interface&lt;/STRONG&gt;, which requires a &lt;STRONG&gt;125 MHz clock input&lt;/STRONG&gt; for both &lt;STRONG&gt;EMAC_CLK_RX&lt;/STRONG&gt; and &lt;STRONG&gt;EMAC_CLK_TX&lt;/STRONG&gt;.&amp;nbsp;From my understanding, only &lt;STRONG&gt;EMAC_MII_RMII_TX_CLK&lt;/STRONG&gt; can be used as the clock input.&lt;/P&gt;&lt;P&gt;If this understanding is incorrect, please clarify how these two clocks should be provided.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;EMAC_MII_RMII_TX_CLK → MC_CGM_MUX7 → EMAC_CLK_RX&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;EMAC_MII_RMII_TX_CLK → MC_CGM_MUX8 → EMAC_CLK_TX&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sathishkumar_sunmugavel_2-1760252344261.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360379iFCBDDEE7982F76C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathishkumar_sunmugavel_2-1760252344261.png" alt="sathishkumar_sunmugavel_2-1760252344261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Up to this point, everything is clear. However, the table below is a bit confusing as it lists the source, destination clock, and port details.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;The &lt;STRONG&gt;IBE bit&lt;/STRONG&gt; is set for all the listed ports — could you please explain what this indicates?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;PTC16&lt;/STRONG&gt; appears to be used between &lt;STRONG&gt;GMAC_MII_RGMII_RX_CLK&lt;/STRONG&gt; and &lt;STRONG&gt;GMAC_TS_CLK&amp;nbsp;&lt;/STRONG&gt;but I used PTC16 as RGMII Rx clock pin&amp;nbsp;&lt;SPAN&gt;— could you clarify this connection?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Based on my understanding, &lt;STRONG&gt;PTB3&lt;/STRONG&gt; and &lt;STRONG&gt;PTC16&lt;/STRONG&gt;&amp;nbsp;can be used as the &lt;STRONG&gt;RGMII Tx/Rx clock pins&lt;/STRONG&gt; connected to the PHY.&amp;nbsp;Additionally, the clock source &lt;STRONG&gt;EMAC_MII_RMII_TX_CLK&lt;/STRONG&gt; is internally connected to &lt;STRONG&gt;EMAC_CLK_RX&lt;/STRONG&gt; and &lt;STRONG&gt;EMAC_CLK_TX&lt;/STRONG&gt; through &lt;STRONG&gt;MUX7&lt;/STRONG&gt; and &lt;STRONG&gt;MUX8&lt;/STRONG&gt;, respectively.&amp;nbsp;However, the information in the table seems inconsistent with this understanding — could you please clarify?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sathishkumar_sunmugavel_3-1760253362178.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360380i83E483A9736F5D2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathishkumar_sunmugavel_3-1760253362178.png" alt="sathishkumar_sunmugavel_3-1760253362178.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Sathish.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Oct 2025 07:22:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184368#M53434</guid>
      <dc:creator>sathishkumar_sunmugavel</dc:creator>
      <dc:date>2025-10-12T07:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 - GMAC Clock Configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184375#M53435</link>
      <description>&lt;P&gt;There is no PHY in my setup. It's MAC-MAC connection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sathishkumar_sunmugavel_0-1760258913178.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360382i3D022D8CA9324A73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sathishkumar_sunmugavel_0-1760258913178.png" alt="sathishkumar_sunmugavel_0-1760258913178.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. In that case, Do I need to consider this&amp;nbsp;PHY_INTF_SEL signal input to GMAC module?&lt;BR /&gt;2. Can I use&amp;nbsp;PLL_AUX_CLK with 125MHz for both&amp;nbsp;CLK_TX_I and&amp;nbsp;CLK_RX_I?&lt;BR /&gt;3. CLK_TX_I and&amp;nbsp;CLK_RX_I are connected by internal muxing, and PTB3 should be configured as output from GMAC for RGMII TX_CLK and PTC16 should be configured as input to GMAC RGMII RX_CLK. Is this understanding, correct?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Oct 2025 08:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184375#M53435</guid>
      <dc:creator>sathishkumar_sunmugavel</dc:creator>
      <dc:date>2025-10-12T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 - GMAC Clock Configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184820#M53475</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248322"&gt;@sathishkumar_sunmugavel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please find answers to your questions below. FYI, you use S32K3 RM Rev 6, the latest one is Rev. 11.&lt;/P&gt;
&lt;P&gt;I run successfully RGMII 100Mbps on&amp;nbsp;S32K358EVB-Q289, with external TJA1103 on SABRE connector.&lt;/P&gt;
&lt;P&gt;1. Here's screenshot of Pins:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_0-1760353715569.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360468i5449985CA62CB5CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_0-1760353715569.png" alt="PavelL_0-1760353715569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Clocks can be tricky a little bit. RGMII TX_CLK shall be an output, RGMII RX_CLK shall be an input.&amp;nbsp;There's an internal divider 2, so TX_CLK need to be doubled.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_1-1760353859390.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360470iEB29310FB9DAF58E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_1-1760353859390.png" alt="PavelL_1-1760353859390.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For GMAC 1Gbps change the clocks accordingly: 25MHz -&amp;gt; 125MHz ; 50MHz -&amp;gt; 250MHz&lt;/P&gt;
&lt;P&gt;3. And the last point, it's necessary to set up clock muxes also in your code, before gmac init. I do it usually as the very first rows in the code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_2-1760354079287.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360471iA68264F3D32428BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_2-1760354079287.png" alt="PavelL_2-1760354079287.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I do not use Table 116 (in RM Rev 6).&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 11:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2184820#M53475</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2025-10-13T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 - GMAC Clock Configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2185319#M53503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233505" target="_blank"&gt;@PavelL&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the valuable inputs. The issue is resolved after adding the below line.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;IP_DCM_GPR-&amp;gt;DCMRWF1|=DCM_GPR_DCMRWF1_MAC_CONF_SEL(0x01) |DCM_GPR_DCMRWF1_MAC_TX_RMII_CLK_LPBCK_EN_MASK;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But could you please confirm why this tx clock loop back is required?&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Best Regards,&lt;BR /&gt;Sathish.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Oct 2025 05:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2185319#M53503</guid>
      <dc:creator>sathishkumar_sunmugavel</dc:creator>
      <dc:date>2025-10-14T05:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 - GMAC Clock Configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2185378#M53507</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248322"&gt;@sathishkumar_sunmugavel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This is related to the GMAC IP from Synopsys.&lt;/P&gt;
&lt;P&gt;This bit allows the MAC to internally loop back its own TX clock as the input clock - which is necessary to initialize MAC in RGMII mode.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 06:48:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2185378#M53507</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2025-10-14T06:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 - GMAC Clock Configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2197202#M54054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233505"&gt;@PavelL&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Got it. Thanks!!!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 04:41:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-GMAC-Clock-Configuration/m-p/2197202#M54054</guid>
      <dc:creator>sathishkumar_sunmugavel</dc:creator>
      <dc:date>2025-11-03T04:41:19Z</dc:date>
    </item>
  </channel>
</rss>

