[PATCH 2/5] dt-bindings: pps: pps-gpio: introduce capture-clear property

From: Eliav Farber
Date: Sun Jun 25 2023 - 10:21:43 EST


Add a new optional "capture-clear" boolean property.
When present, PPS clear events shall also be reported.

Signed-off-by: Eliav Farber <farbere@xxxxxxxxxx>
---
Documentation/devicetree/bindings/pps/pps-gpio.txt | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.txt b/Documentation/devicetree/bindings/pps/pps-gpio.txt
index 9012a2a02e14..8d588e38c44e 100644
--- a/Documentation/devicetree/bindings/pps/pps-gpio.txt
+++ b/Documentation/devicetree/bindings/pps/pps-gpio.txt
@@ -14,6 +14,10 @@ Additional required properties for the PPS ECHO functionality:
Optional properties:
- assert-falling-edge: when present, assert is indicated by a falling edge
(instead of by a rising edge)
+- capture-clear: when present, report also PPS clear events, which is the
+ opposite of the assert edge (if assert is rising-edge then
+ clear is falling-edge and if assert is falling-edge then
+ clear is rising-edge).

Example:
pps {
--
2.40.1