<?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>i.MX ProcessorsのトピックRe: iMX8M 1PPS in</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074667#M157773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid PPS drivers are not supported in nxp bsps, supported&lt;/P&gt;&lt;P&gt;are described in linux documentation (Release Notes, Linux Manual)&lt;/P&gt;&lt;P&gt;on link &lt;A class="link-titled" href="https://www.nxp.com/design/i-mx-developer-resources/i-mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i-mx-developer-resources/i-mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can try to debug it using description pps drivers on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kernel.org/doc/html/latest/driver-api/pps.html" title="https://www.kernel.org/doc/html/latest/driver-api/pps.html"&gt;PPS - Pulse Per Second — The Linux Kernel documentation&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>Tue, 26 May 2020 23:33:20 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-05-26T23:33:20Z</dc:date>
    <item>
      <title>iMX8M 1PPS in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074666#M157772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having difficulty getting 1PPS input on a GPIO1_IO08 tp work. My device tree fragments are:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;pinctrl@30330000 {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;compatible = "fsl,imx8mm-iomuxc";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;reg = &amp;lt;0x0 0x30330000 0x0 0x10000&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-names = "default";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-0 = &amp;lt;0x13&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;ucm-imx8m-mini {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ppsgrp {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fsl,pins = &amp;lt;MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x19&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;linux,phandle = &amp;lt;0x60&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;phandle = &amp;lt;0x60&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;... etc ...&lt;/P&gt;&lt;P&gt;gpio@30200000 {&lt;BR /&gt; compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";&lt;BR /&gt; reg = &amp;lt;0x0 0x30200000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;0x0 0x40 0x4 0x0 0x41 0x4&amp;gt;;&lt;BR /&gt; gpio-controller;&lt;BR /&gt; #gpio-cells = &amp;lt;0x2&amp;gt;;&lt;BR /&gt; interrupt-controller;&lt;BR /&gt; #interrupt-cells = &amp;lt;0x2&amp;gt;;&lt;BR /&gt; linux,phandle = &amp;lt;0x21&amp;gt;;&lt;BR /&gt; phandle = &amp;lt;0x21&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... etc ...&lt;/P&gt;&lt;P&gt;pps {&lt;BR /&gt; compatible = "pps-gpio";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;0x60&amp;gt;;&lt;BR /&gt; input-gpios = &amp;lt;0x21 0x08 0x01&amp;gt;;&lt;BR /&gt; assert-rising-edge;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have also enabled CONFIG_PPS=y and CONFIG_PPS_CLIENT_GPIO=m in the kernel config. I've compiled pps-gpio.ko against the same kernel version and .config and place it in the /lib/modules/$(uname -r)/ directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However during the boot process I ge the following messages:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[ 6.072774] pps-gpio pps: failed to get GPIO from device tree&lt;BR /&gt;[ 6.078646] pps-gpio: probe of pps failed with error -2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It would seem pretty clear that the reference to which GPIO pin to use is incorrectly configured but I can't see a problem at all. The gpios=&amp;lt;0x21 0x08 0x00&amp;gt;; should correctly point to the gpiochip0 controller pin 8 and the pinctrl fragment should select the gpio function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be some core concept I'm missing here because as far as I can tell I'm doing what //linux/Documentaion/devicetree/bindings/pps/pps.txt is saying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 05:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074666#M157772</guid>
      <dc:creator>aaron_goldswort</dc:creator>
      <dc:date>2020-05-26T05:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M 1PPS in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074667#M157773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid PPS drivers are not supported in nxp bsps, supported&lt;/P&gt;&lt;P&gt;are described in linux documentation (Release Notes, Linux Manual)&lt;/P&gt;&lt;P&gt;on link &lt;A class="link-titled" href="https://www.nxp.com/design/i-mx-developer-resources/i-mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i-mx-developer-resources/i-mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can try to debug it using description pps drivers on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kernel.org/doc/html/latest/driver-api/pps.html" title="https://www.kernel.org/doc/html/latest/driver-api/pps.html"&gt;PPS - Pulse Per Second — The Linux Kernel documentation&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>Tue, 26 May 2020 23:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074667#M157773</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-05-26T23:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M 1PPS in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074668#M157774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone looking to do this we did get it working.&lt;/P&gt;&lt;P&gt;I think some of the problems we had was the yocto build environment not being ideal. So we switched to a VM using an offically supported version of ubuntu.&lt;/P&gt;&lt;P&gt;The solution isn't far off from my OP:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;// add to pinctrl&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;ppsgrp {&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;fsl,pins = &amp;lt;MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x19&amp;gt;;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;};&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;// add to root&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;pps {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;compatible = "pps-gpio";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-names = "default";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;ppsgrp&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;gpios = &amp;lt;&amp;amp;gpio1&amp;nbsp;8 0&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;// ensure following set in kernel config&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;CONFIG_PPS=y&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;CONFIG_PPS_CLIENT_GPIO=m&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2020 02:26:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1074668#M157774</guid>
      <dc:creator>aaron_goldswort</dc:creator>
      <dc:date>2020-06-17T02:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8M 1PPS in</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1222935#M168621</link>
      <description>&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;So are you saying that instead of trying to figure out why my imx8mm evk 1pps signal isn't working with ptp4l very well, that I should be looking at linuxPPS instead???&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 01:00:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8M-1PPS-in/m-p/1222935#M168621</guid>
      <dc:creator>hutchman</dc:creator>
      <dc:date>2021-01-29T01:00:04Z</dc:date>
    </item>
  </channel>
</rss>

