<?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 read GPT1 CAPTURE1? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070591#M157274</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;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the following to the device tree to use the GPT driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;gpt1: gpt@302d0000 {&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;compatible = "fsl,imx8mm-gpt", "fsl,imx7d-gpt";&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;reg = &amp;lt;0x0 0x302d0000 0x0 0x10000&amp;gt;;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;interrupts = &amp;lt;GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_GPT1_ROOT&amp;gt;,&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;lt;&amp;amp;clk IMX8MM_CLK_GPT1_ROOT&amp;gt;,&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;lt;&amp;amp;clk IMX8MM_CLK_GPT_3M&amp;gt;;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clock-names = "ipg", "per", "osc_per";&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;status = "okay";&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;However, I haven't used the GPT driver yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Searching gpt in the kernel does not find the device node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82679i14A7E15BAF2AADC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;BR /&gt;How can I read the value of GPT1_CAPTURE1 from GPT driver?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2020 01:35:25 GMT</pubDate>
    <dc:creator>magicarrow98</dc:creator>
    <dc:date>2020-05-12T01:35:25Z</dc:date>
    <item>
      <title>How to read GPT1 CAPTURE1?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070589#M157272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on &lt;STRONG&gt;I.MX8M mini(A53)&lt;/STRONG&gt; using linux &lt;STRONG&gt;kernel 4.14.78(debian)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I want to find out the motor speed with the GPT CAPTURE function by connecting a motor encoder to SAI3_RXFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my device tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- fsl-imx8mm.dtsi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpt1: gpt@302d0000 {&lt;BR /&gt;compatible = "fsl,imx8mm-gpt", "fsl,imx7d-gpt";&lt;BR /&gt; reg = &amp;lt;0x0 0x302d0000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_GPT1_ROOT&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clk IMX8MM_CLK_GPT1_ROOT&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clk IMX8MM_CLK_GPT_3M&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "per", "osc_per";&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system_counter: timer@306a0000 {&lt;BR /&gt; compatible = "nxp,sysctr-timer";&lt;BR /&gt; reg = &amp;lt;0x0 0x306a0000 0x0 0x10000&amp;gt;, /* system-counter-rd base */&lt;BR /&gt; &amp;lt;0x0 0x306b0000 0x0 0x10000&amp;gt;, /* system-counter-cmp base */&lt;BR /&gt; &amp;lt;0x0 0x306c0000 0x0 0x10000&amp;gt;; /* system-counter-ctrl base */&lt;BR /&gt; clock-frequency = &amp;lt;8000000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH&amp;gt;,&lt;BR /&gt; &amp;lt;GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sai3: sai@30030000 {&lt;BR /&gt; compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai", "fsl,imx6sx-sai";&lt;BR /&gt; reg = &amp;lt;0x0 0x30030000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI3_IPG&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clk IMX8MM_CLK_DUMMY&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI3_ROOT&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clk IMX8MM_CLK_DUMMY&amp;gt;, &amp;lt;&amp;amp;clk IMX8MM_CLK_DUMMY&amp;gt;;&lt;BR /&gt; clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";&lt;BR /&gt; dmas = &amp;lt;&amp;amp;sdma2 4 2 0&amp;gt;, &amp;lt;&amp;amp;sdma2 5 2 0&amp;gt;;&lt;BR /&gt; dma-names = "rx", "tx";&lt;BR /&gt; status = "&lt;STRONG&gt;disabled&lt;/STRONG&gt;";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in the "&lt;STRONG&gt;I.MX_Reference_Manual.pdf&lt;/STRONG&gt;", I.MX8M use the &lt;STRONG&gt;System Counter Timer&lt;/STRONG&gt; instead of &lt;STRONG&gt;GPT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMX8MMRM.pdf is written for the GPT CAPTURE register, is this not available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/516697"&gt;How to enable timer Interrupt in iMX8MQ EVK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this question, I use IMX8MQ, can I apply this to my board?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 10:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070589#M157272</guid>
      <dc:creator>magicarrow98</dc:creator>
      <dc:date>2020-05-11T10:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to read GPT1 CAPTURE1?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070590#M157273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;However, in the "I.MX_Reference_Manual.pdf", I.MX8M use the System Counter Timer instead of GPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems one can use GPT in i.MX8M and i.MX8M Mini, as Mini uses the same driver.&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>Mon, 11 May 2020 23:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070590#M157273</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-11T23:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read GPT1 CAPTURE1?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070591#M157274</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;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the following to the device tree to use the GPT driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;gpt1: gpt@302d0000 {&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;compatible = "fsl,imx8mm-gpt", "fsl,imx7d-gpt";&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;reg = &amp;lt;0x0 0x302d0000 0x0 0x10000&amp;gt;;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;interrupts = &amp;lt;GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_GPT1_ROOT&amp;gt;,&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;lt;&amp;amp;clk IMX8MM_CLK_GPT1_ROOT&amp;gt;,&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;lt;&amp;amp;clk IMX8MM_CLK_GPT_3M&amp;gt;;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clock-names = "ipg", "per", "osc_per";&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;status = "okay";&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;However, I haven't used the GPT driver yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Searching gpt in the kernel does not find the device node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82679i14A7E15BAF2AADC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;BR /&gt;How can I read the value of GPT1_CAPTURE1 from GPT driver?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 01:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070591#M157274</guid>
      <dc:creator>magicarrow98</dc:creator>
      <dc:date>2020-05-12T01:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to read GPT1 CAPTURE1?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070592#M157275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for gpt example one can look at SDK_EVK-MIMX8MM&lt;/P&gt;&lt;P&gt;(folder ../driver_examples/gpt) available on &lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&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>Tue, 12 May 2020 05:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070592#M157275</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-12T05:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to read GPT1 CAPTURE1?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070593#M157276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, igor.&lt;/P&gt;&lt;P&gt;Your answer was very helpful.&lt;/P&gt;&lt;P&gt;But still I don't know how to do GPT CAPTURE.&lt;/P&gt;&lt;P&gt;In my opinion, I need to add gpt1 to device tree and register MX8MM_IOMUXC_SAI3_RXFS_GPT1_CAPTURE1 in pinctrl so I can use SAI3_RXFS Pin as GPT CAPTURE.&lt;/P&gt;&lt;P&gt;I have only added gpt1 yet and do not know how to register pinctrl.&lt;BR /&gt;Can you tell me how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 07:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPT1-CAPTURE1/m-p/1070593#M157276</guid>
      <dc:creator>magicarrow98</dc:creator>
      <dc:date>2020-05-12T07:15:54Z</dc:date>
    </item>
  </channel>
</rss>

