[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230625142134.33690-4-farbere@amazon.com>
Date: Sun, 25 Jun 2023 14:21:32 +0000
From: Eliav Farber <farbere@...zon.com>
To: <giometti@...eenne.com>, <robh+dt@...nel.org>,
<krzysztof.kozlowski+dt@...aro.org>, <conor+dt@...nel.org>,
<farbere@...zon.com>, <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: [PATCH 3/5] pps: clients: gpio: add option to set capture-clear from device-tree
Enable capture clear events if "capture-clear" boolean property exists
in device-tree.
Signed-off-by: Eliav Farber <farbere@...zon.com>
---
drivers/pps/clients/pps-gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c
index 2f4b11b4dfcd..a61dc1299ce9 100644
--- a/drivers/pps/clients/pps-gpio.c
+++ b/drivers/pps/clients/pps-gpio.c
@@ -112,6 +112,7 @@ static int pps_gpio_setup(struct device *dev)
data->assert_falling_edge =
device_property_read_bool(dev, "assert-falling-edge");
+ data->capture_clear = device_property_read_bool(dev, "capture-clear");
data->echo_pin = devm_gpiod_get_optional(dev, "echo", GPIOD_OUT_LOW);
if (IS_ERR(data->echo_pin))
--
2.40.1
Powered by blists - more mailing lists