<?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: Driving PPS from GPIO</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479086#M76181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at linux documentation&lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/pps/pps-gpio.txt" title="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/pps/pps-gpio.txt"&gt;Linux/Documentation/devicetree/bindings/pps/pps-gpio.txt - Linux Cross Reference - Free Electrons&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.linuxpps.org/pipermail/discussions/2013-April/004423.html" title="http://www.linuxpps.org/pipermail/discussions/2013-April/004423.html"&gt;[LinuxPPS] linuxpps and devicetree support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 10:41:48 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2015-12-16T10:41:48Z</dc:date>
    <item>
      <title>Driving PPS from GPIO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479085#M76180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for some help here, as I am currently stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an i.MX6Q with a Linux kernel built using bitbake.&lt;/P&gt;&lt;P&gt;I have enabled PPS and GPIO support using the Linux menuconfig method.&lt;/P&gt;&lt;P&gt;I also have a uBlox GPS receiver powered and connected through GPIO pins. &lt;/P&gt;&lt;P&gt;I can see that there are PPS devices in my device tree and I can also manipulate and export GPIOs using sysfs. Also, I have installed ktimer to ensure that PPS is working and it looks fine here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, how can I tell LinuxPPS that I want to use an arbitrary GPIO as a PPS source coming from my GPS receiver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help here would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479085#M76180</guid>
      <dc:creator>jaynadeau</dc:creator>
      <dc:date>2015-12-11T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Driving PPS from GPIO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479086#M76181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at linux documentation&lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/pps/pps-gpio.txt" title="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/pps/pps-gpio.txt"&gt;Linux/Documentation/devicetree/bindings/pps/pps-gpio.txt - Linux Cross Reference - Free Electrons&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.linuxpps.org/pipermail/discussions/2013-April/004423.html" title="http://www.linuxpps.org/pipermail/discussions/2013-April/004423.html"&gt;[LinuxPPS] linuxpps and devicetree support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 10:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479086#M76181</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-12-16T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Driving PPS from GPIO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479087#M76182</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;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have done so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the following to imx6qdl-var-dart.dtsi and imx6qdl-var-som.dtsi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;pps {&lt;BR /&gt;compatible = "pps-gpio";&lt;BR /&gt;gpios = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;;&lt;BR /&gt;assert-falling-edge;&lt;BR /&gt;};&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what is listed after re-building the kernel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;pps_core: LinuxPPS API ver. 1 registered&lt;BR /&gt;&lt;SPAN&gt;pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:giometti@linux.it"&gt;giometti@linux.it&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;pps pps0: new PPS source ptp0&lt;BR /&gt;pps pps1: new PPS source ktimer&lt;BR /&gt;pps pps1: ktimer PPS source registered&lt;BR /&gt;pps_ldisc: PPS line discipline registered&lt;BR /&gt;pps pps2: new PPS source pps.21.-1&lt;BR /&gt;pps pps2: Registered IRQ 161 as PPS source&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pps2 is new after adding the code to the dtsi file. It seems correct so far, but how can I verify that it is in fact working? I.e., how can I see whether the pps signal is being recieved from my GPS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:11:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479087#M76182</guid>
      <dc:creator>jaynadeau</dc:creator>
      <dc:date>2015-12-22T21:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Driving PPS from GPIO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479088#M76183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this command I can see some value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; cat /sys/class/pps/pps2/assert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0.000000000#0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For comparison sake, here is pps1 (ktimer):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cat /sys/class/pps/pps1/assert&lt;/P&gt;&lt;P&gt;1450814279.313042658#89420&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I suppose that either it is not working, or I do not have a GPS lock and therefore, no PPS signal from my GPS.&lt;/P&gt;&lt;P&gt;I will try to verify GPS lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:19:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Driving-PPS-from-GPIO/m-p/479088#M76183</guid>
      <dc:creator>jaynadeau</dc:creator>
      <dc:date>2015-12-22T21:19:50Z</dc:date>
    </item>
  </channel>
</rss>

