Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp550873imu; Sat, 17 Nov 2018 05:07:57 -0800 (PST) X-Google-Smtp-Source: AJdET5dElukEL75C7ZT08cgqv7HsAOwF2BSoNCFcTr+YlcFXjksA1FVIRkdGhRlaWDCiiq/nhEWT X-Received: by 2002:a17:902:2888:: with SMTP id f8-v6mr9138000plb.37.1542460077474; Sat, 17 Nov 2018 05:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542460077; cv=none; d=google.com; s=arc-20160816; b=y9HVpE04aNA/5qbXNaLgghzLoaPDmjEP5wVn3J6ozCXbqE3BW3FNCZFCRe8TVVEyb2 huyX8kyMINhOAYABi7pBeyZ/L54JRNoFHyeXwzCUkb+Dl4oHyLsBgp7UyTU5WRmG9L+n 0oxLD14QeB/kOJzB1UAR83zbtX+BwhVHC89+aksBFYcnuqNIAZH3GiZ9ygADQ8t16w9A wOCli+wXZvuvQoeX+fFVKlqsVUno8zAp5+MZPZfevfzASrQvV4peLAeyNSa/6nrwIyrA CQt+ZXxAHScq8+eYYZJifht82dbjMTaUOb3WKM80JBU/ss5T0sUIQkJXnFs/gW9goTij kRXg== 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=IbHaCBnAuFh6Hh4PxanN9naNms9jrC8lqELH5vHc8lg=; b=sJFM2lJmw5ZT9AMQkhfmoTVkkGyeAnE53Ps3p2QGvf2mLCekJlRptwMIIFcmcgXeAB U1J+UF/c/drm83TQeJgPiSl1Z5GCTjoscmPIIo402N3cBVr5C/7l/jNLnUDeTufvI6aR upybjFmTbUtZ309bTUKXtwVJ8b3MLKONpi9VpbmjHkCREycDsyhJpig/EH/bdXkXQXzl MxjMJaDhEg59hefeojB6FDWQX77nrjjV9Qtcqj8SK42hpf40ZoKdA9nuaMWYzjb0FcuB A6sTR3zsC0au35217GkzwVJkJ5kurtv3e2zK2B7KoR9mhhxGWSpl3eyaBh2e48qWnVgT tG8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b="kK28yzJ/"; 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 v67-v6si33010802pfv.181.2018.11.17.05.07.27; Sat, 17 Nov 2018 05:07:57 -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="kK28yzJ/"; 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 S1726256AbeKQXXB (ORCPT + 99 others); Sat, 17 Nov 2018 18:23:01 -0500 Received: from csm1.csm-office.com.au ([165.228.118.109]:36448 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbeKQXXB (ORCPT ); Sat, 17 Nov 2018 18:23:01 -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 wAHD5ubm015913 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 18 Nov 2018 00:06:15 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1542459976; bh=hYy//AxlMp9zRIDL21dmLPm1sTgyD2LhXBm8iFsIH0o=; h=From:To:Cc:Subject:Date; b=kK28yzJ/Db1ZmGG7Hq1JMBUciZKYrmN7k7aSEL3yfQv0FBxs3d0NW9eQysbjJuPt8 oVIhiRyHg0y3j9HKQVxuHe/1wPD+a9U4dZe4ry/O+DsD70ZLkOriklvTxWpPtPDJKy 7V9a3BI5SeyK8+0iozLFCkboRr0MDovB+lFP0/J2pfPmjCIMh8nhTNj0n9oDDd0b4/ jKgeMsdxpJ6y7hPiiN9o4RUZED+4PdNosV5iccmI2c6Tl6nlSH5f0FHmUQ9oqehs83 6cISc3vfxx+yyD0ci0gfxhITHDuH54ovtPK8yzxV174PDcWc3PvpoMbzRdS+sLHf/e vFb3RN5DjwkjQ== From: Tom Burkart To: Linux kernel mailing list Cc: Tom Burkart Subject: [PATCH v8 0/4] PPS: pps-gpio PPS ECHO implementation Date: Sun, 18 Nov 2018 00:03:33 +1100 Message-Id: <20181117130337.5856-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. 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 there is a need. Please install, test and comment as it is now a quite major change to the driver. Please do send suggestions for improvement. 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 | 180 ++++++++++++++++----- include/linux/pps-gpio.h | 6 +- 3 files changed, 153 insertions(+), 44 deletions(-) -- 2.12.3