diff -uprN old/Documentation/devicetree/bindings/pps/pps-gpio.txt new/Documentation/devicetree/bindings/pps/pps-gpio.txt --- old/Documentation/devicetree/bindings/pps/pps-gpio.txt 2016-09-19 09:51:11.271472335 -0500 +++ new/Documentation/devicetree/bindings/pps/pps-gpio.txt 2016-09-19 09:49:27.283474197 -0500 @@ -17,4 +17,5 @@ Example: gpios = <&gpio2 6 0>; assert-falling-edge; + capture-clear; }; diff -uprN old/drivers/pps/clients/pps-gpio.c new/drivers/pps/clients/pps-gpio.c --- old/drivers/pps/clients/pps-gpio.c 2016-09-19 09:51:11.271472335 -0500 +++ new/drivers/pps/clients/pps-gpio.c 2016-09-19 17:09:02.367001869 -0500 @@ -119,6 +119,8 @@ static int pps_gpio_probe(struct platfor if (of_get_property(np, "assert-falling-edge", NULL)) data->assert_falling_edge = true; + if (of_get_property(np, "capture-clear", NULL)) + data->capture_clear = true; } /* GPIO setup */ @@ -208,6 +210,8 @@ static struct platform_driver pps_gpio_d module_platform_driver(pps_gpio_driver); MODULE_AUTHOR("Ricardo Martins "); MODULE_AUTHOR("James Nuss "); +MODULE_AUTHOR("Gary Miller "); + MODULE_DESCRIPTION("Use GPIO pin as PPS source"); MODULE_LICENSE("GPL"); -MODULE_VERSION("1.0.0"); +MODULE_VERSION("1.0.1");