Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp1549245ima; Sat, 2 Feb 2019 03:01:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN65wutTA0IGaN54+0z+6x/7mqrGInxSod95TiT6l3h1UVfFAvp/w8A9gcoxIEIqmaMXgHlq X-Received: by 2002:a17:902:2bc5:: with SMTP id l63mr44183526plb.107.1549105318507; Sat, 02 Feb 2019 03:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549105318; cv=none; d=google.com; s=arc-20160816; b=so1C57CwFZlT7EhmZvxOIZQGWb1th/zbgYhPmIN3itqbDKYvYmWrbOHAeMookvOBpd dXSLZ+pvJ0wjvY/kSSEGC/jd2OtiUoi8JngfqTsED0pr8kpYaly1x+fF74Hg7Jje8JLY G/6rXtOcsVQepm8GQk4S5KzHwTJ2/z36CmXzpAV88Hb+hOf5twI5n2n5wvq38/7TLHHs Tq2QGDkYGLIIL1tMeqhjaUE34+vQvmxjAbmjo5bQpfnrv8KC4USTKDCpwie0ZHVjec96 rceRlWDaDMSneMiTYqzFvYUIOAMCRMVmi2Ftfj/CDXTslvxycO4Yi+TC4AzcGsGDUNC3 ArCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=DhdjFC8FaphHnDddtLCzCQlwTnWbgLL1/MAQPDtNwto=; b=yZYePSiUt+nZtTaTGdU1AO9OVoec/yrbTvyIRLOjrIszrY9cdJvND17aO5Cg7n7gup /uwVNdZfeRK4MNVP8er8VThm7OWn5rTfAQHWxGOUIEsqajt0fkoYKA7K889fLWJRsMEn PT/FP/rsBE73MCwlBLGsSiQCTKCeJYzWw8hIvOU7nkFHzoEwG20QY5BqrwAeDGBDD39b lb5ntJjd0y9xJjcNUvR7Zk6vEPVgAuWc34/wQcNxl8rcr1g0TxPlcUKX3KpLmYW1ziDB 8CwkD04oVKVNb57MRDeJx+I0K0P41Wo/dkD29m+45k/fJ9nJ3ysSHHCqHhcUZ8k+YD/6 179w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b="B8//SKpR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aussec.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si10458883pls.73.2019.02.02.03.01.43; Sat, 02 Feb 2019 03:01:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b="B8//SKpR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aussec.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727859AbfBBK7y (ORCPT + 99 others); Sat, 2 Feb 2019 05:59:54 -0500 Received: from csm1.csm-office.com.au ([165.228.118.109]:40242 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbfBBK7x (ORCPT ); Sat, 2 Feb 2019 05:59:53 -0500 X-Virus-Scanned: amavisd-new at aussec.com Received: from localhost.localdomain ([1.128.141.87]) (authenticated bits=0) by sleepy.aussec.com (8.15.2/8.15.2) with ESMTPSA id x12AwsV9016455 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 2 Feb 2019 21:59:21 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1549105163; bh=63TeufFp6SzUBuHVcSCPq71/b2G5mC6Rnt7cfWwSR7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=B8//SKpRr58GDedt9zCcY6vEqKJXB3uMFRfAWWMbQ3mqHE08nNG+S6Xh1ulRcLghk +0wu+hJKb25LwqkDBHgXcx1uv6Nx/ZUotYvhCLzfo9Hin7AlZmx2r5RcAKdmGR8bgT K7kf8GvvQnSDZ5QGFvGqWpAFfdfFJujOIGLcn5eniSMr3h2VdA4xPYOeKU7GnezHdZ sfXJXrNUIv+8qgrpKtQlHJi1Xy2zN3+44oLmCMj1nr2RmYK/c3a1wX3PPQwZbzp3Vx /yRqBJ+HRLbjuwkhoh+M+fZXgj/R9vLCDdgcAxuiuvxE93fK4+rtEZJ0wvXdawJNuD RIqJZFtZKLMXA== From: Tom Burkart To: Linux kernel mailing list Cc: Tom Burkart , devicetree@vger.kernel.org, Rodolfo Giometti , Ricardo Martins , James Nuss , Lukas Senger Subject: [PATCH v15 2/3] dt-bindings: pps: pps-gpio PPS ECHO implementation Date: Sat, 2 Feb 2019 21:57:23 +1100 Message-Id: <20190202105724.4743-3-tom@aussec.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190202105724.4743-2-tom@aussec.com> References: <20190202105724.4743-1-tom@aussec.com> <20190202105724.4743-2-tom@aussec.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch implements the device tree binding changes required for the pps echo functionality for pps-gpio, that sysfs claims is available already. This patch is provided separated from the rest of the patch per Documentation/devicetree/bindings/submitting-patches.txt. 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. Reviewed-by: Rob Herring Signed-off-by: Lukas Senger Signed-off-by: Tom Burkart --- Documentation/devicetree/bindings/pps/pps-gpio.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.txt b/Documentation/devicetree/bindings/pps/pps-gpio.txt index 3683874832ae..9012a2a02e14 100644 --- a/Documentation/devicetree/bindings/pps/pps-gpio.txt +++ b/Documentation/devicetree/bindings/pps/pps-gpio.txt @@ -7,6 +7,10 @@ Required properties: - compatible: should be "pps-gpio" - gpios: one PPS GPIO in the format described by ../gpio/gpio.txt +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) @@ -19,5 +23,8 @@ Example: gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; assert-falling-edge; + echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; + echo-active-ms = <100>; + compatible = "pps-gpio"; }; -- 2.12.3