Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6642382imu; Wed, 14 Nov 2018 04:56:11 -0800 (PST) X-Google-Smtp-Source: AJdET5de4ulQIMuwLdaxRhSzhZyf6H2et8DiSLpJ7Kvtf6DKqSQ7JYubndA4x99ajk/b1MUdBP9R X-Received: by 2002:a63:1444:: with SMTP id 4mr1673575pgu.430.1542200171288; Wed, 14 Nov 2018 04:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542200171; cv=none; d=google.com; s=arc-20160816; b=qO9hN+OmMCj3+00a+REfgxj8UnBl11Or3xTcK8B43uLFhgaKjmwFLBN62MxCbieKxF bHTwrLr9Uuh5ks/tUMaJHyxhw+SvqjHSB7uF4BrHMZz6JdaQXQrBGDw0k6cOcad3wIQY 7AF9CWeK7GdzT/y8h0zHSKO0JsuFYD3AMq6ANkbQ1pkFTno0qysOA3n43M9TyJclN/hE /NR/aXyHNHa667xDHm9LdHZJq45e3sWdplDwIfxTIS2rG9Ayvl051JU+csDP6Ma8S15Y 1xtUnBIBpo4v2P+Gkw5U0gr8KYkkzhTLV/nAV+xU0Uczf7gJw/hGfJ0+rEUHLbhB+ETq sQug== 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=+m5GUIEeYWlYdDxWopazitUb3+p/J2KQWuFF0uyFeDA=; b=FB+lw0LosXW+ClfRy6LdURk9Mq6et/3CeVPENP/9GfJP2QQ51COvyAI8nmWqK2Y1oU 36SaJXi5m/oQTA/y6Fu2LsIXbbqDEYSYN8vcQJUpR2gupEXGM4K+Ls2gP0XgUWw41UaG cTnaVVFsRevH568RZrtUI6oQ+ArJZ42dJ/kaQ9Wm+SA/7j2dnu1X0JzoowhTgXyNPUS+ RUrvRiOucucsmPhLI7m6AKIJPnjyQi54Yj9QboXtysePMYJxFptqaYu8nlgUEb+hwuHX 0Pe7Bkhcl7+5QwCGToQDFAi6quYudMXRnHBwx3lHUT8MFRqPgcVEk27JTamTkUvxEsUj rhTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b=oAR0yRsy; 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 gn20si20407127plb.273.2018.11.14.04.55.56; Wed, 14 Nov 2018 04:56:11 -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=oAR0yRsy; 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 S1732512AbeKNW6g (ORCPT + 99 others); Wed, 14 Nov 2018 17:58:36 -0500 Received: from csm1.csm-office.com.au ([165.228.118.109]:48350 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732278AbeKNW6f (ORCPT ); Wed, 14 Nov 2018 17:58:35 -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 wAECsstW003333 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 14 Nov 2018 23:55:19 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1542200119; bh=u1gvbTXIXREuXP4V1T7NSdoBcitO5OT1wrR7uyNNtCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=oAR0yRsyiHb/ck7Yx58FVYTjyUcYhmcB41sUMaewL9NU9X51MIgMqGM6zBiV5MLgt QfRU5cLhXysYfCjx8Egf9QJuIK6fNuIQjPdUdqN/RLdh6HDet4i0DD23vivJeKVasb YhVCDeTnTpXrKamMvisTn3gToW5lHWDeHTG1YOp9gyDArcNo/dH5Y5glInry3LKW4Y PIYyw7tAJLk1T1px70hbEkecMTYGA7JUKI9mlqYkRy95qGthxbGg2NPy+Q954b3xpG qBRL/A92UybHfKCxkI8uT6rsJR51Ad1S8T4pzd70tRY+fGtU3ec2GfG1WIfrgmm0bO VyhG3wcH1dVFQ== From: Tom Burkart To: Linux kernel mailing list Cc: Tom Burkart , devicetree@vger.kernel.org Subject: [PATCH v7 1/4] dt-bindings: pps: descriptor-based gpio, capture-clear addition Date: Wed, 14 Nov 2018 23:54:29 +1100 Message-Id: <20181114125432.16044-2-tom@aussec.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181114125432.16044-1-tom@aussec.com> References: <20181114125432.16044-1-tom@aussec.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch changes the devicetree bindings for the pps-gpio driver from the integer based ABI to the descriptor based ABI. It also adds documentation for the device tree capture-clear option. The legacy device tree entry for the GPIO pin is supported. Signed-off-by: Tom Burkart --- Documentation/devicetree/bindings/pps/pps-gpio.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.txt b/Documentation/devicetree/bindings/pps/pps-gpio.txt index 3683874832ae..6c9fc0998d94 100644 --- a/Documentation/devicetree/bindings/pps/pps-gpio.txt +++ b/Documentation/devicetree/bindings/pps/pps-gpio.txt @@ -5,19 +5,23 @@ a GPIO pin. Required properties: - compatible: should be "pps-gpio" -- gpios: one PPS GPIO in the format described by ../gpio/gpio.txt +- pps-gpios: one PPS GPIO in the format described by ../gpio/gpio.txt +Alternatively (DEPRECATED), instead of pps-gpios above, it may have: +- gpios: one PPS GPIO as above 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 Example: pps { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pps>; - gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; + pps-gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; assert-falling-edge; + capture-clear; compatible = "pps-gpio"; }; -- 2.12.3