From patchwork Wed Nov 14 12:54:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Burkart X-Patchwork-Id: 997703 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=aussec.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aussec.com header.i=@aussec.com header.b="sUYjfp3o"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42w4H94qkKz9sB5 for ; Wed, 14 Nov 2018 23:55:49 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732638AbeKNW64 (ORCPT ); Wed, 14 Nov 2018 17:58:56 -0500 Received: from csm1.csm-office.com.au ([165.228.118.109]:48384 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727731AbeKNW64 (ORCPT ); Wed, 14 Nov 2018 17:58:56 -0500 X-Virus-Scanned: amavisd-new at aussec.com Received: from hpdv6.aussec.com.com (c110-21-61-29.farfl4.nsw.optusnet.com.au [110.21.61.29]) (authenticated bits=0) by sleepy.aussec.com (8.15.2/8.15.2) with ESMTPSA id wAECsstY003333 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 14 Nov 2018 23:55:34 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1542200135; bh=9KCsWsO9tf1tiUqYQMMZGz1apDhibjndkZrSb6+xNcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=sUYjfp3oux/2kROIUWSUwwhutzfktSymhHK2TbzJj2dU6emfZf+c0+ek+Qk2m4+q4 I/EGFPE7xbAcYTe64sUKB2PjN/7cczn2/QJxF2EO143I9XjUF6gb4Z0mjQXwNlSgmu wTPwwcQe6gOnMuu0xc6lz3YbZxHHFJNnNrE0uNEqBkg/4Gse5XyoMzQfemwSDqRobH Yd610kwdNmtwVKd97s9yXwC28qHdERlwfYAXn2yZ3qbLvb/V8o0/ZX7FSHCHVXVGRu wTK+X2PG9uIfCbSEUoUF+YJbUQhe/J9dmJKvLmcviCs8eUDrWzQFhreN8OWLnRFA+H RNa4ZYc051+Tg== From: Tom Burkart To: Linux kernel mailing list Cc: Tom Burkart , devicetree@vger.kernel.org, Lukas Senger Subject: [PATCH 3/4] dt-bindings: pps: pps-gpio PPS ECHO implementation Date: Wed, 14 Nov 2018 23:54:31 +1100 Message-Id: <20181114125432.16044-4-tom@aussec.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181114125432.16044-3-tom@aussec.com> References: <20181114125432.16044-1-tom@aussec.com> <20181114125432.16044-2-tom@aussec.com> <20181114125432.16044-3-tom@aussec.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch implements the device tree changes required for the pps echo functionality for pps-gpio, that sysfs claims is available already. This patch was originally written by Lukas Senger as part of a masters thesis project and modified for inclusion into the linux kernel by Tom Burkart. Signed-off-by: Lukas Senger Signed-off-by: Tom Burkart --- Documentation/devicetree/bindings/pps/pps-gpio.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.txt b/Documentation/devicetree/bindings/pps/pps-gpio.txt index 6c9fc0998d94..f85dbe4ce0b3 100644 --- a/Documentation/devicetree/bindings/pps/pps-gpio.txt +++ b/Documentation/devicetree/bindings/pps/pps-gpio.txt @@ -9,10 +9,15 @@ Required properties: Alternatively (DEPRECATED), instead of pps-gpios above, it may have: - gpios: one PPS GPIO as above +Additional required properties for the PPS ECHO functionality: +- echo-gpios: one PPS ECHO GPIO in the format described by ../gpio/gpio.txt +- echo-active-ms: duration in ms of the active portion of the echo pulse + Optional properties: - assert-falling-edge: when present, assert is indicated by a falling edge (instead of by a rising edge) - capture-clear: when present, also capture the PPS clear event +- invert-pps-echo: when present, invert the PPS ECHO pulse Example: pps { @@ -23,5 +28,9 @@ Example: assert-falling-edge; capture-clear; + echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; + echo-active-ms = <100>; + invert-pps-echo; + compatible = "pps-gpio"; };