From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A948B154BE2 for ; Tue, 7 Jan 2025 11:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736250974; cv=none; b=ROM4layvShl8MAolBEaDudRIUAHpJzyf8WT8Eo4vJuN/Ucidm30VuFNJrqgU+kvTdbpcF3vO38AZWDSf9WTPZUcOzWE8+J7rv+UtF0stOw/OT2R0U7qeSatMihUN2KCnhSMEk5se4YtMJoN95d/etug+MmYz0VO4Rc+2zpOvf+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736250974; c=relaxed/simple; bh=nHKlEXCvhm7f0iP6MfDX/wykI4eDtiRC1Ijvi6v1xrg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=otm0ZSMwoMDLVbkBFSVXnxU+w2wWFYiSVXymIgfbLhSibh5idfnIPnkOE+Cl7eLi/KdjE7IsjFVQ7PmzZSJWnjIIOLx7Q+1EzjdHlHNROpBZpAXv9yPeNRNOm9MeBb1hbmuUOMkx4jXkFnwyWzndd5kYP3BRfRtwomIsbM7oCrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 00BEC1F00055 for ; Tue, 7 Jan 2025 11:56:02 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id C58A6AA10EA; Tue, 7 Jan 2025 11:56:01 +0000 (UTC) X-Spam-Level: Received: from collins (unknown [192.168.1.1]) by laika.paulk.fr (Postfix) with ESMTPSA id 3DEFEAA10EA; Tue, 7 Jan 2025 11:56:00 +0000 (UTC) Date: Tue, 7 Jan 2025 12:55:57 +0100 From: Paul Kocialkowski To: Maxime Ripard Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Kocialkowski Subject: Re: [PATCH] pinctrl: sunxi: Use minimal debouncing period as default Message-ID: References: <20241119140805.3345412-1-paulk@sys-base.io> <20241119-prudent-jasmine-lizard-195cef@houat> <20241217-impossible-chameleon-of-flowers-8ce18a@houat> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6zNe2E/v+vJtRG0t" Content-Disposition: inline In-Reply-To: <20241217-impossible-chameleon-of-flowers-8ce18a@houat> --6zNe2E/v+vJtRG0t Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Le Tue 17 Dec 24, 14:58, Maxime Ripard a =C3=A9crit : > On Tue, Dec 17, 2024 at 02:41:36PM +0100, Linus Walleij wrote: > > On Tue, Nov 19, 2024 at 3:43=E2=80=AFPM Maxime Ripard wrote: > >=20 > > > [Paul] > > > > The pinctrl code supports an input-debounce device-tree property to= set > > > > a specific debouncing period and choose which clock source is most > > > > relevant. However the property is specified in microseconds, which = is > > > > longer than the minimal period achievable from the high-frequency > > > > oscillator without a pre-scaler. > > > > > > That can be fixed by introducing a new property with a ns resolution. > >=20 > > Perhaps, but I think a setting of 0 should just yield the minimum > > resolution in this case, as apparently the debounce cannot be > > turned off? This would also make sense to expose for > > gpiod_set_debounce() as explained in my other mail. >=20 > Yeah, if we want to have 0 =3D=3D lowest resolution, I'm all for it. I agree that it would be easier and less confusing than introducing a new property just to have a finer resolution. I could craft a patch in that direction then, with a mention about it in the bindings. Cheers, Paul --=20 Paul Kocialkowski, Independent contractor - sys-base - https://www.sys-base.io/ Free software developer - https://www.paulk.fr/ Expert in multimedia, graphics and embedded hardware support with Linux. --6zNe2E/v+vJtRG0t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEAbcMXZQMtj1fphLChP3B6o/ulQwFAmd9Fk0ACgkQhP3B6o/u lQxS1Q//VMjg+Eox4+uMR63N5HnPgzHWc2vTL8Uzc3l++hmb/8euN3yCcb6DDgIn FvJQNxEsDwg8OidQhBxpxBhgXSgOS8QH4quq5WGEfl7LoJ4aBqC1AwaFvqro/xMt 57HfI2Ep36B5ax3By1b53ihQRwpwMNCPCyptkcbBj2D+cQPDj3mI9zeS6ddFDGNc faRCy7sflT3nQyNUDkrix/X7uKXQ0bF2zoPCxWO27VpReCe+HNgvIj2wfKVbcB+9 LCOrWxinJ9zMqvdpMpCIOrZIv+fsriEW9O9disdbE8r/dmP6nV3Bd4D+/CVMSCoH JJzZ6mEfFxetcMMOfQMJv45p/k6bM9LUBH/glAS1C4+ILAlEuE/Xd9+kmpvjdfpk Nh+trrVZdkkEFFNCq8hKCYUFWTIve0asf0DPJo5odAnXRLRRfMdIc8Rd8ik5tsLy 6B3e+kED2gopiLkeE1XVJm4CNk+IfVbym+h0x6IdytuOdW3vTP2hpqPKgmcUYYtI 9Uj7Bq7ZVCDnySt1JFRBrf8dcxgXdbBrHx/hWoVNACbNiUgd323EDz4ESesotP2h lSuNg3/TP32r37C56AVmTvgzf8ZbpwiHvdCLbMpx4isHlnP6RkVO/pzR4UJsZ/y1 9obh+6KFDPMRgktyDeBv2LuBsyn1XlhPy6TstPbOy21Vaavr6Tg= =nOGL -----END PGP SIGNATURE----- --6zNe2E/v+vJtRG0t--