<?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: GPT input Capture in I.MX8M Mini in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1207560#M167350</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/80518"&gt;@magicarrow98&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you get this working on IMX8MM? I would like to do the same. Are you happy to share your solution? At the moment I can see the device tree is:&lt;/P&gt;&lt;P&gt;pinctrl_gpio_keys: gpiokeysgrp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MM_IOMUXC_SAI3_RXFS_GPT1_CAPTURE1 0x1b0b0 /* SODIMM 252 */&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;aips1 {&lt;BR /&gt;gpt1: gpt@302d0000 {&lt;BR /&gt;compatible = "fsl,imx8mm-gpt", "fsl,imx7d-gpt", "fsl,imx6sx-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;pinctrl-name = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpio_keys&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;But I get no kernel messages related to gpt using dmesg | grep gpt&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ed&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 14:23:18 GMT</pubDate>
    <dc:creator>edcloudcycle</dc:creator>
    <dc:date>2021-01-06T14:23:18Z</dc:date>
    <item>
      <title>GPT input Capture in I.MX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044403#M153779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am working on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;I.MX8M mini(A53)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;using linux&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;kernel 4.14.78(debian)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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 style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN&gt;I have added the patchwork from the below link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://lore.kernel.org/linux-arm-kernel/20191027212121.GA3049@bogus/T/#mdfc6fccc006b5aa585bcda321f1fd4ed85e48938" title="https://lore.kernel.org/linux-arm-kernel/20191027212121.GA3049@bogus/T/#mdfc6fccc006b5aa585bcda321f1fd4ed85e48938"&gt;[PATCH 1/2] clocksource/drivers/imx: add input capture support&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I also modified the device tree to use GPT1 CPTURE1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;fsl-imx8mm-ufl.dts&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt; pinctrl_gpt_input_capture0: gptinputcapture0grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX8MM_IOMUXC_SAI3_RXFS_GPT1_CAPTURE1 0x1b0b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;fsl-imx9mm.dtsi:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt; gpt1: gpt@302d0000 {&lt;BR /&gt; compatible = "fsl,imx8mm-gpt", "fsl,imx7d-gpt", "fsl,imx6sx-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; pinctrl-name = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpt_input_capture0&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;However, I still have no access to GPT Input Capture Register 1.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I think we should use the mxc_request_input_capture function.&lt;BR /&gt;But the problem is, i do not know where should i use the mxc_request_input_capture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 02:29:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044403#M153779</guid>
      <dc:creator>magicarrow98</dc:creator>
      <dc:date>2020-05-20T02:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: GPT input Capture in I.MX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044404#M153780</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;one can try to follow example below and timer description in&lt;/P&gt;&lt;P&gt;sect.2.1.3 Timer attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/mach-imx/epit.c?h=imx_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/mach-imx/epit.c?h=imx_4.14.78_1.0.0_ga"&gt;epit.c\mach-imx\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&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, 20 May 2020 04:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044404#M153780</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-20T04:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: GPT input Capture in I.MX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044405#M153781</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;Thank you for your response.&lt;BR /&gt;But I didn't get any hints.&lt;BR /&gt;In the reference manual, only the location and brief description of the source code are provided.&lt;BR /&gt;This does not help me at all.&lt;BR /&gt;Even according to the reference manual, EPIT is said to be used in I.MX6 and I.MX7, but I use I.MX8M Mini.&lt;BR /&gt;Can I use Input Capture on I.MX8M Mini?&lt;BR /&gt;As mentioned above, I modified the device tree and timer_imx_gpt.c source code to get the encoder signal of the motor using the SAI3_RXFS pin.&lt;BR /&gt;I checked the probe in the terminal and there was a platform named mxc-timer.&lt;/P&gt;&lt;P&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/106872iD90F5CE1971377E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;However, the input capture function is still not available.&lt;BR /&gt;I now need a specific way of what to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 11:20:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044405#M153781</guid>
      <dc:creator>magicarrow98</dc:creator>
      <dc:date>2020-05-20T11:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: GPT input Capture in I.MX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044406#M153782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also one can look at below pacthes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/492843"&gt;How can I use the i.MX6 GPT to safely read a PWM?&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>Wed, 20 May 2020 12:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044406#M153782</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-20T12:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: GPT input Capture in I.MX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1207560#M167350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/80518"&gt;@magicarrow98&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you get this working on IMX8MM? I would like to do the same. Are you happy to share your solution? At the moment I can see the device tree is:&lt;/P&gt;&lt;P&gt;pinctrl_gpio_keys: gpiokeysgrp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MM_IOMUXC_SAI3_RXFS_GPT1_CAPTURE1 0x1b0b0 /* SODIMM 252 */&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;aips1 {&lt;BR /&gt;gpt1: gpt@302d0000 {&lt;BR /&gt;compatible = "fsl,imx8mm-gpt", "fsl,imx7d-gpt", "fsl,imx6sx-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;pinctrl-name = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpio_keys&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;But I get no kernel messages related to gpt using dmesg | grep gpt&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ed&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 14:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1207560#M167350</guid>
      <dc:creator>edcloudcycle</dc:creator>
      <dc:date>2021-01-06T14:23:18Z</dc:date>
    </item>
  </channel>
</rss>

