Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1378655imu; Tue, 11 Dec 2018 18:54:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vlus3sIuQhGn+T415p242UPA0CQvcuude/hcabjO0tHFcxT5aenZAhZNKAeF0/7vSMQj4i X-Received: by 2002:a62:28c9:: with SMTP id o192mr19011946pfo.57.1544583285082; Tue, 11 Dec 2018 18:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544583285; cv=none; d=google.com; s=arc-20160816; b=Rt07JlaZF8g7WBJI/7lXrGDiOSPzDXCd7cx85/NTQGY0jPpZKjcVvobH7HfP5t5TVz pEDKVGP2EUX7tAc3PA8yfk+TIjfQr5Mj6GKhCLbG6GiGmgcZcqYjwrA5N4dP7WIc4NvC 018+eQHUWAKamCRuisxpuwh2VOIhgPcz5fsDnNlDdxsf/L5cpwgqPLDZtgtohYfRRYeo axFpYUoqUJjpMSum5xOohK2gUAfN60P0sGYZ0h80ujBuv5TeqqRNs6MWrxy7Qb58DL7u 1aLEuLcpQxIh7c2/oo+gCo3fJJp8791lU5YZgdcU3jiT5w+yKBDVc6HxGI8Y+IunKd09 pC0A== 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=XFWu//2Y5KpJCnBps1w1HpMUKrVBVjIzYhFfrv/8o3s=; b=RpiXOrkaYZENx5uHSIW1FaElxSf0TR/hLkYLQAUgctgJPwhtXwcency58mzoPfjA3Z jZvRY6hFTMQvXP7D9FmWclniP8a0pSINxLgx4CL+kXhs1nD8o2FoWWe3amkQ1OWrxyc8 WW3C2g+du+XWh+VvMJFm18b9vBMpUdqu1KzCvHZW8idDRRcQkp52lCvg4reJZsnxcIWr zSnzoELPZq2q428kWLtFY6PQANYiCk4yNzDCWzOTleOE0HxFXnZBHE9T0ayRNuNIDbq9 D5woSj+Mrj/aGYncM2b6INo/7hxB0E/ta2ZJ9zGn2LUSgZOkjQmKaGscmmvshE+tMU8i xDpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aussec.com header.s=2016 header.b=Zr+mYxxH; 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 i198si14779530pfe.289.2018.12.11.18.54.30; Tue, 11 Dec 2018 18:54:45 -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=Zr+mYxxH; 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 S1726372AbeLLCxS (ORCPT + 99 others); Tue, 11 Dec 2018 21:53:18 -0500 Received: from csm1.csm-office.com.au ([165.228.118.109]:55176 "EHLO sleepy.aussec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbeLLCxS (ORCPT ); Tue, 11 Dec 2018 21:53:18 -0500 X-Virus-Scanned: amavisd-new at aussec.com Received: from localhost.localdomain ([1.128.224.233]) (authenticated bits=0) by sleepy.aussec.com (8.15.2/8.15.2) with ESMTPSA id wBC2qbuY002983 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 12 Dec 2018 13:53:06 +1100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aussec.com; s=2016; t=1544583187; bh=ntkkHZ/NBuS6dueZtnOdsAm746bQeXqspMV4Gssbllw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Zr+mYxxH5XrNOTWnGcJu8RW6o/Yw1M5aE4u1DXPHwdD9DaVearCb1O8rY/EWbhJz+ 1N2/Dxk/zSsJ8IL0OYa94xpL1vkuN7q/GqIEH8uaKkZ6HuQat45jKCY3MM4OdJq8CA vGNa2rMVqZpD30FgYVFeqaFkiGuA3CNDzL4JWWZ1luPlwwielPI9+TAhTNhh2QqR6N CMVcnhVVlfS/vMEX/xWcK8s9CmWVGg1voueL4WOiOyK/ruqOq1+8EwFaydW5GfpQpM nnqFGA+Mn88OD8pu6a957IyIx8qq22AnFdeA1AuIqXfItglnCu4BDm6AXahX4F7aF2 9lLSafEFlkzgg== From: Tom Burkart To: Linux kernel mailing list Cc: Tom Burkart , devicetree@vger.kernel.org, Lukas Senger Subject: [PATCH v12 2/3] dt-bindings: pps: pps-gpio PPS ECHO implementation Date: Wed, 12 Dec 2018 13:52:13 +1100 Message-Id: <20181212025214.29911-3-tom@aussec.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181212025214.29911-2-tom@aussec.com> References: <20181212025214.29911-1-tom@aussec.com> <20181212025214.29911-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 changes required for the pps echo functionality for pps-gpio, that sysfs claims is available already. 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. 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