Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp470742rdb; Thu, 1 Feb 2024 14:08:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHF7yfQur1ufW2UzybLgkcIN7t4squ+7X8gO/ZEBstaoCQWDfqJIfme8aTRPeicw7+u/lZW X-Received: by 2002:a05:6402:1adc:b0:55e:f3ef:3c96 with SMTP id ba28-20020a0564021adc00b0055ef3ef3c96mr2432095edb.21.1706825301355; Thu, 01 Feb 2024 14:08:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706825301; cv=pass; d=google.com; s=arc-20160816; b=r4AY2WuxW+eTSbquk7cSjumdsgnqQLrEHmsNa4DeFG8Ar1dZe/RDj9eYM1gsIo54Uz U+ZL9saAIuEXK0Xj3Hifns6tYNxSDhjZZRR0niUa2O8vYE7iPrw04Ge5zri/npliFwB5 ajRMKtZY6ugGtmBfihdlM6UOvQgDIYlLqbYP8zKjV5eOxO0JI/l60vkWWRT/FaJqyiAa zv8u+EImuBZNbPGtyxhFYIbjllLuttk0fCFHtj1npVDHoSRP5IO4REph1e1nuAUp41/Y 9NX4nux+STCgpZ6jc9i6M6Yh+4+eIM7UHZSZt7JAXWJHZYa24iZ3M8g7i26dH6hay8AO 8sog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SeXUfo88Tu/KY49eOw4ou0BuRCC4nHjRrCXlYVn62wA=; fh=zb2EFihQlap8Afyi0NeovYuyVM5hPzrnQpS13v/H/LE=; b=Anldot89Ex2vJLr3rZ2ggX8E9k1N453H9+soi5vmEYk2FKqw8/V7N06BrbLhL5a/Ts hiP9kXIgqfelgKNeRpPWh9UV0CHZGZ8auu9veMNyJZTfiV106og1c+0mhG/iDdzPOh4V /IYao45xjcq2+1lyLTq7yzg9KakhyOhyqPHDaUMpMsU4Gbftv5Lm8DD6uqyo1Yx6fntZ rDjekz1MvJ0Vu45CahEctnQKBOLInLdaJ7knMGCacfc5RBbx0hjezFffG8PBM6zhWE7C XJTTPKV5F4+jL22RU/AR6zKOpu5JnfOL1j4WVOATgFt/pcK8+xZjuiZprAmO1J+PeUl1 xz1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arNLs2Vi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCW2yHmMcE7bbBNFa/0x0PnRbBvwc+dq/TJggboT20IojHee0X9sGQuVzrZqN8YmAi10JpnYpq4+BV/5A0oGtCppNOEa+LE6/fJztgXZVA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bf10-20020a0564021a4a00b0055f320a9bb1si202580edb.354.2024.02.01.14.08.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arNLs2Vi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EEBEA1F2676E for ; Thu, 1 Feb 2024 22:08:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB0663FE24; Thu, 1 Feb 2024 22:08:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="arNLs2Vi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CEF833F8D9; Thu, 1 Feb 2024 22:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706825288; cv=none; b=a3t3yCynnPFyFu1Hej/zbfs/UFWc/jeApu6QIUPke3Wu8OZRQuJ4F9tzXW9l0yqZuLWLiTJraDqnqg6t8LaDoTDZ8fd+5/j0VXMQV34vsSQfTEPkNuMGs8Lb9ftJfb0rb0Il1217tOzL+vu+iv20ymbrjml0QOUuTwPsGF9G7sM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706825288; c=relaxed/simple; bh=hQhyDtZvF8uLG9TardzvTE09AI07Z4RnP2sRVzETQc4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fLpzj2XAh2XAFUogOi4oo8/ZU5CHG4g7rqnaZB350w1cv4KG1o9V0QI2oFx8AotulElo7IXKJKKtvqDXGKgVrvXjs6E7gj/bS65d7v1SwG5Ke/JCH7TlyBzs397kxWLvHSyaxCXLAW7MkKtddlLaqejiB/AaG1cVl0EUUSWxZt4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=arNLs2Vi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8901C433C7; Thu, 1 Feb 2024 22:08:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706825288; bh=hQhyDtZvF8uLG9TardzvTE09AI07Z4RnP2sRVzETQc4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=arNLs2Vi/LqVcmpe22RClErs4NOHdZtfpgtEu6tqLDJ6aBWXExjw+w5PSctCil97W XalDQETiQW2gYN8Gk1iWByfzaaOblw7ZjJOUumjFX9qdx2fvzX4gytiqteGz2yd6nL RTig1cXNadD8a4yrv24NqBy+X6vX0FFL1jJzcMYHq+k/hOHvbq6DMWTHFJ5rHhib/f 4Cr+AXp3iRpV5Ue8Z4jdsBcg5a7NPvRPDA1D7km08Kmh4rRzMIeOpNDmfE5Ww5Y3mg 40PVZjC1YGXrB2iipwfJil94w6KexlOZjChUFjgEvK37Rkjd8AEOQvMZ3Md0VdfXtm nuFMZ1lBWrbYg== Date: Thu, 1 Feb 2024 16:08:05 -0600 From: Bjorn Andersson To: Johan Hovold Cc: Bjorn Andersson , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Benjamin Tissoires , Jiri Kosina , Konrad Dybcio , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Rob Herring Subject: Re: Re: [PATCH v4 1/3] dt-bindings: HID: i2c-hid: Document reset-related properties Message-ID: References: <20240131-x13s-touchscreen-v4-0-39c0f9925d3c@quicinc.com> <20240131-x13s-touchscreen-v4-1-39c0f9925d3c@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Feb 01, 2024 at 11:05:47AM +0100, Johan Hovold wrote: > On Wed, Jan 31, 2024 at 07:07:26PM -0800, Bjorn Andersson wrote: > > Some I2C HID devices has a reset pin and requires that some specified > > time elapses after this reset pin is deasserted, before communication > > with the device is attempted. > > > > The Linux implementation is looking for these in the "reset-gpios" and > > "post-reset-deassert-delay-ms" properties already, so use these property > > names. > > > > Reviewed-by: Johan Hovold > > Acked-by: Rob Herring > > Signed-off-by: Bjorn Andersson > > --- > > Documentation/devicetree/bindings/input/hid-over-i2c.yaml | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.yaml b/Documentation/devicetree/bindings/input/hid-over-i2c.yaml > > index 138caad96a29..f07ff4cb3d26 100644 > > --- a/Documentation/devicetree/bindings/input/hid-over-i2c.yaml > > +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.yaml > > @@ -50,6 +50,12 @@ properties: > > description: Time required by the device after enabling its regulators > > or powering it on, before it is ready for communication. > > > > + post-reset-deassert-delay-ms: > > + description: Time required by the device after reset has been deasserted, > > + before it is ready for communication. > > I know that Rob reluctantly acked this, but re-reading the commit > message for the commit that added support for the reset gpio to the > driver, and added a comment about this not having been added to the > devicetree binding, it becomes obvious that the latter was done on > purpose and that we probably should not be adding the > 'post-reset-deassert-delay-ms' property after all: > > For now the new "post-reset-deassert-delay-ms" property is only > used on x86/ACPI (non devicetree) devs. IOW it is not used in > actual devicetree files and the same goes for the reset GPIO. > The devicetree-bindings maintainers have requested properties > like these to not be added to the devicetree-bindings, so the > new property + GPIO are deliberately not added to the existing > devicetree-bindings. > > 2be404486c05 ("HID: i2c-hid-of: Add reset GPIO support to i2c-hid-of") > > So perhaps we should just do this properly and add a new compatible > property for X13s touchscreen which can be used to determine these > delays (e.g. for cases where some default values are insufficient). > So we should add a new binding, with a device-specific compatible and add a reset-gpios only for that (and not the generic hid-over-i2c binding), and then in the i2c-hid driver encode the two delays? I can try to rewrite these patches, if you can provide me with a compatible. Regards, Bjorn