<?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 i.MX7D GPT1 usage in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-GPT1-usage/m-p/1528656#M195667</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to use General Purpose timer 1 on a board with the i.MX7d running Linux.&lt;/P&gt;&lt;P&gt;What I plan to do is to use GPT1 to divide a 4 MHz signal on an gpt1.CLK (ALT1 on ball name LCD_DAT2) and output the resulting frequency on the gpt1.COMPARE1 pin (ALT1 on Ball name LCD_RESET).&lt;/P&gt;&lt;P&gt;So basically, I need to configure GTP1 to use an external clock, and program the compare function.&lt;/P&gt;&lt;P&gt;The main question is what I have to do in order to achieve this ? For me, there are a lot of things that need to be clarified :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reading the i.MX Linux manual, section 3.3 "Timer" mentions that GPT may be used by Linux for time keeping. If this is the case, I can probably forget using it the way I want..&lt;BR /&gt;&lt;STRONG&gt;=&amp;gt; How can I check whether GPT1 is in use by Linux ?&lt;/STRONG&gt;&lt;BR /&gt;(I also asked Toradex, the manufacturer of the SoM I am using)&lt;/LI&gt;&lt;LI&gt;I am aware of device trees and I did modify them in the project for other devices. But I cannot find any documentation that describes how to modify the gpt1 node.&lt;BR /&gt;&lt;STRONG&gt;=&amp;gt; what changes are needed to my device tree ?&lt;/STRONG&gt;&lt;BR /&gt;I can provide the current device tree if this helps&lt;/LI&gt;&lt;LI&gt;After the two points above are successfully passed, how do I access the GPT ?&lt;BR /&gt;&lt;STRONG&gt;=&amp;gt; Is there a Linux driver similar to e.g. spidev ?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help is very much appreciated,&lt;/P&gt;&lt;P&gt;Jeroen&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 08:27:52 GMT</pubDate>
    <dc:creator>Ompie</dc:creator>
    <dc:date>2022-09-27T08:27:52Z</dc:date>
    <item>
      <title>i.MX7D GPT1 usage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-GPT1-usage/m-p/1528656#M195667</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to use General Purpose timer 1 on a board with the i.MX7d running Linux.&lt;/P&gt;&lt;P&gt;What I plan to do is to use GPT1 to divide a 4 MHz signal on an gpt1.CLK (ALT1 on ball name LCD_DAT2) and output the resulting frequency on the gpt1.COMPARE1 pin (ALT1 on Ball name LCD_RESET).&lt;/P&gt;&lt;P&gt;So basically, I need to configure GTP1 to use an external clock, and program the compare function.&lt;/P&gt;&lt;P&gt;The main question is what I have to do in order to achieve this ? For me, there are a lot of things that need to be clarified :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Reading the i.MX Linux manual, section 3.3 "Timer" mentions that GPT may be used by Linux for time keeping. If this is the case, I can probably forget using it the way I want..&lt;BR /&gt;&lt;STRONG&gt;=&amp;gt; How can I check whether GPT1 is in use by Linux ?&lt;/STRONG&gt;&lt;BR /&gt;(I also asked Toradex, the manufacturer of the SoM I am using)&lt;/LI&gt;&lt;LI&gt;I am aware of device trees and I did modify them in the project for other devices. But I cannot find any documentation that describes how to modify the gpt1 node.&lt;BR /&gt;&lt;STRONG&gt;=&amp;gt; what changes are needed to my device tree ?&lt;/STRONG&gt;&lt;BR /&gt;I can provide the current device tree if this helps&lt;/LI&gt;&lt;LI&gt;After the two points above are successfully passed, how do I access the GPT ?&lt;BR /&gt;&lt;STRONG&gt;=&amp;gt; Is there a Linux driver similar to e.g. spidev ?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help is very much appreciated,&lt;/P&gt;&lt;P&gt;Jeroen&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 08:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX7D-GPT1-usage/m-p/1528656#M195667</guid>
      <dc:creator>Ompie</dc:creator>
      <dc:date>2022-09-27T08:27:52Z</dc:date>
    </item>
  </channel>
</rss>

