Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2958236rdb; Tue, 6 Feb 2024 03:02:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj9JZVdCNvxQoLa8/An2+Kh9YET6wEtLmnJO5iep5BULJRb4MpjdqPxja/MMa7xMGC1FwR X-Received: by 2002:a05:6e02:d46:b0:363:b28a:9b96 with SMTP id h6-20020a056e020d4600b00363b28a9b96mr2382620ilj.11.1707217347217; Tue, 06 Feb 2024 03:02:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707217347; cv=pass; d=google.com; s=arc-20160816; b=a6BPSkXPcjGeCSE29ZMHNjtmfCdV1mWBRGPiOs7c0w7sMtWH0vjTRGuAiPdc4eYGy2 8+0+clRawqHhJ+xslm93nd7mjCBLs6PNd5YAJxxiw9EKBMQ/zrSy3FvykhRMs/pNJca8 lQhGeRogg86DVMS9UFAkrzzeF48e3F2Lwny96U5LPQnbRugMmk+yq40aBESFWcEk6YFR ry/8SU9pkXj6wBTWD6syTDrFzJgn9vhj4xhnuA3AIJGsHueTe1p9/4brvUc0rJDK1z74 +E0SyRX8A4X0ffUmWCR3WR6II3/88GjIq2QcVMJEXtMBBVnBMMHRI+VHa6W7pNfLLK9H amfw== 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=XM1CHEX6LKvPf1ifpJeDD4eYiSyYDFadv47eJxvfz8I=; fh=K1QfLOmbEYPzHxwTpz6QThnqd/sc0vX1FbQHKMa9/VU=; b=Ybkkkb3MIAbpCH+PO/AHlLzkc7Atndtc98oNqqUUwgkgWrHDrTT+nLUDR5vZgsCaj5 //3xgFLOkxp/nXfpKKjzCZfpY7mF8HTGl+GnjaKfHsbFkzf10WJzc2DWLD/SvWCorY1H TFRfsY0VHNKCCD08ZrU4laiyhIlIKjMsdEza2LHIdXzCTJNkt94hFw3EGt4bgOKv+Iun fLTuA8Vi5SLA1AeBmXpNQ6o4Wb3bMKjJqolIjdIKL8bnFEZNPOBxBaUMnrzd3jCazcct 7YCq2tKjKLvweNsDiTt0NBQ2KZ+QdzRwLDqg74HZ/8795mZ/s4j0ko0wOvWmG1S6MTJi /J2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kWlnllwj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54730-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; AJvYcCVsydyuFa/ZRrn3goqymVMotb2RryZEEmVhiqISfW2aO3sqQs7aGGj3/LbKm/TBCNO3TD6ZvNxn4HMnFRT5xPIl3QD1uJrnxK5/5RsijA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k16-20020a635610000000b005d8bb95ce75si1443439pgb.197.2024.02.06.03.02.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:02:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kWlnllwj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54730-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D00D92859B1 for ; Tue, 6 Feb 2024 11:02:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3039A1EA72; Tue, 6 Feb 2024 11:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kWlnllwj" 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 473595F561; Tue, 6 Feb 2024 11:02:14 +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=1707217334; cv=none; b=dJ/emA7RktIMX6F3HhWwCGaodiBHYkJy9jXRP9kzcJLY6bao35147+jAAnsH156O7mfZWTA4yOjyBWyxpVZ+pOteJUjjKdweQIo23ScujVUeGbKCV+2y+004FxWJ+Yp2c4HyF/828Sj7WqlDUla2Pi1fj4kzGuds0WYPbND/hfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707217334; c=relaxed/simple; bh=Pg7gzInhVbP+4MJrlr7AIQs7Dl6s73wN7MZFJhlFk0c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nJgyzxQJLK8ML977GrwqLLNPdqzMS4PQ1xXca3r/JcShzfi0enHosPvK35uXoP9ZGbsYzyyOaVhF6UMs5c1/eHROo0GpPIwwSRMyZrBmtpiPIMqeQOJ3biYaQHRwB/SiXMLENi9mgxb0E46Fvcnow/42WImbS2DD9/Rq4BMWYgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kWlnllwj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3105C433C7; Tue, 6 Feb 2024 11:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707217334; bh=Pg7gzInhVbP+4MJrlr7AIQs7Dl6s73wN7MZFJhlFk0c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kWlnllwj4HvBWKZMYXPvtg86jLxACkDEVS/oYnjtGosNHgCx5Z8sXCRYIANIHuZTw RbnA1mWYhJD+if0Gr1/1Po62hwuZmq/DWiXf6odytpmDlOZmJxWJ10/SKZPLNcz9WT uVnhtn/Ni4NaUVaNAfxhqoc+rFP3S92yKhRFMDiwVVzOWU0/IGwSadd6xT18YnWFDE tpBDX5maMq6sFhZGQHaIWlys7EsBiSAlfxae1JRSLwTMRPQ7FOaE0/+vcGaqVY+IBE A/3Md/NymEsRSngtf1ENiD6bwFD2F1eXEz7jGlMB1x/BJdPEg2zbHLicOxgS2HJich UTtkFCDoRtXow== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rXJDX-000000003MZ-1H39; Tue, 06 Feb 2024 12:02:19 +0100 Date: Tue, 6 Feb 2024 12:02:19 +0100 From: Johan Hovold To: Bjorn Andersson 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 04:08:05PM -0600, Bjorn Andersson wrote: > 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: > > > + 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? Right. > I can try to rewrite these patches, if you can provide me with a > compatible. My X13s doesn't have a touchscreen, but the ACPI tables says "ELAN901C". You can look at the current binding and work with the HID and DT maintainers to come up with something appropriate. There is one device-specific compatible in the DT schema currently: wacom,w9013 so something like elan, where is a name for the device with product id 0x901c (or you use the HID product id directly somehow). Johan