Messages in this thread | | | Subject | Re: [PATCH] PPS: Restore lost capture-clear option to pps-gpio module. | From | Jan Lübbe <> | Date | Thu, 09 Apr 2015 15:05:09 +0200 |
| |
Hi Gary,
On Do, 2015-04-02 at 12:21 -0700, Gary E. Miller wrote: > In the conversion from platform to device tree the capture-clear > option was lost. > > capture-clear is needed so that time_pps_fetch() will report both > edges of each PPS pulse. Both edges are needed so that userland > programs, like gpsd, can autodetect the leading and trailing PPS > edges.
This is intentional. The userspace program can configure which edges it wants to capture at runtime. Only the polarity (assert-falling-edge) is actually determined by the hardware and must be described in the device tree.
Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
| |