dt-bindings: pps: pps-gpio PPS ECHO implementation
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / pps / pps-gpio.txt
1 Device-Tree Bindings for a PPS Signal on GPIO
2
3 These properties describe a PPS (pulse-per-second) signal connected to
4 a GPIO pin.
5
6 Required properties:
7 - compatible: should be "pps-gpio"
8 - gpios: one PPS GPIO in the format described by ../gpio/gpio.txt
9
10 Additional required properties for the PPS ECHO functionality:
11 - echo-gpios: one PPS ECHO GPIO in the format described by ../gpio/gpio.txt
12 - echo-active-ms: duration in ms of the active portion of the echo pulse
13
14 Optional properties:
15 - assert-falling-edge: when present, assert is indicated by a falling edge
16                        (instead of by a rising edge)
17
18 Example:
19         pps {
20                 pinctrl-names = "default";
21                 pinctrl-0 = <&pinctrl_pps>;
22
23                 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
24                 assert-falling-edge;
25
26                 echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
27                 echo-active-ms = <100>;
28
29                 compatible = "pps-gpio";
30         };