Commit d35408f2 authored by hdoverobinson's avatar hdoverobinson Committed by Phil Elwell
Browse files

added capture_clear option to pps-gpio via dtoverlay (#2433)

parent add09058
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1287,7 +1287,10 @@ Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
Load:   dtoverlay=pps-gpio,<param>=<val>
Params: gpiopin                 Input GPIO (default "18")
        assert_falling_edge     When present, assert is indicated by a falling
                                edge, rather than by a rising edge
                                edge, rather than by a rising edge (default
                                off)
        capture_clear           Generate clear events on the trailing edge
                                (default off)


Name:   pwm
+1 −0
Original line number Diff line number Diff line
@@ -33,5 +33,6 @@
			  <&pps_pins>,"brcm,pins:0",
			  <&pps_pins>,"reg:0";
		assert_falling_edge = <&pps>,"assert-falling-edge?";
		capture_clear = <&pps>,"capture-clear?";
	};
};
+3 −0
Original line number Diff line number Diff line
@@ -119,6 +119,9 @@ static int pps_gpio_probe(struct platform_device *pdev)

		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 */