From patchwork Sun Jun 25 14:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Farber, Eliav" X-Patchwork-Id: 112602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6954481vqr; Sun, 25 Jun 2023 07:54:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4oBMCnv7sPNdRN7eqwJHlaAhXIgFAW1OMubqbVIJI2sCg/JS21QaQhKChnotgQ8etxnqqZ X-Received: by 2002:a17:903:22c2:b0:1b5:4164:a5b2 with SMTP id y2-20020a17090322c200b001b54164a5b2mr3373560plg.36.1687704891615; Sun, 25 Jun 2023 07:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687704891; cv=none; d=google.com; s=arc-20160816; b=mT5CCC+KgXLCmZpWOwG5fUhx8eoAsFzQRhXI1p2b5nnrS0U/0fMfSiuK17/S5+CRlr fg/Vg5Kh/0IxUX2BVPlLZeQ2305s0gzuUqPOM/S/jQDbr2qd+zb+Wo9JhpWIzDSWvT3P +QbCsajFuoF1TmJcYQeB0nwdVv25lE62JnlSM64tCdh0mj9Y/253yHymlDPDGpA6oO+S XfsIyoICaxIcxZ71Y9QWSZNoYyok9kDTd6ILenPjrczNkY1KtTQ9DXFgC10cgQO6YFla NxoQQhxDMxtq3yj+dRDirnbVbeNHPi3vzBA/uKTyVgs4cJVSUiPDl5tWM7zJsIrrNj76 yyRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xOf7NZnUQximwIOSiAVcKVvthWSLkf2RWP5JPwMyfkM=; fh=/9rTqK0zswNCgLim86exJ2HNVgKWrjH8Cr/T0xC8qdo=; b=lcU0e9e634wxzRWjJbITWPC4FonO0HU7epC46F3f9gaK2Tg5HI0pdwFtumMuXvDUJT eLCh1CtypNIDwSPcjEQzIJ1oIgID2qcJBPVc9y23+FQwden/jRbBPySs3Pxz2qEMOt1/ tw7aJ1yUemhfPmKQ9LcjddtOwQ/UfUK9S92I8W+pCwBUYyl+/SUQckFUeO9idBthGwl3 lNAqYTCO2/rvWlObph2xy2sDf8jwLxc/yy8kLeHbZbppkj0Lwj5tdzVyTlFxuaqcrzhD QRIW2G5ak1P662Ah8vbbJOXJGkgoc/AWnm4NPY1iOpnghjOMtWo3bR7hfgm/g+5Uzhm9 CDPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hlCan534; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a17090a035800b002590f26818asi5997583pjf.0.2023.06.25.07.54.29; Sun, 25 Jun 2023 07:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hlCan534; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbjFYOVu (ORCPT + 99 others); Sun, 25 Jun 2023 10:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbjFYOVl (ORCPT ); Sun, 25 Jun 2023 10:21:41 -0400 Received: from smtp-fw-6002.amazon.com (smtp-fw-6002.amazon.com [52.95.49.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4EF4E4E; Sun, 25 Jun 2023 07:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1687702901; x=1719238901; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xOf7NZnUQximwIOSiAVcKVvthWSLkf2RWP5JPwMyfkM=; b=hlCan534UHgxcqsIhzGCfYS7fTjpM9iVqAOu3rONS9iU7GSRxGXD4hzy gQCa+7xIiRSFeyj4SF5NpC0RuKjcU9Lf59QN3ZPqOt9Wip+FX3/tQ10LL H+G3cO8wQTiaD9BtUZUNZMkfs2T/9k8qYXSjePKhoj8MXfzrctKtvcfzK s=; X-IronPort-AV: E=Sophos;i="6.01,157,1684800000"; d="scan'208";a="340868763" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2c-m6i4x-5eae960a.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-6002.iad6.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2023 14:21:38 +0000 Received: from EX19D005EUB004.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-m6i4x-5eae960a.us-west-2.amazon.com (Postfix) with ESMTPS id 6FE8D40BBE; Sun, 25 Jun 2023 14:21:35 +0000 (UTC) Received: from EX19MTAUEB001.ant.amazon.com (10.252.135.35) by EX19D005EUB004.ant.amazon.com (10.252.51.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 25 Jun 2023 14:21:34 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by mail-relay.amazon.com (10.252.135.35) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Sun, 25 Jun 2023 14:21:34 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id 1C00B4F91; Sun, 25 Jun 2023 14:21:34 +0000 (UTC) From: Eliav Farber To: , , , , , , CC: , , , , , , , Subject: [PATCH 4/5] dt-bindings: pps: pps-gpio: introduce pulse-width properties Date: Sun, 25 Jun 2023 14:21:33 +0000 Message-ID: <20230625142134.33690-5-farbere@amazon.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230625142134.33690-1-farbere@amazon.com> References: <20230625142134.33690-1-farbere@amazon.com> MIME-Version: 1.0 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769686844332688326?= X-GMAIL-MSGID: =?utf-8?q?1769686844332688326?= Add two new optional properties to calculate PPS pulse-width in nano seconds: - assert-pulse-width - clear-pulse-width Signed-off-by: Eliav Farber --- Documentation/devicetree/bindings/pps/pps-gpio.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.txt b/Documentation/devicetree/bindings/pps/pps-gpio.txt index 8d588e38c44e..9ecfd5fb3b63 100644 --- a/Documentation/devicetree/bindings/pps/pps-gpio.txt +++ b/Documentation/devicetree/bindings/pps/pps-gpio.txt @@ -18,6 +18,12 @@ Optional properties: opposite of the assert edge (if assert is rising-edge then clear is falling-edge and if assert is falling-edge then clear is rising-edge). +- assert-pulse-width: when present, assert pulse width will be calculated in + nano seconds. + It should be enabled only if 'capture-clear' is enabled. +- clear-pulse-width: when present, clear pulse width will be calculated in + nano seconds. + It should be enabled only if 'capture-clear' is enabled. Example: pps {