[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4244c92d-2079-e3d9-44c8-8e5593d093a5@linaro.org>
Date: Sun, 25 Jun 2023 17:46:30 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Eliav Farber <farbere@...zon.com>, giometti@...eenne.com,
robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
conor+dt@...nel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: ronenk@...zon.com, talel@...zon.com, hhhawa@...zon.com,
jonnyc@...zon.com, itamark@...zon.com, shellykz@...zon.com,
amitlavi@...zon.com, almogbs@...zon.com
Subject: Re: [PATCH 2/5] dt-bindings: pps: pps-gpio: introduce capture-clear
property
On 25/06/2023 16:21, Eliav Farber wrote:
> Add a new optional "capture-clear" boolean property.
> When present, PPS clear events shall also be reported.
>
> Signed-off-by: Eliav Farber <farbere@...zon.com>
> ---
> Documentation/devicetree/bindings/pps/pps-gpio.txt | 4 ++++
Please convert the bindings to DT schema first.
> 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).
Why this is board-dependant? Falling edge is happening anyway, so it is
in the hardware all the time. DT describes the hardware, not Linux
driver behavior.
What's more, your property name sounds a lot like a driver property, so
even if this is suitable for DT, you would need to name it properly to
match hardware feature/characteristic.
Best regards,
Krzysztof
Powered by blists - more mailing lists