From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94E1EC433E0 for ; Thu, 4 Mar 2021 15:54:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 522B160201 for ; Thu, 4 Mar 2021 15:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232762AbhCDPx1 (ORCPT ); Thu, 4 Mar 2021 10:53:27 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36101 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235810AbhCDPwv (ORCPT ); Thu, 4 Mar 2021 10:52:51 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3482F5C0068; Thu, 4 Mar 2021 10:52:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 04 Mar 2021 10:52:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=b57Uf8ioZOoGZyMVnhn75H7VYbW 5wt1QrSdXz9JcpVI=; b=pzvrnuPPKKki3h8dAiU7pvwK+COwsO12yACUjB6O/kc tM+b5nvyeBtSGlM2E1xKrPdFuwD2VIcK1JNj4sk5iC2AR6TpDvGekDkCTHJYGqyZ Cpu9uwjSYn3chjLVWHYuZHruQH1QeHnihNZSob8KAAnh6Ys1dua2EDup6pcFIa1d pFHLcwuWgFRzAztj/nqJmMvOHvHX1zJniDE0s8EBEAJbIdeGtVA0TkCMhf8vu7Iq TmcqG1yr0cErkJ+/jglZD4lBL1dr8//2x0rSfn3IW7+TYvYIhrgzmDAvcxLPDUP+ 9lv4o6sp3vYV2Cod2cbqLSfkm5J4MzLp4T6QvC3Xvtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=b57Uf8 ioZOoGZyMVnhn75H7VYbW5wt1QrSdXz9JcpVI=; b=fHtWG78gQv5JoKvcgYwOsf bzFdqJi1tceGno4OftALuPWefUcVJlfpfKHVdM/wIW4UJW12wY6dRYDu210OSk11 DypFIFDI40AJjE9QXcVyaazWQ2KNeDWX3wgo6AtvOJWYw8fBkRMYYrwuQ9O80x4n 2V3b32tQsjPEq0mQ7sdbqn6nN3zS109sE5Xr8sJ5/KCdwUDs2VjKP+ZHbQw6UPkr rsf96m+PXF9HeShP+7GdY2lu0UOygpiVaz8fvR0cVta4QaCnfeD9D7h7e01AhiXw +bFceVIF7d327jP9LgqXAnGGoICPgRPx0oUZloMFXX+1Q3NoX05xgN8lPDGBwm4A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepuddvudfhkeekhefgffetffelgffftdehffduffegveetffehueeivddvjedv gfevnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id D379524005B; Thu, 4 Mar 2021 10:51:58 -0500 (EST) Date: Thu, 4 Mar 2021 16:51:57 +0100 From: Maxime Ripard To: Marjan Pascolo Cc: wens@csie.org, Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pinctrl/sunxi: adding input-debounce-ns property Message-ID: <20210304155157.5mxw7h2ul4fb673r@gilmour> References: <20210114081732.9386-1-giulio.benetti@benettiengineering.com> <20210114114219.faulkwww3dhdqwmc@gilmour> <20210217110313.ly5ly5u5vyh2s7dh@gilmour> <4171ad5c-97f1-5738-9127-078fea74bbf7@trexom.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wzbll5gpg4mgw7pz" Content-Disposition: inline In-Reply-To: <4171ad5c-97f1-5738-9127-078fea74bbf7@trexom.it> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wzbll5gpg4mgw7pz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 26, 2021 at 01:53:00PM +0100, Marjan Pascolo wrote: > Hi Maxime, >=20 > Il 17/02/2021 12:03, Maxime Ripard ha scritto: > > Hi, > >=20 > > On Wed, Feb 10, 2021 at 05:22:37PM +0100, Marjan Pascolo wrote: > > > On Allwinner SoC interrupt debounce can be controlled by two oscillat= or > > > (32KHz and 24MHz) and a prescale divider. > > > Oscillator and prescale divider are set through > > > device tree property "input-debounce" which have 1uS accuracy. > > > For acheive nS precision a new device tree poperty is made > > > named "input-debounce-ns". > > > "input-debounce-ns" is checked only if "input-debounce" > > > property is not defined. > > >=20 > > > Suggested-by: Maxime Ripard > > > Signed-off-by: Marjan Pascolo > > > --- > > > --- > > > =A0.../pinctrl/allwinner,sun4i-a10-pinctrl.yaml=A0 |=A0 9 +++++++ > > > =A0drivers/pinctrl/sunxi/pinctrl-sunxi.c=A0=A0=A0=A0=A0=A0=A0=A0 | 2= 5 ++++++++++++++++--- > > > =A02 files changed, 30 insertions(+), 4 deletions(-) > > >=20 > > > diff --git > > > a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > index 5240487dfe50..346776de3a44 100644 > > > --- > > > a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > +++ > > > b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > @@ -93,6 +93,15 @@ properties: > > > =A0=A0=A0=A0 minItems: 1 > > > =A0=A0=A0=A0 maxItems: 5 > > >=20 > > > +=A0 input-debounce-ns: > > > +=A0=A0=A0 description: > > > +=A0=A0=A0=A0=A0 Debouncing periods in nanoseconds, one period per in= terrupt > > > +=A0=A0=A0=A0=A0 bank found in the controller. > > > +=A0=A0=A0=A0=A0 Only checked if input-debounce is not present > > > +=A0=A0=A0 $ref: /schemas/types.yaml#/definitions/uint32-array > > > +=A0=A0=A0 minItems: 1 > > > +=A0=A0=A0 maxItems: 5 > > > + > > This should be a separate patch, with the DT maintainers in Cc. > >=20 > > You should enforce that the properties are mutually exclusive through > > the schema too >=20 > I'm sorry, I've ignored documentaion about /Documentation. >=20 > I see that some additional YAML operator (like oneOf) are used. >=20 > oneOf should fit the schema, but I can't understand if oneOf's options mu= st > be a literal value, or if could also be a node. >=20 > Otherwise I'll use if ..then..else. dependencies is what you're looking for, not oneOf or if Maxime --wzbll5gpg4mgw7pz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYEECHQAKCRDj7w1vZxhR xbQNAQD7DNIY6ibok+p7Ri/WlH9zj11VeetLEFNL/J+sPfqHkwD/TuX1Muj5Vzk2 QlPPj3sJmotBVGEczGFFMoAmc/zR9gM= =z3zV -----END PGP SIGNATURE----- --wzbll5gpg4mgw7pz-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 898ABC433DB for ; Thu, 4 Mar 2021 15:54:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1BA7A64F6A for ; Thu, 4 Mar 2021 15:54:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1BA7A64F6A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=l18/3OsoC50QIp/FaZlTUey6qMq1+ZXeEX0LgY5t9gE=; b=JpcldCt08ECbW61lt51i2ItRS hQr5b3twOaj9cwaiMJRckLiJK7sgfLuNIEABrHC9x+1RjyQsB/+NyjtlbiTiRsDyro0hez0A6YnuU EqfSCFeP3xPEVckYc+zWiuM5D6aQRJByOUt+d7pMmJlVy9sltl+PluIBRJPxshEKIgCe7GC+I0cI8 AGNZY9hg0bWVUuTQ4oMIPH35HP/7xhY23TmU5okWm8S10MZ48nwUHIiKUSf6DuiyQ6YncM89f7YHT A6lTY3Mi2/lva5RGXfLiJvbgLYN3CSX3pdHz0XmcYC4MIz6uRcWmXFyltblWLRlkGQ4D3yTVr+kG+ iNTUAiOGg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHqGo-0098UN-Uh; Thu, 04 Mar 2021 15:52:11 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHqGk-0098Sm-1E for linux-arm-kernel@lists.infradead.org; Thu, 04 Mar 2021 15:52:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3482F5C0068; Thu, 4 Mar 2021 10:52:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 04 Mar 2021 10:52:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=b57Uf8ioZOoGZyMVnhn75H7VYbW 5wt1QrSdXz9JcpVI=; b=pzvrnuPPKKki3h8dAiU7pvwK+COwsO12yACUjB6O/kc tM+b5nvyeBtSGlM2E1xKrPdFuwD2VIcK1JNj4sk5iC2AR6TpDvGekDkCTHJYGqyZ Cpu9uwjSYn3chjLVWHYuZHruQH1QeHnihNZSob8KAAnh6Ys1dua2EDup6pcFIa1d pFHLcwuWgFRzAztj/nqJmMvOHvHX1zJniDE0s8EBEAJbIdeGtVA0TkCMhf8vu7Iq TmcqG1yr0cErkJ+/jglZD4lBL1dr8//2x0rSfn3IW7+TYvYIhrgzmDAvcxLPDUP+ 9lv4o6sp3vYV2Cod2cbqLSfkm5J4MzLp4T6QvC3Xvtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=b57Uf8 ioZOoGZyMVnhn75H7VYbW5wt1QrSdXz9JcpVI=; b=fHtWG78gQv5JoKvcgYwOsf bzFdqJi1tceGno4OftALuPWefUcVJlfpfKHVdM/wIW4UJW12wY6dRYDu210OSk11 DypFIFDI40AJjE9QXcVyaazWQ2KNeDWX3wgo6AtvOJWYw8fBkRMYYrwuQ9O80x4n 2V3b32tQsjPEq0mQ7sdbqn6nN3zS109sE5Xr8sJ5/KCdwUDs2VjKP+ZHbQw6UPkr rsf96m+PXF9HeShP+7GdY2lu0UOygpiVaz8fvR0cVta4QaCnfeD9D7h7e01AhiXw +bFceVIF7d327jP9LgqXAnGGoICPgRPx0oUZloMFXX+1Q3NoX05xgN8lPDGBwm4A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepuddvudfhkeekhefgffetffelgffftdehffduffegveetffehueeivddvjedv gfevnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id D379524005B; Thu, 4 Mar 2021 10:51:58 -0500 (EST) Date: Thu, 4 Mar 2021 16:51:57 +0100 From: Maxime Ripard To: Marjan Pascolo Cc: wens@csie.org, Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pinctrl/sunxi: adding input-debounce-ns property Message-ID: <20210304155157.5mxw7h2ul4fb673r@gilmour> References: <20210114081732.9386-1-giulio.benetti@benettiengineering.com> <20210114114219.faulkwww3dhdqwmc@gilmour> <20210217110313.ly5ly5u5vyh2s7dh@gilmour> <4171ad5c-97f1-5738-9127-078fea74bbf7@trexom.it> MIME-Version: 1.0 In-Reply-To: <4171ad5c-97f1-5738-9127-078fea74bbf7@trexom.it> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5856103376493248602==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5856103376493248602== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wzbll5gpg4mgw7pz" Content-Disposition: inline --wzbll5gpg4mgw7pz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 26, 2021 at 01:53:00PM +0100, Marjan Pascolo wrote: > Hi Maxime, >=20 > Il 17/02/2021 12:03, Maxime Ripard ha scritto: > > Hi, > >=20 > > On Wed, Feb 10, 2021 at 05:22:37PM +0100, Marjan Pascolo wrote: > > > On Allwinner SoC interrupt debounce can be controlled by two oscillat= or > > > (32KHz and 24MHz) and a prescale divider. > > > Oscillator and prescale divider are set through > > > device tree property "input-debounce" which have 1uS accuracy. > > > For acheive nS precision a new device tree poperty is made > > > named "input-debounce-ns". > > > "input-debounce-ns" is checked only if "input-debounce" > > > property is not defined. > > >=20 > > > Suggested-by: Maxime Ripard > > > Signed-off-by: Marjan Pascolo > > > --- > > > --- > > > =A0.../pinctrl/allwinner,sun4i-a10-pinctrl.yaml=A0 |=A0 9 +++++++ > > > =A0drivers/pinctrl/sunxi/pinctrl-sunxi.c=A0=A0=A0=A0=A0=A0=A0=A0 | 2= 5 ++++++++++++++++--- > > > =A02 files changed, 30 insertions(+), 4 deletions(-) > > >=20 > > > diff --git > > > a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > index 5240487dfe50..346776de3a44 100644 > > > --- > > > a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > +++ > > > b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > @@ -93,6 +93,15 @@ properties: > > > =A0=A0=A0=A0 minItems: 1 > > > =A0=A0=A0=A0 maxItems: 5 > > >=20 > > > +=A0 input-debounce-ns: > > > +=A0=A0=A0 description: > > > +=A0=A0=A0=A0=A0 Debouncing periods in nanoseconds, one period per in= terrupt > > > +=A0=A0=A0=A0=A0 bank found in the controller. > > > +=A0=A0=A0=A0=A0 Only checked if input-debounce is not present > > > +=A0=A0=A0 $ref: /schemas/types.yaml#/definitions/uint32-array > > > +=A0=A0=A0 minItems: 1 > > > +=A0=A0=A0 maxItems: 5 > > > + > > This should be a separate patch, with the DT maintainers in Cc. > >=20 > > You should enforce that the properties are mutually exclusive through > > the schema too >=20 > I'm sorry, I've ignored documentaion about /Documentation. >=20 > I see that some additional YAML operator (like oneOf) are used. >=20 > oneOf should fit the schema, but I can't understand if oneOf's options mu= st > be a literal value, or if could also be a node. >=20 > Otherwise I'll use if ..then..else. dependencies is what you're looking for, not oneOf or if Maxime --wzbll5gpg4mgw7pz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYEECHQAKCRDj7w1vZxhR xbQNAQD7DNIY6ibok+p7Ri/WlH9zj11VeetLEFNL/J+sPfqHkwD/TuX1Muj5Vzk2 QlPPj3sJmotBVGEczGFFMoAmc/zR9gM= =z3zV -----END PGP SIGNATURE----- --wzbll5gpg4mgw7pz-- --===============5856103376493248602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5856103376493248602==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95870C433DB for ; Thu, 4 Mar 2021 15:52:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 022D764E60 for ; Thu, 4 Mar 2021 15:52:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 022D764E60 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 185556EA2C; Thu, 4 Mar 2021 15:52:04 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by gabe.freedesktop.org (Postfix) with ESMTPS id 848D26EA2C for ; Thu, 4 Mar 2021 15:52:03 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3482F5C0068; Thu, 4 Mar 2021 10:52:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 04 Mar 2021 10:52:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=b57Uf8ioZOoGZyMVnhn75H7VYbW 5wt1QrSdXz9JcpVI=; b=pzvrnuPPKKki3h8dAiU7pvwK+COwsO12yACUjB6O/kc tM+b5nvyeBtSGlM2E1xKrPdFuwD2VIcK1JNj4sk5iC2AR6TpDvGekDkCTHJYGqyZ Cpu9uwjSYn3chjLVWHYuZHruQH1QeHnihNZSob8KAAnh6Ys1dua2EDup6pcFIa1d pFHLcwuWgFRzAztj/nqJmMvOHvHX1zJniDE0s8EBEAJbIdeGtVA0TkCMhf8vu7Iq TmcqG1yr0cErkJ+/jglZD4lBL1dr8//2x0rSfn3IW7+TYvYIhrgzmDAvcxLPDUP+ 9lv4o6sp3vYV2Cod2cbqLSfkm5J4MzLp4T6QvC3Xvtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=b57Uf8 ioZOoGZyMVnhn75H7VYbW5wt1QrSdXz9JcpVI=; b=fHtWG78gQv5JoKvcgYwOsf bzFdqJi1tceGno4OftALuPWefUcVJlfpfKHVdM/wIW4UJW12wY6dRYDu210OSk11 DypFIFDI40AJjE9QXcVyaazWQ2KNeDWX3wgo6AtvOJWYw8fBkRMYYrwuQ9O80x4n 2V3b32tQsjPEq0mQ7sdbqn6nN3zS109sE5Xr8sJ5/KCdwUDs2VjKP+ZHbQw6UPkr rsf96m+PXF9HeShP+7GdY2lu0UOygpiVaz8fvR0cVta4QaCnfeD9D7h7e01AhiXw +bFceVIF7d327jP9LgqXAnGGoICPgRPx0oUZloMFXX+1Q3NoX05xgN8lPDGBwm4A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepuddvudfhkeekhefgffetffelgffftdehffduffegveetffehueeivddvjedv gfevnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id D379524005B; Thu, 4 Mar 2021 10:51:58 -0500 (EST) Date: Thu, 4 Mar 2021 16:51:57 +0100 From: Maxime Ripard To: Marjan Pascolo Subject: Re: [PATCH] pinctrl/sunxi: adding input-debounce-ns property Message-ID: <20210304155157.5mxw7h2ul4fb673r@gilmour> References: <20210114081732.9386-1-giulio.benetti@benettiengineering.com> <20210114114219.faulkwww3dhdqwmc@gilmour> <20210217110313.ly5ly5u5vyh2s7dh@gilmour> <4171ad5c-97f1-5738-9127-078fea74bbf7@trexom.it> MIME-Version: 1.0 In-Reply-To: <4171ad5c-97f1-5738-9127-078fea74bbf7@trexom.it> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, wens@csie.org, Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: multipart/mixed; boundary="===============1601649358==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============1601649358== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wzbll5gpg4mgw7pz" Content-Disposition: inline --wzbll5gpg4mgw7pz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 26, 2021 at 01:53:00PM +0100, Marjan Pascolo wrote: > Hi Maxime, >=20 > Il 17/02/2021 12:03, Maxime Ripard ha scritto: > > Hi, > >=20 > > On Wed, Feb 10, 2021 at 05:22:37PM +0100, Marjan Pascolo wrote: > > > On Allwinner SoC interrupt debounce can be controlled by two oscillat= or > > > (32KHz and 24MHz) and a prescale divider. > > > Oscillator and prescale divider are set through > > > device tree property "input-debounce" which have 1uS accuracy. > > > For acheive nS precision a new device tree poperty is made > > > named "input-debounce-ns". > > > "input-debounce-ns" is checked only if "input-debounce" > > > property is not defined. > > >=20 > > > Suggested-by: Maxime Ripard > > > Signed-off-by: Marjan Pascolo > > > --- > > > --- > > > =A0.../pinctrl/allwinner,sun4i-a10-pinctrl.yaml=A0 |=A0 9 +++++++ > > > =A0drivers/pinctrl/sunxi/pinctrl-sunxi.c=A0=A0=A0=A0=A0=A0=A0=A0 | 2= 5 ++++++++++++++++--- > > > =A02 files changed, 30 insertions(+), 4 deletions(-) > > >=20 > > > diff --git > > > a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > index 5240487dfe50..346776de3a44 100644 > > > --- > > > a/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > +++ > > > b/Documentation/devicetree/bindings/pinctrl/allwinner,sun4i-a10-pinct= rl.yaml > > > @@ -93,6 +93,15 @@ properties: > > > =A0=A0=A0=A0 minItems: 1 > > > =A0=A0=A0=A0 maxItems: 5 > > >=20 > > > +=A0 input-debounce-ns: > > > +=A0=A0=A0 description: > > > +=A0=A0=A0=A0=A0 Debouncing periods in nanoseconds, one period per in= terrupt > > > +=A0=A0=A0=A0=A0 bank found in the controller. > > > +=A0=A0=A0=A0=A0 Only checked if input-debounce is not present > > > +=A0=A0=A0 $ref: /schemas/types.yaml#/definitions/uint32-array > > > +=A0=A0=A0 minItems: 1 > > > +=A0=A0=A0 maxItems: 5 > > > + > > This should be a separate patch, with the DT maintainers in Cc. > >=20 > > You should enforce that the properties are mutually exclusive through > > the schema too >=20 > I'm sorry, I've ignored documentaion about /Documentation. >=20 > I see that some additional YAML operator (like oneOf) are used. >=20 > oneOf should fit the schema, but I can't understand if oneOf's options mu= st > be a literal value, or if could also be a node. >=20 > Otherwise I'll use if ..then..else. dependencies is what you're looking for, not oneOf or if Maxime --wzbll5gpg4mgw7pz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYEECHQAKCRDj7w1vZxhR xbQNAQD7DNIY6ibok+p7Ri/WlH9zj11VeetLEFNL/J+sPfqHkwD/TuX1Muj5Vzk2 QlPPj3sJmotBVGEczGFFMoAmc/zR9gM= =z3zV -----END PGP SIGNATURE----- --wzbll5gpg4mgw7pz-- --===============1601649358== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1601649358==--