Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1800435imu; Thu, 22 Nov 2018 23:59:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/UnAUgT4DKjlkl+lNltOvaAsX/hcSIxIwaak4Fj/H9qUX0uNmwQOimgEl6FnbCKaLbXAaJz X-Received: by 2002:a17:902:7603:: with SMTP id k3mr14727168pll.285.1542959973488; Thu, 22 Nov 2018 23:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542959973; cv=none; d=google.com; s=arc-20160816; b=bU7DwfFNGCpI04+S4TdNLcElDtqQLJw9LeOPfoGYFuKFiiRRMR8rKkmCFgtItjGMKn W/2wwd+WaGvcuO+MCnzUh6dNQ3jZm6xq6wBYTN8RM4Gc4I8sD/xOFkNCDwHn1K55Utrd VGh7SMPdenNQ8dGS0eOOX7+xsr9MI409n+5Q7h7ZXTVzDbj6jMwejI6WmONeO7YaifSH Tkq98r+bnMZZo6Ze/9VsdK1EOOW84PSdBNf7qfFcDO3uSwI+Y+gV6Mxs8sKFAc4zbgeo DS5qVV+/DwcyHRt7h/OYb3uKqrvtm7JHGbMVbh/ZMoM3Z6WhJKL3s5BQpHnLMaa/bMps 8dYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=tRb0x+N3OCXKUgDRmZDCSVMDG2Jf3tvL2wBKqWBqc58=; b=bw21eJo9XNT7KKiww4Uw9tL0sMMeBZymWjvw24maRDJP+4zacXqdudrFL9llyFZFbC E1SDcgLnRsKYJ6M7y8cF1AmaQ60ne4pM0EvYDMXSfXkyorWsLiU670yotp/ZYPIhQKPT EQN8UrRdvgrAe3lbBvrVqLZgs2midMbA3EQE7dbvkXurirTOn85448ABzvoN6N1XLNqf GSvKBOBERc+dNVaZiaWVOjyQmurnM4h9Dh++W5J9NBjoIDjHxStrtArK+vj1kMK+dFbo hQili+T49jNWm8lKZt0qHq5sqkqEwjh5NwrWL8JxnU2r4LHSyVUEfE1QGy8ZjXzpX2T7 zKVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b=nlntkYuW; 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 n11-v6si54344577plg.300.2018.11.22.23.59.18; Thu, 22 Nov 2018 23:59:33 -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=nlntkYuW; 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 S2393562AbeKVU1S (ORCPT + 99 others); Thu, 22 Nov 2018 15:27:18 -0500 Received: from csm1.csm-office.com.au ([165.228.118.109]:34182 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389970AbeKVU1S (ORCPT ); Thu, 22 Nov 2018 15:27:18 -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 wAM9mAdg030201 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 22 Nov 2018 20:48:25 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1542880106; bh=tBL2rel5omeQ6+xhDYvBUUtrcg3gtm6zVrzxky3dlek=; h=From:To:Cc:Subject:Date; b=nlntkYuWzzg5mPiAdUyGB1gBKIdeLU3NHBZyn/rlgw3yQM+ETEJhY/PBDtUMmQMTU zWkKRKoCoGzRoHqfxFOC9n+bWSyzmFqxEgV1z1g4Ui3P+Ciwx2UsztXHcf41XyGwnx jsDMGdxcno5E1/8KFIJzFbIJk2sgsvrT7T3TdNFO12XHa2PP3HWbIohUZGg5p3EULh cmBek5poA+8bu4TnHWI957SMoFZEtP9GzF26V7wIxiEAh3vMTfETiQ8UHSKRxIFOnU Lfy3J0lAd5Ye2HNbE7BGASibKm31S3uPPlUVwj5/TU9k1/W2VMsVPE9R0/KNxvdOml pRipbb0GnFYLA== From: Tom Burkart To: Linux kernel mailing list Cc: Tom Burkart Subject: [PATCH v9 0/4] PPS: pps-gpio PPS ECHO implementation Date: Thu, 22 Nov 2018 20:45:58 +1100 Message-Id: <20181122094602.5156-1-tom@aussec.com> X-Mailer: git-send-email 2.12.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, please find attached the PPS-GPIO PPS ECHO implementation patch. The driver claims to have echo functionality in the sysfs interface but this functionality is not present. This patch provides this functionality. Parts 1 and 2 of the patch change the original driver from the number based GPIO ABI to the descriptor based ABI. Parts 3 and 4 then add the PPS ECHO functionality. This is enabled if a "echo-gpios" entry is found in the devicetree. Changes in v8: Changes requested by Rob Herring and Philipp Zabel: DT explanation and don't change the DT entry for the PPS gpio. Changes in v9: Simplify "if" expression by doing echo_active_ms validation earlier. On the linuxpps mailing list it was suggested to use a hrtimer for resetting the GPIO ECHO active state to the inactive state. Please also comment on whether a hrtimer is necessary/desirable for the purpose of resetting the echo pin active state. I am happy to implement it if this is useful/desirable. Please install, test and comment as it is now a quite major change to the driver. Suggestions for improvement are welcome. Tom Burkart Tom Burkart (4): dt-bindings: pps: capture-clear addition pps: descriptor-based gpio, capture-clear addition dt-bindings: pps: pps-gpio PPS ECHO implementation pps: pps-gpio pps-echo implementation Documentation/devicetree/bindings/pps/pps-gpio.txt | 11 ++ drivers/pps/clients/pps-gpio.c | 179 ++++++++++++++++----- include/linux/pps-gpio.h | 6 +- 3 files changed, 152 insertions(+), 44 deletions(-) -- 2.12.3