<?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: CLKOUT0 configuration in S32G</title>
    <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405865#M475</link>
    <description>&lt;P&gt;Dear Bulat,&lt;/P&gt;&lt;P&gt;OK! Thanks for your kindly reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 08:41:15 GMT</pubDate>
    <dc:creator>GaryLiu</dc:creator>
    <dc:date>2022-01-27T08:41:15Z</dc:date>
    <item>
      <title>CLKOUT0 configuration</title>
      <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1400776#M415</link>
      <description>&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;We want to set the pin PF_03(83 SIUL2 0) as CLKOUT0 and generate a 500KHz clock to it.&lt;BR /&gt;I've research the document S32G2 Reference Manual.pdf&lt;/P&gt;&lt;P&gt;Following is what I understand by chapter 23.1.2.6.1 CLKOUT n clock configuration.&lt;BR /&gt;1.&lt;BR /&gt;We should config the MSCR83. (address=4009_C38C)&lt;/P&gt;&lt;P&gt;bit21(OBE) set 1 as output driver enabled&lt;BR /&gt;bit14(SRE) set 110b &amp;lt;- this is not sure which one we should select&lt;BR /&gt;bit13(PUE) set 1 as push/pull enable&amp;nbsp;&amp;nbsp;&lt;BR /&gt;bit12(PUS) set 1 for pull up&lt;BR /&gt;bit0(SSS) set 001 for select CLKOUT0&lt;/P&gt;&lt;P&gt;if the CLKOUT0 is not opendrain, we should set push/pull by setting PUE and PUS as 1, am I right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;BR /&gt;We should config the Clock Mux 1 Divider 0 Control Register (MUX_1_DC_0)&lt;BR /&gt;Address is MC_CGM_0 base address: 4003_0000h, offset 0x348&lt;/P&gt;&lt;P&gt;bit31(DE) set 1 for Divider enabled&lt;BR /&gt;bit16(DIV) set 0x50 for 500KHz (40MHz / 0x50 = 500KHz if it can providing 40MHz)&lt;/P&gt;&lt;P&gt;Do I have misunderstanding for our propose from the document?&lt;BR /&gt;If it is correct procedure, Could you guide us how to implement it by using the device tree way? Appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;BRs,&lt;BR /&gt;Gary&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 08:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1400776#M415</guid>
      <dc:creator>GaryLiu</dc:creator>
      <dc:date>2022-01-18T08:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: CLKOUT0 configuration</title>
      <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1400784#M416</link>
      <description>&lt;P&gt;Our board version is&amp;nbsp;&lt;SPAN&gt;s32g274ardb2, and source code base on&amp;nbsp;bsp30.0 linux 5.10.41.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 08:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1400784#M416</guid>
      <dc:creator>GaryLiu</dc:creator>
      <dc:date>2022-01-18T08:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: CLKOUT0 configuration</title>
      <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1401696#M429</link>
      <description>&lt;P&gt;PUE and PUS bits are not needed in your case, keep these as '0'.&lt;/P&gt;&lt;P&gt;SRE defines slew rate of the output buffer, and consequently maximum output frequency. Numbers for maximum output frequency for each SRE value can be found in the ref manual.&lt;/P&gt;&lt;P&gt;Other calculations of registers values are correct and correspond to your task.&lt;/P&gt;&lt;P&gt;Question about implementation of setup to device tree is not in line with register's values, please create a new thread for it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bulat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 11:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1401696#M429</guid>
      <dc:creator>Bulat</dc:creator>
      <dc:date>2022-01-19T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: CLKOUT0 configuration</title>
      <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405017#M468</link>
      <description>&lt;P&gt;Dear Bulat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;PUE and PUS bits are not needed in your case, keep these as '0'.&lt;/P&gt;&lt;P&gt;&amp;lt;-&amp;nbsp; So we don't have to set those two bit for setting the pin PF_03(83 SIUL2 0) as CLKOUT0 though we don't have a pull high&amp;nbsp;resistor on this pin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question about implementation of setup to device tree is not in line with register's values, please create a new thread for it.&lt;/P&gt;&lt;P&gt;&amp;lt;- Do you mean I have to create a new thread on the same path :Home-&amp;gt;Product Forums-&amp;gt;S32G?&lt;/P&gt;&lt;P&gt;Or I should create it to the software Forums? But I am not sure which path matching this questions in&amp;nbsp;software Forums.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 08:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405017#M468</guid>
      <dc:creator>GaryLiu</dc:creator>
      <dc:date>2022-01-26T08:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: CLKOUT0 configuration</title>
      <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405761#M473</link>
      <description>&lt;P&gt;CLKOUT0 is an output pin and it does not need pull-ups. Pull-up/down can be important for input pins to prevent floating if no external source drives the pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you need to use 'Product Forums-&amp;gt;S32G' path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bulat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 06:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405761#M473</guid>
      <dc:creator>Bulat</dc:creator>
      <dc:date>2022-01-27T06:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: CLKOUT0 configuration</title>
      <link>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405865#M475</link>
      <description>&lt;P&gt;Dear Bulat,&lt;/P&gt;&lt;P&gt;OK! Thanks for your kindly reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 08:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/CLKOUT0-configuration/m-p/1405865#M475</guid>
      <dc:creator>GaryLiu</dc:creator>
      <dc:date>2022-01-27T08:41:15Z</dc:date>
    </item>
  </channel>
</rss>

