Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp269983img; Thu, 21 Mar 2019 20:01:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVpH5XJWJXMyP9PaT1G2z1mZJVnNo8ijD2v0bqGsb9znDrWg94F585IGWKiVO0QWYp0pNj X-Received: by 2002:a17:902:8609:: with SMTP id f9mr7141280plo.85.1553223673316; Thu, 21 Mar 2019 20:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553223673; cv=none; d=google.com; s=arc-20160816; b=WDWUOgmmXcj+zk7kRyX1HGy7GjR+xluv4czlra4oqU1eBFuvas9KMvlLzQBPHEAjP9 VbSbxaDszsRRcOVH7+7cAw6nsfAS7GapsUjTT7x6ZpRKhwfPqic4Hk3qYNtyx2Yc84Us gAWXdJFBFG1QlW3h5GmnGHE/couEVP6cwE7mFqgB3uRF+Ks41xLGeR24PZWkq+NpVtPr 6V/1bEVAM8CsLQ4SsNTM9YXAlLXWK2Pa5WZ/thCcTG6Wb7x3cE4cqXDV8Hs8RA32FO1z EL7gdXab2t8LGHG+94Se1iReCm3p9pquc2chFNgHTxzTDlV7pI93fNqVTHV7yVDbzy08 Pk3Q== 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=HFOE070YUgSeqYYtxWJI1AzD2bgw64DFo4FPLP4+rqE=; b=XxUZmqs2zTpjm3k7b02dh38V1aRf9keyjCXpG2I2UMMWGOC76l3P8ElUGSKiHNE/JU oQSG80WLEiZet4i7MEEEmAOjPymilyAsLjJznSqjCaKUjNHyHg64zFCmjxXpi1HlYblN wed4UNnfkLEWFXw8x7lX+3i1EcWR9j8EhgHGa7hk+dam0zKEVGA33zbSLUAmDEmMEFMJ bFXPLnXl2YV7IUW+wCY2BtnUwPXJmnxomGaONk8zy3jYodl4KmXNxLxMF0tkVaPKjlO0 QamuCwqrGDSWnhHiadJY0RWpBRrVf8p5bLZx+6aK7v76kjt4yJ8wWSH7nRH2xAB3BP57 FG+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b=M9s29OI2; 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 r25si5448574pfd.91.2019.03.21.20.00.58; Thu, 21 Mar 2019 20:01:13 -0700 (PDT) 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=M9s29OI2; 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 S1727549AbfCVDAK (ORCPT + 99 others); Thu, 21 Mar 2019 23:00:10 -0400 Received: from csm1.csm-office.com.au ([165.228.118.109]:60196 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727533AbfCVDAJ (ORCPT ); Thu, 21 Mar 2019 23:00:09 -0400 X-Greylist: delayed 978 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 Mar 2019 23:00:05 EDT 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 x2M2hAKX008721 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 22 Mar 2019 13:43:32 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1553222613; bh=fYEKkpdWnZioXg7DaxhUYrSOwNnjiJwK5psYgwYJekQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=M9s29OI2mN1MtfeGV11fdviEMazC8mLBHAcMVDkXIuYaWivC1J/FmhREaxGokWYuN UluDpp50UsxN+9m8cYMT300m8w+f1E6UMI6Guy8vk0B65VwX30Ek6S6Ag/kBpPlmf+ uk8G9tHfC+uYJwFp2z3UMZ2dJxGHV0uXCRLaUO/rmSQ74xKwio6+6rO7ieXQbY3GQu 1VW6fudO5kAp2RmDdcRrnhKId47rB0orbNeO10DgAA0975qNLSIsmjSr83L77RwfjH ErFdN/af2HNiTrbctyxv59PuEvNIXwxFpffntMbyiG2Q+P4rFWNgzy1qyEdobyH2tl F2hoKGFcAa5Fg== From: Tom Burkart To: Linux kernel mailing list , Andrew Morton Cc: Tom Burkart , Rodolfo Giometti , Lukas Senger Subject: [PATCH v17 2/3] dt-bindings: pps: pps-gpio PPS ECHO implementation Date: Fri, 22 Mar 2019 13:42:32 +1100 Message-Id: <20190322024233.17568-3-tom@aussec.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190322024233.17568-2-tom@aussec.com> References: <20190322024233.17568-1-tom@aussec.com> <20190322024233.17568-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. It adds two DT properties for configuring the PPS ECHO functionality. 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. Acked-by: Rodolfo Giometti 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